:root {
    --fondoOscuro: #1c1c1c;
    --fondoOscurito: #3a3a3a;
    --fondoClaro: #ffffff;
    --fondoClarito: #e3e3e3;
    --textoOscuro: #333;
    --textoClaro: #ffffff;
    --colorPrimario: #58a834;
    --colorSecundario: #377321;
    --colorTerciario: #245014;
    --colorDegradado: #1cd31c;
    --colorOpinion: #5ce62a;
    --colorPromo: #da8400;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--fondoOscuro);
    color: var(--textoClaro);
    line-height: 1.6;
}

strong {
    font-weight: bold;
}

p {
    font-size: 18px;
}

a {
    color: var(--textoOscuro);
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 4rem 6rem 8rem 6rem;
    width: 100%;
}

section:nth-of-type(odd) {
    background-color: #111;
}

section:nth-of-type(even) {
    background-color: #1c1c1c;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--colorPrimario);
    border-left: 6px solid var(--colorPrimario);
    padding-left: 1rem;
}

section.video h2,
section.contacto h2 {
    text-align: center;
    border-left: none;
}

section p,
section ul {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

section ul {
    list-style: none;
    margin-left: 2rem;
}

section ul li {
    margin-bottom: 0.5rem;
}

@keyframes heroBoxWobble {
    0% {
        transform: rotateZ(0deg);
    }

    25% {
        transform: rotateZ(1deg);
    }

    50% {
        transform: rotateZ(-1deg);
    }

    75% {
        transform: rotateZ(0.5deg);
    }

    100% {
        transform: rotateZ(0deg);
    }
}

/* PORTADA */
.portada {
    background:
        radial-gradient(circle at top right, rgba(39, 134, 190, 0.2), transparent 50%),
        radial-gradient(circle at bottom left, rgba(221, 49, 79, 0.1), transparent 40%),
        linear-gradient(135deg, var(--colorDegradado), var(--colorPrimario));
    padding: 3rem 2rem;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.portada-contenido {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.portada-caja {
    background-color: rgba(0, 0, 0, 0.6);
    margin-top: 6rem;
    margin-left: 3rem;
    padding: 3rem 3rem 1rem 3rem;
    border-radius: 20px;
    max-width: 550px;
    flex: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    will-change: transform;
}

.portada-caja:hover {
    animation: heroBoxWobble 0.6s ease-in-out;
    cursor: default;
}

.portada-caja h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portada-caja h1 span {
    color: var(--colorPrimario);
    display: block;
}

.portada-caja p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0f7fa;
}

.portada-caja .btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background-color: #27ae60;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.portada-caja .btn:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.portada-foto {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portada-foto img {
    max-width: 100%;
    width: 450px;
}

.portada-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portada-titulo .logo {
    width: 130px;
    height: auto;
}

.portada-titulo h1 {
    margin: 0 0 0 0.9rem;
    font-size: 2.4rem;
    line-height: 1.2;
}

.portada-titulo h1 span {
    display: inline;
    color: var(--colorPrimario);
    margin-right: 0.3rem;
}

/* VIDEO */
.contenido-video-texto {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    /* Para que sea responsivo */
}

.video-contenedor {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.video-contenedor iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.texto-video {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.texto-video p {
    margin-bottom: 3.1rem;
}


/* ==========================================================================
   SECCION PRUEBA - VERSIÓN FINAL CORREGIDA
   ========================================================================== */

/* 1. Mantenemos la estructura original para imagen a la derecha */
.seccion-prueba {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    /* Espacio entre texto e imagen */
    align-items: center;
    /* Centrado vertical */
}

.prueba-texto {
    flex: 1 1 450px;
    max-width: 650px;
}

/* 2. Estilos para el bloque de precio */
.intro-precio {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

#precioAntiguo {
    text-decoration: line-through;
    color: var(--color-tachado);
    opacity: 0.7;
    margin-right: 8px;
}

#precioNuevo {
    color: var(--colorPromo);
    font-weight: 800;
}

.nota-tiempo {
    font-size: 0.85rem !important;
    font-style: italic;
    color: #bbb;
    /* Color gris suave para la nota */
    margin-top: -5px;
}

#lista-primera-clase {
    list-style-type: none;
    /* Quitamos los puntos por defecto */
    padding-left: 0;
    margin-left: 0;
}

#lista-primera-clase li {
    position: relative;
    padding-left: 40px;
    /* Espacio para el icono */
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

#lista-primera-clase li::before {
    content: "✔️";
    /* Icono visual */
    position: absolute;
    left: 0;
    font-size: 1.1rem;
    filter: grayscale(0);
    /* Evitamos que el tema lo ponga gris */
}

/* 4. Estilos para el texto de contacto final */
.dudas-contacto {
    font-weight: bold;
    margin-top: 2rem;
}

/* 5. Imagen a la derecha */
.prueba-imagen {
    flex: 1 1 400px;
    /* Asegura un tamaño decente */
    max-width: 550px;
    transition: transform 0.3s ease;
}

.prueba-imagen:hover {
    transform: scale(1.03);
    /* Efecto sutil al pasar el ratón */
}

