/* Importa la fuente Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* --- Estilos Generales --- */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Añadido para un mejor manejo de paddings y borders */
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0c0c0c; /* Fondo general oscuro */
    color: #fff;
    line-height: 1.6;
}

/* --- 1 HERO Section --- */
/* --- 1 HERO Section --- */
.hero-cerebrum {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 100px 20px;

    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                url('../../assets/img/banner.webp') no-repeat center center / cover;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-cerebrum {
        background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
                    url('../../assets/img/banner-responsive.webp') no-repeat center center / cover;
        background-size: cover;
    }
}

.hero-cerebrum h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    animation: fadeInUp 1s ease-in-out;
}

.hero-cerebrum h1 span {
    color: #ffcc00;
    animation: pulseGlow 2s infinite alternate;
}

.hero-cerebrum p {
    font-size: 22px;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.5s ease-in-out;
}

.hero-cerebrum a {
    display: inline-block;
    padding: 18px 50px;
    font-size: 20px;
    background: #ffcc00;
    color: #000;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeInUp 2s ease-in-out;
}

.hero-cerebrum a:hover {
    background: #e6b800;
    transform: scale(1.05);
}

.hero-cerebrum div {
    margin-top: 60px;
}

/* ============================== */
/* ANIMACIONES PREMIUM            */
/* ============================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  from {
    text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
  }
  to {
    text-shadow: 0 0 20px #fff200, 0 0 40px #ffcc00;
  }
}

/* --- 2 DEMO VISUAL Section --- */
.demo-cerebrum {
    padding: 100px 20px;
    background: linear-gradient(145deg, #101010, #1a1a1a);
    color: #fff;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}



.demo-cerebrum h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.demo-cerebrum p {
    font-size: 20px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.3s ease-out;
}

.demo-cerebrum div {
    max-width: 950px;
    margin: auto;
    position: relative;
    padding-top: 56.25%;
    z-index: 2;
    animation: fadeInUp 1.6s ease-out;
}
/* ============================= */
/* ANIMACIONES PERSONALIZADAS   */
/* ============================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shineGlow {
  0% {
    transform: rotate(0deg) scale(1.2);
  }
  100% {
    transform: rotate(360deg) scale(1.2);
  }
}


/* --- 3 BENEFICIOS Section --- */
.beneficios-cerebrum {
    padding: 100px 20px;
    background: linear-gradient(145deg, #0f0f0f, #121212);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.beneficios-cerebrum::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.04) 0%, transparent 70%);
    animation: rotateGlow 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.beneficios-cerebrum h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    z-index: 1;
    position: relative;
    animation: fadeInUp 1s ease-in-out;
}

.beneficios-cerebrum > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    z-index: 1;
    position: relative;
}

.beneficios-cerebrum > div > div {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInCard 0.8s ease forwards;
    opacity: 0;
}

.beneficios-cerebrum > div > div:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 204, 0, 0.12);
}

.beneficios-cerebrum > div > div:nth-child(1) { animation-delay: 0.2s; }
.beneficios-cerebrum > div > div:nth-child(2) { animation-delay: 0.4s; }
.beneficios-cerebrum > div > div:nth-child(3) { animation-delay: 0.6s; }
.beneficios-cerebrum > div > div:nth-child(4) { animation-delay: 0.8s; }
.beneficios-cerebrum > div > div:nth-child(5) { animation-delay: 1s; }

.beneficios-cerebrum > div > div div {
    font-size: 40px;
    margin-bottom: 15px;
    animation: pulseEmoji 2s infinite alternate;
}

.beneficios-cerebrum > div > div h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffcc00;
}

.beneficios-cerebrum > div > div p {
    color: #aaa;
    font-size: 16px;
    line-height: 1.5;
}

