/* Emporio Page Styles */

/* Hero Section con Video de Fondo */
.navbar-spacer {
    height: 82px;
}

.emporio-hero {
    position: relative;
    background: #000;
    height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 60px;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 0;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
}

.emporio-hero .container {
    position: relative;
    z-index: 1;
}

.emporio-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.emporio-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.emporio-hero-content > p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.play-icon {
    width: 60px;
    height: 61px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.play-icon i {
    color: white;
    font-size: 1.2rem;
    margin-left: 4px;
}

.play-icon:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.35);
}

/* EMPSITE Section - Mapa Interactivo */
.empsite-section {
    padding: 0;
    background: #f4f4f4;
    position: relative;
    z-index: -1;
    margin-top: -60px;
    padding-top: 80px;
}

.mapa-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 600px;
}

/* Contenido del mapa */
.mapa-content {
    position: relative;
    display: block;
    padding: 0;
    min-height: 600px;
}

/* Lado izquierdo - Título y Leyenda (superpuesto) */
.mapa-info {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 280px;
}

.mapa-titulo {
    font-family: 'AloeveraDisplay', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

.mapa-titulo span {
    font-weight: 700;
}

/* Leyenda de tránsito */
.mapa-leyenda {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.leyenda-color {
    width: 51px;
    height: 19px;
    border-radius: 51px;
    flex-shrink: 0;
}

.leyenda-color.elevado {
    background: #c96a6a;
}

.leyenda-color.moderado {
    background: #deb15c;
}

.leyenda-color.ligero {
    background: #dee65c;
}

.leyenda-color.libre {
    background: #86c361;
}

.leyenda-texto {
    font-family: 'AloeveraDisplay', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Lado derecho - Mapa visual */
.mapa-visual {
    flex: 1;
    position: relative;
    min-height: 500px;
}

.mapa-imagen {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Etiquetas del mapa */
.mapa-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mapa-label {
    position: absolute;
    font-family: 'AloeveraDisplay', sans-serif;
    text-align: center;
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mapa-label.small {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
}

.mapa-label.medium {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.mapa-label.medium.aeropuerto,
.mapa-label.medium.puerto {
    background: rgba(255,255,255,0.85);
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 6px;
    text-shadow: none;
}

.mapa-label.supercarretera {
    font-style: italic;
    color: var(--primary-color);
}

.mapa-label.large {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Texto Océano Pacífico rotado */
.oceano-pacifico {
    position: absolute;
    top: 50%;
    left: 20%;
    font-family: 'AloeveraDisplay', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 5px;
    transform: rotate(52deg);
    transform-origin: center;
    white-space: nowrap;
    opacity: 0.6;
    text-transform: uppercase;
}

/* Marcador de Emporio */
.emporio-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 10;
}

.emporio-marker-pin {
    width: 24px;
    height: 32px;
}

.emporio-marker-label {
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    text-align: center;
    border: 1.5px solid var(--primary-color);
}

.emporio-marker-label h4 {
    font-family: 'AloeveraDisplay', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 2px;
}

.emporio-marker-label small {
    font-size: 0.55rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* SVG del mapa */
.mapa-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Imagen del mapa de Figma */
.mapa-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mejoras visuales del mapa */
.mapa-visual {
    flex: 1;
    position: relative;
    min-height: 450px;
    border-radius: 0;
    overflow: visible;
}

/* Responsive del mapa */
@media (max-width: 968px) {
    .mapa-container {
        min-height: 500px;
    }

    .mapa-content {
        min-height: 500px;
    }

    .mapa-info {
        left: 30px;
        max-width: 240px;
    }

    .mapa-titulo {
        font-size: 1.8rem;
    }

    .mapa-visual {
        min-height: 500px;
    }

    .mapa-label.small {
        font-size: 0.6rem;
    }

    .mapa-label.medium {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .mapa-container {
        min-height: 400px;
    }

    .mapa-content {
        min-height: 400px;
    }

    .mapa-info {
        left: 15px;
        max-width: 180px;
    }

    .mapa-titulo {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .leyenda-color {
        width: 35px;
        height: 14px;
    }

    .leyenda-texto {
        font-size: 0.75rem;
    }

    .mapa-visual {
        min-height: 400px;
    }

    .mapa-label.small {
        font-size: 0.5rem;
    }

    .mapa-label.medium {
        font-size: 0.55rem;
    }

    .mapa-label.large {
        font-size: 0.7rem;
    }

    .oceano-pacifico {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .emporio-marker-label {
        padding: 5px 10px;
    }

    .emporio-marker-label h4 {
        font-size: 0.7rem;
    }
}

/* Así se imagina Emporio Section */
.imagina-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.imagina-header {
    margin-bottom: 3rem;
}

.imagina-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.imagina-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.imagina-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.imagina-preview {
    width: 100%;
}

.imagina-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.imagina-preview-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.imagina-preview-subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.imagina-preview-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.imagina-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.imagina-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-white);
    padding: 1rem 1.2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.imagina-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.imagina-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(8,77,67,0.12);
}

.imagina-card-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--bg-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagina-card.active .imagina-card-icon {
    background: var(--primary-color);
}

.imagina-card-icon i {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.imagina-card.active .imagina-card-icon i {
    color: white;
}

.imagina-card-text h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
}

.imagina-card-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Lo que distingue a Emporio - Features Section */
.emporio-features-section {
    padding: 80px 0;
    background: var(--bg-white);
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.features-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-card {
    flex: 0 1 calc(33.333% - 1.34rem);
    max-width: calc(33.333% - 1.34rem);
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.feature-card .feature-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.feature-card .feature-text {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Lotes Section */
.lotes-section {
    padding: 80px 0;
    background: var(--bg-gray);
    position: relative;
    z-index: 0;
    margin-top: -60px;
    padding-top: 140px;
}

.lotes-section.lotes-fullwidth {
    padding: 0;
    margin-top: 0;
    padding-top: 0;
    background: #000;
}

.lotes-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.lotes-info {
    color: var(--primary-color);
}

.lotes-date {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 1rem;
}

.lotes-info h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.btn-disponibilidad {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 3rem;
    display: inline-block;
}

.btn-disponibilidad:hover {
    background: var(--primary-color);
    color: white;
}

.emporio-logo {
    display: flex;
    flex-direction: column;
}

.emporio-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.emporio-logo small {
    font-size: 0.8rem;
    opacity: 0.7;
    }

.lotes-grid {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.lotes-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lotes-placeholder i {
    font-size: 4rem;
    color: var(--secondary-color);
}

/* Kuula Virtual Tour - Fullscreen */
.lotes-fullwidth {
    padding: 0;
    margin-top: 0;
    padding-top: 0;
}

.kuula-tour-fullscreen {
    width: 100%;
    height: 80vh;
    min-height: 600px;
}

.kuula-tour-fullscreen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Un vistazo al futuro Section */
.futuro-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.futuro-header {
    text-align: center;
    margin-bottom: 3rem;
}

.futuro-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    }

.futuro-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.futuro-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.futuro-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    flex: 1;
}

.futuro-wrapper::-webkit-scrollbar {
    display: none;
}

.futuro-slide {
    min-width: 200px;
    height: 300px;
    border-radius: 20px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.futuro-slide:hover {
    transform: translateY(-10px);
}

.carousel-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow img {
    width: 100%;
    height: 61px;
    max-width: 100%;
}

.carousel-arrow:hover {
    opacity: 0.7;
}

/* Carrusel infinito - futuro section */
.futuro-wrapper {
    display: block;
    overflow: hidden;
    flex: 1;
    padding: 20px 0;
    scrollbar-width: unset;
}

.futuro-track {
    display: flex;
    gap: 1.5rem;
}

.futuro-track .futuro-slide {
    cursor: pointer;
}

/* Lightbox Gallery */
.gallery-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-lightbox.active { opacity: 1; visibility: visible; }
.gallery-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}
.gallery-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: white; font-size: 2rem;
    cursor: pointer; z-index: 2;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.gallery-close:hover { background: rgba(255,255,255,0.15); }
.gallery-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none; color: white; font-size: 1.5rem;
    cursor: pointer; z-index: 2;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.gallery-nav:hover { background: rgba(255,255,255,0.25); }
.gallery-prev { left: 1.5rem; }
.gallery-next { right: 1.5rem; }
.gallery-image-wrapper {
    position: relative; z-index: 1;
    max-width: 80vw; max-height: 80vh;
    display: flex; align-items: center; justify-content: center;
}
.gallery-image {
    max-width: 100%; max-height: 80vh;
    object-fit: contain; border-radius: 10px;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-image.loaded { opacity: 1; }
.gallery-counter {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    color: white; font-size: 0.95rem; z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 1rem; border-radius: 20px;
}
@media (max-width: 576px) {
    .gallery-image-wrapper { max-width: 95vw; }
    .gallery-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .gallery-prev { left: 0.5rem; }
    .gallery-next { right: 0.5rem; }
    .gallery-close { top: 0.75rem; right: 0.75rem; }
}

/* Contacto Section */
.emporio-contacto {
    padding: 80px 0;
    background: var(--bg-gray);
}

.emporio-contacto .contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacto-left h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.contacto-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-intro {
    color: var(--text-light);
    text-align: right;
    margin-bottom: 0.5rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 70%;
    margin-left: auto;
}

.contacto-form input {
    padding: 1rem 1.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 35px;
    font-size: 1rem;
    transition: 0.3s;
}

.contacto-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

.btn-enviar {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    width: 50%;
    margin: 0 auto;
}

.btn-enviar:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 95, 93, 0.3);
}

.privacy-note {
    text-align: right;
    margin-top: 1rem;
}

.privacy-note a {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

.privacy-note p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .feature-card {
        flex: 0 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 968px) {
    .emporio-hero {
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .emporio-hero-content h1 {
        font-size: 2.5rem;
    }

    .imagina-content,
    .lotes-content,
    .emporio-contacto .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .imagina-header {
        text-align: center;
    }

    .imagina-cards {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .imagina-card {
        min-width: 280px;
    }

    .emporio-features-section {
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .lotes-info {
        text-align: center;
    }

    .lotes-info h2 {
        font-size: 1.8rem;
    }

    .contacto-left h2 {
        font-size: 2rem;
        text-align: center;
    }

    .contacto-intro {
        text-align: center;
    }

    .contacto-form {
        width: 100%;
    }

    .privacy-note {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .emporio-hero {
        padding: 340px 0 180px;
    }

    .emporio-hero-content h1 {
        font-size: 2rem;
    }

    .imagina-header h2,
    .features-header h2,
    .futuro-header h2,
    .contacto-left h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .futuro-slide {
        min-width: 150px;
        height: 220px;
    }

    .carousel-arrow img {
        height: 61px;
    max-width: 100%;
    }

    .btn-enviar {
        width: 70%;
    }
}
