/* CSS Design System */
/*
 * Developed by Elysium λ Development & Research
 * A European company
 */
:root {
    /* Colors */
    --color-bg: #0B0B0B;
    --color-surface: #111111;
    --color-primary: #E6AE17;
    /* Updated to match target */
    --color-primary-hover: #d5a015;
    --color-light-gray: #F2F2F2;
    /* New split section color */
    --color-text: #ffffff;
    --color-text-dim: #cccccc;
    --color-accent: #ffffff;
    --color-osteo: #ffffff;
    --color-treino: var(--color-primary);
    --color-grupal: #0A6FE8;

    /* Typography */
    --font-heading: 'Patron', sans-serif;
    --font-body: 'Patron', sans-serif;
    /* Clean, modern sans-serif */

    /* Spacing */
    --container-width: 1200px;
    --section-padding: clamp(60px, 10vw, 100px) 20px;
    /* Fluid section padding */

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- FONTS --- */
@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Patron';
    src: url('../assets/fonts/Patron-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Scrollbar natural del sistema, sin personalización */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Tighter padding for mobile */
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* Fluid Typography Scale */
h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
}

h4 {
    font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: capitalize;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(230, 174, 23, 0.6),
        0 0 40px rgba(230, 174, 23, 0.3);
    /* Brillo mágico amarillo */
}

.highlight {
    background-color: var(--color-primary);
    color: #000;
    padding: 0 10px;
    display: inline-block;
    transform: skew(-10deg);
    /* Optional stylistic choice for 'highlight' look */
}

.btn-primary-black {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary-black:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(230, 174, 23, 0.4);
    /* Brillo sutil incluso en negro */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background-color: var(--color-bg);
    opacity: 0.95;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode header.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

/* Logo Styles */
.logo-initial {
    display: block;
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo-scrolled-icon {
    display: none;
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.scrolled .logo-initial {
    display: none;
}

.scrolled .logo-scrolled-icon {
    display: block;
    height: 100px;
}



/* Fallback/Legacy logo styles for other pages if they don't have the dual structure yet */
.logo-img {
    height: 180px;
    /* Original large size for homepage if unchanged */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Specific adjustment for index page if it still uses single img */
header:not(.scrolled) .logo-img:not(.logo-initial):not(.logo-scrolled-icon) {
    height: 180px;
}

.scrolled .logo-img:not(.logo-initial):not(.logo-scrolled-icon) {
    height: 70px;
}

.footer-logo {
    height: 50px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--color-primary);
    font-weight: 400;
}

.logo-img-small {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text); /* Texto adaptable */
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary); /* Amarillo para activo/hover */
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* FAB Social Buttons */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    z-index: 999;
}

.fab-trigger {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(230, 174, 23, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.fab-trigger i {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .fab-container:hover .fab-trigger {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(230, 174, 23, 0.6);
    }

    .fab-container:hover .fab-trigger i {
        transform: rotate(45deg);
    }
}

.fab-container.active .fab-trigger {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(230, 174, 23, 0.6);
}

.fab-container.active .fab-trigger i {
    transform: rotate(45deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .fab-container:hover .fab-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-action-btn {
    width: 50px;
    height: 50px;
    background-color: var(--color-surface);
    color: var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    border: 1px solid var(--color-text-dim);
}

/* Staggered animation for buttons */
@media (hover: hover) and (pointer: fine) {
    .fab-container:hover .fab-action-btn:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
    .fab-container:hover .fab-action-btn:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
    .fab-container:hover .fab-action-btn:nth-child(3) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
    .fab-container:hover .fab-action-btn:nth-child(4) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
}

.fab-container.active .fab-action-btn:nth-child(1) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.fab-container.active .fab-action-btn:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fab-container.active .fab-action-btn:nth-child(3) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.fab-container.active .fab-action-btn:nth-child(4) { transition-delay: 0s; opacity: 1; transform: translateY(0); }

.fab-action-btn.theme-toggle:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.fab-action-btn:hover {
    background-color: var(--color-surface);
    color: var(--color-primary);
    transform: scale(1.1) !important;
}

.fab-action-btn.whatsapp:hover {
    color: #25D366;
    border-color: #25D366;
}

.fab-action-btn.social-ig:hover {
    color: #E4405F;
    border-color: #E4405F;
}

.fab-action-btn.email:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.fab-action-btn i,
.fab-action-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.fab-action-btn svg {
    display: block;
}

/* Final CTA Video Section */
.hero-cta-final {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-cta-final h2 {
    margin-bottom: 40px;
    max-width: 900px;
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Hero Section */
/* Hero Split Screen Redesign */
.hero-split {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero-split-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    background-color: transparent;
    z-index: 2;
    pointer-events: none; /* Let text be clickable but block itself doesn't trap clicks */
}

/* Re-enable pointer events for links in the left column */
.hero-split-left * {
    pointer-events: auto;
}

.hero-split-right {
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden removed so SVG can safely bleed into the left column */
}

.hero-split-left h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.hero-split-left h1 strong {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 6.5rem;
    letter-spacing: -1px;
    color: var(--color-primary);
    display: block;
    line-height: 0.9;
    margin-top: 0;
}

.hero-split-left p {
    font-family: 'Patron', sans-serif;
    font-size: 1.25rem;
    color: var(--color-text-dim);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Removal of custom hero button to use global .btn-primary */
.btn-outline-gold {
    display: none; /* No longer used */
}

.hero-boneco-svg-new {
    width: 90%;
    height: 90%;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    margin-left: -25%;
}

.hero-draw-path {
    fill: transparent;
    stroke: #E6AE17;
    stroke-width: 12;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-boneco-outline 4s cubic-bezier(0.8, 0, 0.2, 1) forwards,
               fill-boneco-body 1.5s ease-in-out 3.5s forwards;
}

@keyframes draw-boneco-outline {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-boneco-body {
    to {
        fill: #E6AE17;
        stroke: transparent;
    }
}

@media (max-width: 992px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-split-left {
        min-height: auto;
        padding-top: 200px;
        padding-bottom: 40px;
    }
    .hero-split-left h1 {
        font-size: clamp(2rem, 10vw, 3.2rem);
        line-height: 1.1;
    }
    .hero-split-left h1 strong {
        font-size: clamp(3rem, 14vw, 4.5rem);
        line-height: 1;
        -webkit-text-stroke: 1px #E6AE17;
        display: block;
        margin-top: 8px;
    }
    .hero-split-right {
        min-height: auto;
        background-color: transparent;
        justify-content: center;
        padding-bottom: 0;
    }
    .hero-boneco-svg-new {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
    }
}

/* About Split Card */
section#sobre.about-section {
    padding: 40px 0 120px !important;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

section#sobre.about-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle at center, rgba(230, 174, 23, 0.1) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: bg-gold-flow 15s ease-in-out infinite;
}

@keyframes bg-gold-flow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
    50% { transform: translate(-49%, -51%) scale(1.1); opacity: 0.8; }
}

section#sobre.about-section .container,
section#sobre.about-section .container-wide {
    position: relative;
    z-index: 2;
}

section#sobre.about-section .about-card {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    min-height: 500px;
    /* Sombra dual: Neutral/Oscura para la parte blanca (izquierda) y Dorada para la parte amarilla (derecha) */
    box-shadow:
        -20px 30px 70px rgba(0, 0, 0, 0.5),
        20px 30px 70px rgba(230, 174, 23, 0.3);
}

section#sobre.about-section .about-card-left {
    flex: 1;
    background-color: #ffffff !important;
    /* FORZAR BLANCO */
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

section#sobre.about-section .about-card-right {
    flex: 1;
    background-color: var(--color-primary) !important;
    /* FORZAR AMARILLO */
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Forzar texto negro para visibilidad */
section#sobre.about-section .about-card-left h2,
section#sobre.about-section .about-card-right h3,
section#sobre.about-section .about-card-right p,
section#sobre.about-section .about-card-right .divider-small {
    color: #000 !important;
    text-transform: none;
    /* No uppercase */
}

section#sobre.about-section .about-card h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    font-weight: 800;
    line-height: 1;
    text-align: left;
    /* Asegurar alineación a la izquierda */
}

section#sobre.about-section .about-card h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

section#sobre.about-section .divider-small {
    width: 50px;
    height: 3px;
    background-color: var(--color-surface) !important;
    margin-bottom: 30px;
}

section#sobre.about-section .about-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 300;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
}

/* Osteopatia Section */
.osteopatia {
    padding: var(--section-padding);
}

.osteopatia-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-list {
    margin-top: 30px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--color-text-dim);
}

.text-primary {
    color: var(--color-primary);
}

.mt-4 {
    margin-top: 2rem;
}

/* Perfil Section */
.perfil {
    padding: var(--section-padding);
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.perfil-card {
    background: var(--color-surface);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.perfil-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.perfil-card i {
    color: var(--color-primary);
    margin-bottom: 25px;
}

.perfil-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.perfil-card p {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Post-Testimonials Video Section */
.post-testimonials-video {
    background-color: var(--color-bg);
    padding-bottom: 120px;
    overflow: hidden;
}

.video-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.video-half {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 40px;
    background-color: var(--color-bg);
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.15);
}

.video-half iframe {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    border: none;
    /* Zoom slightly to hide internal black bars and fill rounded corners */
    transform: scale(1.05);
    /* Zoom inherent de 5% */
}

/* Partners Marquee */
.partners {
    padding: 80px 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-text-dim);
    overflow: hidden;
    /* Hide overflow for marquee */
}

.partners-label {
    text-align: center;
    font-size: 0.9rem;
    text-transform: capitalize;
    color: #666;
    margin-bottom: 50px;
    font-weight: 500;
    letter-spacing: 0;
}

.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.partners-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    /* Space between logos */
    animation: marquee 40s linear infinite;
    padding-left: 80px;
}

.partners-track img {
    height: 60px;
    /* Fixed height for consistency */
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partners-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half the length (original set) */
    }
}


