@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

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

:root {
    /* Paleta extraída del logo RedSalus */
    --navy:         #2C3E6B;   /* "Red" + icono */
    --navy-dark:    #1E2D52;
    --navy-light:   #EEF1F8;
    --teal:         #6BBFB5;   /* "Salus" */
    --teal-dark:    #4A9E94;
    --teal-light:   #E8F6F5;
    --teal-xlight:  #F0FAFA;
    --gray-bg:      #F7F8FA;
    --gray-border:  rgba(0,0,0,0.09);
    --gray-mid:     #9CA3AF;
    --text:         #111827;
    --text-muted:   #6B7280;
    --white:        #FFFFFF;
    --danger:       #DC2626;
    --danger-bg:    #FEF2F2;
    --warn-bg:      #FFF7ED;
    --warn-border:  #FDE68A;
    --warn-text:    #92400E;
    --success-bg:   #E8F6F5;
    --success-text: #2C6B67;
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --radius-xl:    20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--gray-bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── NAV ─────────────────────────────────────────── */

.nav {
    background: linear-gradient(135deg, #0B1220 0%, #1E293B 50%, #0F3D3E 100%);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 200;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

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

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    /* El logo tiene fondo blanco; lo encajamos en la nav oscura con un fondo redondeado */
    background: #fff;
    border-radius: 6px;
    padding: 3px 6px;
}

/* Versión sin filtro para fondos claros */
.logo-img-light {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text-fallback {
    color: white;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}
.logo-text-fallback span { color: var(--teal); }

.nav-menu { display: flex; align-items: center; gap: 6px; }

.nav-link {
    color: rgba(255,255,255,0.72);
    font-size: 14px; font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.menu-btn {
    display: none;
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    user-select: none;
    background: none;
    border: none;
    line-height: 1;
    font-family: inherit;
}

/* ── BUTTONS ─────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.15s; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; }

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

.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-dark); color: white; }

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

.btn-outline-dark { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: white; }

.btn-outline-teal { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: white; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--gray-border); }
.btn-ghost:hover { background: var(--gray-bg); color: var(--text); }

.btn-danger { background: var(--danger); color: white; }
.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 16px; }
.btn-xl  { padding: 16px 36px; font-size: 17px; font-weight: 700; }
.btn-block { display: flex; width: 100%; }

/* ── FORMS ───────────────────────────────────────── */

.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--gray-border); border-radius: var(--radius-md);
    font-size: 14px; font-family: inherit; color: var(--text);
    background: white; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-mid); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(107,191,181,0.18);
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); font-size: 12px; margin-top: 5px; }
.form-hint  { color: var(--text-muted); font-size: 12px; margin-top: 5px; }
.form-input.error, .form-select.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* ── CHECKBOX ────────────────────────────────────── */

