/**
 * Estilos para el listado de propiedades en pozo y modal de unidades
 */

/* Contenedor principal de la sección */
.pozo-showcase-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.pozo-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Tarjeta principal estilo split (2 columnas) */
.pozo-split-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

/* Columna izquierda: Imagen con overlay */
.pozo-card-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 26px 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.pozo-card-media__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pozo-split-card:hover .pozo-card-media__bg {
    transform: scale(1.03);
}

.pozo-card-media__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.05) 35%,
        rgba(0, 0, 0, 0.82) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Badge superior en la imagen */
.pozo-card-media__top {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-start;
}

.pozo-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(223, 78, 37, 0.95);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(223, 78, 37, 0.3);
    backdrop-filter: blur(4px);
}

/* Contenido inferior en la imagen */
.pozo-card-media__bottom {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pozo-media-headline {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.pozo-media-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.pozo-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.pozo-meta-item svg,
.pozo-meta-item i {
    font-size: 16px;
    opacity: 0.9;
}

.pozo-price-pill {
    background-color: #ffffff;
    color: #df4e25;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Columna derecha: Tarjeta blanca de información */
.pozo-card-info {
    background-color: #ffffff;
    border: 1px solid #ede8e3;
    border-radius: 24px;
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pozo-split-card:hover .pozo-card-info {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.pozo-card-info__top {
    display: flex;
    flex-direction: column;
}

.pozo-eyebrow {
    color: #df4e25;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pozo-title {
    color: #1a1a1a;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.32;
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.pozo-description {
    color: #555555;
    font-size: 15.5px;
    line-height: 1.65;
    margin: 0 0 28px 0;
}

/* Botones de acción */
.pozo-card-info__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pozo-btn-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 14px 20px;
    color: #222222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.pozo-btn-contact:hover {
    border-color: #25d366;
    background-color: #f7fdf9;
    color: #128c7e;
    transform: translateY(-1px);
}

.pozo-btn-contact svg {
    transition: transform 0.2s ease;
}

.pozo-btn-contact:hover svg {
    transform: translateX(4px);
}

.pozo-btn-units {
    display: block;
    width: 100%;
    background-color: #0d0d0d;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pozo-btn-units:hover {
    background-color: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   POP-UP / MODAL DE UNIDADES DISPONIBLES
   ========================================================================== */

.pozo-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.pozo-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.pozo-modal-dialog {
    background: #ffffff;
    border-radius: 24px;
    max-width: 820px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pozo-modal-backdrop.is-open .pozo-modal-dialog {
    transform: translateY(0) scale(1);
}

.pozo-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.pozo-modal-header__content {
    display: flex;
    flex-direction: column;
}

.pozo-modal-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    color: #df4e25;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pozo-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.pozo-modal-close {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
}

.pozo-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.pozo-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tarjeta individual de unidad dentro del modal */
.pozo-unit-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: all 0.2s ease;
}

.pozo-unit-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.pozo-unit-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.pozo-unit-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.pozo-unit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #64748b;
    font-size: 13.5px;
}

.pozo-unit-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pozo-unit-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 140px;
}

.pozo-unit-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.pozo-unit-btn-consult {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.pozo-unit-btn-consult:hover {
    background-color: #1eb857;
}

/* Mensaje cuando no hay unidades cargadas */
.pozo-empty-units {
    text-align: center;
    padding: 36px 20px;
    color: #64748b;
}

.pozo-empty-units h4 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 8px;
}

/* Adaptación responsive para dispositivos móviles */
@media (max-width: 991px) {
    .pozo-split-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pozo-card-media {
        min-height: 360px;
    }

    .pozo-media-headline {
        font-size: 26px;
    }

    .pozo-title {
        font-size: 23px;
    }

    .pozo-unit-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pozo-unit-pricing {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Enlace interactivo en la tarjeta de medios */
a.pozo-card-media {
    text-decoration: none !important;
    cursor: pointer;
    display: flex;
}

a.pozo-card-media:hover .pozo-card-media__bg {
    transform: scale(1.03);
}

.pozo-card-media__bg {
    transition: transform 0.4s ease;
}

.pozo-title-link {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pozo-title-link:hover {
    color: #df4e25;
}

/* Boton secundario para ver la ficha completa */
.pozo-btn-ficha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    padding: 13px 20px;
    color: #4a5568;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.pozo-btn-ficha:hover {
    background-color: #f8fafc;
    border-color: #0d0d0d;
    color: #0d0d0d;
}

.pozo-btn-ficha svg {
    transition: transform 0.2s ease;
}

.pozo-btn-ficha:hover svg {
    transform: translateX(3px);
}