/* Testimonials */
.testimonials {
    padding: 120px 0;
    background-color: var(--color-bg);
}

.testimonials-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section-title-clean {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-top: 10px;
    text-transform: none;
}

.full-divider {
    width: 100vw;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-left: calc(-50vw + 50%);
    margin-bottom: 80px;
}

/* Testimonials Section */
.separator-line {
    width: 30px;
    height: 4px;
    background-color: var(--color-text);
    margin-bottom: 30px;
    border-radius: 2px;
}

.testimonials-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    /* Center significantly better for 50/50 split */
}

.testimonials-left h3 {
    font-size: 3.5rem;
    /* Larger as per screenshot */
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: none;
    color: var(--color-text);
}

.testimonials-left p {
    font-size: 1rem;
    line-height: 1.6;
    color: #d1d1d1;
    /* Slightly dim white */
    font-weight: 300;
    max-width: 400px;
}

/* Testimonial Carousel Styles */
.testimonials-right {
    position: relative;
    height: 600px;
    /* Fixed height to match the vertical rectangle shape */
    touch-action: pan-y;
    /* Allow vertical scroll while capturing horizontal swipes */
}

.testimonial-card-gold {
    background-color: #FFC107;
    /* A more vibrant gold/yellow from screenshot */
    padding: 60px 40px;
    border-radius: 50px;
    box-shadow: 0 25px 60px rgba(230, 174, 23, 0.4);
    /* Extremely rounded corners as per screenshot */
    color: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.testimonial-card-gold.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Pagination Dots */
.testimonial-pagination {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

/* Testimonial names in index match osteopatia style */
.testimonial-card-gold h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.client-since {
    font-weight: 300;
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
    /* Hollow circle by default */
    cursor: pointer;
    background-color: transparent;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-bg);
    /* Filled black for active */
    transform: scale(1.1);
}



/* Footer */
/* --- Elysium Style Footer --- */
footer {
    background-color: var(--color-bg);
    padding: 100px 0 30px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-text-dim);
}

.footer-index {
    margin-top: 0;
}

.footer-container-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.branding-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 40px;
}

.footer-logo-link {
    display: inline-block;
}

.footer-logo-elysium {
    height: 80px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: 5px;
    /* Reducido para acercar el texto */
    border-radius: 15px;
    /* Bordes redondeados adaptados al estilo */
    transform: scale(1.6);
    /* Aumentado a 1.6 para un tamaño mayor */
    transform-origin: left center;
    /* Mantiene la posición inicial desde la izquierda */
}

