/* ============================================
   VARIABLES GLOBALES
============================================ */
:root {
    --text-dark:   #1a1a2e;
    --text-gray:   #6c757d;
    --bg-light:    #f8f9fa;
    --border-light:#e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body, 'Manrope', sans-serif);
    color: var(--text-dark);
    line-height: 1.65;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: var(--font-heading, 'Cormorant Garamond', serif);
}

/* ============================================
   HEADER & NAVIGATION
============================================ */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    z-index: 99999 !important;
    padding: .9rem 2rem;
    transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.logo-img {
    height: 45px;
    object-fit: contain;
}

.btn-wp-header {
    background: #25d366;
    color: white !important;
    padding: .5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    transition: filter .2s, transform .2s;
}
.btn-wp-header:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    z-index: 0;
    height: 92vh;
    min-height: 520px;
    margin-top: 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img,
.hero-background video,
.hero-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            160deg,
            rgba(5,5,15,.06) 0%,
            rgba(5,5,15,.32) 50%,
            rgba(5,5,15,.72) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 6rem 3rem 3rem;
    color: white;
}

.hero-grid {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-logo {
    height: 60px;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.4));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    flex: 1;
    min-width: 0;
    letter-spacing: -.02em;
}

.hero-description {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.2);
}

.stat-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .25rem;
    color: rgba(255,255,255,.65);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.gallery-preview-card {
    background: rgba(255,255,255,.96);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1rem;
}

.thumbnail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .25s, opacity .25s;
}
.thumbnail-image:hover { transform: scale(1.05); opacity: .88; }

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-eyebrow {
    color: var(--primary);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: .5rem;
    font-weight: 700;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -.02em;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.section-logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: .6rem 0 1.5rem;
}

/* ============================================
   DOCUMENTS SECTION
============================================ */
.documents-section {
    margin-bottom: 2rem;
}

.documents-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.documents-card h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.doc-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: filter .2s, transform .2s;
}
.doc-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ============================================
   OVERVIEW SECTION
============================================ */
.overview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.description-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.description-card .section-header {
    margin-bottom: 1.75rem;
}

.paragraph {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-light);
}

.feature-tile {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.tile-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-gray);
    margin-bottom: .25rem;
}

.tile-value {
    font-weight: 600;
    font-size: .9rem;
}

.inline-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.image-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.large-image-card {
    grid-row: span 3;
    grid-column: span 3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
}

.large-image-card img,
.small-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    cursor: zoom-in;
    transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.large-image-card:hover img,
.small-image-card:hover img {
    transform: scale(1.03);
}

.small-images-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   UNITS SECTION (CARRUSEL INCLUIDO)
============================================ */
.units-section {
    margin-bottom: 5rem;
}

.units-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: all .3s;
    background: transparent;
    cursor: pointer;
    font-size: .83rem;
}
.outline-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.unit-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    padding: 1.5rem;
}
.unit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,.12);
}

/* Carrusel de unidades */
.unit-img-wrap {
    position: relative;
    overflow: hidden;
    width: calc(100% + 3rem);
    height: 210px;
    margin: -1.5rem -1.5rem 1.25rem;
    background: #000;
}

.unit-gallery {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.unit-gallery-track {
    display: flex;
    height: 100%;
    transition: transform .32s ease;
    cursor: zoom-in;
}

.unit-gallery-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.unit-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.42);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    pointer-events: auto;
}

.unit-gallery-nav:hover {
    background: rgba(0,0,0,.68);
}

.unit-gallery-nav.prev {
    left: 6px;
}

.unit-gallery-nav.next {
    right: 6px;
}

.unit-gallery-dots {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 3;
    pointer-events: auto;
}

.unit-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .18s;
}

.unit-gallery-dot.active {
    background: #fff;
}

.unit-gallery-counter {
    position: absolute;
    top: 7px;
    right: 8px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    z-index: 3;
    pointer-events: none;
}

.unit-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.unit-top {
    background: var(--primary-light, rgba(0,0,0,.04));
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -1.5rem 1rem;
}

.status-badge {
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.unit-code {
    font-weight: 700;
    color: var(--primary);
    font-size: .82rem;
    letter-spacing: .06em;
}

.unit-title {
    font-size: 1.5rem;
    margin-bottom: .35rem;
}

.unit-description {
    color: var(--text-gray);
    font-size: .85rem;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.price-box {
    background: var(--primary-light, rgba(0,0,0,.04));
    padding: 1rem 1.5rem;
    margin: 0 0 1rem;
    border-radius: 12px;
}

.price-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-gray);
    margin-bottom: .2rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.spec-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-gray);
    margin-bottom: .2rem;
}

.spec-value {
    font-weight: 600;
    font-size: .88rem;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 500;
    color: var(--text-gray);
}

.card-actions {
    display: flex;
    gap: .75rem;
}

.card-button {
    flex: 1;
    padding: .75rem;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: filter .2s, transform .2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: .83rem;
}

.card-button:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.card-button.outline {
    background: transparent !important;
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
}

.card-button.outline:hover {
    background: var(--primary-light) !important;
    filter: none;
}

