/* ===========================================================
   Bheem Nelson — Empresa de Ingeniería
   Design System
   =========================================================== */

:root {
    /* Colors */
    --color-bg: #fafaf7;
    --color-surface: #ffffff;
    --color-ink: #0b1f3a; /* deep navy */
    --color-ink-soft: #1f2f4d;
    --color-muted: #5b6779;
    --color-line: #e7e5df;
    --color-accent: #d49a3a; /* warm amber */
    --color-accent-dark: #b67d22;
    --color-accent-soft: #f6e9cc;
    --color-success: #2f7d4f;
    --color-whatsapp: #25d366;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.65) 60%, rgba(11, 31, 58, 0.4) 100%);
    --grad-accent: linear-gradient(135deg, #d49a3a 0%, #b67d22 100%);
    --grad-soft: linear-gradient(180deg, #fafaf7 0%, #f3f1ea 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
    --shadow-md: 0 10px 30px -10px rgba(11, 31, 58, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, 0.25);

    /* Type */
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout */
    --container: 1200px;
    --radius-sm: 6px;
    --radius: 14px;
    --radius-lg: 22px;

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-ink);
    text-decoration: none;
    transition: color .2s var(--ease);
}

a:hover {
    color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1rem;
    color: var(--color-ink-soft);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.4rem;
}

section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* ============== Header ============== */
.site-header {
    z-index: 99999;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    background: var(--grad-accent);
    color: #fff;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.brand small {
    display: block;
    font-size: .7rem;
    font-weight: 500;
    color: var(--color-muted);
    font-family: var(--font-body);
    letter-spacing: .04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-size: .94rem;
    font-weight: 500;
    color: var(--color-ink-soft);
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-ink);
}

.nav-menu .has-sub {
    position: relative;
}

.nav-menu .has-sub > a::after {
    content: "▾";
    margin-left: .25rem;
    font-size: .7rem;
    color: var(--color-muted);
}

.submenu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: .6rem;
    min-width: 280px;
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: .6rem 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .2s var(--ease);
}

.has-sub:hover .submenu, .has-sub:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: .55rem .8rem;
    border-radius: 8px;
    font-size: .9rem;
}

.submenu li a:hover {
    background: var(--color-bg);
    color: var(--color-accent-dark);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-ink);
    margin: 5px auto;
    transition: transform .2s var(--ease), opacity .2s;
}

/* ============== Buttons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .94rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-line);
}

.btn-ghost:hover {
    background: var(--color-ink);
    color: #fff;
    border-color: var(--color-ink);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--color-ink);
}

.btn-whatsapp {
    background: var(--color-whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    color: #fff;
    background: #1faa53;
}

.btn-sm {
    padding: .55rem 1rem;
    font-size: .85rem;
}

/* ============== Hero ============== */
.hero {
    position: relative;
    color: #fff;
    padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
    background: var(--color-ink);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-hero), url('/assets/images/hero.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1, .hero p {
    color: #fff;
}

.hero h1 {
    max-width: 22ch;
}

.hero .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, .85);
    max-width: 60ch;
    margin: 0 0 1.4rem;
}

.hero .eyebrow {
    color: var(--color-accent);
}

.hero ul.features {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.6rem;
}

.hero ul.features li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255, 255, 255, .95);
    font-size: .95rem;
}

.hero ul.features li::before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--grad-accent);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background-image: linear-gradient(135deg, #d49a3a, #b67d22);
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 2rem;
}

.hero-stats div strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #fff;
}

.hero-stats div span {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

/* Page hero (smaller) */
.page-hero {
    position: relative;
    color: #fff;
    padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: var(--color-ink);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 31, 58, .92), rgba(11, 31, 58, .7)), url('/assets/images/hero.jpg') center/cover no-repeat;
}

.page-hero .container {
    position: relative;
}

.page-hero h1, .page-hero p {
    color: #fff;
}

.page-hero p {
    color: rgba(255, 255, 255, .85);
    max-width: 65ch;
}

.breadcrumbs {
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, .85);
}

.breadcrumbs span {
    margin: 0 .5rem;
    opacity: .5;
}

/* ============== Service Cards ============== */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card .img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.service-card:hover .img-wrap img {
    transform: scale(1.05);
}

.service-card .body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin-bottom: .6rem;
}