.brand-desc {
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.brand-sub {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    margin-top: auto;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-list li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    color: var(--color-text);
    padding-left: 5px;
}

/* Complaint Book Specifics */
.complaint-book-elysium {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: pointer;
}

.complaint-book-elysium:hover {
    opacity: 1;
}

.complaint-book-elysium img {
    height: 30px;
}

.complaint-book-elysium span {
    font-size: 0.85rem;
    color: #aaa;
}

/* Bottom Bar */
.footer-bar-elysium {
    border-top: 1px solid var(--color-text-dim);
    padding-top: 30px;
    margin: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.copyright-text,
.crafted-text {
    font-weight: 500;
}

.crafted-text a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.crafted-text a:hover {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .footer-container-new {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bar-elysium {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 0 20px;
        text-align: center;
    }

    .branding-col {
        padding-right: 0;
    }
}

/* Animations & Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .osteopatia-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .osteopatia-image {
        order: 2;
    }

    .osteopatia-text {
        order: 1;
    }

    .testimonials-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 998;
        /* Below toggle button */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .nav-menu a {
        font-size: 2rem;
        color: var(--color-text);
        transition: color 0.3s ease;
    }

    header {
        padding: 25px 0;
        transition: all 0.3s ease;
    }

    header.scrolled {
        padding: 12px 0 !important;
    }

    .logo-img {
        height: 100px !important;
        transition: height 0.3s ease;
    }

    header.scrolled .logo-img {
        height: 55px !important;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1000;
        position: relative;
    }

    .mobile-menu-toggle i,
    .mobile-menu-toggle svg {
        color: var(--color-text) !important;
        stroke: var(--color-text) !important;
        width: 32px;
        height: 32px;
    }

    .hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        /* Permite saltos en móvil para no desbordar */
    }

    .about-card-left,
    .about-card-right {
        padding: 50px 30px;
    }

    .about-card h2 {
        font-size: 2.2rem;
    }

    .about-card h3 {
        font-size: 1.5rem;
    }

    .testimonials-left h3 {
        font-size: 2rem;
    }

    .testimonial-card-gold {
        padding: 40px 30px;
    }

    .partners-title {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .social-bar {
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        background: var(--color-bg);
        opacity: 0.9;
        padding: 10px;
        backdrop-filter: blur(10px);
    }
}

/* --- Sobre Mim Page Specific Styles --- */

.page-about {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.page-about p {
    color: var(--color-text);
    text-align: justify;
}

/* Eliminamos reglas de header-light que no se usan tras el rediseño oscuro */

header.scrolled .mobile-menu-toggle i,
header.scrolled .mobile-menu-toggle svg {
    color: var(--color-text)!important;
    stroke: var(--color-text) !important;
}

.page-hero-light {
    padding: 350px 0 80px;
    /* Incrementado para evitar que el header tape el contenido */
    background-color: #f7f7f7;
}

.breadcrumb-link,
.osteopath-link,
.osteopath-link-top {
    font-size: 0.85rem;
    color: #888;
    text-decoration: underline;
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.breadcrumb-link:hover,
.osteopath-link:hover,
.osteopath-link-top:hover {
    color: var(--color-primary) !important;
    text-decoration: underline;
    transform: scale(1.04);
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(255, 255, 255, 0.5);
}

.page-hero-light h1 {
    font-size: 4rem;
    color: #000;
    margin: 0;
}

/* Bio Section */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.bio-image-col {
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.bio-image-wrapper {
    width: 100%;
    max-width: 500px;
}

.bio-image-wrapper .placeholder-image {
    aspect-ratio: 1/1;
    border-radius: 20px;
    background-color: #1a1a1a;
}

.bio-content-col {
    display: flex;
    align-items: center;
    padding: 80px;
    background-color: var(--color-text);
}

.container-inner {
    max-width: 600px;
}

.bio-content-col h2 {
    font-size: 3rem;
    color: #000;
    margin-bottom: 40px;
}

.bio-description p {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Specialized Gold Section */
.specialized-gold {
    background-color: var(--color-primary);
    padding: 100px 0;
    color: #000;
}

.gold-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #000;
}

.gold-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.gold-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
    color: #000 !important;
}

.title-underline {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: inline-block;
}

.title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-bg);
}

.action-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-item .placeholder-image {
    aspect-ratio: 1/1;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.4);
}

.social-links-footer {
    display: flex;
    gap: 20px;
}

.social-links-footer i {
    color: var(--color-text-dim);
    transition: var(--transition-smooth);
}

.social-links-footer a:hover i {
    color: var(--color-primary);
}

.d-block {
    display: block;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Responsive for Above */
@media (max-width: 992px) {

    .bio-grid,
    .gold-grid {
        grid-template-columns: 1fr;
    }

    .bio-content-col {
        padding: 60px 20px;
    }

    .bio-image-col {
        padding: 40px 20px;
    }

    .action-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero-light h1 {
        font-size: 2.5rem;
    }

    .bio-content-col h2 {
        font-size: 2.2rem;
    }

    .action-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Perfil Page Specific Styles --- */

.page-perfil {
    background-color: var(--color-bg);
}

.perfil-hero {
    padding: 550px 0 100px;
    /* Aumentado aún más según solicitud */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    background-size: cover;
    background-position: center;
    text-align: center;
}

.perfil-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.perfil-hero p {
    font-size: 1.3rem;
    color: var(--color-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* Academic Section */
.academic-section {
    padding: var(--section-padding);
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.academic-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.academic-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.academic-logo-placeholder {
    width: 80px;
    height: 80px;
    background: #222;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #444;
    margin-bottom: 25px;
    font-size: 0.8rem;
}

.academic-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text);
    line-height: 1.3;
}

.academic-card p {
    font-size: 0.9rem;
    color: var(--color-text-dim);
}

/* Certifications List */
.certifications-section {
    padding: var(--section-padding);
    background-color: #050505;
}

.certs-list {
    max-width: 900px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cert-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.cert-info p {
    color: var(--color-text-dim);
    line-height: 1.6;
}

/* Partners Logos */
.partners-logos {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-scroll {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.4;
}

.footer-link {
    color: var(--color-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .perfil-hero h1 {
        font-size: 2.8rem;
    }

    .cert-item {
        flex-direction: column;
        gap: 20px;
    }

    .academic-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Auth & Profile Page Specific Styles --- */

.page-auth {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.auth-main {
    padding: 350px 0 100px;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-title {
    font-size: 4rem;
    font-weight: 800;
    margin-top: 10px;
    color: #000;
}

.login-container,
.login-media,
.login-form-wrapper,
.text-underline,
.form-links,
.forgot-link,
.register-anchor,
.registration-form-section,
.registration-grid,
.form-group-with-icon,
.register-button-wrapper {
    /* Deprecated styles kept for reference or removed if cleaned up */
    display: none;
}

/* New Auth Card Styles */
.auth-card-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 500px;
}

.auth-card {
    background: var(--color-surface);
    border-radius: 40px;
    padding: 80px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 30px 100px rgba(230, 174, 23, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    color: var(--color-text);
}

.light-mode .auth-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 10px 40px rgba(230, 174, 23, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title-card {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--color-text);
}

.auth-subtitle {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

/* Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .auth-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
}

.tab-btn.active {
    color: var(--color-text);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

.auth-form.hidden {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.forgot-link {
    color: var(--color-text-dim);
    text-decoration: underline;
    display: inline-block !important;
    /* Override previous cleanup */
}

/* Social Login */
.social-login-divider {
    text-align: center;
    margin: 30px 0 20px;
    position: relative;
}

.social-login-divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #f0f0f0;
    z-index: 0;
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.user-dashboard {
    width: 100%;
    max-width: var(--container-width);
    background: transparent;
    padding: 60px 0;
    text-align: center;
    color: var(--color-text);
}

.user-dashboard h2 {
    margin-bottom: 35px;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 25px;
}

/* Custom Row for Profile */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-top: 5px;
    display: block;
}

.form-hint.hidden {
    display: none;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--color-text)!important;
}

.auth-card .form-group input,
.auth-card .form-group select,
.auth-card .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--color-text);
    font-family: inherit;
    transition: var(--transition-smooth);
}

.light-mode .auth-card .form-group input,
.light-mode .auth-card .form-group select,
.light-mode .auth-card .form-group textarea {
    border-color: rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.02);
}

.auth-card .form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23E6AE17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    cursor: pointer;
}

/* Fix for browser autofill background/text color */
.auth-card .form-group input:-webkit-autofill,
.auth-card .form-group input:-webkit-autofill:hover,
.auth-card .form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-text);
    -webkit-box-shadow: 0 0 0px 1000px var(--color-bg) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-card .form-group input:focus,
.auth-card .form-group select:focus,
.auth-card .form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(235, 177, 40, 0.1);
}

/* Readonly fields styling */
.auth-card .form-group input:read-only {
    background-color: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
}

/* Profile Wizard Spacing */
.profile-wizard {
    margin-top: 40px;
    padding-top: 40px;
    text-align: left;
}

.profile-wizard h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.wizard-desc {
    margin-bottom: 40px; /* Increased space before the form */
    color: var(--color-text-dim);
    font-size: 1.1rem;
}

.profile-wizard .divider {
    margin-bottom: 40px;
    opacity: 0.2;
}

.age-badge {
    color: var(--color-primary);
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.85rem;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 25px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    font-size: 0.85rem;
    color: #666;
}

/* Registration Section */
.register-anchor {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 40px;
}

.registration-form-section {
    max-width: 1000px;
    margin: 0 auto;
}

.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
}

.form-group-with-icon {
    display: flex;
    flex-direction: column;
}

.form-group-with-icon label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group-with-icon label i {
    width: 20px;
    color: #000;
}

.form-group-with-icon input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
}

.register-button-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* Simple Footer */
.footer-simple {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 60px 0;
    margin-top: 100px;
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    height: 60px;
}

.footer-reclamacoes-img {
    height: 40px;
}

.footer-center p {
    font-size: 0.8rem;
    color: #666;
}

.footer-simple-nav {
    display: flex;
    gap: 20px;
}

