:root {


    --primary-dark: #003366;

    --primary: #418FDE;

    --primary-light: #f0f7ff;

    --accent: #FFB300;


    --text-main: #1a1a1a;
    --text-body: #4a5568;
    --text-light: #718096;

    --white: #ffffff;
    --off-white: #fafafa;
    --border-light: #e2e8f0;


    --container-width: 1280px;
    --header-height: 80px;
    --topbar-height: 40px;


    --font-heading: 'Montserrat', sans-serif;

    --font-body: 'Open Sans', sans-serif;



    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 40px rgba(0, 51, 102, 0.15);

    --radius-lg: 16px;
}

/* --- Dark Mode Variables --- */
body.dark-mode {
    --primary-dark: #64B5F6 !important;
    --primary: #418FDE !important;
    --primary-light: #1e293b !important;

    --text-main: #f1f5f9 !important;
    --text-body: #cbd5e1 !important;
    --text-light: #94a3b8 !important;

    --white: #0f172a !important;
    --off-white: #1e293b !important;
    --border-light: #334155 !important;

    background-color: var(--off-white) !important;
    color: var(--text-main) !important;
}

/* Force override for elements that might have hardcoded inline styles */
body.dark-mode .booking-card,
body.dark-mode .sidebar-card,
body.dark-mode .appointment-card,
body.dark-mode .auth-card,
body.dark-mode div[style*="background: white"],
body.dark-mode div[style*="background:white"] {
    background-color: var(--white) !important;
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode span[style*="color: var(--primary-dark)"],
body.dark-mode p[style*="color: var(--primary-dark)"],
body.dark-mode h2[style*="color: var(--primary-dark)"] {
    color: var(--text-main) !important;
}

body.dark-mode .header {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

body.dark-mode .form-control {
    background-color: var(--off-white) !important;
    color: var(--text-main) !important;
    border-color: var(--border-light) !important;
}

/* --- Home Sections Dark Mode Overrides --- */
body.dark-mode .about-custom-section {
    background: var(--off-white) !important;
}

body.dark-mode .feature-card-mini {
    background: var(--white) !important;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .about-custom-images div[style*="background: white"],
body.dark-mode .about-custom-images div[style*="background:white"] {
    background: var(--white) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .about-custom-images img[style*="border: 7px solid white"],
body.dark-mode .about-custom-images img[style*="border:7px solid white"] {
    border-color: var(--white) !important;
}

body.dark-mode .service-card {
    background: var(--white) !important;
}

body.dark-mode .service-icon-box {
    background-color: rgba(65, 143, 222, 0.2) !important;
}

body.dark-mode .service-card:hover .service-icon-box {
    background-color: var(--primary) !important;
}

/* --- ARS Section --- */
.ars-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.ars-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    opacity: 0.7;
    filter: grayscale(1);
    transition: 0.3s;
}

.ars-grid.sliding-ars {
    width: max-content;
    animation: scrollArs 30s linear infinite;
    justify-content: flex-start;
}

.ars-grid.sliding-ars:hover {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(calc(-50% - 20px));
        /* Half + gap compensation */
    }
}

.ars-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.ars-logo {
    height: 60px;
    width: 140px;
    object-fit: contain;
}

/* --- Team Section --- */
#equipo {
    position: relative;
    clip-path: inset(0 0 0 0); /* Crucial for containing the fixed background */
    background-color: transparent;
}

/* 1. Static background inside the clipped section */
#equipo::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('../img/medical-bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 500px;
    z-index: -2;
    pointer-events: none;
}

/* 2. Semi-transparent overlay to ensure clarity */
#equipo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.4); 
    z-index: -1;
    pointer-events: none;
}

#equipo .container {
    position: relative;
    z-index: 1;
}

body.dark-mode #equipo::before {
    background-image: url('../img/medical-bg.png');
}

body.dark-mode #equipo::after {
    background: rgba(15, 23, 42, 0.6); 
}

