/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Druk Wide';
    src: url('assets/DrukWideBold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Syncopate';
    src: url('assets/Syncopate-Bold.ttf') format('truetype');
    font-weight: bold;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('assets/SweetSansProRegular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('assets/SweetSansProBold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Sweet Sans Pro';
    src: url('assets/SweetSansProItalic.otf') format('opentype');
    font-style: italic;
    font-display: swap;
}


/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --primary: #E25638;
    --dark: #1a1a1a;
    --light: #ffffff;
    --nav-solid: #4E3A4C;
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    /* clip ≠ hidden: no crea scroll container, sticky sigue funcionando */
}

body {
    font-family: 'Sweet Sans Pro', sans-serif;
    background: #111;
    color: var(--dark);
    overflow-x: clip;
    /* clip en lugar de hidden para no romper position:sticky */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

#navbar.scrolled {
    background: var(--nav-solid);
    padding: 0.8rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    width: auto;
    transition: transform 0.3s var(--ease);
}

.logo:hover img {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    color: var(--light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease);
}

.nav-links li a:hover {
    color: var(--primary);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Hamburger */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--light);
    border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.25s;
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ============================================
   HERO – SCROLL SCRUB
   ============================================ */

/* Wrapper: the tall container that gives the scroll room to scrub */
.hero-scroll-wrapper {
    /* JS will set a CSS var --hero-height; fallback 100vh */
    height: var(--scroll-section-height, 5000px);
    position: relative;
}

/* The actual hero sticks to the viewport while the wrapper scrolls */
.hero {
    position: sticky;
    top: 0;
    width: 100%;
    aspect-ratio: 1920 / 600;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Canvas fills the hero */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark gradient overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* vignette radial: oscurece los bordes */
        radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%),
        /* capa base uniforme suave */
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.50) 0%,
            rgba(0, 0, 0, 0.28) 45%,
            rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    color: var(--light);
    text-align: center;
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100vw;
    /* Base state: will be animated via JS classes / CSS transitions */
    will-change: transform, opacity;
}

/* --- Text elements – individual transitions --- */
.hero-subtitle {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 2rem);
    letter-spacing: 4px;
    /* JS will override this dynamically */
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    white-space: nowrap;
    /* prevent wrapping while JS measures */
    transition: none;
}

.hero-title {
    font-family: 'Druk Wide', sans-serif;
    font-size: clamp(1.75rem, 4.9vw, 4.9rem);
    /* 30% smaller than original 7vw */
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    transition: none;
}

