:root {
    --bg-dark: #0b1e2d;
    --bg-mid: #12334a;
    --accent: #14b8a6;
    --accent-2: #ff8a3d;
    --text-main: #eef6fb;
    --text-soft: #b8cedd;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 10% 10%, #174666 0%, #0b1e2d 45%), linear-gradient(130deg, #0d2436, #12334a 60%, #0b1e2d);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    z-index: -1;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.glass-nav {
    background: rgba(7, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar .nav-link {
    color: var(--text-soft);
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff;
}

.btn-brand {
    background: linear-gradient(135deg, var(--accent), #25d0bf);
    border: none;
    color: #03252c;
    font-weight: 700;
    padding: 0.7rem 1.4rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, #2fd8c8, #6cf0e1);
    color: #03252c;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
}

.hero-section {
    position: relative;
}

.hero-section h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
}

.hero-section .lead {
    color: var(--text-soft);
    max-width: 58ch;
}

.hero-media {
    position: relative;
}

.hero-media::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.4), transparent 65%);
    top: -25px;
    right: -25px;
    z-index: -1;
}

.hero-media img {
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.stats-row .stat-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    padding: 1rem 0.5rem;
    height: 100%;
}

.stat-box h3 {
    font-family: "Space Grotesk", sans-serif;
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
}

.stat-box p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.section-gap {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-heading h2,
#proceso h2,
#cobertura h2,
#contacto h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 184, 166, 0.6);
}

.service-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
}

.service-card p,
#cobertura p,
#contacto p {
    color: var(--text-soft);
}

.timeline li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.timeline span {
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), #ffc08d);
    color: #2a1404;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.timeline p {
    color: var(--text-soft);
    margin-bottom: 0;
}

.badge-pill {
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.map-card img {
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.contact-panel,
.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
}

.contact-data li {
    padding: 0.35rem 0;
    color: var(--text-soft);
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.2);
}

.form-control::placeholder {
    color: #d0dde7;
}

.form-message {
    min-height: 1.5rem;
    color: #7ef7ea;
}

footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 12, 18, 0.58);
    color: var(--text-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s ease;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(9, 24, 36, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        padding: 1rem;
        margin-top: 0.8rem;
    }

    .stats-row .stat-box {
        padding: 0.8rem 0.4rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 2rem;
    }

    .contact-panel,
    .form-panel {
        padding: 1.2rem;
    }
}
