:root {
    --orange: #F4800A;
    --orange-dark: #D96D00;
    --dark: #1A0F00;
    --dark2: #2A1800;
    --cream: #F5F0E8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    color: #1A0F00;
    background: #fff;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s;
}

nav.scrolled {
    background: rgba(26, 15, 0, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--orange);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(26, 15, 0, 0.98);
    padding: 1rem 24px 20px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--orange);
}

/* HERO */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 15, 0, 0.82) 40%, rgba(26, 15, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeUp 0.8s ease both;
}

.hero-title span {
    color: var(--orange);
}

.hero-sub {
    margin-top: 20px;
    max-width: 420px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    animation: fadeUp 0.8s 0.2s ease both;
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-orange:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.hero-btn {
    margin-top: 36px;
    animation: fadeUp 0.8s 0.4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION COMMON */
section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* OBRAS */
#obras {
    background: #fff;
}

.obras-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 16px;
    flex-wrap: wrap;
}

.obras-slider-wrap {
    position: relative;
    overflow: hidden;
}

.obras-track {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.obra-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.obra-info {
    padding: 20px 0;
}

.obra-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(22px, 3vw, 32px);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.obra-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
}

.obra-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(244, 128, 10, 0.4);
}

.slider-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-50%) scale(1.08);
}

.slider-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.slider-btn.prev {
    left: -22px;
}

.slider-btn.next {
    right: -22px;
}

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #ddd;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--orange);
    transform: scale(1.3);
}

/* SERVICIOS */
#servicios {
    background: var(--cream);
}

.servicios-sub {
    text-align: center;
    color: #555;
    margin: 12px 0 48px;
    font-size: 16px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.servicio-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.servicio-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.servicio-body {
    padding: 20px;
}

.servicio-name {
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

.explore-wrap {
    text-align: center;
    margin-top: 40px;
}

/* CONTACT */
#contacto {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.contact-map-bg {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect fill='none' stroke='%23F4800A' stroke-width='1.5'/%3E%3Cpath d='M0 150 L200 150 L200 50 L400 50 L400 200 L600 200 L600 100 L800 100' fill='none' stroke='%23F4800A' stroke-width='1.2'/%3E%3Cpath d='M0 300 L150 300 L150 400 L350 400 L350 280 L550 280 L550 380 L800 380' fill='none' stroke='%23F4800A' stroke-width='1.2'/%3E%3Cpath d='M100 0 L100 600' fill='none' stroke='%23F4800A' stroke-width='0.8'/%3E%3Cpath d='M300 0 L300 600' fill='none' stroke='%23F4800A' stroke-width='0.8'/%3E%3Cpath d='M500 0 L500 600' fill='none' stroke='%23F4800A' stroke-width='0.8'/%3E%3Cpath d='M700 0 L700 600' fill='none' stroke='%23F4800A' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: cover;
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-left-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(40px, 6vw, 72px);
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

.contact-form-wrap {
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.form-label-top {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 24px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    font-size: 15px;
    font-family: 'Barlow', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit {
    width: 100%;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--orange-dark);
}

.form-msg {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

.form-msg.success {
    color: #16a34a;
}

.form-msg.error {
    color: #dc2626;
}

/* FOOTER */
footer {
    background: var(--dark2);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 12px 0;
}

.footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.2s, color 0.2s;
}

.footer-socials a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.footer-col-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-contact-info {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* OBRAS PAGE (hidden by default) */
#page-obras {
    display: block;
}

#page-home {
    display: block;
}

/* FILTERS */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 36px;
}

.filter-select-wrap {
    position: relative;
}

.filter-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: border-color 0.2s;
    outline: none;
}

.filter-select-wrap select:focus {
    border-color: var(--orange);
}

.filter-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    font-size: 12px;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid #ddd;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.filters-right {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* OBRAS GRID */
.obras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.obra-card {
    display: flex;
    gap: 0;
    border: 1.5px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.obra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.obra-card-img {
    width: 140px;
    min-height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.obra-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.obra-card-muni {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.obra-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.obra-card-dates {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.obra-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.obra-card-monto {
    font-size: 13px;
    color: #333;
}

.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: #FEF3C7;
    color: #D97706;
    letter-spacing: 0.5px;
}

.badge.done {
    background: #DCFCE7;
    color: #16A34A;
}

.badge.planned {
    background: #EFF6FF;
    color: #2563EB;
}

/* SERVICES PAGE */
#page-servicios {
    display: none;
}

.servicios-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-page-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
}

.servicio-page-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    position: relative;
    display: block;
}

.servicio-page-icon {
    background: var(--orange);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -24px auto 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(244, 128, 10, 0.4);
}

.servicio-page-body {
    padding: 20px 20px 24px;
    text-align: center;
}

.servicio-page-name {
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 10px;
}

.servicio-page-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.services-slider-wrap {
    position: relative;
    overflow: hidden;
}

.services-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.services-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.services-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(244, 128, 10, 0.3);
}

.services-nav-btn:hover {
    background: var(--orange-dark);
}

.services-nav-btn svg {
    fill: #fff;
    width: 18px;
    height: 18px;
}

/* ANIMATE ON SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .servicios-grid,
    .servicios-page-grid,
    .services-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .obras-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .obra-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .servicios-grid,
    .servicios-page-grid,
    .services-slide {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .obras-grid {
        grid-template-columns: 1fr;
    }

    .filters-right {
        margin-left: 0;
    }

    .slider-btn.prev {
        left: -10px;
    }

    .slider-btn.next {
        right: -10px;
    }
}