/* =====================================================
   ZEUS - INDEX.HTML Specific Styles
   Ultra Premium Design
   ===================================================== */

/* =====================================================
   HERO SECTION - Ultra Transparent Premium
   ===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    background-color: #0f0e0d;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.55)),
        url('../img/mg-8395-editada.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        background-position: center 30%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(173, 115, 50, 0.03) 100%);
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

.hero-content {
    background: transparent;
    padding: 60px 40px;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    max-width: 1100px;
    width: 92%;
    /* CSS animation removed - GSAP handles hero entrance */
}

/* heroFadeIn disabled - Now handled by GSAP in animations.js
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Hero Badge - Premium Box Style */
.hero-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #AE7433;
    margin-bottom: 36px;
    padding: 12px 30px;
    border: 2px solid #AE7433;
    background: rgba(174, 116, 51, 0.08);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.hero-title em {
    font-style: normal;
    color: #C9954D;
    text-shadow: 0 0 40px rgba(201, 149, 77, 0.4), 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.hero-rule {
    width: 50px;
    height: 2px;
    background: #AE7433;
    flex-shrink: 0;
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.6;
    padding: 0 10px;
    max-width: 600px;
}

.hero-cta {
    margin-top: 40px;
}

/* Hero Button - Canela with Shimmer Effect */
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #fff;
    background: #AD7332;
    border: none;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 25px rgba(173, 115, 50, 0.4);
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect */
.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 229, 216, 0.35), transparent);
    animation: shimmer 3.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Arrow animation */
.btn-hero svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn-hero:hover svg {
    transform: translateX(4px);
}

.btn-hero:hover {
    background: #8F5E28;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(173, 115, 50, 0.5);
}

.btn-hero:focus-visible {
    outline: 2px solid var(--canela-light);
    outline-offset: 3px;
}

.btn-hero:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-hero:hover::before {
    animation: none;
}

/* Mobile-First Clean Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        letter-spacing: 0.01em !important;
    }

    .hero-badge {
        font-size: 0.65rem !important;
        letter-spacing: 0.2em !important;
        padding: 10px 20px;
    }

    .hero-tagline {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
        font-weight: 500 !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-content {
        padding: 90px 70px;
    }

    .btn-hero {
        padding: 22px 60px;
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }
}

/* Mobile Small Breakpoint */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-tagline {
        font-size: 0.65rem !important;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }
}

/* =====================================================
   STATS SECTION - Compelling Connector
   ===================================================== */

.stats-section {
    padding: 60px 24px;
    background: var(--bg-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--canela);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .stat-number {
        font-size: 3.5rem;
    }
}

/* =====================================================
   ABOUT SECTION - Diseño Ampliado
   ===================================================== */

.about-section {
    position: relative;
    padding: 140px 24px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
    overflow: hidden;
}

/* Decorative elements for more "life" */
.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(173, 115, 50, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--canela), transparent);
    border-radius: 2px;
}

.about-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #AD7332;
    margin-bottom: 16px;
    font-weight: 500;
}

.about-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--canela);
    margin-bottom: 48px;
    font-weight: 600;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 400;
}

/* Values Section - replacing stats */
.about-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.value-icon {
    color: #AD7332;
    font-size: 0.9rem;
}

.value-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .about-values {
        flex-direction: column;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .about-section {
        padding: 120px 40px;
    }

    .about-title {
        font-size: 4rem;
    }
}

/* =====================================================
   INSTALACIONES GALLERY
   ===================================================== */

.gallery-section {
    padding: 80px 24px;
    background: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item.large img {
    height: 300px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-item.large {
        grid-column: span 2;
    }

    .gallery-item.large img {
        height: 280px;
    }
}

/* =====================================================
   FISIO BANNER - Altura Ajustada
   ===================================================== */

.fisio-banner {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/mg-8423-editada.jpg');
    background-size: cover;
    background-position: center 30%;
    height: 60vh;
    min-height: 500px;
    max-height: 650px;
}

.fisio-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(19, 18, 17, 0.4);
    /* Oscurecimiento uniforme */
}

.fisio-banner>* {
    position: relative;
    z-index: 2;
}

.fisio-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    /* Título más gordo */
    color: white;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.fisio-banner p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .fisio-banner {
        padding: 160px 40px;
    }

    .fisio-banner h2 {
        font-size: 6rem;
    }
}

/* =====================================================
   SERVICES SECTION - Visual Image Cards
   ===================================================== */

