:root {
    --green: #008b3d;
    --green-dark: #006d30;
    --green-deep: #064421;
    --red: #db0714;
    --red-dark: #ad0710;
    --black: #111311;
    --black-soft: #191c1a;
    --gray-900: #292c2a;
    --gray-800: #414542;
    --gray-700: #626763;
    --gray-600: #777c78;
    --gray-500: #969b97;
    --gray-400: #b6bab7;
    --gray-300: #d5d8d6;
    --gray-200: #e7e9e8;
    --gray-100: #f2f4f3;
    --gray-50: #f7f8f7;
    --white: #ffffff;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
.container { width: min(calc(100% - 52px), var(--container)); margin-inline: auto; }

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--gray-200);
}
.header-content { min-height: 104px; display: flex; align-items: center; gap: 36px; }
.brand {
    width: 225px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.brand img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.5); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a {
    position: relative;
    padding: 42px 0 38px;
    color: var(--gray-900);
    font-size: 12px;
    font-weight: 700;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 30px;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width .2s ease;
}
.main-nav a:hover { color: var(--green-dark); }
.main-nav a:hover::after { width: 100%; }
.header-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 11px 18px;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.header-cta:hover { background: var(--green-dark); }
.menu-button { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { width: 24px; height: 2px; display: block; margin: 5px auto; background: var(--black); }

/* HERO */
.hero { padding: 68px 0 78px; background: var(--gray-50); }
.hero-grid { display: grid; grid-template-columns: 1fr .92fr; gap: 67px; align-items: stretch; }
.hero-copy { align-self: center; }
.technical-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.45px;
}
.technical-label span:first-child { color: var(--red); }
.technical-label i { width: 30px; height: 1px; background: var(--gray-400); }
.hero h1 {
    max-width: 660px;
    margin-top: 24px;
    color: var(--black);
    font-size: clamp(3.2rem, 5vw, 5.25rem);
    line-height: .98;
    letter-spacing: -4.2px;
    font-weight: 800;
}
.hero h1 strong { display: block; color: var(--green-dark); font-weight: 800; }
.hero-description {
    max-width: 620px;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--green);
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.75;
}
.hero-region { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.hero-region span { color: var(--gray-700); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.hero-region i { width: 4px; height: 4px; background: var(--red); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 34px; }
.button-red {
    min-height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 13px 20px;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
}
.button-red:hover { background: var(--red-dark); }
.button-red span { font-size: 16px; }
.button-line {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gray-400);
    color: var(--gray-900);
    font-size: 11px;
    font-weight: 800;
}
.button-line:hover { color: var(--green-dark); border-color: var(--green); }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 620px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-300);
}
.hero-stats > div { padding-right: 18px; }
.hero-stats > div:not(:first-child) { padding-left: 18px; border-left: 1px solid var(--gray-300); }
.hero-stats strong { display: block; color: var(--green-dark); font-size: 18px; line-height: 1; }
.hero-stats span { display: block; margin-top: 5px; color: var(--gray-500); font-size: 9px; }
.hero-photo { position: relative; min-height: 620px; overflow: hidden; background: var(--gray-300); }
.hero-photo > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo-corporate > img { object-position: center 18%; }
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.62), transparent 46%);
}
.hero-photo-code {
    position: absolute;
    z-index: 3;
    top: 24px;
    right: 24px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.65);
    color: var(--white);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}
.hero-photo-caption { position: absolute; z-index: 3; left: 27px; bottom: 28px; max-width: 350px; }
.hero-photo-caption span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.66);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.3px;
}
.hero-photo-caption strong { color: var(--white); font-size: 18px; line-height: 1.3; }
.corner-green {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-top: 6px solid var(--green);
    border-left: 6px solid var(--green);
}
.corner-red {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 80px;
    border-right: 6px solid var(--red);
    border-bottom: 6px solid var(--red);
}

/* NAVEGACIÓN DE SERVICIOS */
.services-nav { background: var(--black-soft); color: var(--white); }
.services-nav-layout { display: grid; grid-template-columns: 250px 1fr; }
.services-nav-heading { padding: 30px 28px 30px 0; border-right: 1px solid rgba(255,255,255,.13); }
.services-nav-heading span { color: rgba(255,255,255,.4); font-size: 8px; font-weight: 900; letter-spacing: 1.3px; }
.services-nav-heading strong { display: block; margin-top: 7px; color: var(--white); font-size: 13px; }
.services-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.services-nav-grid a {
    min-height: 102px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-right: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    transition: background .2s ease;
}
.services-nav-grid a:hover { background: var(--green-deep); }
.services-nav-grid span { color: var(--red); font-size: 9px; font-weight: 900; }
.services-nav-grid strong { color: rgba(255,255,255,.84); font-size: 11px; line-height: 1.4; }

.section-index {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.35px;
}
.section-index span:first-child { color: var(--red); }
.section-index.light { color: rgba(255,255,255,.55); }

