@media (max-width: 768px) {
    .video-background-holder {
        height: auto !important;
        min-height: 70vh;
    }
    .video-background-content {
        position: relative !important;
        height: auto !important;
        padding: 150px 0 100px 0;
    }
}
/* Centrar video en pantalla completa */
.video-container:fullscreen, .video-container:-webkit-full-screen {
    background-color: #000;
}
.video-container:fullscreen .main-video, .video-container:-webkit-full-screen .main-video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Centra el video manteniendo la proporción */
    /* Evita que Chrome dibuje el video por encima de los controles en pantalla completa real */
    border-radius: 1px;
}
/* Barra de progreso de los videos */
.video-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 9;
    display: flex; align-items: center; gap: 12px;
    padding: 28px 80px 14px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff; font-size: 13px; font-family: sans-serif;
    opacity: 1; transition: opacity 0.3s; cursor: default;
}
.video-container .fullscreen-btn { transition: opacity 0.3s, background 0.3s !important; }
/* Controles ocultos mientras el video reproduce sin movimiento del raton */
.video-container.controls-idle .video-controls,
.video-container.controls-idle .fullscreen-btn { opacity: 0; pointer-events: none; }
.video-container.controls-idle { cursor: none !important; }
.video-progress {
    flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none;
}
.video-progress-track {
    position: relative; width: 100%; height: 4px; border-radius: 2px;
    background: rgba(255,255,255,0.3); transition: height 0.15s;
}
.video-progress:hover .video-progress-track { height: 6px; }
.video-progress-buffer, .video-progress-fill {
    position: absolute; left: 0; top: 0; height: 100%; border-radius: 2px; width: 0;
}
.video-progress-buffer { background: rgba(255,255,255,0.35); }
.video-progress-fill { background: #fff; }
.video-time { min-width: 90px; text-align: right; white-space: nowrap; }

/* Opiniones de clientes: cinta continua hacia la izquierda */
.testimonials {
    --visible: 3;
    --gap: 1.5rem;
    background: #fff;
    padding: 6.5rem 0 7rem;
    overflow: hidden;
}
.testimonials-title {
    margin: 0 0 3.5rem;
    padding: 0 1rem;
    text-align: center;
    font-family: 'Oooh Baby', cursive;
    font-weight: 400;
    font-size: clamp(3.4rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: 0;
    color: #3D3930;
}
.testimonials-track {
    display: flex;
    width: max-content;
    animation: testimonials-slide var(--duration, 60s) linear infinite;
}
.testimonials-track:hover,
.testimonials.audio-playing .testimonials-track,
.testimonials:focus-visible .testimonials-track,
.testimonials:has(:focus-visible) .testimonials-track,
.testimonials.is-paused .testimonials-track { animation-play-state: paused; }
/* Si el usuario reanuda con el botón (aunque sea con teclado), el foco no vuelve a pausar */
.testimonials.is-resumed:not(.audio-playing) .testimonials-track { animation-play-state: running; }
.testimonials-toggle {
    display: block; margin: 2.5rem auto 0; width: 34px; height: 34px; padding: 0;
    border: 1px solid rgba(61, 57, 48, .45); border-radius: 50%; background: transparent;
    color: #3D3930; font-size: .7rem; line-height: 1; cursor: pointer; opacity: .7;
    transition: opacity .2s, background .2s, color .2s;
}
.testimonials-toggle:hover,
.testimonials-toggle:focus-visible { opacity: 1; background: #3D3930; color: #F8F1E4; }
@media (prefers-reduced-motion: reduce) { .testimonials-toggle { display: none; } }
@keyframes testimonials-slide {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.testimonial-card {
    flex: 0 0 auto;
    width: calc((min(100vw, 1400px) - (var(--visible) + 1) * var(--gap)) / var(--visible));
    aspect-ratio: 1 / 1;
    margin: 0 var(--gap) 0 0;
    padding: clamp(1.5rem, 2.4vw, 2.5rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    background: #F8F1E4;
    border-radius: 20px;
    color: #3D3930;
}
.testimonial-photo {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.testimonial-photo-empty { background: rgba(61, 57, 48, 0.12); }
.testimonial-card {
    container-type: size;
}
.testimonial-card blockquote {
    flex: 0 1 auto;
    margin: 0;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
/* Líneas visibles según el alto útil de la tarjeta (foto + nombre + huecos ya descontados); el resto se corta con "…".
   Umbral = 141px fijos (foto, nombre y huecos) + 28,6px por línea + margen */
@container (min-height: 204px) { .testimonial-card blockquote { -webkit-line-clamp: 2; line-clamp: 2; } }
@container (min-height: 233px) { .testimonial-card blockquote { -webkit-line-clamp: 3; line-clamp: 3; } }
@container (min-height: 261px) { .testimonial-card blockquote { -webkit-line-clamp: 4; line-clamp: 4; } }
@container (min-height: 290px) { .testimonial-card blockquote { -webkit-line-clamp: 5; line-clamp: 5; } }
@container (min-height: 318px) { .testimonial-card blockquote { -webkit-line-clamp: 6; line-clamp: 6; } }
@container (min-height: 347px) { .testimonial-card blockquote { -webkit-line-clamp: 7; line-clamp: 7; } }
@container (min-height: 375px) { .testimonial-card blockquote { -webkit-line-clamp: 8; line-clamp: 8; } }
/* Tarjetas con audio: el botón ocupa ~41px, así que cada umbral sube lo mismo */
.testimonial-card.has-audio blockquote { -webkit-line-clamp: 1; line-clamp: 1; }
@container (min-height: 245px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 2; line-clamp: 2; } }
@container (min-height: 274px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 3; line-clamp: 3; } }
@container (min-height: 302px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 4; line-clamp: 4; } }
@container (min-height: 331px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 5; line-clamp: 5; } }
@container (min-height: 359px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 6; line-clamp: 6; } }
@container (min-height: 388px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 7; line-clamp: 7; } }
@container (min-height: 416px) { .testimonial-card.has-audio blockquote { -webkit-line-clamp: 8; line-clamp: 8; } }
.testimonial-audio-btn {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-top: -0.2rem;
    border-radius: 50%;
    border: 1.5px solid #3D3930;
    background: transparent;
    color: #3D3930;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.testimonial-audio-btn:hover,
.testimonial-audio-btn:focus-visible { background: #3D3930; color: #F8F1E4; }
.testimonial-audio-btn .fa-play { margin-left: 2px; }
.testimonial-card figcaption {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    letter-spacing: 1px;
}@media (max-width: 992px) {
    .testimonials { --visible: 2.3; }
}
@media (max-width: 768px) {
    .testimonials { --visible: 1.15; --gap: 1rem; padding: 4.5rem 0 5rem; }
    .testimonials-title { margin-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .testimonials { overflow-x: auto; }
    .testimonials-track { animation: none; }
}

/* Idioma de las secciones Sobre mí: español por defecto, inglés con el botón EN/ES */
[data-lang="en"] { display: none; }
html[data-about-lang="en"] [data-lang="en"] { display: block; }
html[data-about-lang="en"] [data-lang="es"] { display: none; }
.about-home-text > [data-lang] { flex-direction: column; align-items: center; }
html:not([data-about-lang="en"]) .about-home-text > [data-lang="es"],
html[data-about-lang="en"] .about-home-text > [data-lang="en"] { display: flex; }
.about-lang-toggle {
    display: block; margin: 1.5rem auto 0;
    padding: .25rem .5rem; border: 0; border-bottom: 1px solid transparent; background: transparent;
    color: #fff; font: 400 .72rem/1 'Lexend', sans-serif; letter-spacing: .18em;
    cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s;
}
.about-lang-toggle:hover,
.about-lang-toggle:focus-visible { opacity: 1; border-bottom-color: currentColor; }

/* Sección Sobre mí de la portada: foto 40% | texto 60% */
.about-home {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 900px;
    background-color: #000;
}
/* La foto ocupa toda la sección por debajo; el panel de texto (60%) la deja entrever */
.about-home-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #000;
}
/* Alto siempre ajustado; el recorte lateral es casi todo por la derecha (10% izquierda / 90% derecha) */
.about-home-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10% center;
}
.about-home-text {
    position: relative;
    margin-left: 40%;
    flex: 0 0 60%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: rgba(20, 20, 20, 0);
    padding: clamp(2rem, 5vw, 5rem);
}
.about-home-text h1 {
    font-family: 'Oooh Baby', cursive;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: bold;
    margin: 0 0 2rem;
}
.about-home-text p {
    max-width: 720px;
    font-size: clamp(0.875rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    margin: 0 0 1.2rem;
}
@media (max-width: 768px) {
    .about-home { flex-direction: column; min-height: 0; }
    .about-home-photo { position: relative; inset: auto; flex: 0 0 auto; height: 70vw; max-height: 480px; }
    .about-home-text { margin-left: 0; flex: 0 0 auto; background-color: rgb(20, 20, 20); padding: 2.5rem 1.5rem 3rem; }
}