.team-wrapper {
    width: 100%;
    padding: 40px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    justify-items: center; /* Ensures items are centered in their columns */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-card-premium {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px; /* Slightly larger for 4 cards */
    height: 100%; /* Force equal height */
    margin: 0 auto;
}

/* Adjust Rosalba's photo alignment and scale specifically to match the other doctors */
.team-card-premium img[src*="doctor1.png"] {
    object-position: center 10%; 
    transform: scale(1.4) !important; /* Base scale - slightly less zoomed in */
    transform-origin: center 10%;
    transition: transform 0.6s ease;
}

.team-card-premium:hover img[src*="doctor1.png"] {
    transform: scale(1.5) !important; /* Zooms IN on hover */
}

.team-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(65, 143, 222, 0.1);
}

.team-img-box-premium {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square */
    overflow: hidden;
    background: #f8fafc;
}

.team-img-box-premium img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transform: scale(1.02); /* Hide edge artifacts like black lines */
    transition: transform 0.6s ease;
}

.team-card-premium:hover .team-img-box-premium img {
    transform: scale(1.10);
}

.team-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 2;
}

.team-info-premium {
    padding: 18px; /* Restored padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.team-info-premium h4 {
    font-size: 1.05rem; /* Slightly larger typography */
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-weight: 800;
}

