/* assets/css/main.css */

/* ==================================
   IMPORT GOOGLE FONTS
   ================================== */
@import url('https://fonts.googleapis.com/css2?family=Jersey+10+Charted&display=swap');

/* ==================================
   VARIABLES & TYPOGRAPHY
   ================================== */
:root {
  --deep-blue:   #0057B8;
  --medium-blue: #198CE7;
  --light-cyan:  #A0D7FF;
  --gray-dark:   #2A2A2A;
  --gray-light:  #F2F4F6;
  --white:       #FFFFFF;

  --font-heading: 'Goldman', sans-serif;
  --font-body:    'Saira', sans-serif;
}

/* Clase para el texto scramble */
.jersey-10-charted-regular {
  font-family: 'Jersey 10 Charted', sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ==================================
   RESET GLOBAL
   ================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==================================
   BASE & CONTAINER
   ================================== */
html,
body {
  overflow-x: hidden;   /* Quita cualquier scroll horizontal */
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--gray-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================================
   HEADER
   ================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(150, 150, 150, 0.75);
  backdrop-filter: blur(4px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding .logo {
  max-width: 160px;
  height: auto;
  display: block;
}

/* ==================================
   NAVIGATION
   ================================== */
/* Desktop */
.main-nav {
  display: flex;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-family: var(--font-heading);
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--light-cyan);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(150, 150, 150, 0.85);
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1000;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .main-nav li + li {
    margin-top: 0.75rem;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--white);
  }

  .main-nav a:hover {
    color: var(--deep-blue);
  }
}

/* ==================================
   HERO SECTION
   ================================== */
/* Hero: quitar background directo y preparar contenedor */
.hero {
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: relative;
  
  
  
  
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* quitá aquí el background: url(...) */
}

/* Pseudo-elemento con la imagen y su propia opacidad */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-background.jpg') center/cover no-repeat;
  opacity: 0.9;            /* ajustá el 0.5 al nivel de transparencia que quieras */
  z-index: -1;             /* queda por debajo del contenido */
}

/* Contenido del hero por encima de la imagen */
.hero-content {
  /*position: relative;*/
  z-index: 1;
  display: flex;
   position: absolute;      /* lo sacamos del flujo normal */
  top: 50%;                /* punto medio vertical */
  left: 50%;               /* punto medio horizontal */
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  text-align: center;

  max-width: 90%;
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;
}

.hero-logo {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

/* Scramble text */
.scramble {
  /* usa la clase Jersey para el scramble */
  font-family: 'Jersey 10 Charted', sans-serif;
  font-size: 2.5rem;
  color: var(--white);
  width: min(75ch, 100%);
  white-space: nowrap;

  overflow: hidden;
}

.scramble .dud {
  color: rgba(255, 255, 255, 0.5);
}

/* ==================================
   FOOTER — TOP
   ================================== */
.main-footer {
  background-color: var(--gray-light);
  color: var(--gray-dark);
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 0;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li + li {
  margin-top: 0.5rem;
}

.footer-col ul li a {
  font-family: var(--font-body);
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--medium-blue);
}

.footer-col p,
.footer-col a {
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
}

/* ==================================
   NEWSLETTER FORM
   ================================== */
.newsletter-form {
  display: flex;
  max-width: 400px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--gray-dark);
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--deep-blue);
  color: var(--white);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--medium-blue);
}

/* ==================================
   FOOTER — BOTTOM
   ================================== */
.footer-bottom {
  border-top: 1px solid var(--gray-dark);
  padding: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.footer-bottom .social {
  list-style: none;
  display: flex;
  padding: 0;
}

.footer-bottom .social li + li {
  margin-left: 1rem;
}

.footer-bottom .social a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom .social a i {
  font-size: 1.2em;
  margin-right: 0.5em;
}

.footer-bottom .social a:hover {
  color: var(--medium-blue);
}
/* dropdown ecosistema */
.main-nav .has-dropdown {
  position: relative;
}

/* ocultar submenu por defecto */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 200px;
  z-index: 2000;
}

/* items del submenu */
.main-nav .dropdown li + li {
  border-top: 1px solid var(--gray-light);
}
.main-nav .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-dark);
  text-decoration: none;
  transition: background 0.2s;
}
.main-nav .dropdown a:hover {
  background: var(--gray-light);
}

/* flecha junto al link */
.main-nav .has-dropdown > a::after {
  content: "▾";
  margin-left: 0.25rem;
  font-size: 0.75em;
}

/* mostrar en hover (desktop) */
@media (min-width: 769px) {
  .main-nav .has-dropdown:hover .dropdown {
    display: block;
  }
}

/* toggle button (mobile) */
.dropdown-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}
.dropdown-toggle::after {
  content: "▸";
  font-size: 0.75em;
  color: var(--white);
  transition: transform 0.3s;
}

/* móvil: mostrar toggle y abrir submenu al hacer open */
@media (max-width: 768px) {
  .dropdown-toggle {
    display: block;
  }
  .main-nav .has-dropdown.open > a::after {
    transform: rotate(90deg);
  }
  .main-nav .has-dropdown.open .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
  }
}


.btn-link {
  display: inline-block;
  margin-top: 0.75rem;
    text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--medium-blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-link:hover {
  background-color: var(--deep-blue);
}