.footer-simple-nav a {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .registration-grid {
        grid-template-columns: 1fr;
    }

    .footer-simple-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}



/* --- About Page Refinement - Revised --- */
.about-hero-section {
    padding: 350px 0 100px;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
}

/* Ajustes de legibilidad para el nuevo fondo oscuro de Sobre Mim */
.about-hero-section .page-title-large {
    color: var(--color-text);
}

.about-hero-section .breadcrumb-link {
    color: var(--color-text-dim);
}

.about-hero-section .breadcrumb-link:hover {
    color: #E6AE17;
}

.about-hero-section .header-line {
    background-color: #E6AE17; /* Línea dorada para contrastar */
}

.about-page-header {
    margin-bottom: 80px;
    text-align: left;
}

.header-line {
    width: 60px;
    height: 5px;
    background-color: var(--color-surface);
    margin: 15px 0 30px;
}

.page-title-large {
    font-size: 6rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
    margin: 0;
    letter-spacing: -2px;
    text-transform: none;
}

.about-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-split-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero-photo {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    border-radius: 40px;
    /* overflow: hidden removed to allow shadow visibility */
    position: relative;
    z-index: 1;
}

.about-hero-photo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(200, 200, 200, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    animation: bg-silver-flow 12s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes bg-silver-flow {
    0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-51%, -49%) scale(1.1); opacity: 0.7; }
}

.about-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 40px; /* Applied directly to img since overflow is hidden is removed */
}

.about-split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}


.about-hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-hero-text {
    max-width: 600px;
}

.about-hero-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text)!important;
    font-weight: 300;
    margin-bottom: 25px;
}

.divider-gold-small {
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 30px 0;
}

.about-quote-inline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text)!important;
    font-weight: 400;
    margin-top: 30px;
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
}

/* Second Section - High Contrast White */
.about-yellow-section {
    background-color: var(--color-bg);
    padding: 120px 0;
    color: var(--color-text);
}

.about-yellow-title,
.about-yellow-intro p,
.about-yellow-subtitle,
.text-columns-grid p,
.gallery-label {
    color: var(--color-text) !important;
}

.about-yellow-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: -1px;
}

.about-yellow-intro {
    margin-bottom: 60px;
    max-width: 100%;
}

.about-yellow-intro p {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-text) !important;
}

.about-yellow-subtitle {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--color-text) !important;
}

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

.text-columns-grid p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
    color: var(--color-text) !important;
}

.gallery-label {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--color-text) !important;
}

.gallery-label::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--color-primary);
    margin-top: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns as per "O Paulo 1-4" */
    gap: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 20px;
    /* Rounded corners as per request */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

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

/* Breadcrumb link style override for Yellow section */
.link-black {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 2px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.link-black:hover {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary);
    transform: scale(1.04);
}
/* Responsive */
@media (max-width: 992px) {
    .about-split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 20px;
    }

    .about-hero-photo {
        max-width: 100%;
        aspect-ratio: auto;
        border-radius: 30px;
    }

    .about-split-right {
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .about-split-right .page-title-large {
        font-size: 4rem;
    }

    .about-hero-name {
        font-size: 2.5rem;
    }

    .text-columns-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .about-hero-section {
        padding-top: 200px;
        padding-bottom: 60px;
    }

    .about-page-header {
        margin-bottom: 40px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-page-header .page-title-large {
        font-size: 4rem;
        text-align: left;
    }

    .about-yellow-title {
        font-size: 2.5rem;
    }

    .about-yellow-subtitle {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* --- Osteopatia Page Styles --- */

/* Osteopatia Hero Section */
.osteopatia-hero-section {
    padding: 280px 0 80px;
    background-color: var(--color-bg);
    min-height: 100vh;
}

.osteopatia-page-header {
    margin-bottom: 40px;
}

.breadcrumb-link {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    text-decoration: underline;
    display: inline-block;
    margin-bottom: 15px;
    transition: var(--transition-smooth);
}

.header-line {
    width: 50px;
    height: 2px;
    background-color: var(--color-text);
    margin-bottom: 20px;
}

.osteopatia-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: none;
    margin-bottom: 30px;
    line-height: 1;
    letter-spacing: -2px;
}

.osteopatia-hero-content {
    margin-bottom: 0;
    text-align: center;
}

.osteopatia-subtitle {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
}

.osteopatia-description {
    font-size: 1.25rem;
    color: var(--color-text); /* Adaptable color: black in light mode */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Osteopatia Video/Media Card */
/* Osteopatia Video/Media Card */
.osteopatia-media-card {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* Standard contained size */
    margin: 40px auto 0;
    /* Standard spacing from text */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPad Frame Styles */
.ipad-frame-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ipad-frame-container::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Positioned slightly below */
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 12px;
    background: radial-gradient(ellipse at center, rgba(230, 174, 23, 0.45) 0%, transparent 80%);
    filter: blur(6px);
    z-index: 0; /* Behind the iPad image which has z-index 1 */
    pointer-events: none;
}

.ipad-frame-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    /* Frame behind video */
    pointer-events: none;
}

.ipad-video-iframe {
    position: absolute;
    /* Adjust these percentages to match the iPad Model image screen area */
    top: 5.7%;
    left: 4.5%;
    width: 90.9%;
    height: 88.5%;
    z-index: 5;
    /* Video on top */
    border-radius: 4px;
    background: var(--color-bg);
}

.ipad-screen-content {
    position: absolute;
    /* Adjust these percentages to match the iPad Model image screen area */
    top: 5.7%;
    left: 4.5%;
    width: 90.9%;
    height: 88.5%;
    z-index: 5;
    /* Video on top */
    background-color: var(--color-bg);
    /* Fallback */
    overflow: hidden;
    /* Border radius to match screen corners if frame is behind */
    border-radius: 4px;
}

.osteopatia-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.osteopatia-video-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 8px;
    z-index: 20;
}

.overlay-text {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Yellow Benefits Section */
.osteopatia-yellow-section {
    background: linear-gradient(to bottom, #E6AE17 0%, #FFC107 100%);
    padding: 100px 0;
}

.yellow-section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 80px;
    text-transform: none;
}

.benefit-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background-color: transparent;
    padding: 0;
    text-align: center;
}

.benefit-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-transform: none;
    line-height: 1.3;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    font-weight: 400;
}

/* Osteopatia Testimonials Section */
.osteopatia-testimonials-section {
    background-color: var(--color-bg);
    padding: 100px 0;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.testimonials-left-side {
    display: flex;
    flex-direction: column;
}

.testimonials-header-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 30px;
    text-transform: none;
    line-height: 1.2;
}

.testimonials-subtext {
    font-size: 1rem;
    color: var(--color-text); /* Adaptable color: black in light mode */
    line-height: 1.7;
    margin-bottom: 40px;
}

.testimonials-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    justify-items: center;
}