.team-role {
    color: var(--primary);
    font-size: 0.75rem; /* Smaller role text */
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    display: block;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.skill-chip {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 8px; /* Compact chips */
    border-radius: 4px;
    font-size: 0.6rem; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.skill-chip span {
    font-size: 14px;
}

body.dark-mode .team-card-premium {
    background: var(--white);
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .team-info-premium {
    background: var(--white);
}

body.dark-mode .team-badge {
    background: rgba(30, 41, 59, 0.8);
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-toggle {
    transition: transform 0.3s ease;
}

/* --- Floating CTA Mobile --- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
        bottom: 80px;
        /* Above bottom nav */
    }
}

.mobile-cta-btn {
    background: var(--primary);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(65, 143, 222, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

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

/* Dark Mode Overrides for new sections */
body.dark-mode .ars-section {
    background: var(--white);
}

body.dark-mode .ars-grid {
    filter: grayscale(1) invert(0.8);
}

body.dark-mode .ars-grid:hover {
    filter: grayscale(0) invert(0);
}

body.dark-mode .team-card,
body.dark-mode .faq-item {
    background: var(--white);
    border-color: var(--border-light);
}

body.dark-mode .faq-question {
    color: var(--text-main);
}






* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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


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

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

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

.bg-light {
    background-color: var(--primary-light);
}

.bg-dark {
    background-color: var(--primary-dark);
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);

    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(65, 143, 222, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Animated Login Button --- */
.login-btn-animated {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f7ff; 
    color: var(--primary-dark); 
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.login-btn-animated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background-color: var(--primary); 
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn-animated:hover::before {
    width: 100%;
}

.login-btn-animated:hover {
    color: var(--white);
}

.login-btn-animated .material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.login-btn-animated:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.top-bar {
    height: var(--topbar-height);
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.top-info {
    display: flex;
    gap: 24px;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}


.header {
    height: var(--header-height);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    /* Increased width */
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.logo .desktop-logo {
    display: block;
}

.logo .mobile-logo {
    display: none;
}

@media (max-width: 992px) {
    .logo .desktop-logo {
        display: none;
    }
    .logo .mobile-logo {
        display: block !important;
    }
}

.logo-footer {
    height: 60px;
}

.nav-list {
    display: flex;
    gap: 45px;
}

.centered-nav {
    margin: 0 auto;
    /* Centers the list within the nav */
}

.nav {
    flex: 1;
    /* Takes up remaining space to allow centering */
    display: flex;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-separator {
    width: 1px;
    height: 32px;
    background-color: #e5e7eb;
    /* Light gray border */
    margin: 0 5px;
}



.nav-list a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    /* Prevent wrapping */
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}


.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-list a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
}



.hero {
    position: relative;
    padding: 80px 0 100px;
    background-color: var(--off-white);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 650px;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: var(--primary-light);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}


.hero-images {
    position: relative;
    height: 500px;
}

.hero-main-img {
    width: 90%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-left: auto;
}

.schedule-widget {
    position: absolute;
    bottom: 40px;
    left: 0;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    width: 320px;
    border-left: 5px solid var(--primary);
    animation: slideUp 0.8s ease-out;
}

.schedule-widget h4 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-body);
}


.features-strip {
    background: var(--primary-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--white);
    font-size: 1.1rem;
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}


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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary);
    border-left: 5px solid var(--primary);
    z-index: -1;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.about-content p {
    margin-bottom: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

.check-list li span {
    color: var(--primary);
}



.services-section {
    background-color: var(--off-white);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 32px;
    transition: all 0.3s;
}

.service-card:hover .service-icon-box {
    background-color: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-body);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.service-link:hover {
    gap: 10px;
}


.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #002244 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}


.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    transform: rotate(30deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.identity-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.identity-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.icon-identity {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.identity-item:hover .icon-identity {
    transform: scale(1.1) rotate(5deg);
    color: var(--white);
}

.identity-item h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}

.identity-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contact-info-panel {
    background: var(--primary-dark);
    padding: 60px 40px;
    color: var(--white);
}

.contact-info-panel h3 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.contact-info-panel p {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-row span {
    color: var(--primary);
    font-size: 24px;
}

.contact-form-panel {
    padding: 60px;
}

.form-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

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

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}


.footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 12px;
}

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

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid #1f2937;
    padding-top: 30px;
    text-align: center;
}


.service-modal {
    display: none;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero::before {
        width: 100%;
        height: 30%;
        top: auto;
        bottom: 0;
        clip-path: none;
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-images {
        display: none;
    }


    .about-section {
        grid-template-columns: 1fr;
    }

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

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

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .top-bar {
        display: none;
    }

    /* --- MOBILE APP SHELL --- */
    body {
        overflow-x: hidden;
        background-color: var(--white);
        /* Ensure solid base */
        overscroll-behavior-y: none;
        /* Prevent pull-to-refresh if not needed */
    }

    #app-main {
        display: flex;
        width: 300vw;
        height: calc(100vh - 70px);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        position: fixed;
        top: 70px;
        left: 0;
        overflow: hidden;
        background-color: var(--white);
        opacity: 1;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }

    #app-main.switching {
        opacity: 0.95;
    }

    .app-view {
        width: 100vw;
        flex: 0 0 100vw;
        max-width: 100vw;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 90px;
        background-color: var(--white);
        position: relative;
    }

    .header {
        position: fixed;
        width: 100%;
        height: 60px;
        z-index: 1000;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-btn {
        display: none;
        /* Hide old hamburger menu */
    }

    /* Adjust sections for mobile view compatibility */
    .section {
        padding: 60px 0;
    }

    /* Modal for Services */
    .service-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 2000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        display: flex;
        flex-direction: column;
    }

    .service-modal.active {
        transform: translateY(0);
    }

    .modal-header {
        height: 60px;
        background: var(--white);
        display: flex;
        align-items: center;
        padding: 0 15px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .modal-back-btn {
        background: none;
        border: none;
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-dark);
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .modal-content {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 40px;
    }



    /* Specific View Backgrounds */
    #view-services {
        background-color: var(--off-white);
    }
}

/* Close @media (max-width: 992px) */

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

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

.reveal {
    animation: slideUp 0.8s ease-out forwards;
}

/* Contact Social Links */
.social-link {
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 1;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* --- Mobile Web App Styles --- */

/* Bottom Navigation - Hidden on Desktop */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1005;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    width: 100%;
    height: 100%;
    gap: 4px;
    transition: all 0.3s ease;
}

.nav-item span.material-symbols-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active span.material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    /* Show Bottom Nav */
    .bottom-nav {
        display: flex;
    }

    /* Adjust Body Padding so content isn't hidden behind nav */
    body {
        padding-bottom: 80px;
    }

    /* Hide Top Bar & Standard Header Nav Elements */
    .top-bar {
        display: none !important;
    }

    .header {
        height: 70px;
        box-shadow: none;
        border-bottom: 1px solid var(--border-light);
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 50px;
    }

    /* Hide default mobile menu button (Hamburger) unless we want it for "More" */
    /* Let's keep it but maybe style it differently or hide it if bottom nav covers all */
    .mobile-menu-btn {
        display: none;
    }

    .desktop-only-group {
        display: none !important;
    }

    .desktop-logo {
        display: none !important;
    }

    .mobile-logo {
        display: block !important;
        max-width: 240px;
        height: auto !important;
        margin: 0 auto;
    }

    .header-container {
        justify-content: center !important;
    }

    /* Force hero-grid to be 1 column and centered on mobile */
    .hero-grid {
        grid-template-columns: 1fr !important;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }


    .header .btn-primary {
        display: none;
        /* Hide "Agendar Cita" button in header, moved to bottom nav */
    }

    /* Adjust WhatsApp Button Position */
    .whatsapp-btn {
        bottom: 80px;
        /* Move up above bottom nav */
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    /* Hero Type Adjustments */
    .hero {
        padding: 120px 0 60px !important;
        min-height: calc(100vh - 130px) !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)),
            url('../img/medical-bg.png') !important;
        background-size: cover !important;
        background-position: center !important;
        overflow: visible !important;
    }

    #view-services section.about-section {
        padding: 50px 0 !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .about-image-col {
        padding-bottom: 20px !important;
        padding-right: 20px !important;
    }

    .about-text-col .section-title h2 {
        font-size: 2rem !important;
    }

    .about-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .hero::before {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hero-content {
        width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }

    /* Disable reveal animations on mobile to prevent layout shifts */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
        animation: none !important;
    }

    .hero-images,
    .hero-images *,
    .schedule-widget {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 0 !important;
        visibility: hidden !important;
    }

    .features-strip {
        margin-top: 0 !important;
        position: relative !important;
        z-index: 10 !important;
        padding: 40px 0 !important;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        color: rgba(255, 255, 255, 0.9);
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
        justify-content: center;
    }

    /* Fix outline button on light mobile background if needed */
    .btn-outline {
        border-color: rgba(255, 255, 255, 0.8) !important;
        color: white !important;
    }

    /* Section Spacing */
    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* --- Detailed Service Pages Styles --- */

.service-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -80px;
    /* Counteract sticky header space if needed, or adjust */
    padding-top: 80px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7);
    /* Overlay */
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInDown 1s ease-out;
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
}

