/* =========================
   GENERAL
========================= */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #0D1117;
    color: #FFFFFF;
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 60px;
    margin-right: 0.2rem;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 1px;
}

/* =========================
   HERO SECTION
========================= */

.hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.75)),
        url("../../images/hero.webp") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    max-width: 800px;
}

.hero-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: #22C55E;
}

.hero p {
    font-size: 1.2rem;
    color: #e3e5e9;
    margin-bottom: 2rem;
}

.btn{
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #22C55E;
    color: #0D1117;
}

.btn-primary:hover {
    background-color: #16A34A;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #9CA3AF;
    color: #FFFFFF;
    margin-left: 1rem;
}

.btn-secondary:hover {
    border-color: #22C55E;
    color: #22C55E;
}

@media (max-width: 768px) {
    
    .header {
        padding: 1.5rem 1.2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        margin: 0 !important;
        display: block;
        text-align: center;
    }

    .btn-secondary {
        margin-top: 1rem !important;
    }
    
}

/* =========================
   ICON SECTION
========================= */

.icon-section {
    padding: 4rem 2rem;
    background-color: #28292a; /* Fondo secundario */
    text-align: center;
}

.icon-section h2 {
    font-size: 38px;
    margin-bottom: 1rem;
}

.icon-section p {
    font-size: 19.2px;
    color: #e3e5e9;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.divider-fade {
    border: 0;
    border-top: 3px solid #22C55E;
    width: 200px;
    margin: 40px auto;
    border-radius: 2px;
}

.icon-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 40px;
    text-align: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon.show {
  opacity: 1;
  transform: scale(1);
}

.custom-icon {
    width: 56px;  /* Ajusta el tamaño a tu gusto */
    height: 56px;
}

.feature h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
    line-height: 1.6;
    color: #a0a3bd;
    max-width: 320px;
}


@media (max-width: 992px) {
    .icon-section h2 {
        font-size: 1.8rem;
    }
    .icon-section p{
        font-size: 1rem;
    }
  .icon-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .icon-container {
    grid-template-columns: 1fr;
  }
  .icon {
        opacity: 1 !important;
        transform: scale(1) !important;
        transition: none !important;
    }
}

/* =========================
   IMAGES AND EXPLANATIO SECTION SECTION
========================= */

.ai-section, .family-section{
    height: 100vh;
    box-shadow: inset 0 0 2em 1em rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ai-overlay, .family-overlay{
    width: 35%; /* ancho de la columna */
    display: flex;
    align-items: center;
    padding: 60px;
}

.ai-content, .family-content {
    max-width: 500px;
}

.ai-section h2, .family-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.ai-section h3, .family-section h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #e3e5e9;
}

.ai-section p, .family-section p{
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #e3e5e9;
}


/* =========================
   AI SECTION
========================= */

.ai-section {
    background: 
        linear-gradient(rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.75)),
        url("../../images/ai.webp") center/cover no-repeat;
    display: flex;
    justify-content: flex-end; /* columna a la derecha */
}

