/* ============================================ */
/* 1. RESET Y VARIABLES
/* ============================================ */
:root {
    --primary: #2b6cb0;
    --primary-dark: #1a365d;
    --primary-light: #ebf4ff;
    --secondary: #e53e3e;
    --success: #38a169;
    --purple: #805ad5;
    --whatsapp: #25D366;
    
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --text-dark: #1a202c;
    --text-muted: #4a5568;
    --text-light: #a0aec0;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.highlight {
    color: var(--primary);
}

/* ============================================ */
/* 2. PRELOADER
/* ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.preloader-text span {
    color: var(--primary);
}

.preloader-spinner {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.preloader-spinner span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s ease-in-out infinite both;
}

.preloader-spinner span:nth-child(1) { animation-delay: -0.32s; }
.preloader-spinner span:nth-child(2) { animation-delay: -0.16s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================ */
/* 3. NAVBAR
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 28px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================ */
/* 4. HERO
/* ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #f0f4ff 0%, #e8edf5 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(43,108,176,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(43,108,176,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(43,108,176,0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(43,108,176,0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(43,108,176,0.35);
    color: #fff;
}

.btn-primary svg {
    transition: var(--transition);
}
.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: var(--text-dark);
    border: 1px solid rgba(0,0,0,0.08);
}

.btn-secondary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(37,211,102,0.4);
    color: #fff;
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: scale(1.02);
}

.floating-card {
    position: absolute;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.floating-card strong {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.floating-card small {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ============================================ */
/* 5. SECCIONES GENERALES
/* ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(43,108,176,0.08);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ============================================ */
/* 6. ABOUT
/* ============================================ */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.03);
}

.about-text .section-tag {
    margin-bottom: 12px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-certifications {
    margin: 20px 0;
}

.about-certifications h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cert-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.cert-item {
    background: var(--bg-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    height: 60px;
}

.cert-item img {
    max-height: 40px;
    width: auto;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-feature span:first-child {
    font-size: 1.2rem;
}

/* ============================================ */
/* 7. ESPECIALIDADES
/* ============================================ */
.specialties {
    padding: 100px 0;
    background: var(--bg-light);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.specialty-card {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.specialty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.specialty-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialty-icon .emoji-icon {
    font-size: 2.8rem;
}

.specialty-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.specialty-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.specialty-card ul li {
    padding: 5px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.specialty-card ul li:last-child {
    border-bottom: none;
}

.specialty-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* 8. HOSPITALES
/* ============================================ */
.hospitals {
    padding: 100px 0;
    background: var(--bg-white);
}

.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.hospital-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.hospital-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.hospital-card:hover::before {
    opacity: 1;
}

.hospital-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.hospital-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.hospital-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 6px;
}

.hospital-card a {
    color: var(--primary);
    font-weight: 500;
}

.hospital-card .hospital-phone {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.hospital-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-map {
    display: inline-block;
    background: #ea4335;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-map:hover {
    background: #c5221f;
    color: #fff;
    transform: translateY(-2px);
}

.btn-whatsapp-small {
    display: inline-block;
    background: var(--whatsapp);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp-small:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================ */
/* 9. SOCIAL FEED
/* ============================================ */
.social-feed {
    padding: 100px 0;
    background: var(--bg-light);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.social-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-video span {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.social-video p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.social-video small {
    color: var(--text-light);
    font-size: 0.8rem;
}

.social-cta {
    text-align: center;
}

.btn-instagram {
    background: #E4405F;
    color: #fff;
}

.btn-instagram:hover {
    background: #c13584;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(228,64,95,0.3);
}

.btn-tiktok {
    background: #000;
    color: #fff;
}

.btn-tiktok:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
}

.social-cta .btn {
    margin: 5px;
}

/* ============================================ */
/* 10. CONTACTO
/* ============================================ */
.contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 24px;
    margin-bottom: 8px;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary);
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-dark);
}

.contact-phone {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
}

/* Contact Form 7 */
.contact-form-wrapper .wpcf7-form label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-form-wrapper .wpcf7-form input,
.contact-form-wrapper .wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: #fff;
}

.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,108,176,0.1);
}

.contact-form-wrapper .wpcf7-form .wpcf7-submit {
    background: var(--primary);
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.contact-form-wrapper .wpcf7-form .wpcf7-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,108,176,0.3);
}

/* ============================================ */
/* 11. FOOTER
/* ============================================ */
.footer {
    background: var(--text-dark);
    color: #cbd5e0;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.footer-logo span {
    color: var(--primary);
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #a0aec0;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: #a0aec0;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #a0aec0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links ul a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #a0aec0;
}

.footer-contact a {
    color: #a0aec0;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #718096;
}

.footer-credit {
    color: #4a5568;
}

/* ============================================ */
/* 12. BOTONES FLOTANTES
/* ============================================ */
.floating-btn {
    position: fixed;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 1000;
}

.floating-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float {
    bottom: 160px;
    background: var(--whatsapp);
}

.whatsapp-float:hover {
    background: #1da851;
}

.call-float {
    bottom: 90px;
    background: var(--primary);
}

.call-float:hover {
    background: var(--primary-dark);
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(43,108,176,0.3);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================ */
/* 13. RESPONSIVE
/* ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hospitals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(0,0,0,0.04);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .hero-image-wrapper {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .floating-card {
        display: none;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img {
        height: 280px;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-features {
        align-items: center;
    }
    
    .cert-grid {
        justify-content: center;
    }
    
    .specialties {
        padding: 60px 0;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hospitals {
        padding: 60px 0;
    }
    
    .hospitals-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .social-feed {
        padding: 60px 0;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 40px;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .contact-phone {
        font-size: 1.4rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        right: 16px;
    }
    
    .whatsapp-float {
        bottom: 140px;
    }
    
    .call-float {
        bottom: 80px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .specialty-card {
        padding: 20px;
    }
    
    .hospital-card {
        padding: 20px;
    }
    
    .hospital-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-map, .btn-whatsapp-small {
        width: 100%;
        text-align: center;
    }
}