      :root {
            --primary: #0000FF;
            --primary-soft: #f0f3ff;
            --text-dark: #0f172a;
            --text-muted: #64748b;
            --bg: #f8fafc;
            --radius-lg: 30px;
            --radius-md: 20px;
        }

        body { 
            background-color: var(--bg); 
            margin: 0; 
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif; 
            color: var(--text-dark);
            -webkit-font-smoothing: antialiased;
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

        /* --- GALERÍA DE ALTO IMPACTO --- */
        .hero-gallery {
            position: relative;
            width: 100%;
            max-width: 1000px;
            height: 550px;
            margin: 0 auto 40px;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2);
        }

        .hero-gallery img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .property-badge {
            position: absolute;
            top: 25px;
            left: 25px;
            background: var(--primary);
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            font-weight: 800;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 10px 20px rgba(0,0,255,0.3);
            z-index: 30;
            pointer-events: none;
        }

        .photo-counter {
            position: absolute;
            bottom: 25px;
            right: 25px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 10px 18px;
            border-radius: 15px;
            font-weight: 700;
            backdrop-filter: blur(10px);
            font-size: 14px;
        }

        /* --- LAYOUT --- */
        .main-layout {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 40px;
            align-items: start;
        }

        /* --- DETALLES IZQUIERDA --- */
        .info-header { margin-bottom: 35px; }
        .info-header h1 { font-size: 38px; font-weight: 800; margin: 0 0 10px 0; letter-spacing: -1.5px; }
        .price-tag { font-size: 42px; color: var(--primary); font-weight: 900; margin-bottom: 10px; display: block; }
        
        .loc-row { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 18px; font-weight: 500; }
        .loc-row svg { stroke: var(--primary); }

        .tech-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .tech-card {
            background: #ffffff;
            padding: 20px;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            text-align: center;
            transition: 0.3s;
        }
        .tech-card:hover { transform: translateY(-5px); border-color: var(--primary); }
        .tech-card strong { display: block; font-size: 20px; font-weight: 800; }
        .tech-card span { font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

        .section-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .section-title::after { content: ""; height: 2px; flex: 1; background: var(--border); }

        .features-pill-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
        .feature-pill {
            background: white;
            border: 1.5px solid var(--border);
            padding: 10px 20px;
            border-radius: 15px;
            font-weight: 700;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- CONTACTO DERECHA (ELIMINADO EL DESCUADRE) --- */
        .sidebar-contact {
            position: static;
            top: 30px;
            background: white;
            border-radius: var(--radius-lg);
            padding: 40px 25px;
            border: 1px solid var(--border);
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.08);
            text-align: center;
        }

        .agent-profile { margin-bottom: 30px; }
        .agent-profile img { width: 95px; height: 95px; border-radius: 50%; margin-bottom: 15px; border: 4px solid var(--primary-soft); }
        .agent-profile h3 { margin: 0; font-size: 22px; font-weight: 800; }

        .btn-action {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
            height: 64px; /* Altura fija para simetría */
            border-radius: 20px;
            font-weight: 800;
            font-size: 17px;
            text-decoration: none;
            margin-bottom: 15px;
            transition: 0.3s;
            border: none;
        }

        /* WhatsApp con logo centrado */
        .btn-wsp { background: #25d366; color: white; box-shadow: 0 10px 20px -5px rgba(37,211,102,0.3); }
        .btn-wsp:hover { background: #1ebe57; transform: translateY(-3px); }
        
        /* Email con logo centrado */
        .btn-mail { background: var(--text-dark); color: white; box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1); }
        .btn-mail:hover { background: var(--primary); transform: translateY(-3px); }

        .btn-action svg { flex-shrink: 0; }

        @media (max-width: 950px) {
            .main-layout { grid-template-columns: 1fr; }
            .hero-gallery { height: 350px; }
        }

        @media (max-width: 768px) {
    .sidebar-contact {
        position: static; /* Quita el sticky en celulares */
        margin-top: 30px;
        padding: 25px 20px;
    }
}

:root {
        --primary-color: #0000FF;
        --border-radius-lg: 24px;
        --gap-size: 12px;
    }

    /* --- ESTILOS PARA PC --- */
    .bento-gallery-full {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
        gap: var(--gap-size);
        max-width: 1200px;
        margin: 40px auto;
        position: relative;
        border-radius: var(--border-radius-lg);
    }

    .main-photo {
        grid-column: span 2;
        grid-row: span 2;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
    }

    .grid-item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

    .item-2 { border-radius: 0 var(--border-radius-lg) 0 0; }
    .item-5 { border-radius: 0 0 var(--border-radius-lg) 0; }

    .bento-gallery-full img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .bento-gallery-full div:hover img {
        transform: scale(1.05);
    }

    .more-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: none; /* Para que el clic pase al div padre */
    }

    .mobile-count-badge { display: none; } /* Oculto en PC */

    /* Agrégalo fuera del media query para que afecte a ambos */
/*.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 30; /* Más alto que las fotos */
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Para que no interfiera con el clic de la foto */
/*}/*

/* Ajuste para móvil 
@media (max-width: 768px) {
    .property-badge {
        top: 15px;
        left: 30px; 
        font-size: 11px;
        padding: 6px 12px;
    }
}*/

    /* --- ESTILOS PARA MÓVIL (Aquí está el truco) --- */
    @media (max-width: 768px) {
        .bento-gallery-full {
            display: block; /* Quitamos el grid en móvil */
            margin: 20px 15px;
            height: auto;
        }

        /* OCULTAMOS TODAS LAS MINIATURAS */
        .grid-item {
            display: none !important;
        }

        /* HACEMOS QUE LA FOTO PRINCIPAL SEA LA ÚNICA VISIBLE */
        .main-photo {
            display: block;
            width: 100%;
            height: 350px;
            border-radius: var(--border-radius-lg);
        }

        /* MOSTRAMOS EL CONTADOR 1/X */
        .mobile-count-badge {
            display: flex;
            align-items: center;
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            color: white;
            padding: 6px 14px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 800;
            z-index: 20;
        }
    }

    .features-pill-grid {
    display: flex;
    flex-wrap: wrap; /* Importante para que bajen a la siguiente línea en móvil */
    gap: 10px;
    margin-top: 15px;
}

.feature-pill {
    background: #f0f4f8;
    color: #333;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #d1d9e6;
    display: inline-flex;
    align-items: center;
}

 /* --- Segunda Parte --- */

/* Badge En Vivo */
.badge-video-vivo {
    background: #FF0000; color: white; padding: 4px 12px; border-radius: 50px;
    font-weight: 900; font-size: 11px; letter-spacing: 1px;
    animation: pulso-rojo 2s infinite; display: inline-flex; align-items: center;
}
@keyframes pulso-rojo {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Portada del Video */
.video-preview-card {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 20px; overflow: hidden; cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); margin-bottom: 40px;
}
.video-preview-card img { width: 100%; height: 100%; object-fit: cover; }
.play-button-central {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.9); width: 70px; height: 70px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Modal Estilo Cine */
.modal-video-full {
    display: none; position: fixed; z-index: 99999; inset: 0;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(15px);
    flex-direction: column; align-items: center; justify-content: center;
}
.modal-video-content { width: 95%; max-width: 900px; aspect-ratio: 16/9; }
.modal-video-content iframe { width: 100%; height: 100%; border-radius: 15px; border: 0; }
.close-video { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }

/* FIX GIRO DE PANTALLA */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-video-content { width: 92vh; }
    .close-video { top: 10px; right: 20px; font-size: 35px; }
}

