html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content {
    flex: 1;
    padding: 0;
}

/* ── MODAL CONTACTO ───────────────────────────────────────── */
.contact-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.contact-modal-header {
    background: #16181d;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.contact-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,.6);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .2s;
}
.contact-modal-close:hover { color: #fff; }

.contact-modal-body { padding: 24px 22px 20px; background: #fff; }

.cf-group { margin-bottom: 18px; }

.cf-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.cf-required { color: #e74c3c; }

.cf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
    font-family: Roboto, sans-serif;
}
.cf-input:focus {
    outline: none;
    border-color: #166080;
    box-shadow: 0 0 0 3px rgba(22,96,128,.12);
}
.cf-textarea { resize: vertical; min-height: 80px; }

.cf-radio-group {
    display: flex;
    gap: 10px;
}
.cf-radio-opt {
    flex: 1;
    cursor: pointer;
}
.cf-radio-opt input { display: none; }
.cf-radio-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all .2s;
}
.cf-radio-opt input:checked + span {
    border-color: #25d366;
    background: #f0fdf4;
    color: #1a7a3c;
    font-weight: 500;
}
.cf-radio-opt:has(input[value="email"]) input:checked + span {
    border-color: #166080;
    background: #f0f7fb;
    color: #166080;
}

.cf-error {
    background: #fff5f5;
    color: #c0392b;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    border: 1px solid #fcc;
}

.cf-submit {
    width: 100%;
    background: #1a3f80;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .2s;
    font-family: Roboto, sans-serif;
}
.cf-submit:hover:not(:disabled) { background: #0d2a5e; transform: translateY(-1px); }
.cf-submit:disabled { opacity: .7; cursor: not-allowed; }

/* ── NAVBAR ───────────────────────────────────────────────── */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(16, 18, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-inner {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img {
    height: 52px;
    display: block;
    transition: opacity .2s;
}
.nav-logo:hover img { opacity: .8; }

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    height: 68px;
}

.nav-link-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.52);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.nav-link-item:hover  { color: rgba(255,255,255,.90); }
.nav-link-item.is-active {
    color: #fff;
    border-bottom-color: var(--accent, #00aeef);
}

/* Hamburger — hidden on desktop */
.nav-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px 10px;
    transition: border-color .2s;
}
.nav-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,.75);
    border-radius: 2px;
    transition: background .2s, transform .25s;
}
.nav-toggler:hover { border-color: rgba(255,255,255,.40); }
.nav-toggler:hover span { background: #fff; }

/* Hamburger → X animation */
.nav-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggler.open span:nth-child(2) { opacity: 0; }
.nav-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile */
@media (max-width: 991px) {
    .nav-toggler { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        width: 100%;
        padding: 8px 0 14px;
        border-top: 1px solid rgba(255,255,255,.07);
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: rgba(16, 18, 22, 0.98);
    }
    .nav-links.open { display: flex; }

    .nav-link-item {
        height: auto;
        padding: 13px 28px;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    .nav-link-item.is-active {
        border-left-color: var(--accent, #00aeef);
        padding-left: 24px;
        color: #fff;
    }
}

/* SubHeader */
.pageTit {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 26px;
    color: #fbf8f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    background-color: #404146;
    color: white;
}

.footerTit {
    font-weight: bold;
    color: #cac6c7;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    padding-top: 14px;
    padding-bottom: 5px;
}

.footerLinks {
    padding: 3px 0;
}

.footerLinks a {
    color: #979495;
    text-decoration: none;
    font-size: 14px;
}

.footerLinks a:hover {
    color: #cccccc;
}
