:root {
    --brand: #176b87;
    --accent: #22a699;
    --ink: #18242b;
    --muted: #64727c;
    --paper: #ffffff;
    --soft: #eef4f5;
    --line: #d8e2e6;
    --footer-bg: #172026;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 2px clamp(20px, 6vw, 72px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: min(360px, 42vw);
    height: 120px;
    object-fit: contain;
}

.brand strong {
    max-width: 240px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ink);
    font-size: 14px;
}

.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(24, 36, 43, .16);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, .72);
    color: rgba(24, 36, 43, .82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.site-header nav a:hover {
    border-color: var(--brand);
    background: #ffffff;
    color: var(--brand);
    transform: translateY(-1px);
}

.hero {
    min-height: 62vh;
    display: grid;
    align-items: center;
    padding: 56px clamp(20px, 6vw, 72px);
    background: linear-gradient(135deg, var(--soft), #ffffff);
    background-position: center;
    background-size: cover;
}

.hero > div {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.12;
}

h2 {
    margin: 0 0 16px;
    font-size: 34px;
}

h3 {
    margin: 0 0 10px;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    padding: 0 20px;
    background: transparent;
    color: var(--brand);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button:hover {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 107, 135, .18);
    transform: translateY(-1px);
}

.icon-button {
    width: 46px;
    min-width: 46px;
    padding: 0;
    border-color: rgba(37, 211, 102, .5);
    background: #ffffff;
}

.icon-button img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

button {
    min-height: 42px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    padding: 0 20px;
    background: var(--brand);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

button:hover {
    box-shadow: 0 12px 28px rgba(23, 107, 135, .18);
    transform: translateY(-1px);
}

.section {
    padding: 64px clamp(20px, 6vw, 72px);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-grid article {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.contact-band {
    padding-top: 44px;
    padding-bottom: 44px;
    background:
        linear-gradient(180deg, rgb(203 203 203 / 16%), rgb(130 130 130 / 92%)),
        linear-gradient(359deg, rgba(23, 107, 135, .08), rgb(156 177 255 / 12%));
}

.contact-band h2 {
    margin-bottom: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-grid figure {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 64px clamp(20px, 6vw, 72px) 34px;
    background: #000000;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.page-hero .eyebrow,
.page-hero h1 {
    color: #ffffff;
}

.page-hero h1 {
    margin-bottom: 0;
}

.page-content {
    width: min(860px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
    color: var(--ink);
    line-height: 1.8;
    white-space: normal;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    width: 54px;
    min-height: 54px;
    border: 1px solid rgba(6, 45, 23, .12);
    border-radius: 999px;
    justify-content: center;
    padding: 0;
    background: rgba(37, 211, 102, .94);
    color: #062d17;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.theme-restaurante .hero {
    background: linear-gradient(135deg, #fff8ee, #fff);
}

.theme-salud .hero {
    background: linear-gradient(135deg, #eefaf7, #fff);
}

.theme-belleza .hero {
    background: linear-gradient(135deg, #fff0f6, #fff);
}

.theme-construccion .hero {
    background: linear-gradient(135deg, #fff7e5, #fff);
}

.theme-legal .hero {
    background: linear-gradient(135deg, #eef2f7, #fff);
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 22px;
    align-items: start;
}

.contact-grid > div p {
    margin-bottom: 8px;
}

.contact-form {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(23, 107, 135, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(23, 32, 38, .08);
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: #31434d;
    font-size: 14px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

.contact-form textarea {
    min-height: 112px;
}

.site-notice,
.site-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}

.site-notice {
    border: 1px solid #9bd0bd;
    background: #effaf5;
    color: #176b50;
}

.site-alert {
    border: 1px solid #f2b8a2;
    background: #fff2ec;
    color: #83391f;
}

.site-alert p {
    margin: 0;
    color: inherit;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    max-height: 54px;
    padding: 0 clamp(20px, 6vw, 72px);
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    overflow: hidden;
}

footer span {
    color: rgba(255, 255, 255, .86);
    line-height: 1.25;
}

@media (max-width: 760px) {
    .site-header,
    footer {
        display: grid;
    }

    .brand img {
        width: min(260px, 70vw);
        height: 88px;
    }

    .brand strong {
        max-width: 180px;
        font-size: 13px;
    }

    .site-header nav {
        gap: 8px;
    }

    .site-header nav a {
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
