/* ==========================================================
   La Hielera — Estilos principales
   ========================================================== */

:root {
    --navy: #0B2440;
    --navy-deep: #071A30;
    --navy-soft: #123256;
    --cyan: #2FA9E8;
    --cyan-dark: #1E8FC9;
    --cyan-light: #BFE7F9;
    --ice: #F7FBFD;
    --ice-card: #FFFFFF;
    --text-muted: #4A6472;
    --border-soft: #DCEAF1;
    --radius: 16px;
    --shadow: 0 12px 30px rgba(11, 36, 64, 0.10);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', -apple-system, sans-serif;
    background: var(--ice);
    color: var(--navy);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.05;
    margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; letter-spacing: 0.5px; }

p { margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan-dark);
    margin-bottom: 10px;
}

/* ---------- Header ---------- */
header.site-header {
    background: var(--ice);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 26px;
    text-transform: uppercase;
    color: var(--navy);
}
.logo span { color: var(--cyan); }
.logo svg { flex-shrink: 0; }

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--navy);
}
nav.main-nav a:hover { color: var(--cyan-dark); }

.nav-cta {
    background: var(--navy);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 800 !important;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cyan-light);
    color: var(--navy);
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.nav-icon:hover { background: var(--cyan); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: 'Manrope', sans-serif;
}
.btn:hover { transform: translateY(-2px); }

.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { box-shadow: 0 10px 24px rgba(47,169,232,0.35); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { box-shadow: 0 10px 24px rgba(11,36,64,0.30); }

.btn-outline { background: transparent; border: 2px solid currentColor; }

/* ---------- Hero tipo "cubitera" (2 paneles) ---------- */
.tray-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 560px;
}

.tray-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}

.tray-panel .btn {
    margin-top: auto;
    align-self: flex-start;
}

.tray-panel.consumidor { background: linear-gradient(160deg, var(--cyan-light), #E4F5FC); }
.tray-panel.operador { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; }
.tray-panel.zona { background: linear-gradient(160deg, var(--cyan), var(--cyan-dark)); }

.tray-panel .eyebrow-flake { font-size: 26px; margin-bottom: 10px; display:block; }

.tray-panel h1 { font-size: clamp(26px, 2.6vw, 36px); }
.tray-panel.operador h1 { color: #fff; }
.tray-panel.consumidor h1 { color: var(--navy); }
.tray-panel.zona h1 { color: var(--navy); }

.tray-panel p.lead { font-size: 16px; max-width: 340px; }
.tray-panel.operador p.lead { color: #C8DCEA; }
.tray-panel.consumidor p.lead { color: var(--text-muted); }
.tray-panel.zona p.lead { color: var(--navy-soft); }

/* faceta tipo cubito en la esquina, elemento de firma del sitio */
.facet-card {
    background: var(--ice-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    border: 1px solid var(--border-soft);
}

.facet-card.dark {
    background: var(--navy-soft);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

/* ---------- Secciones genéricas ---------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.on-navy { background: var(--navy); color: #fff; }
section.on-navy h2 { color: #fff; }
section.on-ice-light { background: linear-gradient(180deg, #fff, var(--cyan-light) 400%); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid de espacios ideales ---------- */
.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.spaces-grid.fixed-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) {
    .spaces-grid.fixed-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .spaces-grid.fixed-3 { grid-template-columns: 1fr; }
}
.space-card {
    text-align: center;
    padding: 30px 20px;
}
.space-card .icon-wrap {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: var(--cyan-light);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.space-card h3 { font-size: 18px; margin-bottom: 4px; }
.space-card p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- Detalles técnicos ---------- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.specs-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
    .specs-grid, .specs-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
.spec-item {
    background: #fff;
    padding: 26px 24px;
}
.spec-item .spec-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--cyan-dark);
    display: block;
}
.spec-item .spec-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- FAQ (accordion) ---------- */
.faq-item {
    border-bottom: 1px solid var(--border-soft);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 22px 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-question .icon { font-size: 20px; color: var(--cyan-dark); transition: transform 0.2s; flex-shrink:0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    color: var(--text-muted);
    font-size: 15px;
    padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ---------- Mapa ---------- */
#mapa {
    width: 100%;
    height: 480px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1;
}

.map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.leyenda { display: flex; gap: 18px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.leyenda span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.activa { background: #2FA9E8; }
.dot.proximamente { background: #F5A623; }

/* ---------- Formularios ---------- */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}
.form-row { margin-bottom: 18px; }
.form-row label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    background: var(--ice);
    color: var(--navy);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: #fff;
}
.form-row textarea { resize: vertical; min-height: 100px; }

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #E3F6EA; color: #1E7A43; border: 1px solid #BEE8CC; }
.alert-error { background: #FCEBEB; color: #B23A3A; border: 1px solid #F5C6C6; }

/* ---------- Modal (pedir hielera en tu zona) ---------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(11,36,64,0.55);
    display: none;
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 36px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: var(--ice);
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--navy);
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--navy-deep);
    color: #A9C1D2;
    padding: 50px 0 26px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 34px;
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-grid a { display: block; margin-bottom: 8px; color: #A9C1D2; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: #6E8CA0;
    font-size: 13px;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #25D366;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 60;
    font-size: 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .tray-hero { grid-template-columns: 1fr; min-height: auto; }
    .tray-panel { padding: 50px 28px; }
    nav.main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