.services-section {
    padding: 80px 24px;
    background: var(--cream);
    /* Ensure cream */
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #AD7332;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;

}

.fisio-banner .btn-primary {
    padding: 10px 24px;
    /* Smaller */
    font-size: 0.8rem;
    /* Smaller font */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.fisio-banner .btn-primary:hover {
    background: var(--cream-light);
    color: var(--canela-dark);
}

.fisio-banner .btn-primary svg {
    width: 16px;
    /* Smaller arrow */
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

/* btn-fisio - Botón visible con color canela */
.btn-fisio {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    background: var(--canela);
    border: none;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(173, 115, 50, 0.4);
}

.btn-fisio:hover {
    background: var(--canela-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(173, 115, 50, 0.5);
}

.btn-fisio:focus-visible {
    outline: 2px solid var(--canela-light);
    outline-offset: 3px;
}

.btn-fisio:active {
    transform: translateY(-2px) scale(0.98);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-rest);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(173, 115, 50, 0.08);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 28px 24px;
}

.service-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-content p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #AD7332;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: #8F5E28;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .service-img {
        height: 180px;
    }
}

@media (min-width: 1024px) {
    .services-section {
        padding: 100px 40px;
    }

    .service-img {
        height: 220px;
    }

    .service-content {
        padding: 32px 28px;
    }
}

/* =====================================================
   PSICOLOGÍA SECTION
   ===================================================== */

/* =====================================================
   PSICOLOGÍA SECTION - Revitalized
   ===================================================== */

.psico-section {
    padding: var(--spacing-2xl) var(--spacing-md);
    background: #E4D7C8;
    position: relative;
    overflow: hidden;
}





.psico-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.psico-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: #AD7332;
    margin-bottom: 20px;
    padding: 8px 16px;
    background: rgba(173, 115, 50, 0.1);
    border-radius: 50px;
}

.psico-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--canela);
    line-height: 1.1;
    text-transform: uppercase;
}

.psico-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 32px;
}

.psico-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.psico-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.psico-image:hover img {
    transform: scale(1.05);
}

/* Team Photo Adjustment */
.team-card-img img {
    object-position: center 20%;
}

.psico-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .psico-section {
        padding: 120px 40px;
    }

    .psico-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }

    .psico-title {
        font-size: 3.5rem;
    }

    .psico-image img {
        height: 480px;
    }
}

/* =====================================================
   TEAM SECTION - Compact Premium Design
   ===================================================== */

.team-section-premium {
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Decorative background element - Subtle Gold Line */
.team-section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #AD7332, transparent);
}

.team-container {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.team-header {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 24px;
    text-align: center;
}

.team-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #AD7332;
    background: rgba(173, 115, 50, 0.08);
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 28px;
    font-weight: 600;
}

.team-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--canela);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-title em {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.6rem;
    color: #AD7332;
    text-transform: none;
    letter-spacing: 0;
    margin-top: -4px;
}

.team-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

/* Premium Grid Layout */
.team-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Removed Featured/Other sections as we are consolidating */

/* Member Card - Horizontal Layout */
.team-member-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card-rest);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: none;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

/* Image Wrapper */
.member-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--cream-dark);
    flex-shrink: 0;
}

.member-image {
    width: 100%;
    height: 100%;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.7s ease;
    filter: saturate(0.9);
    /* Slightly desaturated for premium feel */
}

.team-member-card:hover .member-image img {
    transform: scale(1.03);
    filter: saturate(1);
}

/* Hide overlay on desktop horizontal layout */
.member-overlay {
    display: none;
}

/* Member Info */
.member-info {
    padding: 30px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-header {
    margin-bottom: 18px;
    text-align: center;
}



.member-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.team-member-card:hover .member-name {
    color: #AD7332;
}

.member-role {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #AD7332;
    font-weight: 600;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Specialty Tags */
.member-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.specialty-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--cream-dark);
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(173, 115, 50, 0.12);
    transition: all 0.35s ease;
}

.specialty-tag svg {
    width: 12px;
    height: 12px;
    color: #AD7332;
    flex-shrink: 0;
}

.specialty-tag:hover {
    background: #AD7332;
    color: white;
    border-color: #AD7332;
    transform: translateY(-2px);
}

.specialty-tag:hover svg {
    color: white;
}