/* ========================= */
/* ANIMACIONES PREMIUM       */
/* ========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseEmoji {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(1.15); opacity: 1; }
}


/* --- 4 COMPARATIVA Section --- */
.comparativa-cerebrum {
    padding: 80px 20px;
    background: linear-gradient(160deg, #0c0c0c, #131313);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.comparativa-cerebrum h2 {
    font-size: 36px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.comparativa-cerebrum > p {
    font-size: 20px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 50px;
    animation: fadeInUp 1.2s ease-out;
}

/* CONTENEDOR DE TARJETAS */
.comparativa-cerebrum > div:nth-of-type(1) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

/* TARJETAS DE AGENTES */
.comparativa-cerebrum > div:nth-of-type(1) > div {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s ease;
    position: relative;
}

/* ESTADO VISIBLE + BRILLO */
.comparativa-cerebrum > div:nth-of-type(1) > div.visible {
    opacity: 1;
    transform: translateY(0);
    animation: glowIn 1.2s ease forwards;
}

@keyframes glowIn {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.15);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.07);
  }
}

.comparativa-cerebrum h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffcc00;
}

.comparativa-cerebrum div:nth-of-type(1) > div p:nth-of-type(1) {
    color: #aaa;
}

.comparativa-cerebrum div:nth-of-type(1) > div p:nth-of-type(2) {
    font-size: 18px;
    color: #ff4444;
}

