/* =========================================================
   HORMITEC OBRAS 1.5
   ========================================================= */

:root {
    --hto-orange: #F2600C;
    --hto-dark: #181818;
    --hto-muted: #8C887F;
    --hto-border: #E5E5E5;
    --hto-soft: #F7F7F5;
}

.hto-obras,
.hto-single,
.hto-site-header,
.hto-site-footer {
    font-family: "Inter", Arial, sans-serif;
}

/* ================= CATÁLOGO ================= */

.hto-counter {
    margin: 0 0 24px;
    color: var(--hto-muted);
    font-size: 14px;
}

.hto-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.hto-card {
    overflow:hidden;
    border:1px solid var(--hto-border);
    border-radius:10px;
    background:var(--hto-soft);
    transition:transform .15s ease, box-shadow .15s ease;
}

.hto-card:hover {
    transform:translateY(-2px);
    box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.hto-card--hidden { display:none; }

.hto-card__link {
    display:block;
    height:100%;
    text-decoration:none !important;
}

.hto-card__media {
    height:170px;
    overflow:hidden;
    background:#EEEDE9;
}

.hto-card__media img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}

.hto-card:hover img { transform:scale(1.025); }

.hto-card__placeholder {
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#999;
    font-weight:700;
    font-size:12px;
}

.hto-card__body { padding:16px; }

.hto-card__title {
    margin:0 !important;
    color:var(--hto-dark) !important;
    font-size:15px !important;
    line-height:1.45 !important;
    font-weight:700 !important;
}

.hto-actions {
    margin-top:40px;
    text-align:center;
}

.hto-toggle {
    border:0;
    border-radius:6px;
    background:var(--hto-orange);
    color:#FFF;
    padding:15px 34px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.hto-toggle__less { display:none; }

.hto-obras.hto-expanded .hto-card--hidden { display:block; }
.hto-obras.hto-expanded .hto-toggle__more { display:none; }
.hto-obras.hto-expanded .hto-toggle__less { display:inline; }

/* ================= HEADER ================= */

body.hto-single-page {
    margin:0 !important;
    background:#FFF !important;
}

.hto-site-header {
    min-height:96px;
    padding:10px 46px 8px;
    background:#FFF;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    border-bottom:1px solid #EEE;
}

.hto-brand {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    color:#111 !important;
    text-decoration:none !important;
}

.hto-brand__name {
    font-family:"Anton",Impact,sans-serif;
    font-size:46px;
    line-height:.95;
}

.hto-brand__name span {
    color:#F68A32;
    -webkit-text-stroke:1px #111;
}

.hto-brand small {
    margin-top:5px;
    margin-left:75px;
    color:#111;
    font-family:"Anton",Impact,sans-serif;
    font-size:11px;
    font-weight:400;
}

.hto-site-nav {
    display:flex;
    align-items:center;
    gap:34px;
}

.hto-site-nav a {
    padding:12px 0;
    color:#111 !important;
    text-decoration:none !important;
    font-family:"Anton",Impact,sans-serif;
    font-size:16px;
    font-weight:400;
}

.hto-site-nav a:hover,
.hto-site-nav a.is-current {
    color:var(--hto-orange) !important;
}

/* ================= SINGLE ================= */

.hto-single {
    color:var(--hto-dark);
    background:#FFF;
}

.hto-single__hero {
    position:relative;
    min-height:420px;
    background-color:#222;
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.hto-single__overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(0,0,0,.46) 0%,
        rgba(0,0,0,.32) 38%,
        rgba(0,0,0,.78) 100%
    );
}