/* 1. Ajuste para que el video crezca al máximo de lado */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-video-content {
        width: 95vh; /* El video usará casi todo el alto disponible como ancho */
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* 2. El aviso sutil de 'Gira el teléfono' */
@media (orientation: portrait) {
    .modal-video-full::after {
        content: "🔄 Gira el teléfono para pantalla completa";
        position: absolute;
        bottom: 20px;
        color: rgba(255,255,255,0.5);
        font-size: 12px;
        font-weight: 600;
        pointer-events: none; /* Para que no estorbe al clic */
    }
}
@media (max-width: 400px) {
    .modal-video-content {
        width: 100%; /* Ocupa todo el ancho en 350px */
        padding: 0 10px; /* Solo un mínimo margen */
    }
    
    .modal-video-full {
        padding: 0;
    }
}

/* --- Tercera Parte --- */
.modal-galeria {
    display: none; /* Escondido por defecto */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff; font-size: 40px;
    cursor: pointer; z-index: 10000;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white; border: none;
    padding: 20px; cursor: pointer;
    font-size: 24px; /*border-radius: 50%;*/
}
.modal-nav:hover { background: var(--primary); }
.prev { left: 20px; }
.next { right: 20px; }

/* Para que las fotos de la rejilla tengan cursor de mano */
.main-photo, .grid-item { cursor: pointer; }



.mobile-count-badge {
    display: none; /* Escondido en PC */
}

@media (max-width: 768px) {
    .mobile-count-badge {
        display: flex;
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 5px 12px;
        border-radius: 8px;
        font-size: 12px;
        align-items: center;
        gap: 5px;
        z-index: 10;
    }
}

/* --- ESTILO DE ETIQUETAS TIPO PILL --- */
.wrapper-etiquetas-top {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 8px;
    pointer-events: none; /* El clic pasa a la foto */
}

.mini-tag {
    display: inline-block; /* Importante para que no ocupe todo el ancho */
    padding: 6px 12px;
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    white-space: nowrap; /* Evita que el texto se rompa en dos líneas */
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1; /* Centra el texto verticalmente */
}

.mini-tag.bg-azul {
    background: #0000FF; /* Tu color primario */
}

/* Ajuste para móvil: más pequeñas aún */
@media (max-width: 580px) {
    .wrapper-etiquetas-top {
        top: 12px;
        left: 12px;
    }
    .mini-tag {
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Animación de latido suave para el botón principal */
@keyframes pulse-soft {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-premium-wsp {
    animation: pulse-soft 2s infinite;
}

/* Efecto de desenfoque de fondo para el notice */
.glass-notice {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* MOdal de contacto*/



/* EFECTO CRISTAL EN EL FONDO */
.modal-email-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; z-index: 10000;
    padding: 20px;
}

/* CONTENEDOR PRINCIPAL */
.modal-email-content {
    background: #ffffff; width: 100%; max-width: 400px; 
    border-radius: 32px; padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalAppear {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* HEADER FIJO */
.modal-email-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 25px; width: 100%;
}

.header-left { display: flex; align-items: center; gap: 15px; }

.brand-icon {
    background: #0000FF; width: 44px; height: 44px; 
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 255, 0.3);
}

.header-text h4 { margin: 0; font-size: 19px; color: #0f172a; font-weight: 800; }
.header-text span { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* LA X QUE NO SE MUEVE */
.close-modal-btn { 
    background: #f1f5f9; border: none; color: #94a3b8;
    width: 36px; height: 36px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.close-modal-btn:hover { background: #fee2e2; color: #ef4444; }

/* INPUTS ESTILO APPLE */
.input-wrapper { margin-bottom: 20px; }
.input-wrapper label { 
    display: block; font-size: 13px; font-weight: 700; 
    color: #1e293b; margin-bottom: 8px; margin-left: 4px;
}

.readonly-box {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    padding: 12px 15px; border-radius: 16px; color: #64748b;
}
.readonly-box input { 
    background: transparent; border: none; font-size: 14px; 
    color: #64748b; width: 100%; font-weight: 600; outline: none;
}

.form-modern textarea {
    width: 100%; padding: 15px; border: 1.5px solid #e2e8f0; 
    border-radius: 18px; font-family: inherit; font-size: 14px;
    line-height: 1.6; transition: all 0.3s; resize: none;
}
.form-modern textarea:focus {
    border-color: #0000FF; outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 255, 0.05);
}

/* BOTÓN PREMIUM ACCIÓN */
.btn-submit-modern {
    width: 100%; background: #0f172a; color: white; border: none;
    padding: 6px 6px 6px 20px; border-radius: 20px;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 16px; cursor: pointer;
    transition: all 0.3s; height: 56px;
}

.btn-icon {
    background: #0000FF; width: 44px; height: 44px;
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
}

.btn-submit-modern:hover { background: #1e293b; transform: translateY(-2px); }
.btn-submit-modern:active { transform: translateY(0); }

/* Modal Estado */

/* Modal Estado - Mantenemos tus medidas de 60px */
.estado-circulo {
    width: 60px; 
    height: 60px; 
    border-radius: 50%;
    margin: 0 auto 15px; /* Un poco de margen abajo para el título */
    display: flex; 
    align-items: center;
    justify-content: center; 
    font-size: 30px; 
    font-weight: bold;
    /* Animación para que el icono "salte" */
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.estado-exito { background: #dcfce7; color: #22c55e; }
.estado-error { background: #fee2e2; color: #ef4444; }

/* Animación de entrada suave */
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ajuste para que el modal de estado no sea tan ancho como el de contacto */
#modalEstado .modal-email-content {
    max-width: 320px;
    text-align: center;
}
