:root {
    --blue: #174b74;
    --blue-dark: #0e344f;
    --blue-soft: #eaf4fb;
    --green: #1e9b6c;
    --red: #d94b45;
    --gray-50: #f6f8fb;
    --gray-100: #eef2f6;
    --gray-300: #c8d2dc;
    --gray-600: #617080;
    --gray-900: #16202a;
    --white: #fff;
    --shadow: 0 18px 45px rgba(18, 39, 60, .12);
    --radius: 8px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand {
    display: inline-flex;
    align-items: center;
}
.brand img {
    width: 150px;
    height: 58px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.main-nav { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 14px; color: var(--blue-dark); }
.main-nav a:hover { color: var(--green); }
.menu-toggle { display: none; border: 0; background: var(--blue); color: white; width: 42px; height: 42px; border-radius: var(--radius); font-size: 22px; }

.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius);
    border: 1px solid var(--blue);
    background: var(--blue);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}
.btn.secondary { background: var(--green); border-color: var(--green); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.ghost { background: white; color: var(--blue); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }

.hero {
    background: linear-gradient(120deg, rgba(23,75,116,.96), rgba(14,52,79,.92)), url('../img/recom-logo.jpeg') center/contain no-repeat;
    color: white;
    padding: 76px 0 48px;
}
.home-hero {
    min-height: 590px;
    display: flex;
    align-items: end;
    background:
        linear-gradient(90deg, rgba(9, 31, 49, .88) 0%, rgba(12, 49, 75, .72) 45%, rgba(12, 49, 75, .18) 100%),
        linear-gradient(0deg, rgba(8, 24, 38, .70), rgba(8, 24, 38, .05) 42%),
        url('../img/recom-fachada.jpeg') center/cover no-repeat;
    padding: 104px 0 54px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: end; }
.eyebrow { text-transform: uppercase; font-size: 13px; letter-spacing: 0; font-weight: 800; color: #b7e5ff; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 12px 0 18px; letter-spacing: 0; }
.hero p { font-size: 18px; max-width: 680px; color: #e8f4fb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 24px; }
.hero-panel strong { display: block; font-size: 22px; margin-bottom: 12px; }
.hero-panel span { display: block; color: #e8f4fb; margin: 8px 0; }
.hero-location {
    display: inline-flex;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.24);
    color: white;
    font-weight: 800;
}

.page-section { padding: 54px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2, .page-section h1 { color: var(--blue-dark); margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(20,40,60,.06);
}
.card h3 { margin: 0 0 10px; color: var(--blue-dark); }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 12px; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-pill { background: white; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 14px 18px; font-weight: 800; color: var(--blue); }
.about-grid { align-items: stretch; margin-top: 22px; }
.about-grid h2 { color: var(--blue-dark); margin-bottom: 12px; }
.about-highlight {
    background: linear-gradient(145deg, var(--blue), var(--blue-dark));
    color: white;
}
.about-highlight h2 { color: white; }
.about-highlight p { color: #e8f4fb; }
.about-highlight .brand-pill {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.24);
    color: white;
}
.values-grid { margin-top: 18px; }
.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 22px;
}
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.map-card {
    display: block;
    min-height: 340px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: 0 8px 24px rgba(20,40,60,.06);
    background: var(--blue-soft);
}
.map-card.standalone {
    margin-top: 18px;
}
.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    display: block;
    pointer-events: none;
}

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card { padding: 0; overflow: hidden; }
.product-image {
    height: 190px;
    background: var(--blue-soft);
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 48px;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}
.product-info { padding: 18px; }
.price { color: var(--green); font-size: 22px; font-weight: 900; }
.old-price { color: var(--gray-600); text-decoration: line-through; font-size: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
label { font-weight: 800; color: var(--blue-dark); font-size: 14px; }
.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px;
}
.check-field input {
    width: 18px;
    min-height: 18px;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    min-height: 42px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}
textarea { min-height: 110px; resize: vertical; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
th { color: var(--blue-dark); background: var(--blue-soft); font-size: 13px; text-transform: uppercase; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: inline-flex; margin: 0; }

.flash-wrap { padding-top: 14px; }
.flash { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 12px; font-weight: 700; }
.flash.success { background: #e8f8ef; color: #166243; }
.flash.error { background: #fdecec; color: #8f2e2a; }

.site-footer { background: var(--blue-dark); color: #dbeaf5; padding: 38px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-logo {
    width: 132px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
    opacity: .94;
}
.site-footer a { display: block; margin: 8px 0; }
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #dff8ed;
}
.whatsapp-link.inline {
    display: inline-flex;
    color: var(--green);
}
.whatsapp-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: white;
    font-size: 13px;
    line-height: 1;
}
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px rgba(8, 94, 54, .28);
    z-index: 40;
    transition: transform .18s ease, box-shadow .18s ease;
}
.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(8, 94, 54, .36);
}
.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.admin-body { display: flex; min-height: 100vh; background: #f3f6fa; }
.admin-sidebar { width: 264px; background: var(--blue-dark); color: white; padding: 18px; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 30; }
.admin-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    margin-bottom: 18px;
}
.admin-logo img {
    width: 154px;
    height: 58px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .96;
}
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar a { padding: 11px 12px; border-radius: var(--radius); font-weight: 700; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.12); }
.admin-shell { margin-left: 264px; width: calc(100% - 264px); }
.admin-topbar { height: 70px; background: white; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.admin-topbar span { display: block; color: var(--gray-600); font-size: 13px; }
.admin-main { padding: 24px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.metric { background: white; border-radius: var(--radius); padding: 20px; border-left: 5px solid var(--blue); box-shadow: var(--shadow); }
.metric strong { display: block; font-size: 30px; color: var(--blue-dark); }
.metric span { color: var(--gray-600); font-weight: 700; }
.admin-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 28px rgba(20,40,60,.08); margin-bottom: 20px; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-card-header h1, .admin-card-header h2 { margin: 0; color: var(--blue-dark); }
.status { font-weight: 900; color: var(--blue); }
.admin-thumb {
    width: 120px;
    height: 90px;
    object-fit: contain;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    background: var(--gray-50);
    padding: 6px;
    margin-top: 8px;
}

@media (max-width: 960px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: white; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
    .main-nav.open { display: flex; }
    .hero-grid, .grid-2, .grid-3, .grid-4, .product-grid, .footer-grid, .form-grid, .filters, .contact-grid { grid-template-columns: 1fr; }
    .admin-sidebar { transform: translateX(-100%); transition: .2s ease; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-shell { margin-left: 0; width: 100%; }
    .admin-menu { display: inline-flex; }
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .dashboard-cards { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .hero-actions .btn { width: 100%; }
    th, td { min-width: 130px; }
    table { display: block; overflow-x: auto; }
}
