/* Variables */
:root {
    --primary-color: #4D316A;
    --dark-color: #000000;
    --text-color: #ffffff;
    --light-text: #ffffff;
    --bg-light: #f9f5ff;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  @font-face {
    font-family: 'MiFuente';
    src: url('/fonts/Inter-VariableFont_opsz_wght_5pWJ31-T_iPEwHdXmYt6P.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }

  /* Reset y estilos base */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  

  body {
    font-family: 'MiFuente', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(0deg, #000000 0%, #000000 100%);
    min-height: 100vh;
  }
  
  a {
      color: inherit; /* Todos los enlaces heredarán el color del padre */
      text-decoration: none; /* Opcional */
    }
  

  /* Header */
  .header {
    background-color: #000000;
    color: var(--light-text);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: var(--header-height, 80px);
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 0; /* asegura stacking context */
  }
  
  .logo img {
    height: 64px;
    width: auto;
  }
  
  .launch-date {
    opacity: 0.8;
    font-size: 0.8rem;
    font-weight: 400;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    margin-left: auto; /* Alinea a la derecha */
    right: 2rem;
    top: 1rem;
    z-index: 9999;
    background-color: transparent;
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  nav.nav {
    position: relative;
    z-index: 1;
  }
  
  /* Menú desplegable tipo acordeón */
  .nav-links {
    position: absolute;
    top: calc(100% + 8px); /* justo debajo del botón */
    right: 0;
    background-color: #2a2a2a;
    width: 200px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    border-radius: 4px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 0.85rem; /* Un tercio más pequeño aprox */
  }
  
  .nav-links.active {
    max-height: 300px; /* suficiente para los 3 items */
    opacity: 1;
  }
  
  .nav-links li {
    padding: 0.8rem 1rem;
    list-style: none;
    border-bottom: 1px solid #444;
  }
  
  .nav-links li:last-child {
    border-bottom: none;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
  }
  
  .nav-links a:hover {
    text-decoration: underline;
  }
  

  /* Mobile only */
  @media (max-width: 768px) {
    .hamburger {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 30px;
      height: 24px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 110;
      margin-left: auto;
    }
  
    .nav-links {
      flex-direction: column;
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      width: 200px;
      padding: 1rem;
      background-color: #2a2a2a;
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease, opacity 0.4s ease;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links li {
      padding: 0.8rem 1rem;
      list-style: none;
      border-bottom: 1px solid #444;
    }
  
    .nav-links.active {
      opacity: 1;
      max-height: 300px;
    }
  }
  
  
  /* Hero section */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem; /* Mismo padding vertical que .features */
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box; /* Añadido clave */
    padding-top: var(--header-height, 80px); /* Usa variable CSS */
    min-height: calc(100vh - var(--header-height, 80px));
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: -1;
}

.hero-content {
    max-width: 100%; /* Cambiado de fit-content */
    width: 100%;
    margin: 0 auto;
    background: radial-gradient(circle at center, #83a8e0 0%, transparent 70%);
    padding: 0rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.8s ease-out;
    box-sizing: border-box; /* Añadido */
}

  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

  .hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /*color: #ffffff;*/
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff, #83a8e0);
    background-clip: text;
    -webkit-background-clip: text; /* Para Safari/Chrome antiguos */
    color: transparent; /* Alternativa estándar */
    -webkit-text-fill-color: transparent; /* Necesario para Safari */
  }
  
  .hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #eceaea;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.2px;
    font-weight: 400;
  }
  
  .contact-email a {
    color: #e7b54f;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .contact-email a:hover {
    opacity: 0.8;
    text-decoration: underline;
  }
  
  .hero-image {
    width: 100%;
    max-width: 100%; /* Forzamos ancho completo */
    margin: 2.5rem 0 0;
    padding: 0;
    box-sizing: border-box; /* Añadido */
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%; /* Aseguramos que no exceda el ancho */
    aspect-ratio: 16/9;
    border-radius: var(--border-radius);
    border: 1px solid #83a8e0;
    object-fit: cover;
    display: block; /* Elimina espacio fantasma debajo de la imagen */
}

/* ========= BRAND HIGHLIGHTS ========= */

:root {
  --tech-bg: rgba(0, 123, 255, 0.15);   /* azul claro tech */
  --tech-text: #007BFF;

  --media-bg: rgba(255, 99, 71, 0.15);  /* coral suave media */
  --media-text: #FF6347;
}

/* Estilo general para resaltar divisiones */
.brand-highlight {
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

/* Colores por división */
.brand-highlight.tech {
  background-color: var(--tech-bg);
  color: var(--tech-text);
}

.brand-highlight.media {
  background-color: var(--media-bg);
  color: var(--media-text);
}

/* Pequeño efecto al pasar el ratón */
.brand-highlight:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

/* Opcional: estilo para la línea de confianza */
.trusted {
  margin-top: 10px;
  font-style: italic;
  color: #666;
}


  /* Features */ 

  .features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 400px;
    border: 1px solid #83a8e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000000; /* Fondo negro */
    color: #ffffff; /* Texto blanco por defecto */
    transition: all 0.3s ease; /* Necesario para el hover */
  }

  .feature-card:hover {
    box-shadow: 0 0 0 3px #83a8e0;
    transform: translateY(-2px);
  }
  
  /* Contenedor izquierdo (logo arriba, texto abajo) */
  .feature-content {
    display: grid;
    grid-template-rows: 1fr 1fr; /* Mitad para logo, mitad para texto */
    height: 100%;
  }
  
  .feature-logo-container {
    display: flex;
    overflow: hidden;
    background: #000000; /* Fondo negro para el logo */
  }

  /* Logo - OCUPA LA MITAD SUPERIOR IZQUIERDA */
  .feature-logo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    border-top-left-radius: var(--border-radius); /* Borde redondeado solo arriba-izq */
  }
  
  /* Texto - MITAD INFERIOR IZQUIERDA */
  .feature-text {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000000; /* Fondo negro */
    border-bottom-left-radius: var(--border-radius);
    color: #ffffff; /* Texto blanco */
  }
  
  /* Imagen derecha - OCUPA TODA LA PARTE DERECHA */
  .feature-image {
    display: flex;
    height: 100%;
    background: #000000;
  }
  
  .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* o 'cover' según necesidad */
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .feature-card {
      border-width: 1px; 
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
    }
    
    .feature-logo {
      height: 200px; /* Altura fija en móvil */
      border-top-right-radius: var(--border-radius);
      border-bottom-left-radius: 0;
    }

    .feature-content {
      grid-template-rows: auto; /* Altura fija para logo en móvil */
    }

    .feature-image {
      height: 250px;
      order: 3; /* Logo -> Texto -> Imagen */
    }

    .feature-image img {
      border-top-right-radius: 0;
      border-bottom-left-radius: var(--border-radius);
    }

  }
  

  /* AI Section */
  .ai-section {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--dark-color);
    color: var(--light-text);
  }
  
  .ai-section h2 {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.4;
  }
  
  /* Footer */
  .footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 2.5rem 2rem;
    text-align: center;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .social-icon {
    color: var(--light-text);
    opacity: 0.6;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  
  .social-icon:hover {
    opacity: 1;
  }
  
  .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .legal-links span,
  .legal-links a {
    color: var(--light-text);
    opacity: 0.7;
    font-size: 0.85rem;
  }
  
  .legal-links a {
    text-decoration: none;
    transition: opacity 0.3s;
  }
  
  .legal-links a:hover {
    opacity: 1;
    text-decoration: underline;
  }
  
  /* Cookie Banner */
  .cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: none;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    font-size: 14px;
  }
  
  .cookie-banner p {
    margin: 0;
    padding-right: 15px;
  }
  
  .cookie-banner a {
    color: var(--light-text);
    text-decoration: underline;
  }
  
  #accept-cookies {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s;
  }
  
  #accept-cookies:hover {
    background-color: #3a2452;
  }
  
  @media (max-width: 768px) {
  
    .launch-date {
      display: none;
    }

    .hero {
      padding: 2rem 1rem; /* Reducimos padding en móviles */
      min-height: auto; /* Opcional: ajusta según necesidad */
      min-height: calc(100vh - 60px);
      padding-top: 60px;
    }
    
    .hero-content {
      padding: 3rem 1.5rem; /* Padding reducido */
    }
    
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .hero p {
      font-size: 1.1rem;
    }

    .hero-image {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: var(--border-radius);
      }
    
    
    .ai-section h2 {
      font-size: 1.6rem;
    }
    
    .cookie-banner {
      flex-direction: column;
      text-align: center;
      padding: 15px;
    }
    
    .cookie-banner p {
      padding-right: 0;
      margin-bottom: 10px;
    }
  }