.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.check-row input[type=checkbox], .check-row input[type=radio] {
    margin-top: 3px; accent-color: var(--teal-dark); flex-shrink: 0; width: 16px; height: 16px;
}
.check-row label { font-size: 13px; color: #374151; line-height: 1.5; cursor: pointer; }

/* ── CARDS ───────────────────────────────────────── */

.card { background: white; border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 1.75rem; }
.card-sm  { padding: 1.25rem; }
.card-xs  { padding: 1rem; }
.card-featured { border-color: var(--teal); border-width: 2px; }

/* ── ALERTS ──────────────────────────────────────── */

.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 1rem; display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(107,191,181,0.35); }
.alert-error   { background: var(--danger-bg);  color: #991B1B; border: 1px solid #FECACA; }
.alert-warning { background: var(--warn-bg);    color: var(--warn-text); border: 1px solid var(--warn-border); }
.alert-info    { background: var(--navy-light); color: var(--navy); border: 1px solid rgba(44,62,107,0.2); }

/* ── BADGES ──────────────────────────────────────── */

.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; line-height: 1.4; }
.badge-pending    { background: #FEF3C7; color: #92400E; }
.badge-waiting    { background: var(--navy-light); color: var(--navy); }
.badge-done       { background: var(--teal-light); color: var(--teal-dark); }
.badge-urgent     { background: var(--danger-bg); color: #991B1B; }
.badge-active     { background: var(--teal-light); color: var(--teal-dark); }
.badge-inactive   { background: #F3F4F6; color: #6B7280; }
.badge-individual { background: var(--navy-light); color: var(--navy); }
.badge-clinic     { background: var(--teal-light); color: var(--teal-dark); }

/* ── TABLES ──────────────────────────────────────── */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--gray-border); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 0.5px solid var(--gray-border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--gray-bg); }

/* ── LAYOUT ──────────────────────────────────────── */

.container      { max-width: 780px;  margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm   { max-width: 520px;  margin: 0 auto; padding: 0 1.5rem; }
.page-wrap      { padding: 2.5rem 0 5rem; }
.divider        { border: none; border-top: 1px solid var(--gray-border); margin: 1.5rem 0; }
.sr-only        { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-card  { background: white; border: 1px solid var(--gray-border); border-radius: var(--radius-md); padding: 1.1rem; text-align: center; }
.stat-num   { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ── LANDING ─────────────────────────────────────── */

.hero {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 45%, var(--teal-dark) 100%);
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 75% at 15% 65%, rgba(107,191,181,0.14) 0%, transparent 55%),
        radial-gradient(ellipse 45% 55% at 88% 25%, rgba(107,191,181,0.08) 0%, transparent 50%);
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero-logo { height: clamp(110px, 20vw, 210px); width: auto; display: block; margin: 0 auto 1.8rem; filter: drop-shadow(0 0 40px rgba(107,191,181,1)) drop-shadow(0 0 80px rgba(107,191,181,0.7)) drop-shadow(0 0 120px rgba(107,191,181,0.4)) drop-shadow(0 10px 30px rgba(0,0,0,0.35)); }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(107,191,181,0.18); border: 1px solid rgba(107,191,181,0.38); color: var(--teal); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 1.6rem; }
.hero h1 { color: white; font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.13; letter-spacing: -0.8px; margin-bottom: 1.1rem; }
.hero h1 span { color: var(--teal); }
.hero-sub { color: rgba(255,255,255,0.68); font-size: clamp(16px, 2vw, 18px); line-height: 1.65; margin-bottom: 2.2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-prof-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.prof-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.8); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }

.stats-bar { background: white; border-bottom: 1px solid var(--gray-border); display: flex; justify-content: center; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; padding: 2rem 1.5rem; }
.stat-bar-item { text-align: center; }
.stat-bar-num   { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.stat-bar-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.section       { padding: 4rem 1.5rem; }
.section-white { background: white; }
.section-teal  { background: var(--teal-xlight); }

.section-tag   { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-dark); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy); letter-spacing: -0.4px; line-height: 1.2; }
.section-sub   { color: var(--text-muted); font-size: 16px; margin-top: 0.6rem; line-height: 1.6; }

.how-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.how-step { background: white; border: 1px solid var(--gray-border); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.how-body p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 640px; margin: 2rem auto 0; }
.plan-card { position: relative; }
.plan-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--teal); color: white; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 10px; white-space: nowrap; letter-spacing: 0.3px; }
.plan-label  { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.plan-price  { font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -1.5px; margin: 8px 0 4px; }
.plan-price span { font-size: 15px; font-weight: 400; color: var(--text-muted); }
.plan-cases  { font-size: 13px; font-weight: 700; color: var(--teal-dark); margin-bottom: 1.25rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 1.5rem; }
.plan-features li { font-size: 13px; color: #374151; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--teal); font-weight: 800; flex-shrink: 0; margin-top: 1px; }

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.trust-item { text-align: center; }
.trust-icon { width: 52px; height: 52px; background: var(--teal-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; font-size: 22px; }
.trust-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.trust-item p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.trust-grid.trust-grid-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin: 2rem auto 0; }
@media(max-width:560px){ .trust-grid.trust-grid-2x2 { grid-template-columns: 1fr; } }

.doctor-card { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.doctor-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal-light); flex-shrink: 0; }
.doctor-photo-placeholder { width: 110px; height: 110px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 36px; color: white; font-weight: 800; flex-shrink: 0; }

.cta-footer { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 45%, var(--teal-dark) 100%); padding: 4.5rem 1.5rem; text-align: center; }
.cta-footer h2 { color: white; font-size: clamp(22px,3vw,30px); font-weight: 800; letter-spacing: -0.4px; margin-bottom: 1rem; }
.cta-footer p  { color: rgba(255,255,255,0.62); font-size: 16px; margin-bottom: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ── CONTACT FORM (landing) ──────────────────────── */

.contact-section { background: var(--teal-xlight); padding: 4rem 1.5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; max-width: 780px; margin: 2rem auto 0; align-items: start; }
.contact-info h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.contact-info p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.contact-detail  { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); font-weight: 500; margin-bottom: 0.6rem; }

/* ── AUTH ────────────────────────────────────────── */