.service-hero .breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-hero .breadcrumbs a:hover {
    color: var(--primary);
}

.service-detail-section {
    padding: 80px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-main-content h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.service-main-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.8;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.highlight-card {
    background: var(--off-white);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

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

.highlight-card h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-card span {
    color: var(--primary);
}

.service-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
}

.service-list-widget ul li {
    margin-bottom: 12px;
}

.service-list-widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-weight: 600;
    transition: all 0.3s;
}

.service-list-widget ul li a:hover,
.service-list-widget ul li a.active {
    background: var(--primary);
    color: var(--white);
    padding-left: 15px;
}

.cta-widget {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.cta-widget h3 {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Animations included in style.css previously (slideUp), adding fadeInDown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@media (max-width: 992px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: relative;
        top: 0;
    }

    .service-hero h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
    }

    .service-hero-content {
        padding: 0 15px;
        /* Ensure padding on small screens */
    }
}

/* --- Authentication Pages --- */
.auth-body {
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

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

.auth-header img {
    height: 60px;
    margin: 0 auto;
}

.auth-header h2 {
    margin-top: 20px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

/* Enhanced Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* --- Testimonials Styles --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary);
}

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

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-light);
    font-variation-settings: 'FILL' 1;
}

.stars {
    color: var(--accent);
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.05rem;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.testimonial-author h5 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background-color: var(--off-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(65, 143, 222, 0.1);
    background-color: white;
}

/* Booking Page Enhancements */
.booking-section {
    position: relative;
    top: 0;
    height: auto;
    padding-top: 100px;
    /* More space for header */
    padding-bottom: 60px;
    background-color: var(--off-white);
    min-height: 100vh;
}

.booking-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    /* Larger radius */
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.specialist-selector {
    max-width: 500px;
    margin: 0 auto 40px;
    text-align: center;
}

.specialist-selector label {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.specialist-selector select {
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid var(--border-light);
}

.specialist-selector select:focus {
    border-color: var(--primary);
}

/* FullCalendar Customization overrides */
.fc .fc-button-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.fc .fc-button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: var(--primary-light);
}

.fc-event {
    cursor: pointer;
    border: none;
    padding: 2px 5px;
    font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #10B981;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-error .toast-icon {
    color: #EF4444;
}


/* --- Modal Styles --- */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    display: flex;
    /* Show when active */
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 600px;
    /* Or whatever width is appropriate */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
}

.modal-header {
    background: var(--white);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-back-btn {
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.modal-back-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-back-btn .material-symbols-outlined {
    font-size: 18px;
}

.modal-back-btn:hover {
    color: var(--primary);
}

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

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

/* --- Modern Login Redesign --- */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--white);
}

.login-visual {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.login-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 87, 131, 0.9), rgba(7, 60, 92, 0.95));
}