.hto-single__hero-inner {
    position:relative;
    z-index:2;
    width:min(1200px,calc(100% - 64px));
    min-height:420px;
    margin:0 auto;
    padding:28px 0 40px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.hto-single__back {
    align-self:flex-start;
    padding:10px 16px;
    border-radius:6px;
    background:rgba(0,0,0,.55);
    color:#FFF !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:600;
}

.hto-single__back:hover { background:var(--hto-orange); }

.hto-single__eyebrow {
    display:block;
    margin-bottom:9px;
    color:var(--hto-orange);
    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
}

.hto-single__hero h1 {
    margin:0 !important;
    max-width:900px;
    color:#FFF !important;
    font-family:"Anton",Impact,sans-serif !important;
    font-size:clamp(40px,5vw,62px) !important;
    font-weight:400 !important;
    line-height:1.04 !important;
    text-transform:uppercase;
}

.hto-single__content {
    width:min(1100px,calc(100% - 64px));
    margin:0 auto;
    padding:54px 0 70px;
}

.hto-single__meta {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-bottom:52px;
}

.hto-single__meta-card {
    padding:24px 26px;
    border:1px solid var(--hto-border);
    border-left:4px solid var(--hto-orange);
    border-radius:8px;
    background:#FFF;
}

.hto-single__meta-label {
    display:block;
    margin-bottom:7px;
    color:var(--hto-muted);
    font-size:11px;
    font-weight:700;
    letter-spacing:1.3px;
}

.hto-single__meta-card strong {
    color:var(--hto-dark);
    font-size:18px;
}

.hto-single__section-heading {
    margin-bottom:22px;
}

.hto-single__section-heading > span {
    color:var(--hto-orange);
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
}

.hto-single__section-heading h2 {
    margin:5px 0 0 !important;
    color:var(--hto-dark) !important;
    font-family:"Anton",Impact,sans-serif !important;
    font-size:30px !important;
    font-weight:400 !important;
}

/* ================= GALERÍA ================= */

.hto-single__gallery {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}

.hto-single__photo {
    height:220px;
    padding:0 !important;
    border:0 !important;
    border-radius:8px !important;
    overflow:hidden;
    background:#EEE;
    cursor:pointer;
}

.hto-single__photo--hidden {
    display:none;
}

.hto-single__gallery.is-expanded .hto-single__photo--hidden {
    display:block;
}

.hto-single__photo img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease, filter .3s ease;
}

.hto-single__photo:hover img {
    transform:scale(1.035);
    filter:brightness(.88);
}

.hto-single__gallery-actions {
    margin-top:24px;
    text-align:center;
}

.hto-gallery-toggle {
    border:1.5px solid var(--hto-dark) !important;
    border-radius:6px !important;
    background:#FFF !important;
    color:var(--hto-dark) !important;
    padding:13px 28px !important;
    font-family:"Inter",Arial,sans-serif !important;
    font-size:13px !important;
    font-weight:700 !important;
    cursor:pointer;
    transition:background .15s ease,color .15s ease;
}

.hto-gallery-toggle:hover {
    background:var(--hto-dark) !important;
    color:#FFF !important;
}

.hto-gallery-toggle__less { display:none; }

.hto-gallery-toggle.is-expanded .hto-gallery-toggle__more { display:none; }
.hto-gallery-toggle.is-expanded .hto-gallery-toggle__less { display:inline; }

/* ================= VIDEOS ================= */

.hto-single__videos-section {
    margin-top:52px;
}