/* Desktop Layout - Side-by-Side Cards (Grid) */
@media (min-width: 1024px) {
    .team-section-premium {
        padding: 80px 40px;
        /* Standard spacious padding */
        background: var(--cream);
    }

    .team-title {
        font-size: 3.5rem;
        margin-bottom: 50px;
    }

    .team-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
        /* Increased gap for more separation as requested */
        max-width: 900px;
        /* Even more compact container */
        width: 100%;
        margin: 0 auto;
        align-items: stretch;
        /* Ensure equal height */
    }

    .team-member-card {
        flex-direction: column;
        height: 100%;
        /* Force full height to match tallest */
        background: #fff;
        /* Restored white background */
        border-radius: 20px;
        /* Requested ROUNDED look */
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        /* Soft lift shadow */
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        overflow: hidden;
        /* Contain content */
        display: flex;
        /* Flex container for internal alignment */
    }

    .team-member-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(173, 115, 50, 0.15);
    }

    .member-image-wrapper {
        width: 100%;
        height: 300px;
        /* Even smaller compact height */
        flex-shrink: 0;
        background: var(--cream-dark);
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
        /* No margin, connects to text */
    }

    .member-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        transition: transform 0.6s ease;
        filter: none;
        /* Full color always */
    }

    .team-member-card:hover .member-image img {
        transform: scale(1.05);
        /* Standard zoom */
    }

    /* Specific adjustments for perfect framing */
    #img-aaron {
        object-position: center 15%;
    }

    .member-info {
        width: 100%;
        padding: 24px;
        /* Tighter padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        text-align: center;
        flex-grow: 1;
        /* Fill remaining space */
    }

    .member-header {
        text-align: center;
        margin-bottom: 12px;
        position: relative;
        border: none;
        padding: 0;
        width: 100%;
    }

    .member-header::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background: var(--canela-light);
        margin: 12px auto 0;
        /* Horizontal divider */
        opacity: 1;
    }

    .member-name {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.6rem;
        /* Smaller, more elegant size */
        font-weight: 600;
        color: var(--text-main);
        margin-bottom: 4px;
        letter-spacing: 0;
    }

    .member-role {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-size: 0.7rem;
        color: var(--canela);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        font-weight: 600;
        margin-bottom: 0;
    }

    .member-bio {
        text-align: center;
        margin-bottom: 20px;
        font-size: 0.9rem;
        line-height: 1.6;
        /* Standard readability */
        color: var(--text-light);
        font-weight: 400;
        max-width: 100%;
    }

    .member-specialties {
        justify-content: center;
        gap: 6px;
        margin-top: auto;
    }
}

/* Ensure text alignment is strictly centered */
.team-member-card .member-header,
.team-member-card .member-bio {
    text-align: center;
}

.team-member-card .member-specialties {
    justify-content: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =====================================================
   PHILOSOPHY SECTION - Clean Premium Design
   ===================================================== */

.philosophy-section {
    padding: 100px 24px;
    background: linear-gradient(180deg,
            var(--cream) 0%,
            var(--cream-light) 50%,
            var(--cream-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative subtle accent */
.philosophy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--canela), transparent);
    pointer-events: none;
}

.philosophy-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 70px;
}

.philosophy-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    color: var(--canela);
    margin-bottom: 24px;
    padding: 10px 24px;
    background: rgba(173, 115, 50, 0.08);
    border-radius: 50px;
}

.philosophy-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.philosophy-title em {
    font-style: italic;
    background: linear-gradient(135deg, var(--canela-light), var(--canela), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(173, 115, 50, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(173, 115, 50, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 40px rgba(173, 115, 50, 0.06);
}

.philosophy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(173, 115, 50, 0.2), rgba(201, 149, 77, 0.1));
    border-radius: 50%;
    border: 1px solid rgba(173, 115, 50, 0.25);
    transition: all 0.4s ease;
}

.philosophy-icon svg {
    width: 32px;
    height: 32px;
    color: var(--canela);
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-icon {
    background: linear-gradient(135deg, var(--canela), var(--canela-dark));
    box-shadow: 0 0 30px rgba(173, 115, 50, 0.4);
}

.philosophy-card:hover .philosophy-icon svg {
    color: #fff;
    transform: scale(1.1);
}

.philosophy-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
}

.philosophy-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

@media (min-width: 768px) {
    .philosophy-section {
        padding: 120px 40px;
    }

    .philosophy-title {
        font-size: 3.5rem;
    }

    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .philosophy-section {
        padding: 140px 40px;
    }

    .philosophy-title {
        font-size: 4rem;
    }
}

/* =====================================================
   ENHANCED TITLES - Premium Gradient Text
   ===================================================== */

.section-title-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fisio Banner Title Enhancement */
.fisio-banner h2 {
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(173, 115, 50, 0.2);
}

/* Psico Title Enhancement */
.psico-title {
    position: relative;
}

.psico-title::before {
    content: '✦';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--canela);
    opacity: 0.5;
}