/* INTRO SERVICIOS */
.services-intro { padding: 100px 0 75px; }
.intro-grid { display: grid; grid-template-columns: 1fr .65fr; gap: 90px; align-items: end; }
.services-intro h2 { max-width: 700px; font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -2.8px; }
.intro-text { padding-left: 20px; border-left: 2px solid var(--green); }
.intro-text p { color: var(--gray-700); font-size: 13px; line-height: 1.75; }
.intro-text p + p { margin-top: 14px; }

/* BLOQUES DE SERVICIO */
.service-block { padding: 90px 0; border-top: 1px solid var(--gray-200); background: var(--white); }
.service-block.alternate { background: var(--gray-50); }
.service-grid { display: grid; grid-template-columns: .83fr 1.17fr; align-items: start; gap: 78px; }
.service-grid.reverse { grid-template-columns: 1.17fr .83fr; }
.service-grid.reverse .service-photo { order: 2; }
.service-grid.reverse .service-content { order: 1; }
.service-photo { position: relative; min-height: 610px; overflow: hidden; background: var(--gray-300); }
.service-photo.horizontal { min-height: 500px; }
.service-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gestion-photo img { object-position: 43% center; }
.photo-label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 10px 14px;
    background: var(--green);
    color: var(--white);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.3px;
}
.red-label { background: var(--red); }
.service-heading { display: grid; grid-template-columns: 68px 1fr; gap: 17px; align-items: start; }
.service-number { color: var(--green); font-size: 44px; line-height: .9; font-weight: 800; letter-spacing: -2px; }
.red-number { color: var(--red); }
.service-kicker { display: block; margin-bottom: 8px; color: var(--gray-500); font-size: 8px; font-weight: 900; letter-spacing: 1.3px; }
.service-heading h2 { max-width: 600px; color: var(--black); font-size: clamp(2.3rem, 3.3vw, 3.5rem); line-height: 1.04; letter-spacing: -2.3px; }
.service-lead { max-width: 650px; margin-top: 29px; color: var(--gray-700); font-size: 14px; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 27px; }
.service-tags span { padding: 7px 10px; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-700); font-size: 9px; font-weight: 700; }
.service-details { margin-top: 30px; border-top: 2px solid var(--black); border-bottom: 1px solid var(--gray-300); }
.service-details summary {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    color: var(--black);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .45px;
    text-transform: uppercase;
}
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary span { color: var(--green); font-size: 20px; font-weight: 400; }
.service-list { padding: 4px 0 27px; }
.service-list.columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 35px; }
.service-list h4 { margin-bottom: 12px; color: var(--green-dark); font-size: 10px; letter-spacing: .6px; }
.service-list ul { list-style: none; }
.service-list li {
    position: relative;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 11px;
    line-height: 1.55;
}
.service-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 6px; height: 2px; background: var(--green); }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--green);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.service-link span { font-size: 15px; }
.red-link { color: var(--red); border-color: var(--red); }

/* DIAGNÓSTICOS */
.diagnostics { padding: 87px 0; background: var(--green-deep); color: var(--white); }
.diagnostics-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.diagnostics h2 { max-width: 500px; color: var(--white); font-size: clamp(2.4rem, 3.8vw, 3.8rem); line-height: 1.05; letter-spacing: -2.5px; }
.diagnostics-list { border-top: 1px solid rgba(255,255,255,.2); }
.diagnostics-list > div { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.diagnostics-list span { color: #ff4149; font-size: 9px; font-weight: 900; }
.diagnostics-list strong { color: rgba(255,255,255,.85); font-size: 13px; }

/* QUIÉNES SOMOS */
.company { padding: 105px 0; background: var(--black-soft); }
.company-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 85px; }
.company-photo { position: relative; min-height: 575px; overflow: hidden; background: #222; }
.company-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.company-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.48), transparent 45%); }
.company-photo-caption { position: absolute; z-index: 3; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.company-photo-caption span { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.company-photo-caption strong { color: var(--white); font-size: 14px; }
.company-copy .section-index { color: rgba(255,255,255,.5); }
.company-copy h2 { max-width: 580px; color: var(--white); font-size: clamp(2.6rem, 4vw, 4.1rem); line-height: 1.03; letter-spacing: -2.8px; }
.company-lead { max-width: 610px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.75; }
.company-copy > p:not(.company-lead) { max-width: 590px; margin-top: 20px; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.75; }
.company-values { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 34px; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.company-values > div { display: flex; align-items: center; gap: 12px; padding: 17px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.company-values span { color: var(--red); font-size: 8px; font-weight: 900; }
.company-values strong { color: var(--white); font-size: 11px; }

/* EXPERIENCIA */
.experience { padding: 105px 0; background: var(--gray-50); }
.experience-heading { display: grid; grid-template-columns: 1fr .55fr; gap: 80px; align-items: end; margin-bottom: 45px; }
.experience-heading h2 { max-width: 640px; color: var(--black); font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -2.5px; }
.experience-heading > p { padding-left: 18px; border-left: 2px solid var(--green); color: var(--gray-700); font-size: 12px; line-height: 1.7; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 250px; gap: 10px; }
.gallery-item { position: relative; overflow: hidden; margin: 0; background: var(--gray-300); grid-column: span 4; }
.gallery-main { grid-column: span 8; grid-row: span 2; }
.gallery-tall { grid-column: span 4; grid-row: span 2; }
.gallery-wide { grid-column: span 8; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.68), transparent 55%); }
.gallery-item figcaption { position: absolute; z-index: 3; left: 20px; bottom: 18px; max-width: 350px; }
.gallery-item figcaption span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.6); font-size: 7px; font-weight: 900; letter-spacing: 1.2px; }
.gallery-item figcaption strong { color: var(--white); font-size: 14px; }

