/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Colors matching official Hospital de los Valles branding */
    --primary-color: #004882;     /* Official HDLV Dark Blue */
    --secondary-color: #008a90;   /* Official HDLV Teal/Green */
    --accent-color: #f39200;      /* Official HDLV Orange/Gold */
    --accent-hover: #d88100;
    --text-main: #1a2b3c;
    --text-light: #5a6e7f;
    --bg-light: #f5f8fa;          /* Crisp Medical Grey/Blue */
    --bg-white: #ffffff;
    --whatsapp-color: #25d366;
    
    /* Dynamic Theme Variables */
    --theme-bg-body: var(--bg-white);
    --theme-bg-light: var(--bg-light);
    --theme-bg-card: var(--bg-white);
    --theme-card-border: rgba(11, 37, 69, 0.03);
    --theme-navbar-bg: rgba(255, 255, 255, 0.85);
    --theme-navbar-border: rgba(255, 255, 255, 0.4);
    --theme-navbar-scrolled-bg: rgba(255, 255, 255, 0.95);
    --theme-navbar-scrolled-border: rgba(11, 37, 69, 0.05);
    --theme-number-color: rgba(11, 37, 69, 0.06);
    --theme-icon-bg: rgba(19, 64, 116, 0.06);
    --theme-icon-bg-alt: rgba(0, 180, 216, 0.05);
    --theme-doctor-border: rgba(0, 72, 130, 0.05);
    --theme-modal-bg: var(--bg-white);
    --theme-hero-overlay: linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.9) 40%, rgba(255,255,255,0.3) 100%);
    --theme-hero-overlay-mobile: rgba(255, 255, 255, 0.93);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Layout & Borders */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 4px 6px rgba(11, 37, 69, 0.05);
    --shadow-md: 0 10px 25px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.12);
}

body.dark-mode {
    --primary-color: #38bdf8;     /* Light Sky Blue for readability */
    --secondary-color: #2dd4bf;   /* Light Teal for readability */
    --accent-color: #fb923c;      /* Orange for readability */
    --accent-hover: #f97316;
    --text-main: #f8fafc;
    --text-light: #94a3b8;
    --bg-light: #0f172a;          /* Slate 900 */
    --bg-white: #1e293b;          /* Slate 800 */
    
    --theme-bg-body: #0b0f19;     /* Deep slate-black */
    --theme-bg-light: #0f172a;    /* Slate 900 */
    --theme-bg-card: #1e293b;     /* Slate 800 */
    --theme-card-border: rgba(255, 255, 255, 0.08);
    --theme-navbar-bg: rgba(11, 15, 25, 0.85);
    --theme-navbar-border: rgba(255, 255, 255, 0.08);
    --theme-navbar-scrolled-bg: rgba(11, 15, 25, 0.95);
    --theme-navbar-scrolled-border: rgba(255, 255, 255, 0.05);
    --theme-number-color: rgba(255, 255, 255, 0.05);
    --theme-icon-bg: rgba(255, 255, 255, 0.08);
    --theme-icon-bg-alt: rgba(56, 189, 248, 0.08);
    --theme-doctor-border: rgba(255, 255, 255, 0.08);
    --theme-modal-bg: #1e293b;
    --theme-hero-overlay: linear-gradient(90deg, rgba(11, 15, 25, 0.98) 0%, rgba(11, 15, 25, 0.9) 40%, rgba(11, 15, 25, 0.3) 100%);
    --theme-hero-overlay-mobile: rgba(11, 15, 25, 0.93);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* =========================================
   BASE STYLES & RESET
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--theme-bg-body);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--theme-bg-light);
    transition: background-color 0.3s ease;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

