/* Horizonte Page Styles */

/* Hero Section con Mosaico */
.horizonte-hero {
    position: relative;
    background: #ffffff;
    background-size: cover;
    background-position: center;
    padding: 180px 0 80px;
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 2;
}

.horizonte-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 0;
}

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

.horizonte-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.hero-left {
    padding-right: 2rem;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-left .hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-left .hero-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* Mosaico de Fotos */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 150px);
    gap: 1rem;
}

.mosaic-item {
    background: linear-gradient(180deg, #7a9a98 0%, #2d5f5d 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.mosaic-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(0deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0.6;
}

.mosaic-more-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mosaic-more-icon {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Detalles Section */
.detalles-section {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    margin-top: -60px;
    padding-top: 140px;
}

.detalles-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-color);
}

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

.detalles-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detalles-location {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.detalles-location:hover {
    color: var(--primary-color);
}

.detalles-location i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.btn-contactanos {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

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

/* Características Carousel */
.caracteristicas-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.caracteristicas-container {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.caracteristicas-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease;
}

.caract-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 2;
}

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

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

.caracteristica-card {
    min-width: calc((100% - 4rem) / 3);
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 30px;
}

.caracteristica-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--bg-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caracteristica-icon i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.caracteristica-text h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.caracteristica-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Extras Grid */
.extras-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--secondary-color);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
}

.extra-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.extra-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Ubicación Section */
.ubicacion-section {
    padding: 80px 0;
    background: var(--bg-gray);
    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;
}

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

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

.ubicacion-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0ef 0%, #d1e0de 100%);
}

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

.ubicacion-info h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ubicacion-info p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-visitar {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

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

/* Contacto Section */
.horizonte-contacto {
    padding: 80px 0;
    background: var(--bg-white);
    position: relative;
    z-index: 0;
    margin-top: -60px;
    padding-top: 140px;
}

.horizonte-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;
    margin-bottom: 1rem;
}

.contacto-left p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* Agente Info */
.agente-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: 15px;
}

.agente-foto {
    width: 60px;
    height: 61px;
    min-width: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agente-foto i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.agente-datos h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.agente-datos p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contacto Buttons */
.contacto-buttons {
    display: flex;
    gap: 1rem;
}

.btn-llamar,
.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s;
}

.btn-llamar {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
}

/* Contacto Form */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.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);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .caracteristica-card {
        min-width: calc((100% - 2rem) / 2);
    }

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

    .extras-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

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

    .horizonte-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        padding-right: 0;
    }

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

    .mosaic-grid {
        grid-template-rows: repeat(2, 120px);
    }

    .detalles-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .caracteristica-card {
        min-width: 100%;
    }

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

    .ubicacion-content,
    .horizonte-contacto .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .contacto-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .horizonte-hero {
        padding: 140px 0 60px;
    }

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

    .hero-left .hero-subtitle {
        font-size: 1.2rem;
    }

    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 100px);
    }

    .mosaic-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .detalles-info h2,
    .ubicacion-info h2,
    .contacto-left h2 {
        font-size: 1.8rem;
    }

    .detalles-price {
        font-size: 1.5rem;
    }

    .extras-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

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

/* ===== Ideal Para ===== */
.ideal-para {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.5rem 0;
    justify-content: center;
}

.ideal-para-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(8, 77, 67, 0.08);
    color: var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(8, 77, 67, 0.15);
}

.ideal-para-tag i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===== Distancias Section ===== */
.distancias-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.distancias-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.distancias-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.distancia-grupo-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.distancia-grupo-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.distancia-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.distancia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    transition: 0.3s;
}

.distancia-badge:hover {
    background: var(--primary-color);
    color: white;
}

.distancia-badge:hover .distancia-tiempo,
.distancia-badge:hover .distancia-lugar {
    color: white;
}

.distancia-tiempo {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1rem;
}

.distancia-lugar {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .distancias-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .distancia-badges {
        justify-content: center;
    }

    .distancias-title {
        font-size: 1.8rem;
    }
}

/* ===== Gallery Lightbox ===== */
.mosaic-item[data-gallery-index] {
    cursor: pointer;
}

.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;
    }
}