.testimonials-image-wrapper {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.testimonials-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonial Carousel */
.testimonials-right-side {
    position: relative;
    min-height: 600px;
}

.testimonial-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.testimonial-card-yellow {
    background: linear-gradient(to bottom, #E6AE17 0%, #FFC107 100%);
    border-radius: 50px;
    box-shadow: 0 25px 60px rgba(230, 174, 23, 0.45);
    padding: 60px 50px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-yellow.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.testimonial-content {
    color: #000;
    text-align: center;
}

.testimonial-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-align: center;
}

.testimonial-role {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
    text-align: center;
}

/* Testimonial Pagination */
.testimonial-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-pagination .dot.active {
    background-color: var(--color-primary);
}

/* ==================== Parallax Statistics Section ==================== */
.osteopatia-parallax-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    /* Start higher */
    left: 0;
    width: 100%;
    height: 140%;
    /* Taller than container */
    background-image: url('../images/osteopatia/parallax.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 80px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.stat-item {
    color: #ffffff !important; /* Force white for visibility on parallax background */
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: inherit;
    text-transform: none;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 400;
    color: inherit;
    opacity: 0.95;
    text-transform: uppercase;
}

/* Responsive for tablets */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .osteopatia-parallax-section {
        background-attachment: scroll;
        min-height: 400px;
    }

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

    .stat-label {
        font-size: 1rem;
    }
}

/* Certifications Section */
.osteopatia-certifications-section {
    background-color: var(--color-bg);
    padding: 80px 0;
    border-top: 1px solid var(--color-text-dim);
}

.certifications-label {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 50px;
    font-weight: 500;
    text-transform: capitalize;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.certifications-grid img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.certifications-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Contact Form Section */
.osteopatia-contact-section {
    background-color: var(--color-bg);
    padding: 60px 0;
}

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-form-wrapper {
    background-color: var(--color-text);
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lambda-symbol {
    font-size: 2rem;
    color: #000;
    font-weight: 200;
    margin-bottom: 20px;
}

.contact-form-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
    text-transform: none;
}

.osteopatia-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    background-color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    align-self: flex-start;
    margin-top: 10px;
}



.contact-form-wrapper.dark-form {
    background-color: var(--color-surface);
    color: var(--color-text);
    border-radius: 40px 0 0 40px; /* Match cta-wrapper corners */
}


@media (max-width: 992px) {
    .contact-form-wrapper.dark-form {
        border-radius: 0 0 40px 40px;
    }
}

.contact-form-wrapper.dark-form .contact-form-title {
    color: var(--color-text);
    margin-bottom: 30px;
}

.contact-form-wrapper.dark-form .form-group label {
    color: var(--color-text-dim);
    margin-bottom: 10px;
}

.contact-form-wrapper.dark-form .form-group input,
.contact-form-wrapper.dark-form .form-group textarea {
    background-color: transparent;
    border: 1px solid var(--color-text-dim);
    color: var(--color-text);
    padding: 15px 20px;
    border-radius: 12px;
}

.contact-form-wrapper.dark-form .form-group input:focus,
.contact-form-wrapper.dark-form .form-group textarea:focus {
    border-color: var(--color-primary);
    background-color: rgba(128, 128, 128, 0.05);
    box-shadow: 0 0 15px rgba(230, 174, 23, 0.1);
    outline: none;
}

.checkbox-container-legal {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
    display: block;
}

.checkbox-container-legal input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: rgba(128, 128, 128, 0.05); /* Adaptable neutral */
    border: 1px solid var(--color-text-dim);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container-legal:hover input ~ .checkmark {
    background-color: rgba(128, 128, 128, 0.1);
    border-color: var(--color-primary);
}

.checkbox-container-legal input:checked ~ .checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container-legal input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container-legal .checkmark:after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-form-wrapper.dark-form .label-text {
    color: var(--color-text-dim);
    line-height: 1.4;
}

.contact-form-wrapper.dark-form .label-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.powered-by {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 20px;
}

.powered-by strong {
    color: #000;
    font-weight: 600;
}

.contact-image-wrapper {
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.contact-image-wrapper img,
.contact-image-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Styles for Osteopatia Page */
@media (max-width: 1200px) {
    .benefit-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

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

@media (max-width: 900px) {
    .osteopatia-title {
        font-size: 3.5rem;
    }

    .osteopatia-subtitle {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.2;
    }

    .yellow-section-title {
        font-size: 2.5rem;
    }

    .benefit-cards-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-split-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .testimonials-right-side {
        min-height: 500px;
    }

    .testimonial-card-yellow {
        min-height: 500px;
        padding: 40px 30px;
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .osteopatia-hero-section {
        padding: 140px 0 60px;
    }

    .osteopatia-title {
        font-size: 2.5rem;
    }

    .osteopatia-subtitle {
        font-size: 1.8rem;
    }

    .osteopatia-media-card {
        border-radius: 20px;
    }

    .yellow-section-title {
        font-size: 2rem;
    }

    .testimonials-header-text {
        font-size: 2rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== Zoho Form Style Overrides ==================== */
/* Isolate Zoho form styles to prevent global CSS conflicts */

/* Override Zoho's global resets within the form container */
#zoho-form-container * {
    box-sizing: border-box;
}

/* Reset Zoho's root font-size override */
#zoho-form-container {
    font-size: 15px !important;
}

/* Override Zoho's wrapper styles to integrate with our design */
#zoho-form-container .wf-parent {
    padding: 0 !important;
    background: transparent !important;
    height: auto !important;
}

#zoho-form-container .wf-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#zoho-form-container .wf-form-component {
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Hide Zoho's logo and header (we have our own) */
#zoho-form-container .wf-logo {
    display: none !important;
}

#zoho-form-container .wf-header {
    display: none !important;
}

/* Style form fields to match our design */
#zoho-form-container .wf-row {
    margin-bottom: 25px !important;
}

#zoho-form-container .wf-label {
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 500 !important;
    padding: 0 0 8px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}

#zoho-form-container .wf-field-input,
#zoho-form-container .wf-field-dropdown,
#zoho-form-container textarea {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--color-text)!important;
    transition: border-color 0.3s ease !important;
}

#zoho-form-container .wf-field-input:focus,
#zoho-form-container .wf-field-dropdown:focus,
#zoho-form-container textarea:focus {
    border-color: #E6AE17 !important;
    box-shadow: 0 0 0 3px rgba(230, 174, 23, 0.1) !important;
}

/* Style the submit button to match our design */
#zoho-form-container .wf-btn {
    background: linear-gradient(135deg, #FFD700 0%, #E6AE17 100%) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    width: auto !important;
}

#zoho-form-container .wf-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(230, 174, 23, 0.3) !important;
}

#zoho-form-container .wf-btn:active {
    transform: translateY(0) !important;
}

/* Button wrapper alignment */
#zoho-form-container .wform-btn-wrap {
    justify-content: flex-start !important;
    margin-top: 30px !important;
}

/* Textarea specific styles */
#zoho-form-container .wf-text-area-input {
    min-height: 120px !important;
    resize: vertical !important;
}

/* Mandatory field indicator */
#zoho-form-container .wf-field-mandatory .wf-field-inner::before {
    background-color: #E6AE17 !important;
}

/* Error states */
#zoho-form-container .wf-field-error {
    color: #ff4444 !important;
    font-size: 13px !important;
}

#zoho-form-container .wf-field-error-active .wf-field-input {
    border-color: #ff4444 !important;
}

/* Hide powered by Bigin in iframe */
#zoho-form-container .wform-poweredby-container {
    display: none !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {

    #zoho-form-container .wf-field-input,
    #zoho-form-container .wf-field-dropdown,
    #zoho-form-container textarea {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }
}

/* ==================== End Zoho Form Overrides ==================== */

/* ==================== Form Messages ==================== */
.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ==================== End Form Messages ==================== */

/* =========================================
   Global Preloader
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F4B618;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    position: relative;
    width: 250px;
    /* Ajustado para el logo */
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

/* Shimmer Effect adapted to Logo Silhouette */
.shimmer-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;

    /* Mask the shimmer to the logo shape */
    -webkit-mask-image: url('../images/logo/logo_bw_loading.png');
    mask-image: url('../images/logo/logo_bw_loading.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* The Moving Light Gradient */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0) 70%);
    background-size: 200% 100%;
    background-position: 150% 0;
    animation: lightSweep 2s infinite ease-in-out;
}

