@import url('https://googleapis.com');

:root {
    --charcoal: #26292a;
    --charcoal-dark: #181a1b;
    --blue-tech: #1e3a5f;
    --blue-soft: #eef4fa;
    --blue-mid: #dce8f5;
    --blue-border: #8faec9;
    --gold: #d4af37;
    --gold-light: #f3dc9b;
    --gold-dark: #9c7818;
    --sand: #dce8f5;
    --sand-soft: #eef4fa;
    --sand-dark: #1e3a5f;
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --text: #26292a;
    --muted: #5a5e60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--text); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header y Menú con Línea Dorada Fina de 1px */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 10px; max-width: 1180px; margin: 0 auto; gap: 16px; }
.logo-big { height: 102px; width: auto; display: block; margin-top: 8px; transition: transform 0.2s ease; }
.logo-big:hover { transform: scale(1.03); }
nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
nav a { text-decoration: none; color: var(--charcoal); font-weight: 700; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--blue-tech); }
.btn-top { background: var(--blue-tech); color: var(--white) !important; padding: 10px 20px; border-radius: 50px; white-space: nowrap; }
.btn-top:hover { background: var(--charcoal); }

/* Portada Hero con Foto edificio.png Difuminada Suave */
.hero-visual {
    position: relative;
    background: linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.68) 100%),
                url('img/edificio.png') center/cover no-repeat;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--gold);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }

/* Columna Izquierda Alineada (Banner + Medalla = Ancho Recuadro = Ancho 3 Botones) */
.hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
}

.banner-seal-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    width: 100%;
    flex-wrap: nowrap;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2));
}
.straight-banner {
    position: relative;
    background: var(--charcoal);
    color: var(--white);
    font-size: 1.65rem;
    font-weight: 800;
    padding: 16px 42px 16px 22px;
    border-left: 6px solid var(--gold);
    border-radius: 12px 0 0 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.2;
    flex: 1;
    clip-path: polygon(
        0% 0%,
        calc(100% - 26px) 0%,
        100% 50%,
        calc(100% - 26px) 100%,
        0% 100%
    );
}
.straight-banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 100%;
    background: linear-gradient(180deg, #f3dc9b 0%, #d4af37 50%, #aa8220 100%);
    clip-path: polygon(
        0% 0%,
        8px 0%,
        100% 50%,
        8px 100%,
        0% 100%,
        calc(100% - 8px) 50%
    );
}
.round-seal {
    width: 88px;
    height: 88px;
    background: linear-gradient(145deg, #f3dc9b 0%, #d4af37 50%, #aa8220 100%);
    border: 3px solid #7a5c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22), inset 0 0 0 3px #f9e8b8;
    color: var(--charcoal-dark);
    flex-shrink: 0;
    text-align: center;
}

/* Recuadro con Tipografía Moderna Arquitectónica (Space Grotesk) y Tamaño Proporcionado */
.hero-lead {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.06rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.45;
    color: var(--charcoal);
    margin-bottom: 18px;
    width: 100%;
    max-width: 100%;
    background: rgba(255,255,255,0.96);
    padding: 15px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--blue-tech);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.08);
}