/* ============================================
   360 TOUR SECTION
============================================ */
.tour-section {
    margin-bottom: 5rem;
}

.pannellum-wrapper {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.pannellum-container {
    width: 100%;
    height: 500px;
    background: #111;
}

.pannellum-controls {
    padding: 1rem;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .82rem;
    color: var(--text-gray);
}

.fullscreen-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: .5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    transition: filter .2s;
}

.fullscreen-btn:hover {
    filter: brightness(1.1);
}

/* ============================================
   MAP SECTION
============================================ */
.map-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-bottom: 5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    margin: 1.75rem 0 2rem;
}

.location-points {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.location-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.location-icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: .15rem;
}

.location-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.location-description {
    font-size: .88rem;
    color: var(--text-gray);
}

.contact-section {
    background: linear-gradient(135deg, var(--primary-dark, rgba(0,0,0,.8)), var(--primary));
    border-radius: 30px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: .35;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 2rem;
    margin: 1rem 0;
}

.contact-lead {
    font-size: .95rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    backdrop-filter: blur(6px);
    font-size: .9rem;
}

.detail-card i {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.form-panel {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    color: var(--text-dark);
    box-shadow: 0 24px 64px rgba(0,0,0,.14);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .04em;
    color: var(--text-gray);
}

.text-input,
.textarea-input {
    width: 100%;
    padding: .75rem .9rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: .9rem;
    background: var(--bg-light);
    transition: border-color .2s, box-shadow .2s;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: white;
}

.textarea-input {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: filter .2s, transform .2s;
    font-family: inherit;
    font-size: .9rem;
    margin-top: .5rem;
}

.submit-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

#form-message {
    display: none;
    padding: .9rem 1rem;
    border-radius: 10px;
    font-size: .88rem;
    margin-top: .75rem;
}

#unidad_seleccionada_tag {
    display: none;
    align-items: center;
    gap: .6rem;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    padding: .5rem .9rem;
    border-radius: 10px;
    margin-bottom: .75rem;
    font-size: .83rem;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   LIGHTBOX
============================================ */
#unit-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#unit-lightbox.open {
    display: flex;
}

#ulb-img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    user-select: none;
    transition: opacity .18s;
}

.ulb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
}

.ulb-close:hover {
    background: rgba(255,255,255,.3);
}

.ulb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
}

.ulb-nav:hover {
    background: rgba(255,255,255,.28);
}

.ulb-nav.ulb-prev {
    left: 16px;
}

.ulb-nav.ulb-next {
    right: 16px;
}

#ulb-counter {
    margin-top: 14px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
    letter-spacing: .04em;
}

#ulb-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    max-width: 88vw;
    overflow-x: auto;
    padding-bottom: 2px;
}

#ulb-thumbs::-webkit-scrollbar {
    height: 3px;
}

#ulb-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
    border-radius: 2px;
}

.ulb-thumb {
    flex: 0 0 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: .5;
    border: 2px solid transparent;
    transition: opacity .18s, border-color .18s;
}

.ulb-thumb.active {
    opacity: 1;
    border-color: #fff;
}

@media (min-width: 993px) {
    .site-nav { display: flex !important; }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .overview-section,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title { font-size: 2.5rem; }

    .hero-logo {
        height: 35px;
        max-height: 35px;
    }

    .section-logo {
        height: 32px;
        max-height: 32px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: rgba(255,255,255,.97);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }

    .site-nav.active { display: flex; }

    .nav-toggle { display: block; }

    .section-title { font-size: 1.8rem; }

    .ulb-nav.ulb-prev { left: 10px; }
    .ulb-nav.ulb-next { right: 10px; }
}

@media (max-width: 768px) {
    .hero-section { height: 80vh; }

    .hero-content { padding: 5rem 1.5rem 1.5rem; }

    .hero-title { font-size: 2rem; }

    .hero-logo {
        height: 30px;
        max-height: 30px;
    }

    .hero-title-row { gap: .75rem; }

    .section-logo {
        height: 28px;
        max-height: 28px;
    }

    .main-content { padding: 2rem 1rem; }

    .units-grid { grid-template-columns: 1fr; }

    .contact-section { padding: 2rem; }

    .pannellum-container { height: 300px; }

    .overview-section { gap: 2rem; }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .contact-title { font-size: 1.4rem; margin: .5rem 0; }

    .contact-lead { font-size: .85rem; margin-bottom: 1.25rem; }

    .contact-details { gap: .5rem; }

    .detail-card {
        padding: .75rem;
        gap: .75rem;
        font-size: .82rem;
        border-radius: 10px;
    }

    .detail-card i { font-size: 1rem; }

    .form-panel {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .form-group { margin-bottom: .8rem; }

    .form-label { font-size: .75rem; }

    .text-input,
    .textarea-input {
        padding: .65rem .8rem;
        font-size: 16px; /* evita el zoom automático de iOS al enfocar */
        border-radius: 8px;
    }

    .submit-button {
        padding: .85rem;
        font-size: .85rem;
        border-radius: 8px;
    }

    #form-message { font-size: .8rem; padding: .7rem .85rem; }
}