/* CONTACTO */
.contact { padding: 105px 0; background: var(--green-deep); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.contact-copy h2 { max-width: 530px; color: var(--white); font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1.04; letter-spacing: -2.6px; }
.contact-copy > p { max-width: 500px; margin-top: 24px; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.75; }
.contact-data { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.18); }
.contact-data > div { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.contact-data span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.4); font-size: 8px; font-weight: 900; letter-spacing: 1.1px; }
.contact-data a, .contact-data strong { color: var(--white); font-size: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 5px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.28);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
    font-size: 12px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field select option { color: var(--black); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--white); }
.field textarea { resize: vertical; }
.send-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 13px 19px;
    border: 0;
    cursor: pointer;
    background: var(--red);
    color: var(--white);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.send-button:hover { background: var(--red-dark); }
.send-button span { font-size: 15px; }
.contact-form small { display: block; margin-top: 12px; color: rgba(255,255,255,.38); font-size: 8px; }

/* FOOTER */
footer { padding: 60px 0 24px; background: #101210; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.8fr .8fr .8fr .8fr; gap: 65px; padding-bottom: 45px; }
.footer-brand { width: 190px; height: 78px; overflow: hidden; display: flex; align-items: center; background: var(--white); }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.3); }
.footer-title { display: block; margin-bottom: 14px; color: rgba(255,255,255,.35); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.footer-grid a, .footer-grid p { display: block; margin-bottom: 6px; color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.7; }
.footer-grid a:hover { color: #6cd594; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom span { color: rgba(255,255,255,.28); font-size: 7px; font-weight: 700; letter-spacing: .6px; }

@media (max-width: 1050px) {
    .header-cta { display: none; }
    .hero-grid { gap: 40px; }
    .services-nav-layout { grid-template-columns: 1fr; }
    .services-nav-heading { padding: 23px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .service-grid, .service-grid.reverse { grid-template-columns: .9fr 1.1fr; gap: 48px; }
}

@media (max-width: 850px) {
    .header-content { min-height: 87px; }
    .brand { width: 185px; height: 67px; }
    .menu-button { display: block; margin-left: auto; }
    .main-nav {
        position: absolute;
        display: none;
        top: 87px;
        left: 0;
        right: 0;
        padding: 10px 25px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--gray-200); }
    .main-nav a::after { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { min-height: 680px; }
    .hero-photo-corporate > img { object-position: center 16%; }
    .services-nav-grid { grid-template-columns: repeat(2,1fr); }
    .intro-grid { grid-template-columns: 1fr; gap: 30px; }
    .service-grid, .service-grid.reverse { grid-template-columns: 1fr; gap: 42px; }
    .service-grid.reverse .service-photo, .service-grid.reverse .service-content { order: initial; }
    .service-photo, .service-photo.horizontal { min-height: 560px; }
    .diagnostics-grid, .company-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .company-photo { min-height: 620px; }
    .experience-heading { grid-template-columns: 1fr; gap: 25px; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 310px; }
    .gallery-item, .gallery-main, .gallery-tall, .gallery-wide { grid-column: span 1; grid-row: span 1; }
    .gallery-main, .gallery-wide { grid-column: span 2; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 580px) {
    .container { width: calc(100% - 30px); }
    .hero { padding: 45px 0 55px; }
    .hero h1 { font-size: 3rem; letter-spacing: -2.5px; }
    .hero-description { font-size: 13px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-stats { grid-template-columns: 1fr; gap: 16px; }
    .hero-stats > div:not(:first-child) { padding-left: 0; border-left: 0; }
    .hero-photo { min-height: 540px; }
    .hero-photo-corporate > img { object-position: center 18%; }
    .services-nav-grid { grid-template-columns: 1fr; }
    .services-intro { padding: 70px 0 50px; }
    .services-intro h2, .diagnostics h2, .company-copy h2, .experience-heading h2, .contact-copy h2 { font-size: 2.55rem; letter-spacing: -2px; }
    .service-block { padding: 65px 0; }
    .service-photo, .service-photo.horizontal { min-height: 470px; }
    .service-heading { grid-template-columns: 50px 1fr; }
    .service-number { font-size: 34px; }
    .service-heading h2 { font-size: 2.35rem; letter-spacing: -1.8px; }
    .service-list.columns { grid-template-columns: 1fr; gap: 20px; }
    .company-photo { min-height: 430px; }
    .company-values { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 330px; }
    .gallery-item, .gallery-main, .gallery-tall, .gallery-wide { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
