/* =========================================
   CLÍNICA DENTAL DRA. YOLANDA CUSTODIO
   Modern Dental Clinic Website Styles
   ========================================= */

/* =========================================
   1. CSS VARIABLES & ROOT STYLES
   ========================================= */
:root {
    /* Primary Colors - Teal/Verde */
    --primary-color: #22A5B3;
    --primary-dark: #178692;
    --primary-light: #3dbbc8;
    --primary-gradient: linear-gradient(135deg, #22A5B3 0%, #0F6E78 100%);
    
    /* Secondary Colors */
    --secondary-color: #0F6E78;
    --secondary-dark: #0a5660;
    --secondary-light: #3d9da8;
    
    /* Accent Colors */
    --accent-color: #14b8a6;
    --accent-light: #5eead4;
    
    /* Neutral Colors */
    --dark-color: #1B2430;
    --dark-secondary: #2d3a4a;
    --gray-color: #64748b;
    --gray-light: #94a3b8;
    --light-color: #f6f9fb;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Dental Theme Colors */
    --dental-blue: #22A5B3;
    --dental-cyan: #0F6E78;
    --dental-teal: #14b8a6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 30px rgba(34, 165, 179, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

/* =========================================
   2. BASE STYLES & RESET
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* =========================================
   3. PRELOADER
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader .tooth-icon {
    font-size: 4rem;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader p {
    margin-top: 1rem;
    color: var(--gray-color);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    padding: 0.75rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.navbar.scrolled .navbar-brand {
    color: var(--dark-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-color);
}

.navbar-brand i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.navbar-brand .brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2813, 110, 253, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.btn-cita {
    background: var(--primary-gradient);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.btn-cita:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 120px;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-photo-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../JEFA.JPG');
    background-size: cover;
    background-position: center 55%;
    filter: blur(18px);
    opacity: 0.13;
    transform: scale(1.08);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(34, 165, 179, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(15, 110, 120, 0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(34, 165, 179, 0.2);
    border: 1px solid rgba(34, 165, 179, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    margin-top: 3rem !important;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 165, 179, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(34, 165, 179, 0.4);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    font-weight: 500;
    margin-bottom: 0;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image-card {
    position: relative;
}

.hero-main-image {
    position: relative;
    z-index: 5;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    color: var(--dark-color);
}

.floating-card.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.image-placeholder {
    background: linear-gradient(135deg, rgba(34, 165, 179, 0.1) 0%, rgba(15, 110, 120, 0.1) 100%);
    border: 2px dashed rgba(34, 165, 179, 0.3);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    aspect-ratio: 4/5;
    max-width: 400px;
    margin: 0 auto;
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.image-placeholder span {
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.7;
}

.image-placeholder.large {
    aspect-ratio: 4/3;
    max-width: 100%;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 5;
}

.hero-wave svg {
    width: 100%;
    height: 100px;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   6. SECTION COMMON STYLES
   ========================================= */
.section-padding {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--section-padding-mobile);
    }
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(34, 165, 179, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--gray-color);
}

/* =========================================
   7. ABOUT SECTION
   ========================================= */
.about-section {
    background: var(--white);
}

.about-image-wrapper {
    position: relative;
    padding: 2rem;
}

.about-image-main {
    position: relative;
    z-index: 2;
}

.about-image-main .image-placeholder {
    aspect-ratio: 4/3;
    border-radius: var(--radius-2xl);
}

.about-image-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    z-index: 3;
}

.about-image-secondary .image-placeholder {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.experience-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    z-index: 4;
    box-shadow: var(--shadow-lg);
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    line-height: 1.3;
}

.about-content {
    padding-left: 2rem;
}

.about-content .lead-text {
    font-size: 1.125rem;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--success-color);
}

.feature-text h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* =========================================
   8. SERVICES SECTION
   ========================================= */
.services-section {
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(34, 165, 179, 0.1) 0%, rgba(15, 110, 120, 0.1) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-gradient);
    transform: rotate(10deg) scale(1.1);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================
   9. SERVICE DETAIL SECTIONS
   ========================================= */
.service-detail {
    position: relative;
}

.service-detail-image .image-placeholder {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
}

.service-detail-content {
    padding: 2rem 0;
}

.service-detail-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.benefits-list {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius-lg);
}

