[hidden] {
    display: none !important;
}

:root {
    --green: #0f5c48;
    --green-dark: #0a4133;
    --blue: #0c3f78;
    --white: #ffffff;
    --surface: #f8fbfc;
    --text: #183144;
    --muted: #5f7282;
    --border: rgba(12, 63, 120, 0.12);
    --shadow: 0 18px 40px rgba(9, 36, 63, 0.14);
    --radius: 24px;
    --container: min(1120px, calc(100% - 2rem));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(15, 92, 72, 0.08), transparent 34%), linear-gradient(180deg, #f9fcfb 0%, #f4f8fb 100%);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.page-shell { padding-top: 88px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
.topbar { background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(12, 63, 120, 0.08); }
.topbar-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 1rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 148px; height: 68px; border-radius: 18px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); overflow: hidden; flex-shrink: 0; padding: 0.35rem 0.6rem; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; }
.brand-text small { color: var(--muted); margin-top: 0.25rem; font-size: 0.98rem; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--muted); font-weight: 500; transition: color 0.25s ease, transform 0.25s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.site-nav .nav-cta { padding: 0.9rem 1.2rem; border-radius: 999px; color: var(--white); background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: 0 12px 30px rgba(12, 63, 120, 0.18); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(12, 63, 120, 0.08); padding: 0.8rem; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--blue); margin: 0.3rem 0; border-radius: 99px; }
.hero { position: relative; min-height: calc(100vh - 88px); display: grid; align-items: stretch; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 1; display: grid; align-content: center; padding: 5rem 0; color: var(--white); max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.92rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: currentColor; opacity: 0.55; }
.hero h1, .inner-hero h1 { margin: 0; line-height: 1.05; font-size: clamp(2.7rem, 6vw, 5rem); }
.hero p { font-size: 1.1rem; margin: 1.4rem 0 0; color: rgba(255, 255, 255, 0.9); }
.hero-actions, .cta-band-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.4rem; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, #17a061, var(--blue)); box-shadow: 0 18px 35px rgba(10, 65, 51, 0.24); }
.btn-secondary { color: var(--white); background: linear-gradient(135deg, rgba(15, 92, 72, 0.94), rgba(12, 63, 120, 0.94)); }
.section { padding: 5rem 0; }
.section-alt { background: rgba(255, 255, 255, 0.82); }
.section-heading { margin-bottom: 2rem; }
.section-heading h2, .content-card h2, .product-content h2, .contact-card h2, .form-card h2, .cta-band h2 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.1; }
.section-heading p, .content-card p, .product-content p, .contact-card p, .form-card p, .footer-grid p, .inner-hero p { color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.text-link { color: var(--blue); font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.service-card, .content-card, .contact-card, .form-card, .map-card, .highlight-panel, .empty-state { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card, .content-card, .contact-card, .form-card, .empty-state { padding: 1.7rem; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 1rem; color: var(--white); background: linear-gradient(135deg, var(--green), var(--blue)); }
.service-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.portfolio-grid, .album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.portfolio-card, .album-card { padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #dce7ef; position: relative; cursor: pointer; box-shadow: var(--shadow); }
.portfolio-card img, .album-card img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.35s ease; }
.portfolio-card:hover img, .album-card:hover img { transform: scale(1.05); }
.portfolio-card::after, .album-card::after { content: ''; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(180deg, rgba(7, 20, 31, 0), rgba(7, 20, 31, 0.84)); pointer-events: none; }
.gallery-card-title { position: absolute; left: 1rem; right: 1rem; bottom: 0.95rem; color: var(--white); font-size: 0.98rem; font-weight: 700; line-height: 1.28; text-align: left; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; z-index: 1; }
.cta-band { color: var(--white); background: linear-gradient(135deg, rgba(10, 65, 51, 0.95), rgba(12, 63, 120, 0.94)), url('/images/fachada.jpg') center/cover; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band-inner { justify-content: space-between; }
.inner-hero { padding: 4rem 0 2rem; }
.inner-hero .container { padding: 2.5rem; border-radius: 32px; color: var(--white); background: linear-gradient(135deg, rgba(10, 65, 51, 0.94), rgba(12, 63, 120, 0.92)), url('/images/fachada.jpg') center/cover; box-shadow: var(--shadow); }
.inner-hero p { color: rgba(255,255,255,0.84); }
.company-photo-card {
    margin: 0;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.company-photo-card img {
    width: 100%;
    height: min(560px, 62vw);
    object-fit: cover;
    object-position: center 34%;
}

.company-photo-card figcaption {
    padding: 1rem 1.4rem 1.35rem;
    color: var(--muted);
    font-weight: 500;
}

.company-about-section {
    padding-top: 1rem;
}
.product-list { display: grid; gap: 1.6rem; }
.product-card, .map-layout, .contact-layout, .highlight-panel { display: grid; gap: 1.5rem; }
.product-card { grid-template-columns: 340px 1fr; padding: 1.2rem; border-radius: 28px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--border); box-shadow: var(--shadow); }
.product-image img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 20px; }
.benefits { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.benefits span { padding: 0.7rem 1rem; border-radius: 999px; background: rgba(23, 160, 97, 0.1); color: var(--green-dark); font-weight: 600; }
.map-layout, .contact-layout { grid-template-columns: 1.2fr 0.8fr; }
.map-card { overflow: hidden; }
.map-card iframe { width: 100%; min-height: 480px; border: 0; }
.contact-card address, .site-footer address { display: grid; gap: 0.2rem; font-style: normal; color: var(--muted); }
.contact-form { display: grid; gap: 0.9rem; }
.contact-form label { font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.95rem 1rem; border-radius: 14px; border: 1px solid rgba(12, 63, 120, 0.15); background: var(--surface); color: var(--text); }
.alert { padding: 1rem 1.2rem; border-radius: 16px; margin-bottom: 1rem; font-weight: 600; }
.alert-success { background: rgba(23, 160, 97, 0.12); color: var(--green-dark); }
.alert-error { background: rgba(194, 49, 49, 0.1); color: #9a2f2f; }
.highlight-panel { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding: 2rem; }
.feature-list { display: grid; gap: 0.9rem; }
.feature-list p { margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(12, 63, 120, 0.05); }
.site-footer { background: #07253f; color: rgba(255, 255, 255, 0.8); padding: 3.5rem 0 1.4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.site-footer h3 { color: var(--white); margin-top: 0; }
.site-footer a { color: var(--white); }
.social-link { display: inline-flex; padding: 0.8rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.whatsapp-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 65; display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.95rem 1.25rem; border-radius: 999px; background: #25D366; color: #ffffff; font-weight: 700; box-shadow: 0 18px 35px rgba(37, 211, 102, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 22px 40px rgba(37, 211, 102, 0.42); }
.whatsapp-float-icon { width: 24px; height: 24px; display: inline-flex; }
.whatsapp-float-icon svg { width: 100%; height: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(7, 20, 31, 0.82); padding: 1rem; }
.lightbox-content { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; align-items: center; gap: 1rem; width: min(1260px, calc(100vw - 2rem)); }
.lightbox-media { display: grid; justify-items: center; gap: 1rem; min-width: 0; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 20px; box-shadow: var(--shadow); }
.lightbox-caption { width: min(760px, 100%); padding: 1rem 1.2rem; border-radius: 18px; background: rgba(255, 255, 255, 0.1); color: var(--white); backdrop-filter: blur(10px); }
.lightbox-caption-title { display: block; font-size: 1.05rem; line-height: 1.3; }
.lightbox-caption-text { margin: 0.45rem 0 0; color: rgba(255, 255, 255, 0.82); }
.lightbox-close { position: absolute; top: -0.8rem; right: -0.2rem; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 2rem; cursor: pointer; }
.lightbox-nav { width: 58px; height: 58px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s ease, transform 0.2s ease; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.04); }

@media (max-width: 960px) {
    .site-nav { position: absolute; top: calc(100% + 0.6rem); left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: rgba(255, 255, 255, 0.98); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
    .site-nav.open { display: flex; }
    .nav-toggle { display: inline-block; }
    .service-grid, .content-grid, .portfolio-grid, .album-grid, .footer-grid, .map-layout, .contact-layout, .highlight-panel, .product-card { grid-template-columns: 1fr; }
    .cta-band-inner, .split-heading, .footer-bottom { align-items: flex-start; flex-direction: column; }
    .lightbox-content { grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 0.65rem; width: min(100%, calc(100vw - 1.25rem)); }
    .lightbox-caption { width: 100%; }
}

@media (max-width: 640px) {
    .page-shell { padding-top: 82px; }
    .topbar-inner { min-height: 82px; }
    .brand { gap: 0.75rem; }
    .brand-mark { width: 118px; height: 54px; padding: 0.25rem 0.45rem; }
    .brand-text strong { font-size: 1rem; }
    .brand-text small { font-size: 0.88rem; }
    .hero { min-height: auto; }
    .hero-content, .section, .inner-hero { padding-top: 3.2rem; padding-bottom: 3.2rem; }
    .inner-hero .container { padding: 2rem 1.2rem; }
    .portfolio-card img, .album-card img { height: 220px; }
    .gallery-card-title { left: 0.85rem; right: 0.85rem; bottom: 0.8rem; font-size: 0.92rem; }
    .whatsapp-float { right: 0.9rem; bottom: 0.9rem; padding: 0.9rem 1.05rem; }
    .whatsapp-float span:last-child { font-size: 0.92rem; }
    .lightbox-content { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 0.4rem; width: calc(100vw - 0.75rem); }
    .lightbox-close { top: -0.7rem; right: 0; width: 46px; height: 46px; }
    .lightbox-nav { width: 46px; height: 46px; font-size: 2rem; }
    .lightbox-caption { padding: 0.9rem 1rem; border-radius: 16px; }
    .lightbox-caption-title { font-size: 0.98rem; }
    .lightbox-caption-text { font-size: 0.92rem; }
}