.hero-text {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    letter-spacing: 2px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---- Hero text entrance animation ---- */
/* All text starts hidden; JS adds .hero-animated to trigger the keyframes */

.hero-subtitle,
.hero-title,
.hero-text {
    opacity: 0;
    /* Reset transition – animation is keyframe-driven */
    transition: none;
}

.hero-content.hero-animated .hero-subtitle {
    animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-content.hero-animated .hero-title {
    animation: textSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

.hero-content.hero-animated .hero-text {
    animation: textSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Once animated, keep the text fully visible at all times */
.hero-content.hero-animated .hero-subtitle,
.hero-content.hero-animated .hero-title,
.hero-content.hero-animated .hero-text {
    /* Fill-mode forwards keeps opacity:1 after animation ends */
    animation-fill-mode: forwards;
}

/* --- Scroll indicator (bouncing arrow) --- */
.scroll-indicator {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
}

.scroll-arrow {
    width: 22px;
    height: 22px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 1.6s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(6px);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    padding: 6rem 1rem;
    min-height: 720px;
    display: flex;
    align-items: center;
    background: #f0ede8 url('assets/textura.webp') no-repeat;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.about-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.88;
}

.about-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}

.about-left {
    flex: 1;
    max-width: 780px;
}

.about-title {
    font-family: 'Syncopate', sans-serif;
    color: var(--primary);
    font-size: clamp(1.1rem, 2.2vw, 2.1rem);
    line-height: 1.45;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.about-text {
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.7;
    color: #111;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: right;
}

.stat {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 1rem;
}

.stat-number {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 700;
    color: #222;
    line-height: 1;
    white-space: nowrap;
    min-height: 1em !important;
    max-height: 1em !important;
    overflow: hidden;
}

.stat-text {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.8rem);
    font-weight: 700;
    color: #222;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-subtext {
    font-size: 0.7em;
}


/* ============================================
   SCROLL ANIMATION – fade-in on enter viewport
   ============================================ */
.anim-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-right {
        flex-direction: row;
        text-align: left;
        width: 100%;
        justify-content: space-around;
    }

    .stat {
        justify-content: flex-start;
        flex-direction: column;
    }

    .stat-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        /* fallback */
        height: 100dvh;
        /* mobile: full height including dynamic chrome */
        background: var(--nav-solid);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .about-right {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stat-text {
        font-size: 1.3rem;
        text-align: left;
    }
}

@media (max-width: 600px) {

    /* Make video proportional and container adapt to height */
    .hero {
        height: auto;
    }

    .hero-canvas {
        position: relative;
        height: auto;
        display: block;
        object-fit: contain;
    }

    /* Show hero text on mobile */
    .hero-content {
        display: block;
    }

    /* On small screens, allow subtitle to wrap and disable JS letter-spacing match */
    .hero-subtitle {
        white-space: normal;
        word-break: break-word;
        letter-spacing: 2px !important;
        font-size: clamp(0.65rem, 3.5vw, 0.9rem);
    }

    .hero-title {
        white-space: normal;
        word-break: break-word;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .hero-text {
        font-size: clamp(0.7rem, 3.2vw, 1rem);
        letter-spacing: 1px;
    }

    .hero-content {
        padding: 0 1rem;
    }
}


/* ============================================
   OBRAS SECTION
   ============================================ */
.obras-section {
    background: url('assets/bg-obras2.webp');
    background-size: contain;
    background-position: top left;
    background-repeat: repeat;
}

/* Header */
.obras-header {
    padding: 7rem 2rem 3rem;
    text-align: center;
}

.obras-label {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 5px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.obras-title,
.contacto-title {
    font-family: 'Druk Wide', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.5rem);
    color: #4E3A4C;
    text-transform: uppercase;
    line-height: 1.15;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

/* ---- Carousel container ---- */
.carousel-container {
    position: relative;
    width: 100%;
    padding: 1rem 0 5rem;
    display: flex;
    align-items: center;
}

.obras-track-wrapper {
    width: 100%;
    /*overflow: hidden;*/
}

/* Horizontal track */
.obras-track {
    display: flex;
    gap: 2rem;
    padding: 0 6vw;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(226, 86, 56, 0.85);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background: rgba(226, 86, 56, 1);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: 1.5vw;
}

.carousel-next {
    right: 1.5vw;
}

/* ---- Flip Card ---- */
.obra-card {
    flex: 0 0 auto;
    width: clamp(280px, 32vw, 480px);
    aspect-ratio: 3 / 4;
    perspective: 1200px;
    cursor: pointer;
}

.obra-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 18px;
}

/* Flip on hover (desktop) and .flipped class (touch) */
.obra-card:hover .obra-card-inner,
.obra-card.flipped .obra-card-inner {
    transform: rotateY(180deg);
}

/* Front face */
.obra-card-front {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
}

.obra-card-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.obra-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.obra-card:hover .obra-card-front img {
    transform: scale(1.04);
}

.obra-card-front-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.4rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    color: #fff;
    font-family: 'Sweet Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Back face */
.obra-card-back {
    background: rgba(226, 86, 56, 0.7);
    /* var(--primary) with opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.obra-card-back-content {
    color: #fff;
    width: 100%;
}

.obra-card-back-content h3 {
    font-family: 'Druk Wide', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.obra-tipo {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

.obra-datos {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.obra-datos li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 0.75rem;
}

.obra-datos li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.obra-dato-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 700;
}

.obra-datos li>span:last-child {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sweet Sans Pro', sans-serif;
}

/* Mobile responsive for obras */
@media (max-width: 600px) {
    .obra-card {
        width: clamp(220px, 72vw, 320px);
        aspect-ratio: 3 / 4.8;
        /* 20% más alto que el 3/4 base */
    }

    .carousel-arrow {
        background: transparent;
        box-shadow: none;
        color: #fff;
    }

    .carousel-arrow:hover {
        background: transparent;
        transform: translateY(-50%);
    }

    .obras-track {
        gap: 1.2rem;
        padding: 0 4vw;
    }

    .obras-header {
        padding: 5rem 1.5rem 2rem;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary);
}

.btn-ver-obra {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #fff;
    color: var(--primary);
    border: 1px solid #fff;
    border-radius: 20px;
    font-family: 'Sweet Sans Pro', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-ver-obra:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary);
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */
.servicios-section {
    background-image: url('assets/bg-servicios.webp');
    background-size: cover;
    background-position: center;
    padding: 6rem 5%;
    color: #ffffff;
}

.servicios-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.servicio-item {
    display: flex;
    flex-direction: column;
}

.servicio-title {
    font-family: 'Druk Wide', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.servicio-text {
    font-family: 'Sweet Sans Pro', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .servicios-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* ============================================
   CONTACTO SECTION
   ============================================ */
.contacto-section {
    padding: 6rem 5%;
    background-color: #ffffff;
    color: #333333;
    font-family: 'Sweet Sans Pro', sans-serif;
}


.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Contact Info */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contacto-item svg {
    flex-shrink: 0;
}

.contacto-item div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contacto-item strong {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
}

.contacto-item span {
    font-size: 1rem;
    color: #555;
    word-break: break-word;
}

.contacto-info,
.contacto-form {
    min-width: 0;
    max-width: 100%;
}

/* Contact Form */
.contacto-form {
    display: flex;
    flex-direction: column;
}

.contacto-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #f8f9fa;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: #f0f1f3;
}

.form-group textarea {
    resize: vertical;
}

.btn-enviar {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn-enviar:hover {
    background-color: #c94b2f;
}

/* Responsive */
@media (max-width: 900px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}


.obras-title-small {
    font-size: 85%;
}

@media (max-width: 480px) {
    .obras-title-small {
        font-size: 60%;
    }
}


/* Animacion para Servicios */
.servicio-item {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.servicio-item.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.servicio-item:nth-child(1) {
    transition-delay: 0.1s;
}

.servicio-item:nth-child(2) {
    transition-delay: 0.3s;
}

.servicio-item:nth-child(3) {
    transition-delay: 0.5s;
}


/* Animacion para Titulo Obras */
.obras-title {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.obras-title.fade-up {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--nav-solid);
    color: #ffffff;
    text-align: center;
    padding: 0.7rem 0;
    font-family: 'Sweet Sans Pro', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        background: none;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        background: none;
    }
}

@media (max-width: 900px) {
    .contacto-section {
        overflow-x: hidden;
    }
}