.service-card .read-more {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    color: var(--color-accent-dark);
    font-size: .9rem;
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}

.service-card .read-more::after {
    content: "→";
    transition: transform .2s var(--ease);
}

.service-card:hover .read-more::after {
    transform: translateX(4px);
}

/* ============== Why us ============== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.why-card {
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}

.why-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.why-icon {
    width: 46px;
    height: 46px;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: .4rem;
}

.why-card p {
    font-size: .94rem;
    margin: 0;
}

/* ============== Process ============== */
.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.process-step {
    position: relative;
    padding: 1.4rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-line);
    text-align: left;
}

.process-step .num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 700;
    line-height: 1;
    margin-bottom: .8rem;
    display: block;
}

.process-step h4 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin: 0 0 .3rem;
}

.process-step p {
    font-size: .88rem;
    margin: 0;
}

/* ============== CTA Banner ============== */
.cta-banner {
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.4rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--grad-accent);
    opacity: .25;
    filter: blur(40px);
}

.cta-banner h2, .cta-banner p {
    color: #fff;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, .8);
}

.cta-banner .cta-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
}

/* ============== Sectors / Activities grid ============== */
.sectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.sector-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color .2s var(--ease);
}

.sector-card:hover {
    border-color: var(--color-accent);
}

.sector-card h3 {
    font-size: 1.15rem;
    margin-bottom: .6rem;
}

.sector-card ul {
    padding-left: 1.1rem;
    margin: .6rem 0 .8rem;
    color: var(--color-ink-soft);
    font-size: .94rem;
}

.sector-card .tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* ============== Trust / reviews ============== */
.trust {
    background: var(--grad-soft);
}

.trust-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.review {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem;
    border: 1px solid var(--color-line);
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--color-accent);
    margin-bottom: .8rem;
    letter-spacing: .15em;
}

.review p {
    font-style: italic;
    color: var(--color-ink-soft);
}

.review .who {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
    font-size: .9rem;
}

.review .who strong {
    display: block;
    color: var(--color-ink);
}

.review .who span {
    color: var(--color-muted);
    font-size: .85rem;
}

.google-rating {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem 1.2rem;
    background: #fff;
    border-radius: 999px;
    border: 1px solid var(--color-line);
    margin-bottom: 1rem;
}