.benefits-list h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefits-list ul {
    display: grid;
    gap: 0.75rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--dark-color);
}

.benefits-list li i {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefits-list li strong {
    color: var(--dark-color);
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(34, 165, 179, 0.05) 0%, rgba(15, 110, 120, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.alert-box i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-box p {
    margin: 0;
    color: var(--dark-color);
}

.process-steps {
    margin-top: 2rem;
}

.process-steps h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.step-content p {
    margin: 0;
    font-size: 0.875rem;
}

.two-column-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-col {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
}

.content-col h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-col p {
    margin: 0;
    font-size: 0.9rem;
}

.correction-list {
    margin: 2rem 0;
}

.correction-list h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.correction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(34, 165, 179, 0.1) 0%, rgba(15, 110, 120, 0.1) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.types-cards {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.type-card {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.type-card h6 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.type-card p {
    margin: 0;
    font-size: 0.9rem;
}

.reasons-grid {
    margin: 2rem 0;
}

.reasons-grid h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.reason-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.reason-item i {
    color: var(--warning-color);
}

.implant-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.info-card {
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h6 {
    margin-bottom: 0.5rem;
}

.info-card p {
    margin: 0;
    font-size: 0.875rem;
}

.services-grid-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.service-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-mini:hover {
    background: var(--primary-color);
    color: var(--white);
}

.service-mini i {
    color: var(--primary-color);
    transition: var(--transition);
}

.service-mini:hover i {
    color: var(--white);
}

.service-mini span {
    font-size: 0.875rem;
    font-weight: 500;
}

.kids-theme {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.kids-theme i {
    color: var(--accent-color) !important;
}

.orthodontic-options {
    margin: 2rem 0;
}

.orthodontic-options h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.option-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.option-card i {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.option-card h6 {
    margin-bottom: 0.25rem;
}

.option-card p {
    margin: 0;
    font-size: 0.875rem;
}

.treatments-accordion {
    margin: 2rem 0;
}

.treatments-accordion h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.treatment-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.treatment-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.treatment-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.treatment-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.treatment-item p {
    margin: 0;
    font-size: 0.875rem;
}

/* =========================================
   10. TEAM SECTION
   ========================================= */
.team-section {
    background: var(--white);
}

/* ---------- DIRECTOR FEATURED CARD ---------- */
.director-feature-row {
    margin-bottom: 1rem;
}

.director-card {
    background: linear-gradient(135deg, #0d1c28 0%, #1B2430 50%, #0d2233 100%);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(34,165,179,0.15);
    position: relative;
    min-height: 380px;
}

.director-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22A5B3, #14b8a6, #22A5B3);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.director-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34,165,179,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.director-photo-col {
    flex-shrink: 0;
    width: 320px;
    position: relative;
    background: linear-gradient(180deg, rgba(34,165,179,0.05) 0%, transparent 100%);
}

.director-photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.director-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.director-crown-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(245,158,11,0.5);
    z-index: 5;
}

.director-crown-badge i {
    color: white;
    font-size: 1.25rem;
}

.director-exp-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1.25rem;
    text-align: center;
    color: white;
    z-index: 5;
}

.director-exp-badge .exp-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #22A5B3;
}

.director-exp-badge .exp-label {
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.3;
}

.director-info-col {
    flex: 1;
    padding: 3rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.director-role-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(217,119,6,0.15));
    border: 1px solid rgba(245,158,11,0.4);
    color: #fbbf24;
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.director-name {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.director-subtitle {
    color: #22A5B3;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

.director-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.spec-pill {
    background: rgba(34,165,179,0.12);
    border: 1px solid rgba(34,165,179,0.25);
    color: #5eead4;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.spec-pill:hover {
    background: rgba(34,165,179,0.25);
    border-color: rgba(34,165,179,0.5);
}

.director-description {
    color: rgba(255,255,255,0.65);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.director-cta {
    width: fit-content;
    margin-top: 0.5rem;
}

/* ---------- TEAM DIVIDER ---------- */
.team-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    text-align: center;
}

.team-divider::before,
.team-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(34,165,179,0.3), transparent);
}

.team-divider span {
    color: var(--gray-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- STAFF CARDS ---------- */
.staff-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 3px solid transparent;
    border-image: none;
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--avatar-hue, #22A5B3), var(--avatar-dark, #0F6E78));
    opacity: 0;
    transition: var(--transition);
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.staff-card:hover::before {
    opacity: 1;
}

.staff-card--reception .staff-avatar {
    background: linear-gradient(135deg, #64748b, #475569) !important;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--avatar-hue, #22A5B3), var(--avatar-dark, #0F6E78));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(34,165,179,0.25);
    transition: var(--transition);
}

.staff-card:hover .staff-avatar {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(34,165,179,0.35);
}

.staff-avatar span {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-secondary);
}

.staff-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.staff-info h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
    line-height: 1.3;
}

.staff-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.82rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.staff-desc {
    color: var(--gray-color);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0.25rem 0 0;
}

.staff-icon-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.staff-icon-row span {
    background: var(--light-color);
    color: var(--gray-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* Responsive team */
@media (max-width: 991px) {
    .director-card {
        flex-direction: column;
        min-height: auto;
    }

    .director-photo-col {
        width: 100%;
    }

    .director-photo-frame {
        min-height: 320px;
    }

    .director-info-col {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .director-photo-frame {
        min-height: 260px;
    }

    .director-info-col {
        padding: 1.5rem;
    }

    .director-name {
        font-size: 1.5rem;
    }
}

/* =========================================
   11. TESTIMONIALS / GOOGLE REVIEWS SECTION
   ========================================= */
.testimonials-section {
    background: var(--white);
}

/* -- Google Rating Banner -- */
.google-rating-banner {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 1.75rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.grb-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.google-g-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.grb-score-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.grb-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1;
}

.grb-stars-row {
    display: flex;
    gap: 3px;
}

.grb-stars-row i {
    color: #FBBC05;
    font-size: 1rem;
}

.grb-count {
    font-size: 0.8rem;
    color: var(--gray-color);
    font-weight: 500;
}

.grb-divider {
    width: 1px;
    height: 60px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.grb-right {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.grb-tagline {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0;
    max-width: 260px;
}

.grb-tagline strong {
    color: var(--dark-color);
}

.grb-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-gmaps-view {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-color);
    background: var(--white);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gmaps-view:hover {
    border-color: #4285F4;
    color: #4285F4;
    box-shadow: 0 4px 12px rgba(66,133,244,0.15);
}

.btn-gmaps-write {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, #4285F4, #34A853);
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(66,133,244,0.3);
}

.btn-gmaps-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66,133,244,0.4);
    color: var(--white);
}

/* -- Slider de reseñas -- */
.reviews-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0 3rem;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

@media (max-width: 991px) {
    .review-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 575px) {
    .review-slide {
        flex: 0 0 90%;
        min-width: 90%;
    }
}

.review-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(66,133,244,0.2);
}

.rc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    font-family: var(--font-secondary);
}

.rc-user {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.rc-user strong {
    font-size: 0.9rem;
    color: var(--dark-color);
}

.rc-user span {
    font-size: 0.76rem;
    color: var(--gray-light);
}

.rc-google-icon {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.85;
}

.rc-stars {
    display: flex;
    gap: 2px;
}

.rc-stars i {
    color: #FBBC05;
    font-size: 0.9rem;
}

.rc-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -- Botones del slider -- */
.reviews-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: var(--white);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}

.reviews-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reviews-btn--prev { left: -16px; }
.reviews-btn--next { right: -16px; }

/* -- Dots -- */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.reviews-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

/* -- Footer CTA Google Maps -- */
.reviews-footer-cta {
    margin-top: 2rem;
}

.rfc-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid rgba(52,168,83,0.2);
    border-radius: var(--radius-xl);
    padding: 1.25rem 2rem;
    flex-wrap: wrap;
}

.rfc-icon {
    font-size: 1.75rem;
    color: #34A853;
    flex-shrink: 0;
}

.rfc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 200px;
}

.rfc-text strong {
    font-size: 0.95rem;
    color: var(--dark-color);
}

.rfc-text span {
    font-size: 0.82rem;
    color: var(--gray-color);
}

.btn-open-maps {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #34A853;
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(52,168,83,0.3);
}

.btn-open-maps:hover {
    background: #2d9249;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52,168,83,0.4);
}

/* =========================================
   12. CTA SECTION
   ========================================= */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(34, 165, 179, 0.2) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.cta-section .btn-light {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* =========================================
   13. CONTACT SECTION
   ========================================= */
.contact-section {
    background: var(--white);
}

.contact-info-wrapper {
    height: 100%;
}

.contact-info-card {
    background: var(--primary-gradient);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    height: 100%;
    color: var(--white);
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.contact-info-card > p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-text h6 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

.social-media {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-media h6 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: var(--white);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(34, 165, 179, 0.1);
}

.contact-form select.form-control {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-form .form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.contact-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .form-check-label {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.contact-form .form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-form .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.map-wrapper {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-placeholder {
    background: linear-gradient(135deg, rgba(34, 165, 179, 0.05) 0%, rgba(15, 110, 120, 0.05) 100%);
    padding: 4rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--gray-light);
}

/* =========================================
   14. FOOTER
   ========================================= */
.footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: var(--white);
}

.footer-top {
    padding: 80px 0 40px;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.footer-widget > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-widget h5 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-schedule li span:first-child {
    color: var(--white);
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
}

.footer-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-legal li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal li a:hover {
    color: var(--primary-light);
}

/* =========================================
   15. FLOATING ELEMENTS
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-to-top.visible,
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    color: var(--white);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   16. BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--primary-gradient);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* =========================================
   17. RESPONSIVE STYLES
   ========================================= */
@media (max-width: 1199px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link {
        color: var(--dark-color) !important;
        padding: 0.75rem 1rem !important;
    }
    
    .btn-cita {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .hero-stats {
        justify-content: flex-start;
    }
    
    .hero-image-wrapper {
        margin-top: 2.5rem;
    }
    
    .hero-doctor-img {
        max-width: 280px;
        height: 380px;
        object-position: center 40%;
    }
    
    .floating-card {
        display: none;
    }
    
    .two-column-content,
    .implant-info {
        grid-template-columns: 1fr;
    }
    
    .services-grid-small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .service-detail-content {
        padding: 1rem 0;
    }
    
    .cta-section {
        text-align: center;
    }
    
    .cta-section .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
    
    .contact-info-card,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-doctor-img {
        max-width: 220px;
        height: 300px;
        object-position: center 38%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider .col-lg-4 {
        padding: 0;
    }
}

/* =========================================
   18. ANIMATIONS
   ========================================= */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth reveal animation for elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Loading animation for images */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    z-index: -1;
    border-radius: inherit;
}

/* =========================================
   19. UTILITY CLASSES
   ========================================= */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

.bg-light {
    background-color: var(--light-color) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =========================================
   20. ENHANCED MOBILE STYLES
   ========================================= */

/* Mobile-First Hero Improvements */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .hero-section .row {
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-wave svg {
        height: 80px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        margin-top: 2.5rem !important;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        max-width: 180px;
        padding: 1.25rem 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-suffix {
        font-size: 1.75rem;
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding-top: 90px;
        padding-bottom: 90px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        gap: 0.75rem;
        margin-top: 2rem !important;
    }
    
    .stat-item {
        padding: 1rem 0.75rem;
        flex: 1 1 100%;
        max-width: 250px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar {
        padding: 0.75rem 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .navbar .nav-link {
        color: var(--dark-color) !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand i {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* En móvil: ocultar el dropdown de servicios, el link va directo a #servicios */
    .nav-item.dropdown .dropdown-menu {
        display: none !important;
    }
    #serviciosDropdown::after {
        display: none !important;
    }
    
    .dropdown-item {
        font-size: 0.85rem;
    }
}

/* Mobile Service Cards */
@media (max-width: 767px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
}

/* Mobile Service Detail Sections */
@media (max-width: 991px) {
    .service-detail {
        padding: 50px 0;
    }
    
    .service-detail-content {
        padding: 2rem 0 0 0;
    }
    
    .service-detail-image .image-placeholder {
        max-width: 300px;
        padding: 2rem;
    }
    
    .benefits-list {
        padding: 1rem;
    }
    
    .process-steps .step {
        padding: 0.75rem;
    }
}

/* Mobile About Section */
@media (max-width: 991px) {
    .about-image-wrapper {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .experience-badge {
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .about-image-secondary {
        width: 40%;
    }
}

/* Mobile Team Section */
@media (max-width: 767px) {
    .team-card {
        margin-bottom: 1.5rem;
    }
    
    .team-info {
        padding: 1rem;
    }
    
    .team-info h4 {
        font-size: 1.1rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 767px) {
    .testimonial-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
}

/* Mobile Contact Section */
@media (max-width: 991px) {
    .contact-info-wrapper {
        margin-bottom: 2rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-widget h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-schedule li {
        font-size: 0.9rem;
    }
    
    .footer-phone {
        display: inline-flex;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom p {
        margin-bottom: 0.5rem;
    }
}

/* Touch-friendly Elements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .team-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .social-icon:active,
    .service-link:active {
        opacity: 0.7;
    }
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .footer-bottom {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }
    
    .whatsapp-float {
        right: max(20px, env(safe-area-inset-right));
    }
    
    .back-to-top {
        left: max(20px, env(safe-area-inset-left));
    }
}

/* =========================================
   21. COOKIE BANNER STYLES
   ========================================= */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: var(--white);
    padding: 1.25rem 1rem;
    z-index: 99998;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2);
    animation: slideUpBanner 0.4s ease;
    border-top: 3px solid var(--primary-color);
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookieBanner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#cookieBanner .cookie-text {
    flex: 1;
    min-width: 280px;
}

#cookieBanner .cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

#cookieBanner .cookie-text a {
    color: var(--dental-cyan);
    text-decoration: underline;
    transition: var(--transition);
}

#cookieBanner .cookie-text a:hover {
    color: var(--white);
}

#cookieBanner .cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

#cookieBanner .btn-cookie {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

#cookieBanner .btn-cookie-accept {
    background: var(--primary-gradient);
    color: var(--white);
}

#cookieBanner .btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

#cookieBanner .btn-cookie-settings {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#cookieBanner .btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

#cookieBanner .btn-cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    text-decoration: underline;
}

#cookieBanner .btn-cookie-reject:hover {
    color: var(--white);
}

@media (max-width: 767px) {
    #cookieBanner {
        padding: 1rem;
    }
    
    #cookieBanner .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    #cookieBanner .cookie-text {
        min-width: 100%;
    }
    
    #cookieBanner .cookie-text p {
        font-size: 0.85rem;
    }
    
    #cookieBanner .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    #cookieBanner .btn-cookie {
        width: 100%;
        padding: 0.75rem;
    }
}

/* =========================================
   22. LEGAL PAGES STYLES
   ========================================= */
.legal-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.legal-page .legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-page .legal-header h1 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.legal-page .legal-header .update-date {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.legal-page .legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page .legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.legal-page .legal-content h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page .legal-content p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
    color: var(--gray-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page .legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-page .legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-page .legal-content a:hover {
    color: var(--primary-dark);
}

.legal-page .legal-content .highlight-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.legal-page .legal-content .highlight-box p {
    margin: 0;
}

.legal-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.legal-page .back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-color);
}

.cookie-table th {
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
}

.cookie-table tr:hover {
    background: rgba(34, 165, 179, 0.02);
}

@media (max-width: 767px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-page .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* =========================================
   23. ACCESSIBILITY IMPROVEMENTS
   ========================================= */
/* Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    z-index: 100000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 10px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-particles,
    .floating-card {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --gray-color: #333333;
    }
    
    .hero-subtitle,
    .stat-label {
        color: rgba(255, 255, 255, 0.95);
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable automatic dark mode
    :root {
        --light-color: #1a1a2e;
        --white: #16213e;
        --dark-color: #eaeaea;
        --gray-color: #a0a0a0;
    }
    */
}

/* =========================================
   24. PRINT STYLES
   ========================================= */
@media print {
    .navbar,
    .hero-particles,
    .floating-card,
    .back-to-top,
    .whatsapp-float,
    .phone-float,
    #cookieBanner,
    #preloader {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: var(--white) !important;
        color: var(--dark-color) !important;
    }
    
    .hero-title,
    .gradient-text {
        color: var(--dark-color) !important;
        -webkit-text-fill-color: var(--dark-color) !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--gray-color);
    }
}

/* =========================================
   25. PHONE FLOATING BUTTON
   ========================================= */
.phone-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.phone-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
    color: var(--white);
}

.phone-float i {
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    25% { transform: rotate(0deg); }
}

.phone-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--white);
}

.phone-float:hover .phone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* WhatsApp Button Enhancement */
.whatsapp-float {
    bottom: 30px;
    font-size: 1.75rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--white);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile positioning for floating buttons */
@media (max-width: 767px) {
    .phone-float,
    .whatsapp-float {
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .phone-float {
        bottom: 100px;
        font-size: 1.25rem;
    }
    
    .whatsapp-float {
        bottom: 25px;
        font-size: 1.5rem;
    }
    
    .phone-tooltip,
    .whatsapp-tooltip {
        display: none;
    }
}

/* =========================================
   26. LEGAL MODALS STYLES
   ========================================= */
.legal-modal-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-color);
}

.legal-modal-content h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.legal-modal-content h6:first-of-type {
    margin-top: 0.5rem;
}

.legal-modal-content p {
    margin-bottom: 1rem;
}

.legal-modal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.legal-modal-content li {
    margin-bottom: 0.5rem;
}

.legal-modal-content .update-date {
    background: var(--light-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.legal-modal-content .cookie-category {
    background: var(--light-color);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.legal-modal-content .cookie-type {
    margin-top: 0;
    font-size: 1rem;
}

.legal-modal-content .table {
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.legal-modal-content .table thead th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-modal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-modal-content a:hover {
    color: var(--primary-dark);
}

/* Modal Header Styling */
.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid var(--light-color);
    padding: 1rem 1.5rem;
}

.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* =========================================
   27. MAP STYLES
   ========================================= */
.map-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    min-height: 400px;
}

.map-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.map-overlay-info .btn {
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem;
}

/* Contact Links Styling */
.contact-phone-link,
.contact-email-link {
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    display: inline-block;
}

.contact-phone-link:hover,
.contact-email-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
    transform: translateX(3px);
}

/* =========================================
   28. ENHANCED COOKIE BANNER
   ========================================= */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.25rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    border-top: 3px solid var(--primary-color);
}

#cookieBanner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
}

@media (max-width: 767px) {
    #cookieBanner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
}

/* =========================================
   29. COMPLETE MOBILE OPTIMIZATION
   ========================================= */

/* Mobile General */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
}

/* Mobile Hero Section */
@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .gradient-text {
        display: block;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .hero-buttons .btn-outline-light {
        background: rgba(255,255,255,0.1);
    }
    
    .hero-stats {
        margin-top: 2rem !important;
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.25rem;
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .stat-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .stat-value-wrapper {
        justify-content: flex-start;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-suffix {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .hero-wave svg {
        height: 50px;
    }
}

/* Mobile Navbar */
@media (max-width: 767px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand i {
        font-size: 1.25rem;
    }
    
    .btn-cita {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-color);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: var(--light-color);
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
    }
}

/* Mobile Services */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .service-detail-section {
        padding: 2rem 0;
    }
    
    .service-detail-title {
        font-size: 1.25rem;
    }
}

/* Mobile About */
@media (max-width: 767px) {
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .about-subtitle {
        font-size: 0.85rem;
    }
    
    .about-feature {
        padding: 0.75rem;
    }
    
    .about-feature i {
        font-size: 1.5rem;
    }
}

/* Mobile Team */
@media (max-width: 767px) {
    .team-card {
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .team-card .card-body {
        padding: 1.25rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 767px) {
    .testimonial-card {
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-author {
        font-size: 0.95rem;
    }
}

/* Mobile Contact */
@media (max-width: 767px) {
    .contact-info-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info-card h4 {
        font-size: 1.1rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-text h6 {
        font-size: 0.85rem;
    }
    
    .contact-text p {
        font-size: 0.8rem;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .map-wrapper iframe {
        height: 250px;
    }
    
    .map-overlay-info {
        bottom: 10px;
        left: 10px;
    }
    
    .map-overlay-info .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Mobile Footer */
@media (max-width: 767px) {
    .footer-section {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-widget {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-widget h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-about p {
        font-size: 0.85rem;
    }
    
    .footer-links li {
        padding: 0.35rem 0;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-schedule li {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .footer-phone {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-bottom .row {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-legal a {
        font-size: 0.75rem;
    }
}

/* Mobile Floating Buttons - FIXED */
@media (max-width: 767px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
        z-index: 998;
    }
    
    .phone-float {
        bottom: 90px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        z-index: 1000;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        z-index: 1000;
    }
    
    .phone-tooltip,
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-item {
        padding: 0.875rem 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .phone-float,
    .whatsapp-float {
        width: 48px;
        height: 48px;
    }
    
    .phone-float {
        right: 12px;
        bottom: 85px;
    }
    
    .whatsapp-float {
        right: 12px;
        bottom: 18px;
    }
}

/* Cookie Banner Mobile */
@media (max-width: 767px) {
    #cookieBanner {
        padding: 0.875rem;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0));
    }
    
    .cookie-banner-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .cookie-banner-buttons .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
}

/* Modal Mobile */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .legal-modal-content {
        font-size: 0.85rem;
    }
    
    .legal-modal-content h6 {
        font-size: 0.95rem;
    }
}

/* CTA Section Mobile */
@media (max-width: 767px) {
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    @media (max-width: 767px) {
        .whatsapp-float,
        .phone-float {
            right: max(15px, env(safe-area-inset-right, 0));
        }
        
        .back-to-top {
            left: max(20px, env(safe-area-inset-left, 0));
        }
        
        #cookieBanner {
            padding-bottom: max(0.875rem, env(safe-area-inset-bottom, 0));
        }
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 40px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-item {
        max-width: 45%;
        flex: 1 1 45%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .phone-float:hover,
    .whatsapp-float:hover,
    .back-to-top:hover {
        transform: none;
    }
    
    .phone-float:active,
    .whatsapp-float:active,
    .back-to-top:active {
        transform: scale(0.95);
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: translateY(-3px);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* =========================================
   CUSTOM REAL PHOTO STYLES
   ========================================= */

/* Navbar logo */
.navbar-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1);
}

.navbar.scrolled .navbar-logo {
    filter: brightness(1);
}

/* Hero doctor photo */
.hero-doctor-img {
    width: 100%;
    max-width: 420px;
    height: 520px;
    object-fit: cover;
    object-position: center 62%;
    border-radius: var(--radius-2xl);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-xl), 0 0 0 6px rgba(34, 165, 179, 0.15);
}

/* About section - main image */
.about-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    display: block;
    box-shadow: var(--shadow-xl);
}

/* About section - secondary image (tecnología) */
.about-secondary-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

/* Team photo */
.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

/* Service detail real images */
.service-real-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    display: block;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
}

/* Clinic facade image */
.clinic-facade-wrapper {
    text-align: center;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.clinic-facade-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-2xl);
    display: block;
}

/* Footer logo */
.footer-logo-wrapper {
    display: inline-block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

/* =========================================
   30. MEJORAS MÓVIL v2
   ========================================= */

/* Hero: foto doctora compacta en móvil */
@media (max-width: 767px) {
    .hero-doctor-img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1.15;
        margin: 0 auto 1.5rem;
    }
    .hero-image-wrapper {
        margin-bottom: 0;
    }
    .floating-card {
        display: none;
    }
    .hero-image-card {
        padding: 0;
        background: none;
        box-shadow: none;
    }
}

/* Servicios overview: 2 columnas en móvil */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .service-card {
        padding: 1rem 0.875rem;
        text-align: center;
    }
    .service-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0.5rem;
    }
    .service-icon i {
        font-size: 1.1rem;
    }
    .service-card h4 {
        font-size: 0.875rem;
        margin-bottom: 0.2rem;
    }
    .service-card p {
        display: none;
    }
    .service-link {
        font-size: 0.78rem;
    }
}

/* Secciones de detalle de servicio: compactas en móvil */
@media (max-width: 767px) {
    .service-detail {
        padding: 2.25rem 0;
    }
    .service-real-img {
        aspect-ratio: 16/9;
        max-width: 100%;
        margin-bottom: 1.25rem;
    }
    .service-detail-content {
        padding: 0;
    }
    .service-detail-content > p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
    .service-detail-content .section-title {
        font-size: 1.3rem;
    }
    /* Ocultar bloques secundarios en móvil */
    .process-steps,
    .two-column-content,
    .types-cards,
    .implant-info,
    .orthodontic-options,
    .reasons-grid,
    .services-grid-small,
    .alert-box {
        display: none;
    }
    /* Lista de beneficios compacta */
    .benefits-list {
        margin-top: 0.75rem;
        padding: 0.875rem 1rem;
    }
    .benefits-list h5 {
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
    }
    .benefits-list ul {
        padding-left: 0.5rem;
    }
    .benefits-list ul li {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    /* Etiquetas de corrección compactas */
    .correction-list {
        margin-top: 0.75rem;
    }
    .correction-tags {
        gap: 0.4rem;
    }
    .tag {
        font-size: 0.72rem;
        padding: 0.2rem 0.6rem;
    }
    /* Periodontal treatments list compacta */
    .periodontal-treatments {
        display: none;
    }
}

/* Director card compacta en móvil */
@media (max-width: 767px) {
    .director-card {
        flex-direction: column;
        padding: 0;
        gap: 0;
        align-items: stretch;
        border-radius: 1.25rem;
        overflow: hidden;
    }
    .director-photo-col {
        width: 100%;
        flex-shrink: 0;
        background: none;
    }
    .director-photo-frame {
        width: 100%;
        height: 240px;
        min-height: 0;
        border-radius: 0;
    }
    .director-photo {
        width: 100%;
        height: 240px;
        object-fit: cover;
        object-position: center 10%;
        border-radius: 0;
    }
    .director-crown-badge {
        width: 40px;
        height: 40px;
        top: 0.875rem;
        right: 0.875rem;
        font-size: 0.85rem;
    }
    .director-exp-badge {
        position: absolute;
        bottom: 0.75rem;
        left: 0.875rem;
        top: auto;
        right: auto;
        transform: none;
        padding: 0.4rem 0.75rem;
    }
    .director-info-col {
        width: 100%;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .director-name {
        font-size: 1.15rem;
    }
    .director-subtitle {
        font-size: 0.8rem;
    }
    .director-specs-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.375rem;
        margin: 0.75rem 0;
    }
    .spec-pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    .director-description {
        font-size: 0.83rem;
        line-height: 1.6;
    }
    .director-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }
}

/* Staff cards en móvil: 2 columnas */
@media (max-width: 767px) {
    .row.g-4 .col-md-6 {
        padding: 0.375rem;
    }
    .staff-card {
        padding: 1rem;
    }
    .staff-avatar {
        width: 52px;
        height: 52px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .staff-info h5 {
        font-size: 0.85rem;
    }
    .staff-role {
        font-size: 0.75rem !important;
    }
    .staff-desc {
        font-size: 0.75rem;
        display: none;
    }
    .staff-icon-row {
        font-size: 0.72rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}

/* Footer móvil: más compacto */
@media (max-width: 767px) {
    .footer-top {
        padding: 1.5rem 0 1rem;
    }
    .footer-widget {
        margin-bottom: 0.875rem;
    }
    .footer-widget > p {
        font-size: 0.78rem;
        line-height: 1.5;
    }
    .footer-logo-wrapper {
        padding: 4px 8px;
        margin-bottom: 0.5rem;
    }
    .footer-logo-img {
        height: 32px;
    }
    .footer-social {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .footer-social a {
        font-size: 1.2rem;
    }
    .footer-widget h5 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    .footer-links li,
    .footer-schedule li {
        padding: 0.2rem 0;
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.1rem;
    }
    .footer-links a {
        font-size: 0.75rem;
    }
    .footer-phone {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
    .footer-bottom {
        padding: 0.75rem 0 0.5rem;
    }
    .footer-bottom p {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-legal li a {
        font-size: 0.65rem;
    }
}

/* =========================================
   32. EXTRA SMALL DEVICES (bajo 375px)
   ========================================= */
@media (max-width: 375px) {
    .hero-doctor-img {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1/1.2;
    }
}

/* =========================================
   31. HERO: 1ª CONSULTA GRATIS BADGE
   ========================================= */
.hero-free-consult {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(34,165,179,0.20), rgba(34,165,179,0.08));
    border: 1.5px solid rgba(34,165,179,0.6);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    margin-top: 1.25rem;
    color: #fff;
    font-size: 0.95rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: pulseBorder 2.5s ease-in-out infinite;
    max-width: fit-content;
}

.hero-free-consult i {
    font-size: 1.2rem;
    color: #5edce8;
    flex-shrink: 0;
}

.hero-free-consult strong {
    color: #fff;
    font-weight: 700;
}

@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,165,179,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(34,165,179,0); }
}

@media (max-width: 767px) {
    .hero-free-consult {
        font-size: 0.85rem;
        padding: 0.6rem 1.1rem;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        margin-top: 0.875rem;
    }
    .hero-free-consult i {
        font-size: 1.05rem;
    }
}
