  /* ===== VARIABLES & RESET ===== */
  :root {
    --primary: #ffffff;
    --primary-dark: #83a8e0;
    --primary-light: #6a4d8a;
    --accent: #83a8e0;
    --dark: #000000;
    --light: #ffffff;
    --text-light: #e0e0e0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container {
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

video {
  width: 100%;
  height: auto;
  display: block;
}

@font-face {
  font-family: 'MiFuente';
  src: url('/fonts/Inter-VariableFont_opsz_wght_5pWJ31-T_iPEwHdXmYt6P.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

  /* 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;
    }

    .launch-date {
        display: none;
      }

  }

body {
    font-family: 'MiFuente', sans-serif;
    color: var(--light);
    background: var(--dark);
    line-height: 1.6;
}

/* ===== GLOBAL STYLES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--primary);
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.subheader {
    font-size: 1.25rem;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-image {
    width: calc(100% - 4rem);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 4rem 0;
    background: radial-gradient(circle at center, #83a8e0 0%, transparent 70%);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: linear-gradient(90deg, var(--primary), var(--accent));
}

.services p {
  color: var(--light);
  padding-bottom: 1em;
}
.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: var(--dark);
}

.service-image {
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ai-tools-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ai-tools-list li {
    list-style: none;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.ai-tools-list strong {
    color: var(--primary-dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== USE CASES SECTION ===== */

.use-case-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.use-case h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: linear-gradient(90deg, var(--primary), var(--accent));
}

.use-case-card {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.use-case-header {
    width: 100%;
    background: #2b2b2b;
    color: #f5f5f5;
    text-align: left;
    padding: 1rem;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.use-case-header:hover {
    background: #00aaff;
    color: #fff;
}

.use-case-header .arrow {
    transition: transform 0.3s ease;
}

.use-case-header.active .arrow {
    transform: rotate(180deg);
}

.use-case-body {
    max-height: 0;
    overflow: hidden;
    background: #2a2a2a;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem;
}

.use-case-body.open {
    max-height: 3000px;
    padding: 1rem;
}

.use-case-body h4 {
    color: #00aaff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-body p {
    color: #ccc;
    font-size: 0.95rem;
    background: #222;
    padding: 0.7rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-indent: 1.5rem;
}

.use-case-body ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.use-case-body li {
    padding-left: 0.3rem;
}

.impact-list {
    color: #ccc;
    font-size: 0.95rem;
    background: #222;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    list-style-type: disc;
    margin-left: 2rem;
}
#clients-section {
    scroll-margin-top: 100px; /* Ajusta el valor a la altura de tu header */
    }

/* ==== FIX PARA SAFARI iOS EN CASOS DE USO ==== */

/* Detecta Safari móvil mediante características propias de WebKit */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 1024px) {
  
      /* Asegurar que los elementos se expandan correctamente */
      .use-case-body.open {
        max-height: none !important;    /* Elimina el límite de altura */
        overflow: visible !important;   /* Permite mostrar todo el contenido */
        transition: none !important;    /* Evita problemas de animación */
      }
  
      /* Ajusta el contenedor para evitar cortes de contenido */
      .use-case-card {
        display: block;
      }
  
      /* Asegurar padding correcto al abrir */
      .use-case-body {
        padding: 1rem !important;
      }


        #clients-section {
        scroll-margin-top: 100px; /* Ajusta el valor a la altura de tu header */
        }

    }
}
    @media (max-width: 1024px) {
  
        /* Asegurar que los elementos se expandan correctamente */
        .use-case-body.open {
          max-height: none !important;    /* Elimina el límite de altura */
          overflow: visible !important;   /* Permite mostrar todo el contenido */
          transition: none !important;    /* Evita problemas de animación */
        }
    
        /* Ajusta el contenedor para evitar cortes de contenido */
        .use-case-card {
          display: block;
        }
    
        /* Asegurar padding correcto al abrir */
        .use-case-body {
          padding: 1rem !important;
        }
  
        #clients-section {
        scroll-margin-top: 100px; /* Ajusta el valor a la altura de tu header */
        }
  }
  


/* ===== RESULTS SECTION ===== */
.results {
    padding: 4rem 0;
    text-align: center;
}

.results h2 {
    margin-bottom: 3rem;
    color: linear-gradient(90deg, var(--primary), var(--accent));
}

.results-grid {
    display: grid;
    color: var(--dark);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    padding: 2rem;
    background: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--accent);
}

.stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 4rem 0;
    background: var(--dark);
    color: var(--light);
    text-align: center;
}

.cta h2 {
    color: linear-gradient(90deg, var(--primary), var(--accent));
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--primary)
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--light);
    border-radius: var(--border-radius);
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.results {
    scroll-margin-top: 30px; /* Ajusta según la altura de tu header */
}

/* ===== RESPONSIVE ===== */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .service-card {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        order: -1;
    }
    
    .results {
        scroll-margin-top: 30px; /* Ajusta según la altura de tu header */
    }

    .hero-image, 
    .service-image {
        width: calc(100% - 2rem);
    }
  }
  
    }
  @media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .service-card {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        order: -1;
    }
    
    .results {
        scroll-margin-top: 30px; /* Ajusta según la altura de tu header */
    }

    .hero-image, 
    .service-image {
        width: calc(100% - 2rem);
    }
  }