.highlight {
    color: var(--secondary-color);
    background: linear-gradient(120deg, var(--secondary-color) 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 60px;
}

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

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 10px;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(19, 64, 116, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 37, 69, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* =========================================
   NAVIGATION (GLASSMORPHISM)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: var(--theme-navbar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--theme-navbar-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    background: var(--theme-navbar-scrolled-bg);
    border-bottom-color: var(--theme-navbar-scrolled-border);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--theme-navbar-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 0;
}

.theme-toggle-btn:hover {
    background: rgba(0, 180, 216, 0.08);
    color: var(--secondary-color);
    transform: scale(1.05);
}

body.dark-mode .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo i {
    color: var(--accent-color);
    font-size: 2.2rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
}

.logo-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover {
    color: var(--accent-color);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background-image: url('assets/images/operacion_primer_plano.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(0, 180, 216, 0.08);
    color: #0077b6;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 180, 216, 0.15);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================================
   US SECTION (HDLV INFRASTRUCTURE)
   ========================================= */
.us-container {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.us-image-wrapper {
    position: relative;
}

.us-image {
    width: 100%;
    max-height: 480px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.us-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--theme-bg-card);
    padding: 24px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--theme-card-border);
    border-left: 5px solid var(--accent-color);
}

.us-badge i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.us-badge span {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.us-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 35px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: rgba(0, 180, 216, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.4rem;
}

.feature-item h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   PROCESS SECTION (PHASES)
   ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.process-card {
    background: var(--theme-bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--theme-card-border);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 180, 216, 0.25);
}

.process-number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--theme-number-color);
    line-height: 1;
}

.process-icon {
    width: 64px;
    height: 64px;
    background: var(--theme-icon-bg);
    color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 28px;
    transition: var(--transition);
}

.process-card:hover .process-icon {
    background: var(--secondary-color);
    color: white;
}

.process-card h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.process-card p {
    font-size: 0.95rem;
    margin: 0;
}

.highlight-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.highlight-card h3 {
    color: white;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.85);
}

.highlight-card .process-icon {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

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

.highlight-card .process-number {
    color: rgba(255, 255, 255, 0.08);
}

/* =========================================
   COMMITTEE SECTION
   ========================================= */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.committee-card {
    background: var(--theme-bg-card);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--theme-card-border);
    text-align: center;
    transition: var(--transition);
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 180, 216, 0.25);
}

.committee-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    background: var(--theme-icon-bg-alt);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.committee-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.committee-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   FAQs SECTION (ACCORDION)
   ========================================= */
.faq-search-container {
    max-width: 600px;
    margin: -30px auto 45px auto;
    position: relative;
    z-index: 10;
}

.faq-search-input-wrapper {
    position: relative;
    width: 100%;
}

.faq-search-input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    border-radius: 50px;
    border: 1px solid var(--theme-card-border);
    background: var(--theme-bg-card);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.faq-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-search-input:focus + .faq-search-icon {
    color: var(--secondary-color);
}

.faqs-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--theme-bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--theme-card-border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
}

.faq-answer p {
    padding-bottom: 24px;
    margin: 0;
    font-size: 0.98rem;
}

/* Active FAQ State */
.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 180, 216, 0.25);
}

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

/* =========================================
   CONTACT & LOCATION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: var(--theme-bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--theme-card-border);
    transition: var(--transition);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.whatsapp-card:hover {
    border-color: var(--whatsapp-color);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.12);
    transform: translateX(4px);
}

.whatsapp-card i {
    font-size: 2.2rem;
    color: var(--whatsapp-color);
}

.phone-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.contact-method-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.contact-method-card span {
    font-size: 0.95rem;
    color: var(--text-light);
}

.locations-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.locations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-item i {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.location-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.location-item p {
    font-size: 0.95rem;
    margin: 0;
}

.contact-map-box {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(11, 37, 69, 0.05);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #0b132b;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-flex;
}

.footer-brand p {
    color: #8da9c4;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer h4 {
    font-size: 1.15rem;
    margin-bottom: 25px;
    color: white;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8da9c4;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.footer-contact p {
    color: #8da9c4;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 16px;
}

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

.footer-contact a:hover {
    color: var(--accent-color);
}

/* =========================================
   SOCIAL MEDIA ICONS
   ========================================= */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #8da9c4;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 146, 0, 0.3);
}

.social-icon[aria-label="Facebook"]:hover {
    background-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.35);
}

.social-icon[aria-label="Instagram"]:hover {
    background-color: #e1306c;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.35);
}

