﻿:root {
  --default-font: "Poppins", "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins", "Roboto", sans-serif;
  --nav-font: "Poppins", "Roboto", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #0039aa; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #0039aa; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #FBE122; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #F2F2F2; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

.light-background {
  --background-color: #f7fbfe;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #0039aa;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #03A9F4;
  --contrast-color: #03A9F4;
}

:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--default-color);
  padding: 15px 0;
  border-bottom: 2px solid var(--accent-color);
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 90px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
  .header .logo img {
    max-height: 50px;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: #ffffff;
  background-color: #03A9F4;
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}
.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: #03A9F4;
  color: #ffffff;
}

.footer .copyright p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 84px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 76px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 40vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  /*justify-content: center;*/
  background-position: center top;
  background: var(--contrast-color);
}

.hero img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  
}

.hero .container {
  position: relative;
  z-index: 3;
  align-items: flex-start;
}

@media (max-width: 1200px) {
  .hero img {
    width: 100%;
    height: 100%;
  }
}

.flecha{
	position: fixed;
	bottom: 175px;
	right: 85px;
	font-size: 3rem;
	color: #0039aa;
	animation: parpadeo 1.5s infinite;
	z-index: 10;
}

@keyframes parpadeo {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.flecha::before {
  content: "↓";
}

/* En móviles: cambiar orientación a flecha izquierda ← */
@media (max-width: 768px) {
  .flecha::before {
	position: fixed;
    content: "→";
  	bottom: 100px;
	right: 150px;
  }
}
    
}