.google-rating .g {
    font-weight: 700;
    font-size: .95rem;
    background: linear-gradient(90deg, #4285F4, #EA4335, #FBBC05, #34A853);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============== Two-column blocks ============== */
.two-col {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-col.reverse > :first-child {
    order: 2;
}

.two-col img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-height: 500px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .7rem;
    color: var(--color-ink-soft);
    font-size: .98rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    display: grid;
    place-items: center;
    font-size: .8rem;
    font-weight: 700;
}

/* ============== Article body ============== */
.article-body {
    max-width: 760px;
    margin: 0 auto;
}

.article-body h2 {
    margin-top: 2.4rem;
}

.article-body h3 {
    margin-top: 1.6rem;
}

.article-body ul, .article-body ol {
    color: var(--color-ink-soft);
    padding-left: 1.4rem;
}

.article-body li {
    margin-bottom: .4rem;
}

.faq {
    margin-top: 2.5rem;
}

.faq details {
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    margin-bottom: .8rem;
    background: #fff;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--color-ink);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    color: var(--color-accent-dark);
    font-weight: 700;
}

.faq details[open] summary::after {
    content: "−";
}

/* ============== Contact form ============== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3vw, 2.6rem);
    box-shadow: var(--shadow-sm);
}

.contact-info h3 {
    margin-bottom: .8rem;
}

.contact-info p {
    font-size: .95rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0;
}

.contact-info li {
    display: flex;
    gap: .8rem;
    padding: .6rem 0;
    font-size: .95rem;
    align-items: center;
}

.contact-info li b {
    color: var(--color-ink);
    display: block;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.contact-info li a {
    color: var(--color-ink-soft);
}

.form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.field label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .35rem;
    color: var(--color-ink);
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: .8rem;
    color: var(--color-muted);
    margin-top: .6rem;
}

/* ============== Footer ============== */
.site-footer {
    background: var(--color-ink);
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: .5rem;
}

.site-footer a, .site-footer li {
    color: rgba(255, 255, 255, .75);
    font-size: .92rem;
}

.site-footer a:hover {
    color: var(--color-accent);
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand small {
    color: rgba(255, 255, 255, .6);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: .85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============== Floating WhatsApp ============== */
.float-wa {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    background: var(--color-whatsapp);
    color: #fff;
    padding: .9rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    z-index: 60;
    transition: transform .2s var(--ease);
}

.float-wa:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* ============== Animations ============== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============== Responsive ============== */
@media (max-width: 980px) {
    .services {
        grid-template-columns: 1fr 1fr;
    }

    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .two-col.reverse > :first-child {
        order: 0;
    }

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

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

    .cta-banner {
        grid-template-columns: 1fr;
    }

    .cta-banner .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .nav-menu {
        position: fixed;
        inset: 64px 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--color-line);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.4rem;
        gap: .2rem;
        transform: translateY(-110%);
        transition: transform .25s var(--ease);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.is-open {
        transform: translateY(37px);
        overflow: scroll;
        height: 90vh;
        padding-bottom: 80px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: .8rem 0;
        width: 100%;
        border-bottom: 1px solid var(--color-line);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 .4rem 1rem;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-cta .btn-ghost {
        display: none;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .form-row.cols-2 {
        grid-template-columns: 1fr;
    }

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

    .float-wa span {
        display: none;
    }
}

.privacy label {
    margin-bottom: 0;
}

.privacy input {
    width: auto;
    margin-right: 10px;
}

.privacy .field {
    display: flex;
}

footer .brand img {
    width: 100px;
    background-color: white;
    border-radius: 5px;
    padding: 7px;
}

.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand img {
    width: 100px;
}

@media(max-width: 667px) {
    .brand small {
        display: none;
    }
}

.img-responsive {
    width: 100%;
}

/* Trabajos relizados */
/* --- Modern Gallery Grid --- */
.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.probootstrap-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    height: 100%;
}

.probootstrap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* --- Image Handling --- */
.probootstrap-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Keeps all cards uniform size */
}

.probootstrap-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.probootstrap-card:hover .probootstrap-card-media img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* --- Overlay & Text --- */
.probootstrap-card-text {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.probootstrap-card-heading {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.category {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    /* Smooth reveal for category text */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.probootstrap-card:hover .category {
    opacity: 1;
    color: #000;
}

/* --- GLightbox Overrides --- */
.glightbox-container .gslide-image img {
    max-height: 90vh !important;
    width: auto !important;
}

/* ===========================================================
   Bheem Nelson - Container-Width Cookie Bar
   =========================================================== */

.cc-window.cc-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    background-color: var(--color-ink) !important;
    border-top: 1px solid var(--color-line);
    padding: 1.2rem 1.4rem !important; /* Matches your .container padding */
    z-index: 999999 !important;
    font-family: var(--font-body) !important;
    display: flex !important;
    align-items: center;
    justify-content: center; /* Centers the inner content */
    box-sizing: border-box;
}

/* This targets the inner wrapper created by CookieConsent */
/* We set the max-width to your site's --container (1200px) */
.cc-window.cc-banner .cc-message,
.cc-window.cc-banner .cc-compliance {
    max-width: var(--container);
}

/* Adjusting the message to take up space but stay within bounds */
.cc-message {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin: 0 30px 0 0 !important; /* Right margin for button gap */
    flex: 1;
    /* We don't use a hard max-width here so it can grow to fill the container */
}

.cc-link {
    color: var(--color-accent) !important;
    text-decoration: underline !important;
    font-weight: 600;
}

.cc-btn.cc-dismiss {
    background: var(--grad-accent) !important;
    color: #ffffff !important;
    padding: 10px 28px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    text-transform: uppercase;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap;
    transition: background-color, color, transform 0.2s ease !important;
}

.cc-btn.cc-dismiss:hover {
    background: var(--color-accent-dark) !important;
    transform: translateY(-2px);
}

/* ===========================================================
   Mobile Optimization
   =========================================================== */
@media (max-width: 768px) {
    .cc-window.cc-banner {
        z-index: 9998 !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        gap: 1.2rem !important;
        text-align: center;
    }

    .cc-message {
        margin-right: 0 !important;
        font-size: 0.82rem !important;
    }

    .cc-compliance, .cc-btn.cc-dismiss {
        width: 100% !important;
    }
}


body .grecaptcha-badge {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}