.social-icon[aria-label="WhatsApp"]:hover {
    background-color: var(--whatsapp-color);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(141, 169, 196, 0.1);
    color: #6a8296;
    font-size: 0.88rem;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-whatsapp:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

.reveal .process-card,
.reveal .committee-card,
.reveal .faq-item,
.reveal .contact-method-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero {
        text-align: center;
        background-position: 70%;
    }
    
    .hero-overlay {
        background: var(--theme-hero-overlay-mobile);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .us-container, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .us-image-wrapper {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .us-badge {
        right: 0;
        bottom: -15px;
        padding: 16px 24px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        font-size: 1.1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* =========================================
   DOCTOR SELECTOR MODAL
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 72, 130, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--theme-modal-bg);
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--theme-card-border);
}

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

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    background: none; border: none;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

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

.modal h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.modal > p {
    text-align: center;
    margin-bottom: 35px;
    color: var(--text-light);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.doctor-card-select {
    background: var(--theme-doctor-card-bg);
    padding: 30px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--theme-doctor-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.doctor-card-select:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--theme-bg-card);
    border-color: rgba(0, 138, 144, 0.25);
}

.doctor-card-actions {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doctor-card-sub-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.doctor-card-sub-actions .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.82rem;
    border-radius: 8px;
    gap: 6px;
    font-weight: 500;
}

.btn-whatsapp-card {
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-card:hover {
    background-color: #20ba5a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.doc-icon {
    width: 60px; height: 60px;
    background: var(--theme-icon-bg-alt);
    color: var(--secondary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.doctor-card-select h4 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.doctor-card-select p {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 20px;
    min-height: 44px;
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .modal-content {
        padding: 40px 20px 30px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* =========================================
   DONATION PROMO SECTION
   ========================================= */
.donation-promo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.donation-promo-section strong {
    color: #ffffff;
}

.donation-promo-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.donation-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.donation-text h2.section-title {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.donation-text .section-subtitle {
    color: var(--accent-color);
}

.donation-text > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.donation-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.donation-point-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.donation-point-item i {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.donation-point-item h4 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 5px;
}

.donation-point-item p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
}

.donation-card-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.donation-card-box i.main-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.donation-card-box h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.donation-card-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 25px;
}

.donation-card-box .btn-white {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.donation-card-box .btn-white:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .donation-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .donation-text h2.section-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   ICON MICRO-ANIMATIONS (ON CARD HOVER)
   ========================================= */

/* Committee Cards Animations */
@keyframes scissor-cut {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(-12deg) scale(0.95); }
    70% { transform: rotate(8deg) scale(1.05); }
}

@keyframes heart-pulse-custom {
    0%, 100% { transform: scale(1); }
    20% { transform: scale(1.15); }
    40% { transform: scale(1.05); }
    65% { transform: scale(1.2); }
    80% { transform: scale(1); }
}

@keyframes doc-nod {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes brain-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

@keyframes clipboard-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-3deg); }
    75% { transform: translateY(-3px) rotate(3deg); }
}

@keyframes microscope-adjust {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.06); }
}

/* Apply on card hover */
.committee-card:hover .fa-user-doctor {
    animation: doc-nod 1.2s ease-in-out infinite;
}

.committee-card:hover .fa-scissors {
    animation: scissor-cut 0.8s ease-in-out infinite;
}

.committee-card:hover .fa-heart-pulse {
    animation: heart-pulse-custom 0.9s ease-in-out infinite;
}

.committee-card:hover .fa-brain {
    animation: brain-pulse 1.4s ease-in-out infinite;
}

.committee-card:hover .fa-clipboard-list {
    animation: clipboard-wiggle 1s ease-in-out infinite;
}

.committee-card:hover .fa-microscope {
    animation: microscope-adjust 1.2s ease-in-out infinite;
}

/* Process Cards Animations */
@keyframes steth-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

@keyframes kit-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shield-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.process-card:hover .fa-stethoscope {
    animation: steth-wobble 1s ease-in-out infinite;
}

.process-card:hover .fa-heart-circle-check {
    animation: heart-pulse-custom 1s ease-in-out infinite;
}

.process-card:hover .fa-kit-medical {
    animation: kit-bounce 1.2s ease-in-out infinite;
}

.process-card:hover .fa-shield-virus {
    animation: shield-pulse 1.2s ease-in-out infinite;
}
