.detalle-emprendimiento {
    padding: 40px 20px 60px;
}

.detalle-emprendimiento__contenedor {
    max-width: 1180px;
    margin: 0 auto;
}

.detalle-emprendimiento__topbar {
    max-width: 1180px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
}

.breadcrumb--detalle-emprendimiento {
    max-width: none;
    margin: 0;
    padding: 0;
}

.detalle-emprendimiento__header {
    margin-bottom: 30px;
}

.detalle-emprendimiento__header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.detalle-emprendimiento__ubicacion-linea {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detalle-emprendimiento__ubicacion-linea p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.detalle-maps-link {
    color: #444;
    text-decoration: underline;
    font-size: 15px;
}

.detalle-maps-link:hover {
    color: #000;
}

.detalle-emprendimiento__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.galeria-emprendimiento__main {
    position: relative;
    background: #f4f4f4;
    border-radius: 14px;
    overflow: hidden;
}

.media-principal {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #ececec;
}

.media-wrap-imagen,
.media-wrap-video {
    width: 100%;
    height: 100%;
}

.media-wrap-imagen img,
.media-wrap-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.galeria-emprendimiento__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.galeria-emprendimiento__thumbs::-webkit-scrollbar {
    height: 8px;
}

.galeria-emprendimiento__thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.thumb-emprendimiento {
    position: relative;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    width: 88px;
    height: 70px;
    flex: 0 0 88px;
}

.galeria-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.galeria-prev {
    left: 16px;
}

.galeria-next {
    right: 16px;
}

.box-emprendimiento {
    position: sticky;
    top: 30px;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
}

.box-emprendimiento h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.15rem;
    text-transform: uppercase;
}

.box-emprendimiento__datos {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.box-emprendimiento__datos div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
}

.box-emprendimiento__datos strong {
    font-size: 0.9rem;
    color: #222;
}

.box-emprendimiento__datos span {
    color: #555;
}

.box-emprendimiento__features {
    margin-bottom: 22px;
    padding-top: 6px;
}

.box-emprendimiento__features h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
}

.box-emprendimiento__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.box-emprendimiento__lista li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #555;
}

.box-emprendimiento__lista li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #d88a00;
    font-weight: bold;
}

.btn-whatsapp-destacado {
    display: block;
    width: 100%;
    text-align: center;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 16px 18px;
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-whatsapp-destacado:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.detalle-emprendimiento__descripcion {
    margin-top: 34px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 26px;
}

.detalle-emprendimiento__descripcion h2 {
    margin-top: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.detalle-emprendimiento__descripcion p {
    line-height: 1.8;
    color: #333;
}

/* TABLA DE UNIDADES */
.bloque-unidades {
    margin-top: 34px;
}

.bloque-unidades h3 {
    margin-bottom: 14px;
    font-size: 1.2rem;
    color: #111;
}

.tabla-unidades-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 12px;
}
.tabla-unidades {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.tabla-unidades thead th {
    background: #efefef;
    color: #111;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabla-unidades tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #ececec;
    color: #333;
    font-size: 14px;
}

.tabla-unidades tbody tr:last-child td {
    border-bottom: none;
}

.fila-unidad {
    cursor: pointer;
    transition: background 0.2s ease;
}

.fila-unidad:hover {
    background: #f7f7f7;
}

.fila-unidad td a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.fila-unidad:hover td a {
    text-decoration: underline;
}

/*RESPONSIVE*/
@media (max-width: 960px) {
    .detalle-emprendimiento {
        padding: 24px 16px 36px;
    }

    .detalle-emprendimiento__contenedor,
    .detalle-emprendimiento__topbar,
    .detalle-emprendimiento__grid,
    .detalle-emprendimiento__descripcion,
    .bloque-unidades {
        min-width: 0;
    }

    .detalle-emprendimiento__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .detalle-emprendimiento__grid > * {
        min-width: 0;
    }

    .box-emprendimiento {
        position: static;
    }

    .tabla-unidades-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .detalle-emprendimiento {
        padding: 16px 12px 28px;
    }

    .detalle-emprendimiento__contenedor,
    .detalle-emprendimiento__topbar,
    .detalle-emprendimiento__header,
    .detalle-emprendimiento__grid,
    .detalle-emprendimiento__descripcion,
    .bloque-unidades,
    .box-emprendimiento {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .breadcrumb--detalle-emprendimiento {
        font-size: 12px;
        line-height: 1.4;
    }

    .detalle-emprendimiento__header {
        margin-bottom: 18px;
    }

    .detalle-emprendimiento__header h1 {
        font-size: 1.6rem;
        line-height: 1.15;
        word-break: break-word;
    }

    .detalle-emprendimiento__ubicacion-linea {
        gap: 8px;
    }

    .detalle-emprendimiento__ubicacion-linea p,
    .detalle-maps-link {
        font-size: 13px;
        line-height: 1.5;
    }

    .galeria-emprendimiento__main {
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
    }

    .media-principal {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4 / 3;
    }

    .media-wrap-imagen,
    .media-wrap-video,
    .media-wrap-imagen img,
    .media-wrap-video iframe {
        width: 100%;
        max-width: 100%;
        height: 100%;
    }

    .galeria-flecha {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .galeria-prev {
        left: 8px;
    }

    .galeria-next {
        right: 8px;
    }

    .galeria-emprendimiento__thumbs {
        gap: 6px;
        margin-top: 10px;
        padding-bottom: 4px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        scroll-snap-type: x proximity;
    }

    .thumb-emprendimiento {
        width: 68px;
        height: 52px;
        flex: 0 0 68px;
        scroll-snap-align: center;
    }

    .box-emprendimiento,
    .detalle-emprendimiento__descripcion {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .box-emprendimiento h3,
    .detalle-emprendimiento__descripcion h2,
    .bloque-unidades h3 {
        font-size: 16px;
    }

    .box-emprendimiento__datos {
        gap: 10px;
        margin-bottom: 16px;
    }

    .box-emprendimiento__datos strong,
    .box-emprendimiento__datos span,
    .box-emprendimiento__lista li,
    .detalle-emprendimiento__descripcion p {
        font-size: 13px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .detalle-emprendimiento__descripcion {
        margin-top: 22px;
    }

    .bloque-unidades {
        margin-top: 24px;
    }

    .tabla-unidades {
        min-width: 640px;
    }

    .tabla-unidades thead th,
    .tabla-unidades tbody td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-whatsapp-destacado {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .detalle-emprendimiento {
        padding: 14px 10px 24px;
    }

    .detalle-emprendimiento__header h1 {
        font-size: 1.4rem;
    }

    .thumb-emprendimiento {
        width: 62px;
        height: 46px;
        flex: 0 0 62px;
    }

    .box-emprendimiento,
    .detalle-emprendimiento__descripcion {
        padding: 14px 12px;
    }
}