@keyframes lightSweep {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Hide Preloader Class */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- Mobile Layout Optimizations --- */
@media (max-width: 900px) {

    /* Home Page Overrides */
    section#sobre.about-section {
        padding: 40px 0 80px !important;
    }

    .hero,
    .hero-cta-final {
        min-height: 100dvh;
        /* Dynamic viewport height for mobile */
    }

    .partners {
        padding: 40px 0;
    }

    .auth-main {
        padding: 180px 0 80px !important;
    }

    .hero-content {
        padding: 0 15px;
    }

    /* Stack About Section */
    section#sobre.about-section .about-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
        border-radius: 30px;
        width: 90%;
        margin: 0 auto;
    }

    section#sobre.about-section .about-card-left {
        padding: 60px 30px;
        width: 100%;
        border-radius: 30px 30px 0 0;
        /* Join with yellow part below */
    }

    section#sobre.about-section .about-card-right {
        padding: 60px 30px;
        width: 100%;
        border-radius: 0 0 30px 30px;
        /* Join with white part above */
    }

    /* Stack Testimonials */
    section#testemunhos.testimonials {
        padding: 60px 0 !important;
    }

    .testimonials-header {
        width: 85%;
        margin: 0 auto 40px;
    }

    .testimonials-header h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.2;
    }

    .testimonials-split {
        grid-template-columns: 1fr;
        gap: 60px;
        width: 85%;
        margin: 0 auto;
    }

    .testimonials-left {
        width: 100%;
    }

    .testimonials-right {
        width: 100%;
        height: 600px;
        /* Aumentado para dar espacio al texto y dots */
    }

    .testimonial-card-gold {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 80px 25px 100px !important;
        /* Más espacio abajo para los dots, y arriba para separar del borde */
        border-radius: 40px !important;
    }

    .testimonial-pagination {
        bottom: 20px !important;
    }

    .testimonial-card-gold h4 {
        font-size: 1.5rem !important;
    }

    .testimonials-left h3 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    /* Video Section Optimization */
    .post-testimonials-video .video-split {
        grid-template-columns: 1fr !important;
        width: 90% !important;
        margin: 0 auto !important;
    }

    .video-half:nth-child(2) {
        display: none !important;
        /* Solo el video solicitado en movil */
    }

    .video-half {
        border-radius: 30px !important;
        width: 100% !important;
    }

    .post-testimonials-video {
        padding-bottom: 80px;
    }

    .cta-suffix {
        display: none !important;
    }

    .hero-cta-final h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto 25px;
        line-height: 1.25;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Footer Cleanup Mobile */
    .footer-col .brand-sub,
    .footer-container-new .footer-col:nth-child(2),
    .social-text-links li:not(:last-child) {
        display: none !important;
    }

    /* About Page Stacking */
    .about-card-bicolor {
        flex-direction: column;
        border-radius: 30px;
        box-shadow: none;
        width: 90%;
        margin: 0 auto;
    }

    .about-card-left {
        width: 100%;
        padding: 60px 30px;
        border-radius: 30px 30px 0 0;
    }

    .about-card-right {
        width: 100%;
        padding: 60px 30px;
        border-radius: 0 0 30px 30px;
    }

    .about-photo-wrapper {
        max-width: 100%;
        /* Ensure image fills width */
    }

    .gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .gallery-item {
        flex: unset !important;
        width: auto !important;
    }

    /* Osteopatia Page */
    .osteopatia-hero-section {
        padding-top: 180px;
    }

    .yellow-section-title {
        width: 85%;
        margin: 0 auto 40px !important;
        text-align: center;
    }

    .benefit-cards-grid {
        grid-template-columns: 1fr;
        width: 85%;
        margin: 0 auto;
        gap: 30px;
    }

    .contact-split-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .contact-form-wrapper,
    .contact-image-wrapper {
        width: 100%;
    }

    .contact-image-wrapper {
        order: -1;
        /* Image first on mobile? Or keep bottom? Keeping default (form first) */
        min-height: 300px;
    }

    /* Perfil/Auth Page */
    .auth-card-container {
        padding: 0 15px;
    }

    .auth-card {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {

    /* Smaller Mobile Enhancements */
    section#sobre.about-section .about-card h2 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* 1 col on small phones */
    }

    .partners-track {
        gap: 30px;
    }

    .partners-track img {
        height: 35px;
    }

    /* Input Zoom Prevention */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Footer stacking */
    .footer-container-new {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .branding-col {
        align-items: flex-start;
        padding-right: 0;
    }

    .footer-links-list {
        align-items: flex-start;
    }

    .footer-logo-elysium {
        align-self: flex-start;
        transform: scale(1.2);
        /* Slightly smaller on mobile */
    }

    .footer-bar-elysium {
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid var(--color-text-dim);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin: 0;
    max-width: 600px;
}

.cookie-banner a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
}

/* GDPR Checkbox */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-container-legal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.checkbox-container-legal input {
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.checkbox-container-legal a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.partners-marquee {
    overflow: hidden;
    width: 100%;
}

/* Legal Pages */
.legal-page {
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    padding-top: 120px;
}

.hero-legal {
    background: var(--hero-legal-overlay), url('../images/hero-bg.jpg') center/cover no-repeat;
    padding: 150px 0;
    text-align: center;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-legal h1 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.hero-legal .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}
/* ========================================= */
/* PREMIUM CALENDAR UI (PERFIL.HTML)         */
/* ========================================= */
.calendar-section {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.calendar-section.admin-mode {
    border-top: 1px solid rgba(230, 174, 23, 0.2);
}

.premium-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 40px !important;
    text-align: center;
    font-weight: 800;
}

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

.week-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
}

.week-navigation .nav-btn {
    background: transparent;
    border: 1px solid var(--color-text-dim);
    color: var(--color-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.week-navigation .nav-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(230, 174, 23, 0.4);
}

.current-week {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-text);
    min-width: 200px;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    font-size: 0.95rem;
    color: var(--color-text-dim);
    flex-wrap: wrap; /* Added for responsiveness */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
}

.legend-box.available {
    background: transparent;
    border: 1px solid var(--color-text-dim);
}

.legend-box.treino {
    background: var(--color-treino);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 0 10px rgba(230, 174, 23, 0.4);
}

.legend-box.grupal {
    background: var(--color-grupal);
    border: none;
    box-shadow: 0 0 10px rgba(10, 111, 232, 0.5);
}

.legend-box.osteo {
    background: var(--color-osteo);
    border: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.legend-box.booked {
    background: #333;
    border: none;
}

.legend-box.selected {
    background: var(--color-primary);
    border: none;
    box-shadow: 0 0 15px var(--color-primary);
}

/* Weekly Grid Layout */
.weekly-grid-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 40px;
}

.weekly-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 30px;
    min-width: 1100px;
}

.day-column {
    background: transparent;
    border-radius: 0;
    padding: 0;
    transition: var(--transition-smooth);
}

.day-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-text-dim);
    opacity: 0.2;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.day-header .day-date {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-top: 8px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-slot {
    width: 100%;
    padding: 10px 0;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--color-text-dim);
    background: transparent;
    color: var(--color-text);
}

.time-slot.available {
    border: 1px solid var(--color-text-dim);
    color: var(--color-text-dim);
    opacity: 0.6;
}

.time-slot.available:hover {
    transform: translateY(-5px);
}

/* Service Colors */
.time-slot.service-treino {
    background: rgba(230, 174, 23, 0.1);
    border-color: var(--color-treino);
    color: var(--color-treino);
}

