#banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#banner img {
    display: block;
    width: 100%;
    height: clamp(240px, 42vw, 580px);
    object-fit: cover;
    object-position: center;
    filter: brightness(0.5);
}

.banner-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 6% 5%;
    background: linear-gradient(to right, rgba(12,53,78,0.6) 0%, transparent 65%);
}

.banner-text .etiqueta {
    display: inline-block;
    background: var(--acento);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 40px;
    margin-bottom: 12px;
}

.banner-text h2 {
    color: white;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    margin-bottom: 8px;
}

.banner-text p {
    color: rgba(255,255,255,0.88);
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    max-width: 500px;
    line-height: 1.5;
}

/* ---------- Intro (texto + imagen) ---------- */
#cont-intro-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: min(92%, 1100px);
    margin: 72px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(12,53,78,0.13);
}

#info-intro-main {
    background: var(--azul);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

#info-intro-main .etiqueta {
    display: inline-block;
    color: var(--acento);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

#info-intro-main h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    color: white;
    line-height: 1.3;
}

#info-intro-main p {
    font-size: clamp(0.88rem, 1.3vw, 1rem);
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

#info-intro-img {
    overflow: hidden;
    min-height: 280px;
}

#info-intro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

#info-intro-img:hover img { transform: scale(1.04); }

/* ---------- Sección proyectos ---------- */
.proyectos-section {
    background: var(--gris-suave);
    padding: 80px 24px;
}

.proyectos-titulo {
    text-align: center;
    margin-bottom: 56px;
}

.proyectos-titulo .etiqueta {
    display: inline-block;
    color: var(--acento);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.proyectos-titulo h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--azul);
}

/* ---------- Carrusel de proyectos ---------- */
.cont-proyecto {
    width: min(90%, 860px);
    margin: 0 auto 56px;
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12,53,78,0.1);
}

.cont-proyecto:last-child { margin-bottom: 0; }

.cont-proyecto h3 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    color: var(--azul);
    padding: 20px 24px 16px;
    border-bottom: 2px solid var(--azul-claro);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cont-proyecto h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--acento);
    border-radius: 2px;
    flex-shrink: 0;
}

.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    height: clamp(220px, 45vw, 500px);
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(6px);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.nav:hover {
    background: rgba(224,123,42,0.85);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 14px; }
.next { right: 14px; }

/* ============================================================
   RESPONSIVE TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    #cont-intro-main {
        grid-template-columns: 1fr;
        width: 92%;
        margin: 48px auto;
    }

    #info-intro-img { min-height: 260px; }

    .carousel-track { height: clamp(200px, 50vw, 400px); }

    .cont-proyecto { width: 94%; }
}

/* ============================================================
   RESPONSIVE MOBILE (≤576px)
   ============================================================ */
@media (max-width: 576px) {
    #banner img { height: clamp(200px, 65vw, 300px); }
    .banner-text { padding: 0 5% 6%; }

    #cont-intro-main { width: 94%; margin: 36px auto; }
    #info-intro-main { padding: 32px 24px; }
    #info-intro-img { min-height: 220px; }

    .proyectos-section { padding: 56px 16px; }
    .cont-proyecto { width: 100%; margin-bottom: 28px; }
    .carousel-track { height: clamp(180px, 65vw, 300px); }
}

/* ============================================================
   MOBILE XS (≤380px)
   ============================================================ */
@media (max-width: 380px) {
    .banner-text h2 { font-size: 1.6rem; }
    .carousel-track { height: clamp(160px, 72vw, 260px); }
}

/* ============================================================
   WIDE (>1440px)
   ============================================================ */
@media (min-width: 1441px) {
    #cont-intro-main { width: min(80%, 1200px); }
    .cont-proyecto { width: min(80%, 980px); }
    .carousel-track { height: 560px; }
}