html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    color: #333;
}

header {
    position: relative;
    background-color: transparent;
    color: black;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

/* 
.header-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
} */

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 5px #00aaff, 0 0 10px red;
    }

    50% {
        text-shadow: 0 0 15px red, 0 0 30px #00aaff;
    }
}

header h1,
header h2 {
    animation: pulseGlow 2.5s infinite ease-in-out;
}

.lang-toggle {
    position: static;
    margin-left: 0.5rem;
}

.lang-toggle button {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    line-height: 1.2;
    padding: 0.2rem;
}

.lang-label {
    font-size: 0.75rem;
    display: block;
}

nav {
    background-color: transparent;
    color: black;
    padding: 3.5rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: gray;
    border: 2px solid #00bfff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: orange;
    color: white;
    transform: scale(1.05);
}

section {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: auto;
}

#services {
    background-color: #ffffff10;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    /* 💡 Esto lo hace responsive */
    margin: 3rem auto;
    backdrop-filter: blur(8px);
}


#services h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00bfff;
}

#services ul {
    list-style: none;
    padding: 0;
}

#services li {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid #00bfff;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#services li:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 191, 255, 0.4);
}

#services span {
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
    display: inline-block;
    margin-bottom: 0.3rem;
}

#services small {
    display: block;
    color: darkgrey;
    font-size: 0.95rem;
}

/* .transform-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
} */

.transform-gallery {
    display: flex;
    /* ❌ quitamos el wrap para que NO bajen a otra fila */
    flex-wrap: nowrap;

    /* ✅ carrusel horizontal */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;

    justify-content: flex-start;
    /* ya no centramos filas */
    gap: 1.5rem;
    padding: 1rem;

    /* (opcional) esconder scrollbar visible */
    scrollbar-width: none;
}

.transform-gallery::-webkit-scrollbar {
    height: 0;
}

/* .transform-card {
    position: relative;
    width: 220px;
    height: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
} */

.transform-card {
    position: relative;
    width: 220px;
    height: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    cursor: pointer;

    /* ✅ item fijo en carrusel (no crece/encoge) */
    flex: 0 0 220px;

    /* ✅ snap al centro cuando deslizas */
    scroll-snap-align: center;
}

.transform-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.transform-card img.after {
    opacity: 0;
}

.transform-card.active img.after {
    opacity: 1;
}

.transform-card.active img:not(.after) {
    opacity: 0;
}

.transform-card p {
    position: absolute;
    bottom: 10px;
    width: 100%;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 8px 0;
    font-weight: 600;
}


.gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.before-after {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 260px;
}

.before-after img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.before-after img.after {
    display: none;
}

.before-after.active img.before {
    display: none;
}

.before-after.active img.after {
    display: inline-block;
}


form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

form input,
form select,
form button {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #111;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

#result {
    margin-top: 1.5rem;
    background-color: #e7f5ff;
    padding: 1rem;
    border-left: 4px solid #00aaff;
    border-radius: 5px;
}

.about-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
    color: white;
    font-size: 0.95rem;
}

.about-list li::before {
    content: "• ";
    color: #00aaff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.certs-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.certs-carousel a {
    background-color: #222;
    color: #00d8ff;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    scroll-snap-align: center;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.certs-carousel a:hover {
    background-color: #00aaff;
    color: white;
}


#testimonials {
    width: 90%;
    /* ✅ ancho proporcional al contenedor padre */
    max-width: 700px;
    /* ❓ límite para pantallas grandes (opcional) */
    margin: 2rem auto;
    /* ✅ centra horizontalmente */
    padding: 2rem;
    background-color: transparent;
    color: black;
    text-align: center;
}


.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-carousel img {
    background-color: black;
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 10%;
    border: none;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.2s;
    flex: 0 0 auto;
}


/* .testimonial-carousel img:hover {
    transform: scale(0.9);
} */

.testimonial-carousel img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.modal {
    display: none;
    position: fixed;
    z-index: 99;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #111;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-content iframe {
    width: 90%;
    height: 405px;
}

.modal-image {
    display: block;
    margin: 5vh auto;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 0 30px #00aaff77;
    animation: fadeIn 0.3s ease-in-out;
}

.gallery.certs-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.cert-thumb {
    width: 100px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* .cert-thumb:hover {
    transform: scale(1.1);
} */

.cert-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00aaffaa;
}

#certModal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 90%;
    height: 95%;
    background-color: rgba(0, 0, 0, 0.9);
}

#certModalImg {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

#closeCertModal {
    position: absolute;
    top: 40px;
    right: 60px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    color: white;
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* 
.open-modal-btn:hover {
    background: #005f99;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.6);
} */

