/* =======================================
   VÉRTICE OPERATIVO — Stylesheet
   Simple, limpio, blanco
   ======================================= */

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

:root {
    --accent:  #0097a7;
    --accent2: #007b8a;
    --dark:    #111111;
    --mid:     #e0e0e0;
    --muted:   #888888;
    --light:   #f7f7f7;
    --white:   #ffffff;
    --text:    #1a1a1a;
    --ff-body: 'DM Sans', sans-serif;
    --radius:  3px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
}

/* ── NAV minimal ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--mid);
}
.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img   { height: 36px; width: auto; }

.nav-toggle { display: none; }
.hamburger  { display: none; }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── HERO ── */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--mid);
}
.hero-logo { height: 72px; width: auto; margin: 0 auto 2.5rem; display: block; }
.hero h1 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 1.5rem;
}
.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}
.hero-contact-strip {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    font-size: .875rem;
    color: var(--muted);
}
.hero-contact-strip a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .4rem;
    transition: color .15s;
}
.hero-contact-strip a:hover { color: var(--accent); }
.hero-contact-strip .sep { color: var(--mid); }

/* ── SECCIONES ── */
.section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--mid);
}
.section:last-child { border-bottom: none; }
.section-inner { max-width: 1000px; margin: 0 auto; }

.section-label {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.section h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 2.5rem;
}

/* ── SERVICIOS ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--mid);
    border: 1px solid var(--mid);
}
.service-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    transition: background .15s;
}
.service-card:hover { background: var(--light); }
.service-card .icon { font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.service-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: .5rem;
}
.service-card p { font-size: .875rem; color: var(--muted); line-height: 1.7; }

/* ── CONTACTO ── */
.contact-cols {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.contact-data { list-style: none; }
.contact-data li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .7rem 0;
    border-bottom: 1px solid var(--mid);
    font-size: .875rem;
}
.contact-data li:last-child { border-bottom: none; }
.contact-data .cd-label {
    width: 80px;
    flex-shrink: 0;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
}
.contact-data a { color: var(--text); text-decoration: none; }
.contact-data a:hover { color: var(--accent); }

/* Tipo selector */
.tipo-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.tipo-tab input[type="radio"] { display: none; }
.tipo-tab label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1rem;
    cursor: pointer;
    background: var(--white);
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    border-right: 1px solid var(--mid);
    transition: all .15s;
    text-align: center;
    letter-spacing: .03em;
}
.tipo-tab:last-child label { border-right: none; }
.tipo-tab input:checked + label {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
.fields-soporte, .fields-comercial { display: none; }
.fields-soporte.visible, .fields-comercial.visible { display: flex; flex-direction: column; gap: .35rem; }

label {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-family: var(--ff-body);
    font-size: .9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--mid);
    border-radius: var(--radius);
    padding: .65rem .9rem;
    width: 100%;
    transition: border-color .15s;
    outline: none;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: var(--ff-body);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .06em;
    padding: .8rem 2.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s;
}
.btn-submit:hover { background: var(--accent2); }

.alert {
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    border-left: 3px solid;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.alert-success { background: #e8f7f8; border-color: var(--accent); color: #005f6b; }
.alert-error   { background: #fef2f2; border-color: #c0392b; color: #7b1a1a; }
.alert-error ul { margin: 0; padding-left: 1.2rem; }

/* ── FOOTER ── */
.site-footer {
    background: var(--light);
    border-top: 1px solid var(--mid);
    padding: 2rem;
    text-align: center;
}
.site-footer p {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
    .contact-cols { grid-template-columns: 1fr; gap: 2.5rem; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hamburger {
        display: flex; flex-direction: column; gap: 5px;
        cursor: pointer; padding: .4rem; z-index: 200;
    }
    .hamburger span {
        display: block; width: 22px; height: 2px;
        background: var(--dark); transition: transform .25s, opacity .25s;
    }
    .nav-links {
        display: none; position: fixed; inset: 0;
        background: var(--white); flex-direction: column;
        align-items: center; justify-content: center;
        gap: 2rem; z-index: 150;
    }
    .nav-links a { font-size: 1.1rem; color: var(--dark); }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
    .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero-contact-strip { gap: 1rem; flex-direction: column; align-items: center; }
    .hero-contact-strip .sep { display: none; }
}