.login-visual-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    text-align: center;
}

.login-visual-content img {
    display: block;
    margin: 0 auto 30px;
}

.login-visual-content h1 {
    color: #ffffff !important;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
}

.login-form-box {
    width: 100%;
    max-width: 400px;
}

.modern-input-group {
    position: relative;
    margin-bottom: 25px;
}

.modern-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.modern-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(11, 87, 131, 0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
    pointer-events: none;
}

.modern-input:focus~.input-icon {
    color: var(--primary);
}

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .login-visual {
        display: none;
    }
}


/* --- Logo Styles for SVG --- */
.logo img,
.auth-header img {
    height: 60px;
    width: auto;
    transition: filter 0.3s ease;
}

/* Light background (default): Keep original colors */
/* Dark background (Footer/Login Overlay): Turn white */
.logo-white img,
.footer-logo img,
.login-visual-content img,
.auth-header.dark-logo img {
    filter: brightness(0) invert(1);
}

/* Specific fix for footer logo size if needed */
.logo-footer {
    max-height: 80px;
}

/* --- WhatsApp Float Widget --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1fe05a;
}

@keyframes float {
    0% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translatey(0px);
    }

    50% {
        box-shadow: 0 25px 15px 0px rgba(0, 0, 0, 0.2);
        transform: translatey(-10px);
    }

    100% {
        box-shadow: 0 5px 15px 0px rgba(0, 0, 0, 0.6);
        transform: translatey(0px);
    }
}

/* Ensure it stacks properly with mobile CTA */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        /* Moves up above the mobile CTA bar */
        right: 15px;
        width: 50px;
        /* Slightly smaller on mobile */
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* --- Mobile Home Layout Restorations --- */
@media (max-width: 768px) {
    /* Hide top bar and actions to leave only the centered logo */
    .top-bar, .header-actions, .footer {
        display: none !important;
    }
    
    .header-container {
        justify-content: center !important;
        padding: 10px 0;
    }
    
    .logo img {
        height: 50px; /* Reduced further to 50px for proper proportion */
        max-width: 100%;
        object-fit: contain;
    }

    /* Stack Hero buttons */
    .hero-btns {
        flex-direction: column !important;
        width: 100%;
        gap: 15px !important;
        padding: 0 10px;
    }
    
    .hero-btns .btn {
        width: 100%;
        margin: 0;
    }
}

/* --- Login Button Minimalist Redesign --- */
.login-link-minimal {
    position: relative;
    padding: 8px 22px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    background: var(--primary-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
}

.login-link-minimal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.login-link-minimal:hover {
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 143, 222, 0.3);
}

.login-link-minimal:hover::before {
    left: 0;
}