.open-modal-btn {
    background: transparent;
    color: black;
    font-weight: bold;
    border: 2px solid linear-gradient(to right, #00aaff, #0077cc);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
    transition: all 0.3s ease;
}

.open-modal-btn:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.6);
}


/* .open-modal-btn {
    background-color: transparent;
    border: 1px solid #111;
    color: #111;
    padding: 0.2rem 0.2rem;
    font-size: 1rem;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
} */

/* .open-modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
} */


/* .modal-content.nutrition {
    background-color: #0e0e0e;
    color: white;
    border: 2px solid #00aaff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    text-align: left;
    box-shadow: 0 0 30px #00aaff77;
    animation: slideIn 1.4s ease;
} */

.modal-content.nutrition {
    background-color: #0e0e0e;
    color: white;
    border: 2px solid #00aaff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    max-height: 90vh;
    /* 💡 clave para que no se pase del alto de pantalla */
    overflow-y: auto;
    /* 💡 habilita scroll interno si hace falta */
    text-align: left;
    box-shadow: 0 0 30px #00aaff77;
    animation: slideIn 1.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content.nutrition h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #00aaff;
}

.modal-content.nutrition input,
.modal-content.nutrition select,
.modal-content.nutrition button {
    background-color: #111;
    color: white;
    border: 1px solid #00aaff;
    margin-top: 0.5rem;
}

#result {
    margin-top: 1.5rem;
    background-color: #001f2a;
    color: #00d8ff;
    padding: 1rem;
    border-left: 4px solid #00aaff;
    border-radius: 5px;
    font-size: 0.9rem;
}

.explanation-box {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.95em;
    color: white;
}

.explanation-box p {
    margin: 0.3rem 0;
}



.contact-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-icons img {
    height: 30px;
    transition: transform 0.2s ease;
}


.contact-icons img:hover {
    transform: scale(1.2);
}

.open-modal-btn {
    padding: 1.2rem 2rem;
}

footer {
    background-color: transparent;
    color: blue;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.legal-links {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}


@media (max-width: 1024px) {
    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        justify-content: flex-start;
        padding: 1rem 1rem;
        scrollbar-width: none;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }

    nav ul li {
        flex: 0 0 auto;
        /* que no se encojan */
        scroll-snap-align: center;
    }

    nav ul li a {
        min-width: max-content;
        font-size: 1rem;
        padding: 10px 20px;
        border-radius: 25px;
        box-shadow: 0 0 6px rgba(255, 165, 0, 0.3);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {

    #services {
        padding: 1rem;
        border-left: none;
    }

    #services li {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    #services span {
        font-size: 1rem;
    }

    #services small {
        font-size: 0.85rem;
    }

    .modal-content,
    .modal-content.nutrition {
        width: 95%;
        padding: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 
    .modal-content iframe {
        height: 220px !important;
    } */

    .modal-content iframe {
        animation: fadeIn 0.6s ease-in-out;
        border-radius: 8px;
        box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    }

    #certModal {
        width: 100%;
        height: 100%;
        padding-top: 60px;
    }

    #certModalImg {
        max-width: 95%;
        max-height: 70vh;
    }

    #closeCertModal {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/*Modal Coming Soon*/
/* === Coming Soon Modal (aislado con prefijo cs-) === */
.cs-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
    z-index: 10000;
}

.cs-modal--open {
    display: flex;
}

.cs-modal__dialog {
    background: #0e0e0e;
    color: #fff;
    max-width: 420px;
    width: 92%;
    border-radius: 16px;
    padding: 20px 16px;
    border: 2px solid #00aaff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    outline: none;
    animation: cs-pop 160ms ease;
}

.cs-modal__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #00aaff;
}

.cs-modal__msg {
    margin: 0 0 8px;
    opacity: .95;
    line-height: 1.5;
}

.cs-modal__close {
    position: absolute;
    right: 16px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

@keyframes cs-pop {
    from {
        transform: translateY(8px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Respeta tu tema en móviles */
@media (max-width: 480px) {
    .cs-modal__dialog {
        padding: 16px 14px;
        width: 94%;
    }
}

/* Modal más amplio y responsivo */
.modal-content {
    background-color: #111;
    margin: auto;
    padding: 0;
    width: min(92vw, 960px);
    /* antes 90% / 600px */
    position: relative;
    border-radius: 10px;
}

/* Contenedor 16:9 responsivo */
.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Safari moderno lo soporta */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Iframe ocupa todo el contenedor */
#videoIframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
    box-shadow: none;
    /* evita sombras que cambien la caja */
}

/* En móviles, que use casi todo el ancho de la pantalla */
@media (max-width: 480px) {
    .modal-content {
        width: 96vw;
    }
}