/* ============================================================
   ADDITIONS.CSS  ·  Estilos nuevos para Fisio-DS
   Complementa a style.css y usa SU paleta:
     --accent-green   #00d4aa
     --sunset-orange  #ff6b35
     --black          #1d1d1f
     --light-gray     #f5f5f7
     --whatsapp-green #25D366
     --facebook-blue  #1877F2
   ============================================================ */

/* ============================================================
   1. BOTÓN FIJO DE WHATSAPP
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2.4s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.65);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Cuando el menú móvil está abierto, ocultamos el botón flotante
   para que no choque visualmente con los iconos sociales del menú. */
body.no-scroll .whatsapp-float {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* ============================================================
   2. ICONOS SOCIALES EN LA NAV (escritorio)
   ============================================================ */
.nav-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Logo clickeable que vuelve al inicio */
.logo-space {
    text-decoration: none;
    cursor: pointer;
}

.social-icon-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.social-icon-nav svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.social-icon-nav.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon-nav.facebook {
    background-color: var(--facebook-blue);
}

.social-icon-nav.whatsapp {
    background-color: var(--whatsapp-green);
}

.social-icon-nav:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* ============================================================
   3. HAMBURGUESA + MENÚ MÓVIL DESLIZANTE
   - Botón hamburguesa: oculto en escritorio, visible en mobile
   - Nav-links + nav-social-icons: visibles en escritorio,
     ocultos en mobile
   ============================================================ */

/* Botón hamburguesa */
.fa-bars-container {
    display: none; /* oculto por defecto (escritorio) */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: var(--black);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.fa-bars-container:hover {
    color: var(--accent-green);
}

nav.scrolled .fa-bars-container {
    color: var(--white);
}

/* Overlay oscuro detrás del menú */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9000;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú deslizante */
.menu-bar {
    position: fixed;
    top: 0;
    right: -320px;
    height: 100vh;
    width: 290px;
    background: var(--white);
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.18);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9500;
    display: flex;
    flex-direction: column;
    padding: 30px 24px 45px;
    overflow-y: auto;
}

.menu-bar.open {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--black);
    cursor: pointer;
    padding: 6px 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-close:hover {
    color: var(--accent-green);
    transform: rotate(90deg);
}

.menu-bar-logo {
    text-align: center;
    margin: 1rem 0 1.5rem;
}

.menu-bar-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 212, 170, 0.3);
}

.menu-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.menu-bar li {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.25s ease;
}

.menu-bar li:last-child {
    border-bottom: none;
}

.menu-bar li:hover {
    background: rgba(0, 212, 170, 0.06);
}

.menu-bar a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.6rem;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    font-family: "Inter", sans-serif;
    transition: color 0.25s ease;
}

.menu-bar a i {
    color: var(--accent-green);
    font-size: 1rem;
    width: 22px;
    text-align: center;
    transition: transform 0.25s ease;
}

.menu-bar a:hover {
    color: var(--accent-green);
}

.menu-bar a:hover i {
    transform: scale(1.15);
}

.menu-bar-socials {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.menu-socials-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin: 0 0 1rem 0;
    font-family: "Inter", sans-serif;
}

.menu-socials-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.menu-socials-icons .social-icon-nav {
    width: 44px;
    height: 44px;
}

.menu-socials-icons .social-icon-nav svg {
    width: 20px;
    height: 20px;
}

/* Bloquea el scroll del body cuando el menú está abierto */
.no-scroll {
    overflow: hidden;
}

/* ============================================================
   4. HERO: Logo grande con HALO PULSANTE
   ============================================================ */
.hero-logo-large {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Dos halos verdes que se expanden y desvanecen
   creando un efecto de pulso continuo (como un latido) */
.hero-logo-large::before,
.hero-logo-large::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-green);
    opacity: 0;
    animation: hero-logo-pulse 2.6s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* El segundo halo va desfasado medio ciclo, así nunca queda silencio */
.hero-logo-large::after {
    animation-delay: 1.3s;
}

@keyframes hero-logo-pulse {
    0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.45; }
    100% { transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
}