.login-link-minimal span.material-symbols-outlined {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-link-minimal:hover span.material-symbols-outlined {
    transform: translateX(4px) rotate(10deg);
}

/* --- Mascot Greeting --- */
.mascot-container {
    display: none;
    /* Staged for future update */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.mascot-bubble {
    background: white;
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-right-radius: 2px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    max-width: 200px;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    border: 1px solid var(--border-light);
    position: relative;
}

.mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.mascot-container.active .mascot-bubble {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mascot-img-wrapper {
    width: 70px;
    height: 70px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.mascot-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: mascot-float 3s ease-in-out infinite;
}

.mascot-container:hover .mascot-img-wrapper {
    transform: scale(1.1);
}

@keyframes mascot-float {

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

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

@keyframes mascot-wave {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* --- About Custom Responsive Section --- */
.about-custom-section {
    background: #f8fafc;
    padding: 80px 0;
}

.about-custom-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 70px;
    align-items: center;
}

.about-custom-images {
    flex: 1;
    position: relative;
    padding-bottom: 50px;
    padding-right: 50px;
    min-width: 0;
}

.about-custom-content {
    flex: 1;
    min-width: 0;
}

.feature-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card-mini {
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
}

@media (max-width: 991px) {
    .about-custom-section {
        padding: 60px 0;
    }

    .about-custom-grid {
        flex-direction: column;
        gap: 50px;
        padding: 0 20px;
        text-align: center;
    }

    .about-custom-images {
        padding-bottom: 40px;
        padding-right: 40px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .feature-grid-small {
        grid-template-columns: 1fr;
    }

    .about-custom-content h2 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .about-custom-images {
        padding-bottom: 30px;
        padding-right: 30px;
    }
}

/* --- Services Home Visibility Control --- */
@media (min-width: 769px) {
    .service-extra-desktop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ver-mas-desktop {
        display: none !important;
        /* Hide "Ver más" on mobile since all are shown */
    }
}

.mascot-img-wrapper:hover img {
    animation: mascot-wave 0.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .mascot-container {
        bottom: 140px;
        /* Above mobile menu */
        right: 10px;
    }

    .mascot-img-wrapper {
        width: 60px;
        height: 60px;
    }

    #view-services section.about-section {
        padding: 50px 0 !important;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .about-image-col {
        padding-bottom: 20px !important;
        padding-right: 0px !important;
    }

    .about-text-col .section-title h2 {
        font-size: 2rem !important;
    }

    .about-features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
} 
 / *   - - -   W h a t s A p p   F l o a t   W i d g e t   - - -   * /  
 . w h a t s a p p - f l o a t   {  
         p o s i t i o n :   f i x e d ;  
         w i d t h :   6 0 p x ;  
         h e i g h t :   6 0 p x ;  
         b o t t o m :   2 0 p x ;  
         r i g h t :   2 0 p x ;  
         b a c k g r o u n d - c o l o r :   # 2 5 d 3 6 6 ;  
         c o l o r :   # F F F ;  
         b o r d e r - r a d i u s :   5 0 p x ;  
         t e x t - a l i g n :   c e n t e r ;  
         f o n t - s i z e :   3 0 p x ;  
         b o x - s h a d o w :   2 p x   2 p x   3 p x   # 9 9 9 ;  
         z - i n d e x :   1 0 0 0 ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
         a n i m a t i o n :   f l o a t   3 s   e a s e - i n - o u t   i n f i n i t e ;  
 }  
  
 . w h a t s a p p - f l o a t : h o v e r   {  
         t r a n s f o r m :   s c a l e ( 1 . 1 ) ;  
         b a c k g r o u n d - c o l o r :   # 1 f e 0 5 a ;  
 }  
  
 @ k e y f r a m e s   f l o a t   {  
         0 %   {  
                 b o x - s h a d o w :   0   5 p x   1 5 p x   0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 6 ) ;  
                 t r a n s f o r m :   t r a n s l a t e y ( 0 p x ) ;  
         }  
  
         5 0 %   {  
                 b o x - s h a d o w :   0   2 5 p x   1 5 p x   0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 2 ) ;  
                 t r a n s f o r m :   t r a n s l a t e y ( - 1 0 p x ) ;  
         }  
  
         1 0 0 %   {  
                 b o x - s h a d o w :   0   5 p x   1 5 p x   0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 6 ) ;  
                 t r a n s f o r m :   t r a n s l a t e y ( 0 p x ) ;  
         }  
 }  
  
 / *   E n s u r e   i t   s t a c k s   p r o p e r l y   w i t h   m o b i l e   C T A   * /  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . w h a t s a p p - f l o a t   {  
                 b o t t o m :   9 0 p x ;  
                 / *   M o v e s   u p   a b o v e   t h e   m o b i l e   C T A   b a r   * /  
                 r i g h t :   1 5 p x ;  
                 w i d t h :   5 0 p x ;  
                 / *   S l i g h t l y   s m a l l e r   o n   m o b i l e   * /  
                 h e i g h t :   5 0 p x ;  
         }  
  
         . w h a t s a p p - f l o a t   s v g   {  
                 w i d t h :   2 8 p x ;  
                 h e i g h t :   2 8 p x ;  
         }  
 }  
 