/* Selected slots (Mine) */
.time-slot.selected.service-treino {
    background: var(--color-treino);
    color: #000;
    box-shadow: 0 0 25px rgba(230, 174, 23, 0.6);
}

.time-slot.selected.service-osteo {
    background: var(--color-osteo);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.time-slot.selected::after {
    content: 'A tua reserva';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    white-space: nowrap;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.time-slot.service-treino:hover,
.time-slot.service-treino.active-selection {
    background: var(--color-treino);
    color: #000;
    box-shadow: 0 0 20px rgba(230, 174, 23, 0.4);
    border-color: var(--color-treino);
}

.time-slot.service-grupal {
    background: rgba(10, 111, 232, 0.1);
    border-color: var(--color-grupal);
    color: var(--color-grupal);
}

.time-slot.service-grupal:hover,
.time-slot.service-grupal.active-selection {
    background: var(--color-grupal);
    color: var(--color-text);
    box-shadow: 0 0 20px rgba(10, 111, 232, 0.4);
    border-color: var(--color-grupal);
}

.time-slot.selected.service-grupal {
    background: var(--color-grupal);
    color: var(--color-text);
    box-shadow: 0 0 25px rgba(10, 111, 232, 0.6);
}

.time-slot.service-osteo {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-osteo);
    color: var(--color-osteo);
}

.time-slot.service-osteo:hover,
.time-slot.service-osteo.active-selection,
.time-slot.service-osteopatia:hover,
.time-slot.service-osteopatia.active-selection {
    background: var(--color-osteo) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
    border-color: var(--color-osteo) !important;
}

/* Admin Multi-State Selection Styles */
.admin-mode .time-slot.active.service-treino {
    background: var(--color-treino);
    color: #000;
}

.admin-mode .time-slot.active.service-grupal {
    background: var(--color-grupal);
    color: var(--color-text);
}

.admin-mode .time-slot.active.service-osteo {
    background: var(--color-osteo);
    color: #000;
}

/* Admin Booked States (Paulo's View) */
.time-slot.admin-booked {
    border-width: 2px !important;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px !important;
    height: auto !important;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

/* Service Borders for Admin */
.time-slot.admin-booked.service-treino {
    border-color: #E7AE19 !important; /* Gold */
}

.time-slot.admin-booked.service-grupal {
    border-color: var(--color-grupal) !important; /* Blue */
}

.time-slot.admin-booked.service-osteopatia {
    border-color: var(--color-text)FFF !important; /* White */
}

.time-slot.admin-booked .client-name {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Cancellation Button on Slots */
.cancel-booking-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 68, 68, 0.9);
    border: none;
    border-radius: 4px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    padding: 0;
}

.time-slot:hover .cancel-booking-btn {
    opacity: 1;
}

.cancel-booking-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.cancel-booking-btn i {
    width: 12px;
    height: 12px;
}

/* Summary List Cancellation Items */
.summary-item.cancellation {
    border-left: 3px solid #ff4444;
}

.summary-item.cancellation span strong {
    color: #ff4444;
}

.summary-title.cancellation {
    color: #ff4444;
    margin-top: 20px;
}

/* Multi-Booking Summary (Client) */
.booking-summary-container {
    background: transparent;
    border: 1px solid var(--color-text-dim);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
}

.summary-item .remove-slot {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

/* Admin User Legend */
.admin-user-legend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-text-dim);
}

.user-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

.user-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}


.time-slot.selected {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 0 25px rgba(230, 174, 23, 0.5);
    border-color: var(--color-text);
}

.time-slot.booked {
    background: rgba(255, 255, 255, 0.01);
    color: #444;
    cursor: not-allowed;
    opacity: 0.2;
    border-color: transparent;
}

.time-slot.empty {
    background: transparent;
    border: 1px dashed var(--color-text-dim);
    opacity: 0.3;
    color: var(--color-text-dim);
    pointer-events: none;
}

/* Service Selection Styling */
.service-selection-container {
    margin-top: 80px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.selection-label {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.service-box {
    padding: 40px 60px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.service-box i {
    width: 40px;
    height: 40px;
    color: var(--color-text-dim);
}

.service-box span {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--color-text-dim);
}

.service-option input:checked + .service-box {
    background: rgba(230, 174, 23, 0.15);
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(230, 174, 23, 0.2);
}

.service-option input:checked + .service-box i,
.service-option input:checked + .service-box span {
    color: var(--color-primary);
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.time-slot.cancelling,
.time-slot.selected.service-osteo.cancelling,
.time-slot.selected.service-treino.cancelling,
.time-slot.selected.service-grupal.cancelling {
    background: #ff0000 !important;
    border-color: #b30000 !important;
    color: var(--color-text)!important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    animation: pulse-red 1.2s infinite;
    z-index: 50;
}

@keyframes pulse-red {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.95; box-shadow: 0 0 30px rgba(255, 0, 0, 0.8); }
    100% { transform: scale(1); opacity: 1; }
}

.calendar-footer {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.calendar-footer .btn-primary {
    max-width: 500px;
}

.calendar-footer .btn-primary:disabled {
    opacity: 0.1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Admin States */
.time-slot.admin-selectable {
    background-color: var(--color-bg);
    border: 1px dashed var(--color-text-dim);
    opacity: 0.4;
    color: var(--color-text-dim);
}

.time-slot.admin-selectable:hover {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    opacity: 0.9;
}

.time-slot.admin-selectable.service-grupal:hover {
    border-color: var(--color-grupal) !important;
    color: var(--color-grupal) !important;
}

.time-slot.admin-selectable.service-osteo:hover,
.time-slot.admin-selectable.service-osteopatia:hover {
    border-color: var(--color-osteo) !important;
    color: var(--color-osteo) !important;
}

.time-slot.admin-selectable.active {
    background-color: var(--color-treino);
    border: 1px solid var(--color-treino);
    color: #000;
    opacity: 1;
    box-shadow: 0 0 15px rgba(230, 174, 23, 0.4);
}

.time-slot.admin-selectable.active.service-grupal {
    background-color: var(--color-grupal) !important;
    border-color: var(--color-grupal) !important;
    color: var(--color-text) !important;
    opacity: 1;
    box-shadow: 0 0 15px rgba(10, 111, 232, 0.4);
}

.time-slot.admin-selectable.active.service-osteo,
.time-slot.admin-selectable.active.service-osteopatia {
    background-color: var(--color-osteo) !important;
    border-color: var(--color-osteo) !important;
    color: var(--color-bg) !important;
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.time-slot.admin-booked {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-bg);
    cursor: not-allowed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.time-slot.admin-booked .client-name {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
    margin-top: 2px;
}

/* Group Count Badge */
.group-count {
    font-size: 0.65rem;
    font-weight: 700;
    opacity: 0.9;
    margin-top: 2px;
    display: block;
    text-align: center;
}

/* Group slot clickable in admin */
.time-slot.admin-booked-group {
    cursor: pointer !important;
    border-width: 2px !important;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px !important;
    height: auto !important;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    background-color: var(--color-grupal);
    border-color: var(--color-grupal) !important;
    color: var(--color-text);
}

.time-slot.admin-booked-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(10, 111, 232, 0.5);
}

/* Group Booking Popup */
.group-booking-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-surface);
    opacity: 0.98;
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.group-booking-popup.active {
    opacity: 1;
    visibility: visible;
}

.group-booking-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(10, 111, 232, 0.3);
    border-radius: 24px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(10, 111, 232, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.group-booking-popup.active .group-booking-card {
    transform: scale(1);
}

.group-booking-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-grupal);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.group-booking-card .popup-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 20px;
}

.group-booking-card .user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-booking-card .user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.group-booking-card .user-item .user-name-popup {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-booking-card .user-item .user-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-grupal);
    flex-shrink: 0;
}

.group-booking-card .user-item .remove-user-btn {
    background: rgba(255, 68, 68, 0.15);
    border: none;
    color: #ff4444;
    cursor: pointer;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.group-booking-card .user-item .remove-user-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: scale(1.1);
}

.group-booking-card .close-popup-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.group-booking-card .close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.group-booking-card .empty-group {
    text-align: center;
    color: var(--color-text-dim);
    padding: 20px;
    font-size: 0.9rem;
}

.calendar-footer,
.admin-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    width: 100%;
}