/* 3 Pilares alineados de extremo a extremo con el recuadro y la medalla */
.hero-pillars { display: flex; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: nowrap; align-items: center; }
.h-pill { background: var(--charcoal); color: var(--white); padding: 7px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.h-pill span {
    background: linear-gradient(145deg, #f3dc9b 0%, #d4af37 100%);
    color: var(--charcoal-dark);
    border: 1px solid #7a5c12;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.72rem;
    flex-shrink: 0;
}

/* Calculadora Técnica Real (Chasis Grafito + Visor LCD + Teclas con Relieve) */
.sand-calc {
    background: linear-gradient(180deg, #e7ebf0 0%, #cfd6df 100%);
    border: 2.5px solid var(--blue-tech);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 35px rgba(22, 45, 74, 0.18), inset 0 1px 0 rgba(255,255,255,0.85);
    width: 100%;
}
.sand-calc h3 { font-size: 1.38rem; font-weight: 800; color: #162d4a; margin-bottom: 4px; letter-spacing: -0.2px; }
.sand-calc p { font-size: 0.88rem; color: #475569; margin-bottom: 14px; font-weight: 600; }
.calc-input-box { position: relative; margin-bottom: 18px; }
.calc-input-box input {
    width: 100%;
    padding: 13px 58px 13px 18px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.55rem;
    font-weight: 800;
    color: #162218;
    border: 2.5px solid #526071;
    border-radius: 10px;
    background: linear-gradient(180deg, #cbd8c8 0%, #dce6d9 100%);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255,255,255,0.8);
    text-align: right;
    letter-spacing: 1px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.calc-input-box input:focus {
    outline: none;
    border-color: var(--blue-tech);
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(30, 58, 95, 0.2);
}
.calc-input-box span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 1rem;
    color: #2d3e30;
}
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.c-box {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1.5px solid #94a3b8;
    border-radius: 12px;
    padding: 13px 12px;
    text-align: center;
    color: #162d4a;
    box-shadow: 0 4px 0 #94a3b8, 0 6px 12px rgba(15, 23, 42, 0.08);
}
.c-box.dark {
    background: linear-gradient(180deg, #254670 0%, #162d4a 100%);
    border-color: #0f1f33;
    color: var(--white);
    box-shadow: 0 4px 0 #0f1f33, 0 8px 16px rgba(15, 31, 51, 0.25);
}
.c-box .t { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; opacity: 0.88; }
.c-box.dark .t { color: var(--gold-light); opacity: 1; }
.c-box .p { font-size: 1.4rem; font-weight: 800; margin: 4px 0; }
.c-box .s { font-size: 0.74rem; opacity: 0.85; }
/* Secciones Generales con Cinta Flecha 45° + Medalla Dorada en cada Título */
.sec { padding: 65px 0; position: relative; border-bottom: 1px solid var(--gold); }
.sec:last-of-type { border-bottom: none; }
.sec-sand { background: var(--blue-soft); border-top: none; border-bottom: 1px solid var(--gold); }
.sec-heading {
    text-align: center;
    margin-bottom: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sec-heading h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--charcoal);
    color: var(--white);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.2;
    padding: 13px 42px 13px 22px;
    border-left: 6px solid var(--gold);
    border-radius: 12px 0 0 12px;
    margin-right: 76px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
    clip-path: polygon(
        0% 0%,
        calc(100% - 22px) 0%,
        100% 50%,
        calc(100% - 22px) 100%,
        0% 100%
    );
}
/* Galón Dorado en la Punta Derecha de la Cinta */
.sec-heading h2::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(180deg, #f3dc9b 0%, #d4af37 50%, #aa8220 100%);
    clip-path: polygon(
        0% 0%,
        8px 0%,
        100% 50%,
        8px 100%,
        0% 100%,
        calc(100% - 8px) 50%
    );
}
/* Medalla Dorada con Check apuntando al lado de cada Título */
.sec-heading h2::before {
    content: "✓";
    position: absolute;
    right: -76px;
    top: 50%;
    transform: translateY(-50%);
    width: 62px;
    height: 62px;
    background: linear-gradient(145deg, #f3dc9b 0%, #d4af37 50%, #aa8220 100%);
    border: 2.5px solid #7a5c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--charcoal-dark);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), inset 0 0 0 2.5px #f9e8b8;
}
.sec-heading p { font-size: 1.05rem; color: var(--muted); max-width: 720px; margin: 14px auto 0; }

/* 3 Flyers del Mismo Tamaño Lado a Lado */
.three-flyers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.flyer-slot { background: var(--white); border: 2px solid var(--blue-tech); border-radius: 18px; padding: 14px; box-shadow: 0 12px 28px rgba(30, 58, 95, 0.09); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.25s; }
.flyer-slot:hover { transform: translateY(-6px); }
.flyer-img-box { width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; border: 1px solid #cddceb; background: var(--white); margin-bottom: 14px; cursor: zoom-in; }
.flyer-img-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.btn-quote { display: block; width: 100%; background: var(--blue-tech); color: var(--white); text-align: center; padding: 13px; border-radius: 10px; font-weight: 800; font-size: 0.98rem; border: none; cursor: pointer; transition: background 0.2s; }
.btn-quote:hover { background: var(--charcoal); color: var(--white); }

/* Sección Visual con Fotos + Gravedad Colores + Servicios */
.visual-info-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.photo-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.photo-collage img { width: 100%; height: 165px; object-fit: cover; border-radius: 14px; border: 2px solid var(--blue-tech); box-shadow: 0 6px 16px rgba(30, 58, 95, 0.08); }
.photo-collage img.wide { grid-column: 1 / -1; height: 190px; }

.sev-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sev-pill-card { border-radius: 14px; padding: 16px 12px; color: var(--white); text-align: center; border: 2px solid var(--charcoal); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.sev-pill-card h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; letter-spacing: 0.5px; }
.sev-pill-card p { font-size: 0.8rem; line-height: 1.35; }
.bg-alta { background: #c8322b; }
.bg-media { background: #d9822b; }
.bg-baja { background: #2b6cb0; }

.services-stack { display: flex; flex-direction: column; gap: 18px; }
.srv-card { background: var(--white); border: 2px solid var(--blue-tech); border-radius: 16px; padding: 22px 24px; box-shadow: 0 8px 20px rgba(30, 58, 95, 0.06); }
.srv-card.sand { background: var(--blue-mid); }
.srv-card h3 { font-size: 1.2rem; font-weight: 800; color: #162d4a; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.srv-card ul { padding-left: 20px; font-size: 0.92rem; }
.srv-card li { margin-bottom: 6px; }

/* Contacto con Fotos Laterales */
.contact-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 28px; align-items: stretch; }
.contact-photos { display: flex; flex-direction: column; gap: 16px; }
.contact-photos img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; border-radius: 18px; border: 2px solid var(--blue-tech); }
.form-panel { background: var(--white); border: 2px solid var(--blue-tech); border-radius: 20px; padding: 32px; box-shadow: 0 12px 30px rgba(30, 58, 95, 0.09); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 14px; }
.fg.full { grid-column: 1 / -1; }
.fg label { display: block; font-weight: 700; font-size: 0.88rem; color: #162d4a; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--blue-border); border-radius: 10px; font-family: inherit; font-size: 0.95rem; }
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--blue-tech); }
.btn-send { width: 100%; background: var(--blue-tech); color: var(--white); border: 2px solid var(--blue-tech); padding: 15px; border-radius: 12px; font-size: 1.08rem; font-weight: 800; cursor: pointer; transition: all 0.2s; }
.btn-send:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

.alert-msg { padding: 14px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; display: none; }
.alert-ok { background: #def7ec; color: #03543f; display: block; }
.alert-err { background: #fde8e8; color: #9b1c1c; display: block; }

/* Modal Zoom Flyer */
.modal { display: none; position: fixed; z-index: 2000; inset: 0; background: rgba(0,0,0,0.88); align-items: center; justify-content: center; padding: 20px; }
.modal img { max-width: 95%; max-height: 92vh; border-radius: 12px; border: 3px solid var(--gold); }
.modal-close { position: absolute; top: 18px; right: 28px; color: #fff; font-size: 40px; cursor: pointer; }

/* =========================================================
   ADAPTACIÓN RESPONSIVA: TABLETS Y COMPUTADORES PEQUEÑOS
   ========================================================= */
@media (max-width: 1024px) {
    .container, .nav-wrap { padding-left: 18px; padding-right: 18px; }
    nav ul { gap: 16px; }
    nav a { font-size: 0.9rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-grid > div:first-child { width: 100%; }
    .hero-lead { max-width: 100%; }
    .sand-calc { max-width: 580px; margin: 0 auto; }
    .three-flyers { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .visual-info-grid, .contact-layout { grid-template-columns: 1fr; }
    .contact-photos { flex-direction: row; }
    .contact-photos img { min-height: 180px; width: 50%; }
}

/* =========================================================
   ADAPTACIÓN RESPONSIVA: CELULARES Y PANTALLAS ESTRECHAS
   ========================================================= */
@media (max-width: 720px) {
    .nav-wrap { padding: 8px 16px; }
    .logo-big { height: 64px; margin-top: 2px; }
    nav ul li:not(:last-child) { display: none; }
    .btn-top { padding: 9px 16px; font-size: 0.85rem; }

    .hero-visual { padding: 28px 0 36px; }
    .banner-seal-wrap { flex-wrap: nowrap; gap: 10px; margin-bottom: 16px; }
    .straight-banner {
        font-size: 1.12rem;
        padding: 12px 32px 12px 14px;
        clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 50%, calc(100% - 20px) 100%, 0% 100%);
    }
    .straight-banner::after { width: 26px; }
    .round-seal { width: 70px; height: 70px; font-size: 0.72rem; }

    .hero-lead { font-size: 0.98rem; padding: 14px 16px; }
    .hero-pillars { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
    .h-pill { font-size: 0.76rem; padding: 6px 11px; }

    .sand-calc { padding: 18px; }
    .sand-calc h3 { font-size: 1.2rem; }
    .calc-input-box input { font-size: 1.35rem; padding: 11px 50px 11px 14px; }
    .calc-cards { grid-template-columns: 1fr; gap: 10px; }

    .sec { padding: 45px 0; }
    .sec-heading { margin-bottom: 28px; }
    .sec-heading h2 {
        font-size: 1.25rem;
        letter-spacing: 0.8px;
        padding: 10px 30px 10px 14px;
        margin-right: 58px;
        clip-path: polygon(0% 0%, calc(100% - 16px) 0%, 100% 50%, calc(100% - 16px) 100%, 0% 100%);
    }
    .sec-heading h2::after { width: 22px; }
    .sec-heading h2::before {
        right: -58px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .sec-heading p { font-size: 0.95rem; }

    .three-flyers, .f-grid, .sev-cards-row { grid-template-columns: 1fr; }
    .photo-collage { grid-template-columns: 1fr; }
    .photo-collage img, .photo-collage img.wide { height: 180px; }

    .contact-photos { flex-direction: column; }
    .contact-photos img { width: 100%; min-height: 170px; }
    .form-panel { padding: 20px 16px; }
}
