/* ----------------------------------------------------------
   Base, Theme & Layout – New Visual Identity for the Website
   Brand: CLÍNICA LUMIA
-----------------------------------------------------------*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "DM Sans", "Inter", sans-serif;
    line-height: 1.7;
    color: #e7edf7;
    background:
        radial-gradient(circle at 0% 0%, rgba(147, 197, 253, 0.12) 0, transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.12) 0, transparent 60%),
        #020617;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Global text styling for inner content blocks */
.section p,
.section li,
main.section p,
main.section li {
    font-size: 0.98rem;
    color: #c2d0ea;
}

.section strong,
main.section strong {
    color: #fbbf24;
    font-weight: 600;
}

a {
    color: inherit;
}

/* ----------------------------------------------------------
   Advertorial label
-----------------------------------------------------------*/

.advertorial-label {
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #e5e7eb;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

/* ----------------------------------------------------------
   Header & Navigation
-----------------------------------------------------------*/

.header {
    position: sticky;
    top: 2.3rem;
    z-index: 40;
    padding: 0 0 1.2rem;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    margin-inline: auto;
    max-width: 1120px;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
                radial-gradient(circle at 100% 0%, rgba(244, 114, 182, 0.25), transparent 55%),
                rgba(15, 23, 42, 0.92);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(16px);
    transform: translateY(-1.2rem);
    z-index: -1;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.logo::before {
    content: "";
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background:
        conic-gradient(from 160deg, #38bdf8, #e879f9, #fbbf24, #38bdf8);
    padding: 2px;
}

.logo::after {
    content: "";
    position: relative;
    right: 2.15rem;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #e0f2fe, #0f172a);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.7);
}

.nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.18), transparent 55%),
                rgba(15, 23, 42, 0.85);
    box-shadow:
        0 12px 32px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(148, 163, 184, 0.3);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    color: #e5e7eb;
    opacity: 0.85;
    transition: all 0.25s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.6), transparent 65%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #0f172a;
    background: linear-gradient(135deg, #38bdf8, #f97316);
    box-shadow:
        0 14px 28px rgba(56, 189, 248, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.45);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

/* ----------------------------------------------------------
   Hero – main page only
-----------------------------------------------------------*/

.hero {
    padding: 5.5rem 0 3.25rem;
}

.hero .container {
    position: relative;
}

.hero .container::before {
    content: "";
    position: absolute;
    inset-inline: -3rem;
    top: -1.5rem;
    bottom: -2rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.33), transparent 60%),
        radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.25), transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.94));
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.45);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 60%),
                rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #bef264, #22c55e);
    box-shadow: 0 0 12px #22c55e;
}

.hero-title {
    margin-top: 1.75rem;
    max-width: 42rem;
    font-size: clamp(2.05rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f9fafb;
}

.hero-date {
    margin-top: 1.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
}

/* ----------------------------------------------------------
   Section layout & typography
-----------------------------------------------------------*/

.section {
    padding: 3.25rem 0;
}

.section-alt {
    position: relative;
}

.section-alt::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
    opacity: 0.65;
    z-index: -1;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.section-intro {
    max-width: 46rem;
    font-size: 0.98rem;
    color: #cbd5f5;
    margin-bottom: 2.4rem;
}

.section h1 {
    font-size: 1.9rem;
    color: #f9fafb;
    margin-bottom: 1.9rem;
}

.section h2 {
    font-size: 1.2rem;
    margin-top: 1.9rem;
    margin-bottom: 0.9rem;
    color: #e5e7eb;
}

.section h3 {
    font-size: 1.02rem;
    margin-top: 1.4rem;
    margin-bottom: 0.75rem;
    color: #c4d1f6;
}

.section h4 {
    font-size: 0.98rem;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: #c4d1f6;
}

.section ul,
.section ol {
    padding-left: 1.4rem;
    margin-bottom: 1.35rem;
}

.section li {
    margin-bottom: 0.45rem;
}

.section a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.section a:hover {
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.65);
}

/* Content pages main wrapper – glass card */
main.section .container {
    position: relative;
    padding: 2.6rem 2.4rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.32), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.22), transparent 60%),
        rgba(15, 23, 42, 0.94);
    box-shadow:
        0 24px 80px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.4);
}

/* ----------------------------------------------------------
   Content visuals (images, grids, doctor, steps)
-----------------------------------------------------------*/

.content-with-image {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2.4rem;
    align-items: center;
}

.content-image,
.full-width-image {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.96),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.full-width-image {
    max-width: 820px;
    margin: 0 auto 1.75rem;
}

.content-text p {
    margin-bottom: 1rem;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.benefit-card {
    position: relative;
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.28), transparent 65%),
        rgba(15, 23, 42, 0.96);
    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(148, 163, 184, 0.45);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset-inline: -40%;
    top: -55%;
    height: 55%;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 26px 70px rgba(37, 99, 235, 0.5),
        0 0 0 1px rgba(129, 140, 248, 0.85);
}

.benefit-card:hover::after {
    opacity: 1;
    transform: translateY(6px);
}

.benefit-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
    color: #e5e7eb;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #c7d2fe;
}