.prueba-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CAJAS ELEMENTALES */
.cajas-elementales {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.caja-elemental {
    flex: 1 1 250px;
    background-color: #f5f9fc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    cursor: default;
}

.caja-elemental.caja-3 {
    max-width: 33%;
}

.caja-elemental:hover {
    transform: translateY(-5px);
}

.enlace-caja {
    display: block;
    padding: 2rem !important;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 1em;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.enlace-caja p {
    color: var(--textoClaro) !important;
}

.caja-elemental .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.caja-elemental img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

img.emoji {
    margin-top: 14px;
    width: 40px;
    height: 40px;
    background-color: #f5f9fc;
}

.caja-elemental h3 {
    font-size: 1.3rem;
    color: var(--colorPrimario);
    text-shadow: var(--textoOscuro) 0px 0px 1px;
    margin-bottom: 0.5rem;
}

.caja-elemental p {
    font-size: 0.9rem;
    color: var(--textoOscuro);
}

/* OPINIONES */
.opinion-contenedor {
    display: flex;
    gap: 2rem;
    padding-top: 10px;
    padding-bottom: 1rem;
    align-items: stretch;
    overflow-x: auto;
}

.opinion-caja {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--fondoOscurito, #1f1f1f);
    border-radius: 12px;
    width: 350px;
    min-width: 300px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.opinion-caja:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--colorTerciario, #00b67a);
    z-index: 10;
}

.opinion-contenido {
    margin-bottom: 1.5rem;
}

.opinion-encabezado {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.foto-opinion {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--colorOpinion, #00b67a);
}

.opinion-nombre {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.opinion-estrellas {
    font-size: 1.1rem;
    color: #ffdc00;
    margin-top: 0.2rem;
}

.opinion-texto {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

.opinion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.tp-logo {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.icono-externo {
    color: var(--colorOpinion, #4da6ff);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: transform 0.3s, opacity 0.3s;
}

.opinion-caja:hover .tp-logo {
    opacity: 1;
}

.opinion-caja:hover .icono-externo {
    opacity: 1;
    transform: translate(3px, -3px);
}


/* FAQ */
.faq-acordeon {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.faq-pregunta {
    background-color: var(--fondoOscurito);
    color: var(--textoClaro);
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: background-color 0.3s, border-radius 0.5s ease;
}

.faq-pregunta:hover {
    background-color: var(--colorSecundario);
}

.faq-pregunta.activo {
    border-radius: 10px 10px 0 0;
}

.faq-respuesta {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--fondoClarito);
    border-radius: 0 0 10px 10px;
}

.faq-respuesta p {
    margin: 1rem 0;
    color: var(--textoOscuro);
}

/* CONTACTO */
.contacto .caja-elemental {
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--fondoOscurito);
}

.contacto .caja-elemental:hover {
    transform: none;
}

.contacto h3 {
    color: var(--textoClaro) !important;
}

.contacto p {
    font-size: 1.2rem;
}

.whatsapp-flotante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--colorTerciario);
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 13px;
    height: 60px;
    width: 60px;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.4s ease;
    z-index: 1000;
}

.whatsapp-flotante:hover {
    padding: 0 15px;
    width: 170px;
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.whatsapp-texto {
    color: white;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
    pointer-events: none;
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-flotante:hover .whatsapp-texto {
    opacity: 1;
    pointer-events: auto;
}


/* MEDIA QUERIES */

/* Móviles */
@media (max-width: 340px) {
    #direccion-correo {
        font-size: 1rem;
    }
}

@media (max-width: 350px) {
    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 2rem 2rem 4rem 2rem;
    }

    section h2 {
        text-align: center;
        border: none;
        padding: 0;
        font-size: 2rem;
    }

    section ul {
        margin-left: 1rem;
    }

    .contenedor {
        display: block;
        width: 100%;
    }

    .portada {
        padding: 2rem 1.2rem 0 1.2rem;
        min-height: auto;
    }

    .portada-contenido {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 2rem;
    }

    .portada-caja {
        margin: 0;
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .portada-titulo {
        margin-bottom: 1rem;
    }

    .portada-titulo .logo {
        width: 60px;
    }

    .portada-titulo h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    .portada-caja p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .portada-foto img {
        width: 80%;
        max-width: 300px;
    }

    .video-contenedor {
        max-width: 100%;
    }

    .texto-video {
        display: none;
    }

    .caja-elemental.caja-3 {
        max-width: 100%;
    }

    .caja-elemental.caja-3 p {
        font-size: 1.1rem;
    }

    .opinion {
        margin-bottom: 20px;
    }

    .opinion-contenedor {
        flex-direction: column;
    }

    .opinion-caja {
        width: 100%;
    }

    .opinion-texto {
        font-size: 1.1rem;
    }

    .seccion-prueba {
        flex-direction: column;
        text-align: left;
    }

    .prueba-texto,
    .prueba-imagen {
        max-width: 100%;
    }

    .contacto p {
        font-size: 1.2rem;
    }
}

/* Tablets */

@media (min-width: 768px) and (max-width: 1024px) {
    .portada-contenido {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }

    .portada-caja {
        margin: 3rem 0 0 0;
    }

    .portada-titulo .logo {
        width: 120px;
    }

    .portada-caja h1 {
        font-size: 2.2rem;
    }

    .portada-caja p {
        font-size: 1.4rem;
    }

    .portada .imagen {
        max-width: 40%;
    }

    .portada .tarjeta {
        width: auto;
        max-width: 100%;
    }

    .video-contenedor {
        max-width: 100%;
    }

    .texto-video {
        display: none;
    }


    .caja-elemental {
        min-width: 40%;
        max-width: 100%;
    }

    .caja-elemental p {
        font-size: 1rem;
    }

    .caja-elemental.caja-3 {
        max-width: 100%;
    }

    .caja-elemental.caja-3 p {
        font-size: 1.1rem;
    }

    .opinion {
        margin-bottom: 20px;
    }

    .opinion-contenedor {
        flex-direction: column;
    }

    .opinion-caja {
        width: 100%;
    }

    .opinion-texto {
        font-size: 1.1rem;
    }

    #lista-primera-clase {
        font-size: 1.2rem;
    }

    .contacto h2 {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .contacto .caja-elemental p {
        font-size: 1.1rem;
    }
}

@media (min-width: 1024px) and (max-width: 1200px) {
    .caja-elemental {
        min-width: 45%;
    }
}