/* Respeto a quien tenga movimiento reducido en el sistema */
@media (prefers-reduced-motion: reduce) {
    .hero-logo-large::before,
    .hero-logo-large::after {
        animation: none;
    }
}

.hero-logo-large img {
    max-width: 320px;
    width: 65vw;
    height: auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0 14px 40px rgba(0, 212, 170, 0.35);
    border: 5px solid #fff;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    max-width: 650px;
    font-size: 1.1rem;
    color: #666;
    margin: 0.5rem auto 2rem;
    line-height: 1.6;
}

/* Línea de ubicación bajo el tagline */
.hero-location {
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0.5rem 0 1.5rem;
    font-family: "Inter", sans-serif;
}

/* ============================================================
   5. CARRUSEL AUTOMÁTICO (Hero + Sobre Mí)
   ============================================================ */
.hero-carousel,
.about-carousel {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left 35s linear infinite;
}

.carousel-track.reverse {
    animation: scroll-right 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 300px;
    height: 360px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.22);
    transition: box-shadow 0.3s ease;
}

.carousel-slide:hover {
    box-shadow: 0 14px 34px rgba(0, 212, 170, 0.35);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
    box-shadow: none;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}

@keyframes scroll-right {
    0%   { transform: translateX(calc(-50% - 10px)); }
    100% { transform: translateX(0); }
}

/* ============================================================
   6. SELECTOR DE IDIOMAS
   ============================================================ */
.language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.5rem 0 2rem;
}

.lang-btn {
    padding: 9px 20px;
    border: 2px solid var(--accent-green);
    background: var(--white);
    color: var(--accent-green);
    border-radius: 28px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

.lang-btn.active {
    background: var(--accent-green);
    color: var(--white);
}

/* ============================================================
   7. SECCIÓN RESEÑAS
   ============================================================ */
.reviews-section {
    padding: 6rem 2rem;
    background: var(--light-gray);
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--black);
}

.reviews-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background: var(--white);
    padding: 2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 212, 170, 0.2);
}

/* Header con avatar + nombre + fecha */
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.review-avatar,
.review-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.review-avatar {
    box-shadow: none;
}

.review-avatar-fallback {
    background: var(--accent-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    font-family: "Playfair Display", serif;
}

.review-author {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.review-author .reviewer {
    font-weight: 600;
    color: var(--black);
    font-size: 0.98rem;
}

.review-date {
    font-size: 0.82rem;
    color: #999;
    margin-top: 2px;
}

.stars {
    color: var(--sunset-orange);
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.review-text {
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 0;
    color: #444;
    flex-grow: 1;
}

.reviewer {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.reviews-link {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 3px;
    transition: opacity 0.3s ease;
}

.reviews-link:hover {
    opacity: 0.7;
}

/* ============================================================
   8. SECCIÓN CERTIFICADO
   ============================================================ */
.certificate-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.certificate-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--black);
}

.certificate-content {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.certificate-content img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    box-shadow: none;
    border-radius: 12px;
}

.certificate-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .carousel-slide {
        width: 260px;
        height: 310px;
    }
}

@media (max-width: 768px) {
    /* === Cambio clave: oculto los enlaces y iconos del nav,
           y muestro la hamburguesa === */
    .nav-links {
        display: none !important;
    }
    .nav-social-icons {
        display: none !important;
    }
    .fa-bars-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-logo-large img {
        max-width: 220px;
        width: 60vw;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .carousel-slide {
        width: 220px;
        height: 270px;
        border-radius: 14px;
    }

    .hero-carousel,
    .about-carousel {
        margin: 1.5rem 0;
    }

    .language-selector { gap: 6px; }
    .lang-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }

    .reviews-section,
    .certificate-section {
        padding: 4rem 1rem;
    }
    .reviews-section h2,
    .certificate-section h2 {
        font-size: 2rem;
    }
    .review-card { padding: 1.6rem 1.4rem; }
    .certificate-content { padding: 1rem; }
    .certificate-content img { max-width: 260px; }
}

@media (max-width: 480px) {
    .carousel-slide {
        width: 180px;
        height: 220px;
    }
    .menu-bar {
        width: 260px;
    }
    .brand-name {
        font-size: 1.15rem;
    }
}