:root {
    --fondoOscuro: #1c1c1c;
    --fondoOscurito: #3a3a3a;
    --fondoClaro: #ffffff;
    --fondoClarito: #e3e3e3;
    --textoOscuro: #333;
    --textoClaro: #ffffff;
    --colorPrimario: #2786be;
    --colorSecundario: #125d8e;
    --colorTerciario: #00a0ff;
    --colorDegradado: #1c3ad3;
}

* {
    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: 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.5rem;
    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 */
.seccion-prueba {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
}

.prueba-texto {
    flex: 1 1 300px;
    max-width: 600px;
}

#lista-primera-clase {
    list-style-type: disc;
    margin-left: 3rem;
    font-size: 1rem;
}

.prueba-imagen {
    flex: 1 1 300px;
    max-width: 500px;
}

.prueba-imagen img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

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

.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-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.opinion-caja {
    background-color: var(--fondoOscurito);
    padding: 1.5rem;
    border-radius: 12px;
    width: 31%;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: left;
    transition: transform 0.3s ease;
}

.opinion-caja:hover {
    transform: translateY(-5px);
    cursor: default;
}

.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(--colorTerciario);
}

.opinion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opinion-nombre {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    color: var(--colorTerciario);
}

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

.opinion-texto {
    font-size: 0.95rem;
    color: #ddd;
}


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

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

.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: #25d366;
    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%;
    }
}