/* TOTAL + CTA */
.comparativa-cerebrum > div:nth-of-type(2) {
    margin-top: 60px;
    animation: fadeInUp 1.5s ease-out;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(1) {
    font-size: 18px;
    color: #888;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(1) span {
    color: #fff;
    font-size: 24px;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(2) {
    font-size: 20px;
    margin: 20px 0;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(2) strong {
    color: #ffcc00;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(2) span {
    color: #00ff88;
    font-size: 26px;
}

.comparativa-cerebrum div:nth-of-type(2) p:nth-of-type(3) {
    color: #ccc;
}

.comparativa-cerebrum a {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 20px;
    background: #ffcc00;
    color: #000;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.comparativa-cerebrum a:hover {
    background: #e6b800;
    transform: scale(1.05);
}

/* ANIMACIONES BÁSICAS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- 5 TESTIMONIOS Section --- */
.testimonios-cerebrum {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #0e0e0e, #121212);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.testimonios-cerebrum h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

.testimonios-cerebrum > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
}

/* Tarjetas base */
.testimonios-cerebrum > div > div {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
}

/* Cuando son visibles */
.testimonios-cerebrum > div > div.visible {
    opacity: 1;
    transform: translateX(0);
    animation: glowCard 1.2s ease;
}

/* Contenido */
.testimonios-cerebrum > div > div p:nth-of-type(1) {
    font-style: italic;
    color: #ccc;
}

.testimonios-cerebrum > div > div p:nth-of-type(2) {
    margin-top: 20px;
    font-weight: bold;
    color: #ffcc00;
}

/* ANIMACIONES */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowCard {
  0%   { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50%  { box-shadow: 0 0 40px rgba(255, 204, 0, 0.2); }
  100% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.05); }
}


/* --- 6 CTA Y GARANTÍA Section --- */
.cta-cerebrum {
    padding: 100px 20px;
    background: #161616;
    color: #fff;
    text-align: center;
}

.cta-cerebrum h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-cerebrum > p { /* Párrafo debajo del h2 */
    font-size: 20px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 40px;
}

.cta-cerebrum div:nth-of-type(1) { /* Contenedor de la garantía */
    background: #1f1f1f;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-cerebrum div:nth-of-type(1) p:nth-of-type(1) { /* Título de la garantía */
    font-size: 18px;
    color: #ffcc00;
}

.cta-cerebrum div:nth-of-type(1) p:nth-of-type(2) { /* Texto de la garantía */
    color: #aaa;
}

.cta-cerebrum a { /* Botón CTA */
    display: inline-block;
    padding: 18px 50px;
    font-size: 20px;
    background: #00ff88; /* Color verde vibrante */
    color: #000;
    border-radius: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-cerebrum a:hover {
    background: #00e673; /* Un tono ligeramente más oscuro al pasar el mouse */
}

.cta-cerebrum div:nth-of-type(2) { /* Contenedor de logos */
    margin-top: 60px;
}

.cta-cerebrum div:nth-of-type(2) p {
    font-size: 14px;
    color: #666;
}

.cta-cerebrum div:nth-of-type(2) img {
    max-width: 300px;
    opacity: 0.4;
}

/* --- 7 FAQ Section --- */
.faq-cerebrum {
    padding: 100px 20px;
    background: #0c0c0c;
    color: #fff;
}

.faq-cerebrum h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.faq-cerebrum div:nth-of-type(1) { /* Contenedor de preguntas */
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-cerebrum div:nth-of-type(1) > div h3 { /* Título de la pregunta */
    font-size: 20px;
    color: #ffcc00;
    margin-bottom: 5px; /* Pequeño margen para separar de la respuesta */
}

.faq-cerebrum div:nth-of-type(1) > div p { /* Respuesta de la pregunta */
    color: #ccc;
}

/* --- 8 FORMULARIO DE CONTACTO Section --- */
.formulario-cerebrum {
    padding: 100px 20px;
    background: #0d0d0d;
    color: #fff;
}

.formulario-cerebrum h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.formulario-cerebrum p {
    text-align: center;
    font-size: 18px;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 40px;
}

.formulario-cerebrum form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formulario-cerebrum form div { /* Contenedor de cada input/textarea y label */
    position: relative;
}

.formulario-cerebrum form input,
.formulario-cerebrum form textarea {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none; /* Elimina el contorno al enfocar */
    transition: border-color 0.3s ease;
}

.formulario-cerebrum form input:focus,
.formulario-cerebrum form textarea:focus {
    border-color: #ffcc00; /* Borde amarillo al enfocar */
}

.formulario-cerebrum form label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
    transition: 0.2s ease;
}

.formulario-cerebrum form textarea + label { /* Ajuste para el label del textarea */
    top: 15px;
    transform: translateY(0);
}


/* Efecto de label flotante */
.formulario-cerebrum form input:focus + label,
.formulario-cerebrum form input:not(:placeholder-shown) + label,
.formulario-cerebrum form textarea:focus + label,
.formulario-cerebrum form textarea:not(:placeholder-shown) + label {
    top: 0px; /* Sube el label */
    font-size: 12px;
    color: #ffcc00;
    background: #0d0d0d; /* Fondo para que no se vea el texto debajo */
    padding: 0 5px;
    left: 10px; /* Ajuste para que no quede pegado al borde */
    transform: translateY(-50%);
}


.formulario-cerebrum form button {
    padding: 15px;
    background: #ffcc00;
    color: #000;
    border: none;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario-cerebrum form button:hover {
    background: #e6b800;
}

/* --- Media Queries para Responsividad (Opcional, pero recomendado) --- */
@media (max-width: 768px) {
    .hero-cerebrum h1 {
        font-size: 34px;
    }

    .hero-cerebrum p {
        font-size: 18px;
    }

    .hero-cerebrum a {
        padding: 15px 40px;
        font-size: 18px;
    }

    .demo-cerebrum h2,
    .beneficios-cerebrum h2,
    .comparativa-cerebrum h2,
    .testimonios-cerebrum h2,
    .cta-cerebrum h2,
    .faq-cerebrum h2,
    .formulario-cerebrum h2 {
        font-size: 30px;
    }

    .beneficios-cerebrum div:nth-of-type(1) > div,
    .comparativa-cerebrum div:nth-of-type(1) > div,
    .testimonios-cerebrum div:nth-of-type(1) > div {
        width: 100%; /* Las tarjetas ocupan todo el ancho en pantallas pequeñas */
        max-width: 350px; /* O un max-width si no quieres que se estiren demasiado */
    }
}

@media (max-width: 480px) {
    .hero-cerebrum h1 {
        font-size: 28px;
    }

    .hero-cerebrum p {
        font-size: 16px;
    }

    .hero-cerebrum a {
        padding: 12px 30px;
        font-size: 16px;
    }

    .demo-cerebrum h2,
    .beneficios-cerebrum h2,
    .comparativa-cerebrum h2,
    .testimonios-cerebrum h2,
    .cta-cerebrum h2,
    .faq-cerebrum h2,
    .formulario-cerebrum h2 {
        font-size: 26px;
    }

    .demo-cerebrum p,
    .comparativa-cerebrum > p,
    .cta-cerebrum > p,
    .formulario-cerebrum p {
        font-size: 16px;
    }
}