/* Team Title Enhancement */
.team-title {
    position: relative;
}

.team-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* =========================================
   FAQ Section (Minimalist Luxury)
   ========================================= */
.faq-section {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: #E4D7C8;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    box-shadow: inset 0 0 100px rgba(139, 90, 38, 0.1);
}

/* =========================================
   DECORATIVE SEPARATOR
   ========================================= */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 80px 0 20px;
    /* Adjusted padding for flow */
    opacity: 1;
    width: 100%;
    /* Full width */
    max-width: 100%;
    margin: 0;
    /* Unified solid background */
    background: #E4D7C8;
    /* Remove any border or radius that breaks flow */
}

.separator-line {
    height: 10px;
    /* "Más gorda" */
    flex-grow: 1;
    max-width: 1000px;
    /* Constrained width within full container */
    border-radius: 5px;
    /* Rich Canela Gradient */
    background: linear-gradient(90deg,
            transparent 0%,
            var(--canela) 10%,
            var(--canela) 90%,
            transparent 100%);
    opacity: 1;
    box-shadow: 0 0 25px rgba(173, 115, 50, 0.5);
    /* Strong Canela Glow */
}

/* Removed stray brace here */

.separator-icon {
    color: #AD7332;
    /* Keep gold/canela for contrast */
    font-size: 2rem;
    /* Larger icon */
    animation: pulse-soft 3s infinite ease-in-out;
    text-shadow: 0 0 15px rgba(173, 115, 50, 0.4);
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* =========================================
   ENHANCED ANIMATIONS
   ========================================= */
/* Smoother Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Elegant finish */
    will-change: transform, opacity;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children if needed */
.reveal-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.faq-container {
    max-width: 800px;
    /* Narrow for readability */
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--canela);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    font-weight: 600;
}

.faq-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--text-main);
    font-weight: 400;
}

.faq-grid {
    border-top: 1px solid rgba(173, 115, 50, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(173, 115, 50, 0.2);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: color 0.25s ease;
}

.faq-question:focus-visible {
    outline: 2px solid var(--canela);
    outline-offset: 4px;
    border-radius: 4px;
}

.faq-question span:first-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 500;
}

.faq-question:hover span:first-child {
    color: var(--canela);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--canela);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 300;
}

/* Open State */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
}

.faq-answer p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    padding-bottom: 32px;
    padding-right: 40px;
    /* Avoid full width text */
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 2.2rem;
    }

    .faq-question span:first-child {
        font-size: 1.2rem;
        padding-right: 16px;
    }
}

/* =====================================================
   MOBILE RESPONSIVENESS - GLOBAL ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {

    /* Reduce global section padding */
    .section,
    .about-section,
    .gallery-section,
    .services-section,
    .team-section-premium,
    .philosophy-section,
    .stats-section,
    .fisio-banner,
    .psico-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Hero Padding */
    .hero-content {
        padding: 40px 20px !important;
        width: 100% !important;
    }

    /* Typography Scaling */
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    .fisio-banner h2 {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }

    .about-title,
    .team-title,
    .psico-title,
    .faq-title {
        font-size: clamp(2rem, 6vw, 2.5rem) !important;
    }

    /* Grids to Single Column */
    .stats-grid,
    .gallery-grid,
    .services-grid,
    .psico-grid,
    .philosophy-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Reduce gaps in team grid */
    .team-premium-grid {
        gap: 30px !important;
    }

    /* Adjust Gallery Height */
    .gallery-item img,
    .gallery-item.large img {
        height: 250px !important;
    }

    /* Fix Psico Image Height */
    .psico-image img {
        height: 300px !important;
    }
}

@media (max-width: 480px) {

    /* Further reduction for very small screens */
    .hero-title {
        font-size: 2.2rem !important;
    }

    .btn-hero {
        padding: 16px 32px !important;
        font-size: 0.8rem !important;
        width: 100% !important;
    }

    .stats-grid {
        gap: 24px !important;
    }

    .mobile-hidden-text {
        display: none;
    }
}