.btn-action-main {
    width: 100%;
    max-width: 400px;
    justify-content: center;
    padding: 16px 40px;
}

.btn-action-admin {
    min-width: 160px;
    padding: 12px 25px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .admin-footer {
        flex-direction: column;
        align-items: center;
    }
    .btn-action-admin {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}
@keyframes popIn {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/* Final Navigation CTA */
.index-final-cta {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background-color: var(--color-surface);
    padding: 80px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 600;
}


.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-text);
    line-height: 1;
}

.box-subtitle {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.cta-box p {
    color: var(--color-text-dim);
    margin-bottom: 30px;
    width: 100%;
    line-height: 1.7;
    font-size: 1.1rem;
}


.shadow-gold {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), -5px 10px 50px rgba(230, 174, 23, 0.2);
    animation: gold-shadow-breath 10s ease-in-out infinite;
}

@keyframes gold-shadow-breath {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.4),
            -5px 10px 50px rgba(230, 174, 23, 0.2);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5),
            7px 20px 80px rgba(230, 174, 23, 0.45);
    }
}

.shadow-silver {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 5px 10px 50px rgba(200, 200, 200, 0.15);
    animation: silver-shadow-breath 10s ease-in-out infinite;
}

@keyframes silver-shadow-breath {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.4),
            5px 10px 50px rgba(200, 200, 200, 0.15);
    }
    50% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.5),
            -7px 20px 80px rgba(200, 200, 200, 0.35);
    }
}

/* Efecto dorado más intenso para Perfil */
.shadow-gold-extreme {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 10px 60px rgba(230, 174, 23, 0.25);
    animation: gold-extreme-breath 8s ease-in-out infinite;
}

@keyframes gold-extreme-breath {
    0%, 100% {
        box-shadow: 
            0 15px 50px rgba(0, 0, 0, 0.5),
            0 10px 60px rgba(230, 174, 23, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.6),
            0 20px 150px rgba(230, 174, 23, 0.5);
        transform: scale(1.01);
    }
}

.cta-divider {
    width: 1px;
    height: 350px;
    background: linear-gradient(to bottom, transparent, rgba(230, 174, 23, 0.3), transparent);
    flex-shrink: 0;
}


@media (max-width: 992px) {
    .cta-wrapper {
        flex-direction: column;
        padding: 60px 30px;
        gap: 50px;
        text-align: center;
        align-items: center;
    }

    .cta-box {
        align-items: center;
        width: 100%;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }

    .box-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .cta-divider {
        width: 80%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(230, 174, 23, 0.3), transparent);
    }
}

@media (max-width: 576px) {
    .cta-wrapper {
        padding: 50px 20px;
        border-radius: 30px;
    }

    .cta-box h2 {
        font-size: 2.2rem;
    }

    .cta-box p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Contact Form + Image Integration for CTA Wrapper */
.cta-wrapper.no-padding-mobile {
    padding: 0 !important;
}

.cta-wrapper.no-padding-mobile .contact-form-wrapper {
    flex: 1.2;
    padding: 80px;
}


.cta-wrapper.no-padding-mobile .contact-image-wrapper {
    flex: 1;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0 40px 40px 0;
}

.cta-wrapper.no-padding-mobile .contact-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    display: block;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-wrapper.no-padding-mobile:hover .contact-image-wrapper img {
    transform: scale(1.08);
}

.cta-wrapper.no-padding-mobile .contact-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 11, 11, 0.4), transparent);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cta-wrapper.no-padding-mobile:hover .contact-image-wrapper::after {
    opacity: 0.6;
}

@media (max-width: 992px) {
    .cta-wrapper.no-padding-mobile {
        flex-direction: column !important;
    }

    .cta-wrapper.no-padding-mobile .contact-image-wrapper {
        order: -1;
        min-height: 350px;
        width: 100%;
        border-radius: 40px 40px 0 0;
    }
    
    .cta-wrapper.no-padding-mobile .contact-image-wrapper::after {
        background: linear-gradient(to bottom, rgba(11, 11, 11, 0.4), transparent);
    }

    .cta-wrapper.no-padding-mobile .contact-form-wrapper {
        padding: 50px 30px;
        width: 100%;
    }

    .cta-wrapper.no-padding-mobile .cta-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-row {
        gap: 15px;
    }
    
    .contact-form-wrapper.dark-form .contact-form-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-form-logo {
        margin: 0 auto 20px !important;
    }
    
    .form-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
/* Premium Testimonials Section */
.shadow-gold-soft {
    box-shadow: 0 40px 120px rgba(230, 174, 23, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.divider-testimonial {
    height: 450px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.testimonials-left h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.testimonials-right {
    height: 600px !important;
}

@media (max-width: 992px) {
    .divider-testimonial {
        display: none;
    }
    
    .testimonials-left h2 {
        font-size: 2.5rem;
    }
    
    .testimonials-right {
        height: 500px !important;
        margin-top: 20px;
    }
}

/* Admin Premium Buttons Styling */
.btn-admin-premium {
    background: linear-gradient(135deg, var(--color-primary) 0%, #b88a12 100%);
    color: #000 !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(230, 174, 23, 0.25);
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.btn-admin-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.8s;
}

.btn-admin-premium:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(230, 174, 23, 0.45);
    background: linear-gradient(135deg, #f7ca4a 0%, var(--color-primary) 100%);
}

.btn-admin-premium:hover::before {
    left: 150%;
}

.btn-admin-premium i {
    width: 18px;
    height: 18px;
    margin-right: -2px;
}

/* Dashboard Actions Responsiveness - IMPROVED */
@media (max-width: 768px) {
    .dashboard-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .dashboard-actions .btn {
        width: 100%;
        padding: 15px 10px;
        font-size: 0.85rem;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        height: auto;
    }

    .dashboard-actions .btn i {
        width: 20px;
        height: 20px;
    }

    /* Terminar Sessão and other full-width exceptions if needed */
    #btn-logout {
        grid-column: span 2;
        flex-direction: row !important;
        padding: 15px 20px !important;
        margin-top: 5px;
    }
    
    .dashboard-actions .btn-admin-premium {
        padding: 20px 10px !important;
    }
}

/* History Shared Styles - RE-DESIGNED */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 10px;
}

.history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 25px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.history-main-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item .user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.history-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
}

.tag-treino {
    background: rgba(230, 174, 23, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(230, 174, 23, 0.2);
}

.tag-osteo {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-schedule-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
    opacity: 0.8;
}

.meta-item span {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

/* Responsive History */
@media (max-width: 768px) {
    .history-item {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .history-main-info {
        align-items: center;
    }

    .history-schedule-meta {
        justify-content: center;
        width: 100%;
        gap: 15px;
        padding: 12px;
    }

    .history-item:hover {
        transform: translateY(-3px);
    }
}