.ai-overlay {
    background: rgba(13, 17, 23, 0.75);
    border-left: 4px solid #4de284;
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.ai-overlay.slide-in {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   FAMILY SECTION
========================= */

.family-section {
    background: 
        linear-gradient(rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.75)),
        url("../../images/family.webp") center/cover no-repeat;
    display: flex;
    justify-content: flex-start; /* columna a la izquierda */
}

.family-overlay {
    background: rgba(13, 17, 23, 0.75);
    border-right: 4px solid #5480f1;
    opacity: 0;
    transform: translateX(-100px); /* El signo menos lo mueve a la izquierda */
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.family-overlay.slide-right-in {
    opacity: 1;
    transform: translateX(0);
}

.btn-family{
    background-color: #55c5ee;
    color: #0D1117;
}

.btn-family:hover {
    background-color: #3186cb;
    transform: translateY(-2px);
}

/* =========================
      PRICING SECTION
========================= */

.pricing-section {
    padding: 4rem 1.5rem; /* Ajustado para móvil */
    background-color: #28292a;
    color: white;
}

.pricing-title {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem); /* Título fluido */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Mantiene las tarjetas con la misma altura */
    gap: 2rem;
    max-width: 1100px; /* Ancho máximo para que no se estiren demasiado en PC */
    margin: 0 auto;
}

.card {
    background: #1e1f20; /* Color sólido para que resalte del fondo */
    border-radius: 15px;
    padding: 30px 25px;
    flex: 1;
    min-width: 280px; /* Para que en móviles pequeños no se rompa */
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #4a4b4d;
    display: flex;
    flex-direction: column;
    /* Transición suave ida y vuelta */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card-privacy:hover{
    border-color: #22C55E; /* Brillo verde al pasar el ratón */
}

.card-family:hover{
    border-color: #55c5ee; /* Brillo verde al pasar el ratón */
}

.price-subtitle{
    text-align:center;
    padding:2rem;
}

/* Precios */
.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.old-price {
    font-size: 1.1rem;
    color: #888;
    text-decoration: line-through;
    font-weight: normal;
}

/* Lista de características */
.features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 2rem;
    flex-grow: 1; /* Empuja el botón hacia abajo si las listas tienen distinto largo */
}

.features li {
    display: flex;
    align-items: flex-start; /* Mejor para textos largos que ocupan 2 líneas */
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #d1d1d1;
}

.features-icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Botones con Shimmer */
.btn-outline-privacy, .btn-outline-family {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-outline-privacy { background: #22C55E; color: #0D1117; }
.btn-outline-family { background: #55c5ee; color: #0D1117; }

.btn-outline-privacy::after, .btn-outline-family::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer-effect 3s infinite;
}

@keyframes shimmer-effect {
    0% { left: -150%; }
    100% { left: 150%; }
}

.btn-outline-privacy:hover { background: #2d6f30; color: white; }
.btn-outline-family:hover { background: #3f6b9d; color: white; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
        max-width: 350px;
    }
}

/* =========================
        FAQ RESPONSIVE
========================= */

.faq-section {
    padding: 4rem 1.5rem; /* Reducido un poco el padding lateral para móviles */
    background-color: #1e1f20;
    text-align: center;
}

.faq-section h2 {
    font-size: clamp(1.8rem, 5vw, 2.4rem); /* Tamaño fluido: se adapta entre móvil y PC */
    padding-bottom: 2rem;
    color: #ffffff;
}

.faq-container {    
    max-width: 800px; /* Un ancho máximo más estándar */
    margin: 0 auto;
}

#faq {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#faq.visible {
    opacity: 1;
    transform: translateY(0);
}

details { 
    width: 100%;
    margin-bottom: 1rem;  
    background: rgba(34, 197, 94, 0.05);
    border-radius: 8px;  
    border: 1px solid #22C55E;
    transition: all 0.3s ease;
    text-align: left;
}

details[open] {
    background: rgba(34, 197, 94, 0.1);
}

details summary {  
    /* El padding-left es mayor (3.5rem) para que el texto nunca pise la X */
    padding: 1.2rem 1.2rem 1.2rem 3.5rem; 
    font-weight: 500;
    font-size: 1.1rem; /* Un poco más pequeño para móviles */
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.3s ease;
    color: #ffffff;
}

/* Quitar flecha nativa */
details summary::-webkit-details-marker {
    display: none;
}

/* Icono + que se convierte en X */
details summary::before {
    content: "+";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.8rem;
    font-weight: 300;
    color: #22C55E;
    transition: transform 0.3s ease;
}

details[open] summary::before {
    transform: translateY(-50%) rotate(45deg); /* Rotación a X */
    color: #ef4444; /* Cambia a un tono rojizo al abrir */
}

/* Contenido de la respuesta */
details div {
    padding: 0 1.5rem 1.5rem 3.5rem; /* Mismo margen izquierdo que el summary */
    line-height: 1.6;
    color: #ccc;
    font-size: 1rem;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes para pantallas muy pequeñas (móviles antiguos) */
@media (max-width: 480px) {
    .faq-section {
        padding: 3rem 1rem;
    }
    
    details summary {
        font-size: 1rem;
        padding-left: 3.2rem;
    }
    
    details div {
        padding-left: 3.2rem;
        font-size: 0.95rem;
    }
}
  
/* =========================
          FOOTER
========================= */

.simple-footer {
  background-color: #141414;
  color: #e3e5e9;
  padding: 40px 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.divider {
  max-width: 1000px;
  height: 1px;
  background-color: #343a40;
  margin: 0 auto 25px;
}

.copyright {
  font-size: 14px;
  margin: 0;
  color: #6c757d;
}

/* =========================
   RESPONSIVE
========================= */

/*IMAGES AND EXPLANATION SECTION*/

@media (max-width: 768px) {

  .ai-section, .family-section {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    position: relative;
    background-image: none !important; /* !!! IMPORTANTE !!! Eliminamos la imagen de fondo del contenedor principal para que no se superponga */
    background-color: transparent; /* O el color que prefieras si falla la imagen */
  }

  .ai-section::before, .family-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 250px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; 
    order: 1; 
  }

  .ai-section::before {
      background: 
        linear-gradient(rgba(13, 17, 23, 0.60), rgba(13, 17, 23, 0.60)),
        url("../../images/ai.webp") center/cover no-repeat;
  }

  .family-section::before {
      background: 
        linear-gradient(rgba(13, 17, 23, 0.60), rgba(13, 17, 23, 0.60)),
        url("../../images/family.webp") center/cover no-repeat;
  }

  .ai-overlay, .family-overlay {
    width: 100%;
    order: 2;
    background-color: #1a1c20;
    padding: 50px 30px;
    border-left: none;
    border-right: none;
    border-top: 5px solid; 
    box-sizing: border-box;
  }

  .ai-overlay {
    border-top-color: #4de284;
  }

  .family-overlay {
    border-top-color: #5480f1;
  }

  .ai-content, .family-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .ai-section h2, .family-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
  }

  .ai-section h3, .family-section h3, .ai-section p, .family-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
  }
}

/*SERVICES*/

@media (max-width: 768px) {
  .pricing-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }
}


/*FOOTER*/
@media (max-width: 580px) {
  .footer-links {
    flex-direction: column; /* Los enlaces se ponen uno debajo de otro */
    gap: 15px;
    margin-bottom: 20px;
  }

  .simple-footer {
    padding: 40px 15px;
  }
  
  .divider {
    width: 90%; /* La línea se ajusta al ancho del celular */
  }
}