/* Doctor section */
.doctor-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 2.1rem;
    margin-top: 2.1rem;
    align-items: center;
}

.doctor-photo {
    width: 100%;
    border-radius: 26px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.96),
        0 0 0 1px rgba(148, 163, 184, 0.55);
}

.doctor-info h3 {
    font-size: 1.3rem;
    color: #f9fafb;
    margin-bottom: 0.4rem;
}

.doctor-specialty {
    font-size: 0.95rem;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.1rem;
}

.doctor-info p {
    margin-bottom: 0.9rem;
}

/* Why consult cards */
.why-consult-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}

.why-card {
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(244, 114, 182, 0.22), transparent 60%),
        rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 18px 54px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.8);
}

.why-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.why-card p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

/* Process steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
    margin-top: 1.8rem;
}

.step {
    text-align: left;
    padding: 1.3rem 1.3rem 1.2rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 18px 54px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.85);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: conic-gradient(from 160deg, #38bdf8, #22c55e, #f97316, #38bdf8);
    padding: 2px;
    margin-bottom: 0.7rem;
}

.step-number::before {
    content: attr(data-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, #e0f2fe, #020617);
    color: #e5e7eb;
    font-size: 0.8rem;
    font-weight: 700;
}

.step h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
    color: #e5e7eb;
}

.step p {
    font-size: 0.9rem;
    color: #cbd5f5;
}

/* ----------------------------------------------------------
   CTA section & buttons
-----------------------------------------------------------*/

.cta-section {
    text-align: center;
    padding: 3.5rem 0;
}

.cta-section .container {
    position: relative;
    padding: 2.4rem 2.4rem 2.6rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.5), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.5), transparent 55%),
        linear-gradient(135deg, #0f172a, #020617);
    box-shadow:
        0 30px 90px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(148, 163, 184, 0.4);
}

.cta-section .section-title {
    color: #f9fafb;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 34rem;
    margin: 0 auto 1.8rem;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 650;
    color: #020617;
    background: linear-gradient(135deg, #38bdf8, #f97316);
    box-shadow:
        0 20px 45px rgba(56, 189, 248, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.75);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.25s ease;
    background-size: 160% 160%;
    background-position: 0% 50%;
}

.cta-button::after {
    content: "→";
    font-size: 0.95rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    box-shadow:
        0 26px 70px rgba(56, 189, 248, 0.7),
        0 0 0 1px rgba(15, 23, 42, 0.85);
}

.cta-button-large {
    padding-inline: 2.4rem;
}

/* Contact form */
.contact-form {
    max-width: 640px;
    margin: 2.3rem auto 0;
    padding: 2.1rem 2.2rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
        rgba(15, 23, 42, 0.98);
    box-shadow:
        0 26px 80px rgba(15, 23, 42, 0.98),
        0 0 0 1px rgba(148, 163, 184, 0.45);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #38bdf8;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.5),
        0 0 0 6px rgba(56, 189, 248, 0.16);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
    accent-color: #38bdf8;
}

/* ----------------------------------------------------------
   Footer
-----------------------------------------------------------*/

.footer {
    margin-top: 3.5rem;
    padding: 3.3rem 0 2.1rem;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.34), transparent 60%),
                #020617;
    border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.footer-imprint {
    margin-bottom: 2.2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 22px;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.3), transparent 60%),
        rgba(15, 23, 42, 0.98);
    box-shadow:
        0 22px 70px rgba(15, 23, 42, 0.96),
        0 0 0 1px rgba(148, 163, 184, 0.4);
    text-align: center;
}

.footer-imprint p {
    font-size: 0.82rem;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.footer-imprint strong {
    color: #fbbf24;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #e5e7eb;
    margin-bottom: 0.85rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 0.8rem;
}

.footer-section p {
    font-size: 0.85rem;
    color: #cbd5f5;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    font-size: 0.84rem;
    color: #9ca3af;
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-links a:hover {
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    padding-top: 1.4rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ----------------------------------------------------------
   Utility: subtle scroll / animations
-----------------------------------------------------------*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #38bdf8, #f97316);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22c55e, #f97316);
}

/* Fade-in on scroll targets used by script.js */
.benefit-card,
.why-card,
.step,
.testimonial-card {
    will-change: opacity, transform;
}

/* ----------------------------------------------------------
   Responsive
-----------------------------------------------------------*/

@media (max-width: 900px) {
    .hero {
        padding-top: 4.5rem;
    }

    .hero .container::before {
        inset-inline: -1.5rem;
    }

    .content-with-image {
        grid-template-columns: minmax(0, 1fr);
    }

    .doctor-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    main.section .container {
        padding: 2rem 1.6rem;
    }
}

@media (max-width: 640px) {
    .header {
        top: 2.1rem;
    }

    .header::before {
        inset-inline: 0.9rem;
    }

    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .logo {
        justify-content: center;
    }

    .nav {
        justify-content: center;
        width: 100%;
    }

    .hero .container::before {
        inset-inline: -0.75rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section {
        padding-inline: 0.4rem;
    }

    .contact-form {
        padding: 1.7rem 1.4rem;
    }
}