.hto-single__videos {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.hto-single__video {
    position:relative;
    aspect-ratio:16 / 9;
    overflow:hidden;
    border-radius:8px;
    background:#111;
}

.hto-single__video iframe {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
}

/* ================= CTA ================= */

.hto-single__cta {
    margin-top:54px;
    padding:30px 34px;
    border-radius:10px;
    background:var(--hto-dark);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
}

.hto-single__cta span {
    color:var(--hto-orange);
    font-size:11px;
    font-weight:700;
    letter-spacing:1.5px;
}

.hto-single__cta h2 {
    margin:5px 0 0 !important;
    color:#FFF !important;
    font-family:"Anton",Impact,sans-serif !important;
    font-size:27px !important;
    font-weight:400 !important;
}

.hto-single__cta a {
    flex-shrink:0;
    padding:15px 22px;
    border-radius:6px;
    background:var(--hto-orange);
    color:#FFF !important;
    text-decoration:none !important;
    font-size:13px;
    font-weight:700;
}

/* ================= FOOTER ACTUAL HORMITEC ================= */

.hto-site-footer {
    background:#1D1C24;
    color:#FFF;
    padding:30px 24px 26px;
}

.hto-site-footer__contact {
    max-width:1100px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:18px 28px;
}

.hto-footer-item {
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#FFF !important;
    text-decoration:none !important;
    font-family:"Anton",Impact,sans-serif;
    font-size:14px;
    font-weight:400;
}

.hto-footer-item svg {
    width:17px;
    height:17px;
    flex:0 0 auto;
    fill:none;
    stroke:#FFF;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hto-footer-item:hover,
.hto-site-footer__copyright a:hover {
    color:var(--hto-orange) !important;
}

.hto-site-footer__copyright {
    margin-top:16px;
    text-align:center;
    color:#FFF;
    font-family:"Anton",Impact,sans-serif;
    font-size:14px;
    font-weight:400;
}

.hto-site-footer__copyright a {
    color:#FFF !important;
    text-decoration:none !important;
}

/* ================= LIGHTBOX ================= */

.hto-lightbox {
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:40px;
    background:rgba(0,0,0,.92);
}

.hto-lightbox.is-open { display:flex; }

.hto-lightbox img {
    max-width:min(1200px,94vw);
    max-height:88vh;
    width:auto;
    height:auto;
}

.hto-lightbox__close {
    position:absolute;
    top:18px;
    right:24px;
    border:0 !important;
    background:transparent !important;
    color:#FFF !important;
    font-size:42px !important;
    cursor:pointer;
}

/* ================= RESPONSIVE ================= */

@media (max-width:900px) {
    .hto-grid,
    .hto-single__gallery {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .hto-site-header {
        padding:12px 24px;
    }

    .hto-site-nav {
        gap:18px;
    }

    .hto-single__meta {
        grid-template-columns:1fr;
    }

    .hto-single__cta {
        align-items:flex-start;
        flex-direction:column;
    }
}

@media (max-width:700px) {
    .hto-site-header {
        min-height:auto;
        flex-direction:column;
        align-items:flex-start;
        padding:16px 20px;
    }

    .hto-brand__name {
        font-size:38px;
    }

    .hto-brand small {
        margin-left:0;
    }

    .hto-site-nav {
        width:100%;
        gap:18px;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .hto-site-nav a {
        flex:0 0 auto;
        font-size:14px;
    }

    .hto-single__videos {
        grid-template-columns:1fr;
    }
}

@media (max-width:600px) {
    .hto-grid,
    .hto-single__gallery {
        grid-template-columns:1fr;
    }

    .hto-card__media { height:210px; }

    .hto-single__hero,
    .hto-single__hero-inner {
        min-height:360px;
    }

    .hto-single__hero-inner,
    .hto-single__content {
        width:min(100% - 32px,1100px);
    }

    .hto-single__photo { height:230px; }

    .hto-single__cta {
        padding:25px 22px;
    }

    .hto-single__cta a {
        width:100%;
        text-align:center;
    }

    .hto-site-footer {
        padding:26px 18px 22px;
    }

    .hto-site-footer__contact {
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

    .hto-footer-item {
        text-align:center;
        justify-content:center;
    }
}


/* ================= OBRA RELACIONADA EN SERVICIOS ================= */

.hto-related-work {
    display: flex;
    width: 100%;
    min-height: 154px;
    overflow: hidden;
    border: 1px solid #E5E3DC;
    border-radius: 10px;
    background: #F7F5EF;
    color: #181818 !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hto-related-work:hover {
    transform: translateY(-2px);
    border-color: #D8D5CD;
    box-shadow: 0 7px 20px rgba(0,0,0,.08);
}

.hto-related-work__media {
    width: 220px;
    min-height: 154px;
    flex: 0 0 220px;
    overflow: hidden;
    background: #EDEBE5;
}

.hto-related-work__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 154px;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.hto-related-work:hover .hto-related-work__media img {
    transform: scale(1.035);
}

.hto-related-work__placeholder {
    display: flex;
    width: 100%;
    min-height: 154px;
    align-items: center;
    justify-content: center;
    color: #8C887F;
    font-size: 12px;
    font-weight: 700;
}

.hto-related-work__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 26px;
}

.hto-related-work__label {
    margin-bottom: 7px;
    color: #8C887F;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hto-related-work__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hto-related-work__title {
    color: #181818;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.hto-related-work__arrow {
    flex: 0 0 auto;
    color: #F2600C;
    font-size: 22px;
    line-height: 1;
    transition: transform .18s ease;
}

.hto-related-work:hover .hto-related-work__arrow {
    transform: translateX(4px);
}

.hto-related-work-error {
    padding: 14px 16px;
    border: 1px dashed #F2600C;
    border-radius: 8px;
    background: #FFF8F3;
    color: #8A3A09;
    font-size: 13px;
}

@media (max-width: 600px) {
    .hto-related-work {
        flex-direction: column;
    }

    .hto-related-work__media {
        width: 100%;
        height: 190px;
        min-height: 190px;
        flex-basis: 190px;
    }

    .hto-related-work__media img,
    .hto-related-work__placeholder {
        min-height: 190px;
    }

    .hto-related-work__content {
        padding: 18px 20px;
    }
}