.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: flex-start; justify-content: center; padding: 3rem 1.5rem 5rem; }
.auth-card { width: 100%; max-width: 480px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 22px; font-weight: 800; color: var(--navy); }
.auth-header p  { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

.plan-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.25rem; }
.plan-option { border: 1.5px solid var(--gray-border); border-radius: var(--radius-md); padding: 1rem; cursor: pointer; transition: all 0.15s; text-align: center; }
.plan-option:hover  { border-color: var(--teal); }
.plan-option.active { border-color: var(--teal); background: var(--teal-light); }
.plan-option .po-name  { font-size: 13px; font-weight: 700; color: var(--navy); }
.plan-option .po-price { font-size: 20px; font-weight: 800; color: var(--navy); margin: 4px 0; letter-spacing: -0.5px; }
.plan-option .po-cases { font-size: 12px; color: var(--teal-dark); font-weight: 600; }

.account-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.25rem; }
.type-option { border: 1.5px solid var(--gray-border); border-radius: var(--radius-md); padding: 1rem 0.75rem; cursor: pointer; transition: all 0.15s; }
.type-option:hover  { border-color: var(--teal); }
.type-option.active { border-color: var(--teal); background: var(--teal-light); }
.type-option .to-icon  { font-size: 24px; margin-bottom: 6px; }
.type-option .to-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.type-option .to-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }

/* ── PORTAL ──────────────────────────────────────── */

.portal-header { background: var(--navy); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-bottom: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ph-title { color: white; font-size: 18px; font-weight: 700; }
.ph-sub   { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 3px; }
.ph-pill  { background: rgba(107,191,181,0.22); border: 1px solid rgba(107,191,181,0.4); color: var(--teal); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; white-space: nowrap; }

.tabs { display: flex; gap: 4px; background: white; border: 1px solid var(--gray-border); border-radius: var(--radius-md); padding: 4px; margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn { flex: 1; min-width: max-content; padding: 8px 14px; border: none; background: transparent; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--text-muted); transition: all 0.15s; white-space: nowrap; }
.tab-btn.active { background: var(--navy); color: white; }

.cond-block { background: var(--teal-xlight); border: 1px solid rgba(107,191,181,0.25); border-radius: var(--radius-md); padding: 1.1rem; margin-top: 0.6rem; display: none; }
.cond-block.show { display: block; }

.upload-zone { border: 2px dashed rgba(107,191,181,0.45); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--teal-xlight); }
.upload-zone:hover { border-color: var(--teal); background: var(--teal-light); }
.upload-zone p     { font-size: 13px; color: var(--teal-dark); font-weight: 500; }
.upload-zone small { color: var(--teal-dark); font-size: 11px; }

.urgency-row { display: flex; justify-content: space-between; align-items: center; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-md); padding: 12px 16px; gap: 1rem; flex-wrap: wrap; }
.urg-title { font-size: 14px; font-weight: 700; color: var(--warn-text); }
.urg-sub   { font-size: 12px; color: #B45309; margin-top: 2px; }

.legal-block { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-md); padding: 1rem; margin-bottom: 1.25rem; }

/* Pago / checkout */
.checkout-summary { background: var(--teal-xlight); border: 1px solid rgba(107,191,181,0.3); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 1.75rem; display: flex; justify-content: space-between; align-items: center; }
.cs-name   { font-size: 15px; font-weight: 700; color: var(--navy); }
.cs-detail { font-size: 12px; color: var(--teal-dark); margin-top: 3px; }
.cs-price  { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }

/* Member list in clinic panel */
.member-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 0.5px solid var(--gray-border); flex-wrap: wrap; gap: 8px; }
.member-row:last-child { border-bottom: none; }
.member-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.member-info h4 { font-size: 14px; font-weight: 700; color: var(--navy); }
.member-info p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── FOOTER ──────────────────────────────────────── */

footer { background: var(--navy-dark); padding: 2rem; text-align: center; font-size: 12px; color: rgba(255,255,255,0.35); }
footer a { color: rgba(255,255,255,0.4); }
footer a:hover { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-logo-img { height: 28px; background: #fff; border-radius: 4px; padding: 2px 4px; opacity: 0.85; margin: 0 auto 1rem; display: block; }

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 640px) {
    .nav { padding: 0 1rem; }
    .menu-btn { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: linear-gradient(135deg, #0B1220 0%, #1E293B 50%, #0F3D3E 100%);
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; text-align: left; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; font-size: 15px; color: rgba(255,255,255,0.85); }
    .nav-link:last-child { border-bottom: none; }
    .form-row, .plans-grid, .plan-selector, .account-type-selector { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .container, .container-wide, .container-sm { padding: 0 1rem; }
    .doctor-card { flex-direction: column; text-align: center; }
    .portal-header { flex-direction: column; }
}
