/* --- Globales y Fuentes --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

:root { 
    --color-primario: #252525; 
    --color-secundario: #333; 
    --color-texto: #ffffff; 
    --color-fondo-claro: #fff; 
    --color-texto-oscuro: #333; 
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--color-primario); 
    color: var(--color-texto); 
    overflow-x: hidden; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

main { 
    flex: 1; 
    padding-top: 80px; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.page-header { 
    background-color: #222; 
    text-align: center; 
    padding: 50px 20px; 
}

.page-header h1 { 
    font-size: 2.8em; 
    margin: 0; 
}

.section-title { 
    font-size: 2.8em; 
    margin-bottom: 60px; 
    font-weight: 300; 
    text-align: center;
}

/* --- Header y Navegación --- */
.main-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    box-sizing: border-box; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 25px; 
    z-index: 1000; 
    transition: background-color 0.4s ease; 
    background-color: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.main-header.scrolled { 
    background-color: rgba(10, 10, 10, 0.8); 
}

.main-header .logo img { 
    height: 70px; 
}

.main-nav { 
    flex-grow: 1; 
    display: flex; 
    justify-content: flex-end; 
}

.main-nav ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav ul li { 
    margin-left: 0;
}

.main-nav ul li a { 
    color: var(--color-texto); 
    font-size: 0.85em; 
    text-transform: uppercase; 
    font-weight: 500; 
    letter-spacing: 0.5px; 
    white-space: nowrap; 
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/fondo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -80px;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10vh;
    width: 100%;
    max-width: 1200px;
}

.hero-branding {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 15vh;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-logo {
    height: 130px;
    max-width: 100%;
}

.hero-company-name {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-company-name .main-name {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-company-name .sub-name {
    font-size: 1.1em;
    font-weight: 400;
    letter-spacing: 1.5px;
    padding-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.hero-text {
    font-size: 4.5em;
    font-weight: 300;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    line-height: 1.2;
}

/* Visibilidad del logo en header */
.main-header .logo {
    visibility: visible;
}

body.page-inicio .main-header .logo {
    visibility: hidden;
}

/* --- Sección Proyectos Destacados --- */
.section-destacados { 
    padding: 80px 0; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../img/fondo-proyectos.jpg.webp'); 
    background-size: cover; 
    background-position: center center; 
    background-attachment: scroll; 
}

.proyectos-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
}

body.page-departamentos .proyectos-grid,
body.page-preventa .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
}

.proyecto-card {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border: 1px solid #444;
    border-radius: 8px;
    text-align: center;
    color: white;
}

.proyecto-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.proyecto-hover-info {
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 5;
    opacity: 0;
    transition: top 0.4s ease, bottom 0.4s ease, opacity 0.4s ease;
}

.proyecto-card:hover::after {
    opacity: 0;
}

.proyecto-card:hover .proyecto-info,
.proyecto-card:hover .proyecto-estado {
    opacity: 0;
    transform: translateY(-15px);
}

.proyecto-card:hover .proyecto-hover-info {
    opacity: 1;
    top: 20%;
    bottom: 20%;
}

.proyecto-card .proyecto-estado {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8em;
    z-index: 4;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.proyecto-card .proyecto-info {
    position: relative;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.proyecto-card .distrito {
    font-size: 2.2em;
    font-weight: bold;
    padding: 0 15px;
}

.proyecto-hover-info .hover-title {
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
}
.proyecto-hover-info .hover-subtitle {
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.proyecto-hover-info .hover-button {
    border: 1.5px solid #fff;
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* --- Sección Ubicación --- */
.section-ubicacion { 
    padding: 80px 0; 
    background-color: var(--color-fondo-claro); 
    color: var(--color-texto-oscuro); 
}

.map-container { 
    width: 100%; 
    height: 450px; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-top: 40px; 
    border: 1px solid #ddd; 
}

.map-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* --- Quiénes Somos --- */
.quienes-somos-section { 
    padding: 80px 0; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/fondo-quienes-somos.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll; 
}

.page-title { 
    font-size: 3em; 
    font-weight: 300; 
    color: #fff; 
    margin-bottom: 60px; 
    text-align: center;
}

.info-block { 
    margin-bottom: 50px; 
    background-color: rgba(0,0,0,0.3); 
    padding: 25px; 
    border-radius: 8px; 
}

.info-title { 
    font-size: 2.2em; 
    font-weight: 500; 
    color: #fff; 
    text-align: left; 
    border-bottom: 2px solid #555; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

.info-block p, .values-list li { 
    font-size: 1.1em; 
    line-height: 1.9; 
    color: #ccc; 
}

.values-list { 
    list-style: none; 
    padding-left: 0; 
}

/* --- Páginas Departamentos y Preventa --- */
body.page-departamentos, body.page-preventa { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/fondo-departamentos.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll; 
}

body.page-departamentos .page-header, body.page-preventa .page-header { 
    background-color: transparent; 
    border-bottom: 1px solid #555; 
    margin-bottom: 40px; 
}

/* --- Página Contacto --- */
body.page-contacto { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/fondo-contacto.png'); 
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll; 
}

body.page-contacto .page-header { 
    background-color: transparent; 
    color: white; 
    border-bottom: 1px solid #555; 
}

body.page-contacto .contact-section { 
    padding: 60px 0; 
    background-color: transparent; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

body.page-contacto .contact-wrapper { 
    max-width: 500px; 
    width: 100%; 
    margin: 0 auto; 
    background-color: rgba(255, 255, 255, 0.98); 
    color: var(--color-texto-oscuro); 
    padding: 40px; 
    border-radius: 8px; 
}

/* --- Página Detalle --- */
.detalle-section { 
    padding: 60px 0; 
}

.detalle-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 80px; 
    margin-bottom: 60px; 
}

.detalle-section .container {
    max-width: 1300px;
}

.detalle-features h2, 
.detalle-descripcion h2, 
.detalle-mapa h2, 
.detalle-galeria h2,
.detalle-video h2 { 
    font-size: 2em; 
    text-align: left; 
    margin-top: 0; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #444; 
    padding-bottom: 10px; 
    color: #fff; 
}

.detalle-video {
    margin-bottom: 60px;
}

.detalle-video video {
    border-radius: 8px;
    border: 1px solid #444;
    max-width: 100%;
}

.detalle-features ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.detalle-features li { 
    font-size: 1.1em; 
    margin-bottom: 15px; 
    color: #ccc; 
}

.detalle-features li strong { 
    color: #fff; 
    font-weight: 500; 
    margin-right: 10px; 
}

.detalle-descripcion p { 
    font-size: 1.1em; 
    line-height: 1.8; 
    color: #ccc; 
}

.detalle-descripcion i { 
    margin-right: 10px; 
    color: #fff; 
}

.detalle-acciones { 
    margin-top: 30px; 
}

.detalle-acciones .btn:hover { 
    background-color: #fff; 
    color: #000; 
}

.detalle-galeria { 
    margin-top: 60px; 
    margin-bottom: 60px; 
    grid-column: 1 / -1; 
}

.detalle-galeria-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px; 
}

.galeria-item img { 
    width: 100%; 
    height: auto;
    display: block;
    border-radius: 8px; 
    border: 1px solid #444; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.galeria-item:hover img { 
    transform: scale(1.05); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); 
}

/* --- Footer --- */
.main-footer { 
    background-color: #1a1a1a; 
    text-align: center; 
    padding: 25px 20px; 
}

/* --- Animaciones --- */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
}

main { 
    animation: fadeIn 0.7s ease-out; 
}

/* --- Botones --- */
.btn { 
    display: inline-block; 
    padding: 12px 25px; 
    background-color: black; 
    color: white; 
    border-radius: 5px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
}

.social-btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 12px 20px; 
    margin-bottom: 10px; 
    border-radius: 5px; 
    color: white; 
    font-weight: bold; 
    transition: opacity 0.3s; 
}

.social-btn i { 
    font-size: 1.2em; 
    margin-right: 10px; 
}

.whatsapp { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.instagram { 
    background: #d6249f; 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); 
}

/* --- Media Queries --- */
@media screen and (max-width: 1024px) {
    .main-nav ul li a { font-size: 0.75em; }
    .section-title { font-size: 2.2em; }
    .hero-text { font-size: 3.5em; }
    .hero-company-name .main-name { font-size: 2.8em; }
}

@media screen and (max-width: 768px) {
    .main-header { padding: 10px 15px; flex-wrap: wrap; }
    .main-header .logo img { height: 50px; }
    .main-nav { width: 100%; justify-content: center; margin-top: 10px; }
    .main-nav ul { justify-content: center; gap: 10px; }
    .main-nav ul li a { font-size: 0.7em; }
    main { padding-top: 120px; }
    .hero { margin-top: -120px; min-height: 500px; }
    .hero-content { margin-top: -5vh; }
    .hero-branding { flex-direction: column; gap: 20px; margin-bottom: 8vh; }
    .hero-logo { height: 80px; }
    .hero-company-name { text-align: center; }
    .hero-company-name .main-name { font-size: 2em; }
    .hero-company-name .sub-name { font-size: 0.8em; }
    .hero-text { font-size: 2.5em; }
    .proyectos-grid { grid-template-columns: 1fr !important; }
    .proyecto-card { height: 300px; }
    .proyecto-card .distrito { font-size: 1.5em; }
    .section-title, .page-title, .page-header h1 { font-size: 2em; }
    .info-title { font-size: 1.6em; }
    .detalle-grid { grid-template-columns: 1fr; gap: 30px; }
    .detalle-galeria-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .map-container { height: 300px; }
    .form-wrapper .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .form-wrapper .form-row input, .form-wrapper .form-row select { margin-bottom: 20px; }
    .form-wrapper { padding: 30px 20px; }
    .page-title { font-size: 2.2em; }
}

@media screen and (max-width: 480px) {
    .container { padding: 0 15px; }
    .main-header .logo img { height: 40px; }
    .main-nav ul li a { font-size: 0.65em; letter-spacing: 0.3px; }
    .hero { min-height: 450px; }
    .hero-logo { height: 60px; }
    .hero-company-name .main-name { font-size: 1.5em; }
    .hero-company-name .sub-name { font-size: 0.65em; letter-spacing: 1px; }
    .hero-text { font-size: 1.8em; }
    .section-title { font-size: 1.5em; margin-bottom: 30px; }
    .page-title, .page-header h1 { font-size: 1.6em; margin-bottom: 40px; }
    .info-title { font-size: 1.3em; }
    .page-header { padding: 30px 15px; }
    .proyecto-card { height: 250px; }
    .proyecto-card .distrito { font-size: 1.3em; }
    .proyecto-estado { font-size: 0.7em; padding: 4px 8px; }
    .section-destacados, .section-ubicacion, .quienes-somos-section, .detalle-section { padding: 50px 0; }
    .info-block { padding: 20px; margin-bottom: 30px; }
    .info-block p, .values-list li { font-size: 1em; line-height: 1.7; }
    .detalle-features h2, .detalle-descripcion h2, .detalle-mapa h2, .detalle-galeria h2 { font-size: 1.5em; }
    .detalle-features li, .detalle-descripcion p { font-size: 1em; }
    .detalle-galeria-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .galeria-item img { height: 120px; }
    .social-btn { padding: 10px 15px; font-size: 0.9em; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
    .map-container { height: 250px; }
    .main-footer { padding: 20px 15px; font-size: 0.9em; }
}

/* --- Personalización Lightbox --- */
.lightbox .lb-nav a.lb-next {
    width: 60px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 22'%3E%3Cpath d='M1 1l10 10-10 10' stroke-width='2.5' stroke='%230A2463' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 40px 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox .lb-nav a.lb-prev {
    width: 60px;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 22'%3E%3Cpath d='M11 1L1 11l10 10' stroke-width='2.5' stroke='%230A2463' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 40px 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox .lb-nav a.lb-prev:hover,
.lightbox .lb-nav a.lb-next:hover {
    opacity: 1;
}

/* --- Botones CTA del Menú --- */
.main-nav .nav-cta a {
    background-color: #2a2085;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.main-nav .nav-cta a:hover {
    background-color: #1e1760;
}

.main-nav .nav-cta-orange a {
    background-color: #b66113;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.main-nav .nav-cta-orange a:hover {
    background-color: #E59400;
}

/* --- Estilos del Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    color: #333;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

.modal-body {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5em;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-btn:hover {
    color: #000;
}

.modal-form-section {
    flex: 1;
    padding: 40px;
}

.modal-form-section h2 {
    font-size: 2em;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 25px;
}

.modal-form-section .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-form-section input[type="text"],
.modal-form-section input[type="tel"],
.modal-form-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
}

.modal-form-section .btn-enviar {
    width: 100%;
    padding: 15px;
    background-color: #2a2085;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.modal-image-section {
    flex: 1;
    min-width: 300px;
    display: block;
}

.modal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .modal-image-section { display: none; }
    .modal-form-section { padding: 30px; }
    .modal-form-section h2 { font-size: 1.5em; }
    .modal-form-section .form-row { flex-direction: column; margin-bottom: 0; }
    .modal-form-section .form-row input { margin-bottom: 15px; }
}

/* --- Estilos de Formularios (Cotiza/Terrenos) --- */
body.page-cotiza,
body.page-terrenos {
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/fondo-quienes-somos.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.cotiza-section {
    padding: 80px 0;
}

.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    border-radius: 8px;
}
.form-title {
    text-align: center;
    font-weight: 400;
    margin-bottom: 30px;
    color: #ccc;
}

.form-wrapper .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="tel"],
.form-wrapper input[type="email"],
.form-wrapper select {
    flex: 1;
    padding: 14px;
    background-color: #222;
    border: 1px solid #555;
    border-radius: 5px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
}

.form-wrapper input::placeholder {
    color: #999;
}

.form-wrapper .form-checkbox {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #ccc;
}

.form-wrapper .btn-enviar {
    width: 100%;
    padding: 15px;
    background-color: #2a2085;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.form-wrapper .btn-enviar:hover {
    background-color: #1e1760;
}

.form-wrapper .form-section-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #ddd;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}
.form-wrapper .status-message.success {
    text-align: center;
    font-size: 1.2em;
    padding: 40px 20px;
}

/* --- Barra de Asesor --- */
.asesor-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    color: #fff;
    border-top: 1px solid #333;
    z-index: 1100;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    min-height: 80px; 
    transform: translateY(100%);
    animation: slideUp 0.6s ease-out forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.asesor-sticky-bar .asesor-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 80px;
}

.asesor-sticky-bar .asesor-img {
    position: absolute;
    bottom: 0;
    left: 20px;
}

.asesor-sticky-bar .asesor-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    display: block;
}

.asesor-sticky-bar .asesor-details {
    display: flex;
    align-items: center;
    margin-left: 150px;
}

.asesor-sticky-bar .asesor-info {
    display: flex;
    flex-direction: column;
}

.asesor-sticky-bar .asesor-name {
    font-weight: 700;
    font-size: 1.2em;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.asesor-sticky-bar .asesor-title {
    font-size: 0.9em;
    color: #e0e0e0;
    font-weight: 400;
    padding-left: 45px;
}

.asesor-sticky-bar .whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.asesor-sticky-bar .whatsapp-btn:hover {
    background-color: #128C7E;
}
.asesor-sticky-bar .whatsapp-btn i {
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .asesor-sticky-bar { min-height: 70px; }
    .asesor-sticky-bar .asesor-content { min-height: 70px; }
    .asesor-sticky-bar .asesor-img img { width: 90px; height: 90px; }
    .asesor-sticky-bar .asesor-details { margin-left: 110px; }
    .asesor-sticky-bar .asesor-name { font-size: 1em; }
    .asesor-sticky-bar .asesor-title { font-size: 0.8em; }
    .asesor-sticky-bar .whatsapp-btn span { display: none; }
    .asesor-sticky-bar .whatsapp-btn { padding: 12px; }
}

/* --- Animaciones de Lightbox --- */
.lightbox .lb-outerContainer,
.lightbox .lb-image,
.lightboxOverlay {
    transition: none !important;
}

/* --- Diseño de Proyectos en Página de Inicio --- */
body.page-inicio .section-destacados .container {
    max-width: 1400px;
}

body.page-inicio .proyectos-grid {
    grid-template-columns: repeat(3, 1fr);
}

body.page-inicio .proyecto-card {
    height: 400px;
}

/* --- Formulario de Cotización --- */
#departamento-wrapper {
    display: none;
    margin-top: 20px;
}

#departamento-wrapper select {
    width: 100%;
}

/* --- Galería Dividida --- */
.galeria-split-container {
    display: flex;
    gap: 250px;
    align-items: flex-start;
}

.galeria-columna-fachadas { flex: 1; }
.galeria-columna-departamentos { flex: 2; }

.galeria-subtitulo {
    font-size: 1.5em;
    font-weight: 500;
    color: #ccc;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    text-align: center; /* <-- ESTA ES LA LÍNEA QUE DEBES AÑADIR */
}

.detalle-galeria-grid.fachadas-grid {
    grid-template-columns: 1fr;
}

.detalle-galeria-grid.departamentos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

@media (max-width: 768px) {
    .galeria-split-container { flex-direction: column; }
    .detalle-galeria-grid.fachadas-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Selector de Moneda --- */
.currency-toggle {
    display: flex;
    flex: 1;
    background-color: #222;
    border: 1px solid #555;
    border-radius: 5px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.currency-toggle input[type="radio"] {
    display: none;
}

.currency-toggle label {
    flex: 1;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    color: #999;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
}

.currency-toggle label:first-of-type {
    border-right: 1px solid #555;
}

.currency-toggle input[type="radio"]:checked + label {
    background-color: #3c3c3c;
    color: #fff;
}

/* ======================================================================= */
/* == VERSIÓN DEFINITIVA V3: BOTONES DE CONTROL Y FONDO NEGRO           == */
/* ======================================================================= */

/* 1. FONDO OSCURO */
.lightboxOverlay {
    background-color: #000000 !important;
    opacity: 0.95 !important;
}

/* 2. CONTENEDOR DE CONTROLES (Para agrupar los botones) */
/* No es necesario crear un div en HTML, posicionaremos los botones con CSS */

/* --- BOTÓN MAXIMIZAR (El que ya tenías, ajustado) --- */
#lightbox-maximize-btn {
    position: absolute;
    top: 0;
    right: 40px; /* LO MOVEMOS A LA IZQUIERDA PARA DAR ESPACIO AL DE CERRAR */
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.3); /* Separador */
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* --- NUEVO BOTÓN CERRAR (X) --- */
#lightbox-custom-close {
    position: absolute;
    top: 0;
    right: 0; /* ESTE VA EN LA ESQUINA EXACTA */
    background-color: rgba(200, 0, 0, 0.6); /* Un rojo suave transparente */
    color: #fff;
    border: none;
    border-bottom-left-radius: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

#lightbox-maximize-btn:hover { background-color: #2a2085; }
#lightbox-custom-close:hover { background-color: #ff0000; } /* Rojo fuerte al pasar mouse */

/* Íconos */
#lightbox-maximize-btn i, #lightbox-custom-close i {
    font-size: 18px;
}

/* 3. ESTILOS MODO MAXIMIZADO (Igual que antes) */
#lightbox.maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
    padding: 0 !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#lightbox.maximized .lb-outerContainer {
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#lightbox.maximized .lb-container, 
#lightbox.maximized .lb-image {
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important;
    border: none !important;
}

#lightbox.maximized .lb-dataContainer {
    display: none !important;
}

/* 4. REUBICACIÓN DE BOTONES AL ESTAR MAXIMIZADO */
/* Cuando se maximiza, los botones se mueven a la esquina de la pantalla */
#lightbox.maximized #lightbox-maximize-btn,
#lightbox.maximized #lightbox-custom-close {
    position: fixed !important;
    top: 0 !important;
    height: 50px;
    width: 50px;
    font-size: 1.2em;
    border-radius: 0;
}

#lightbox.maximized #lightbox-custom-close {
    right: 0 !important;
    background-color: #cc0000; /* Rojo más visible en full screen */
}

#lightbox.maximized #lightbox-maximize-btn {
    right: 50px !important; /* Al lado del cerrar */
    background-color: #333;
}
/* ==================================================================== */
/* == NUEVO: Estilo para que una imagen de galería ocupe el ancho completo == */
/* ==================================================================== */

/* 1. La regla para el contenedor (el enlace <a>) */
.full-width-item {
    grid-column: 1 / -1; /* Esto lo mantiene ocupando todo el ancho */
    
    /* ===== LA CLAVE ESTÁ AQUÍ ===== */
    /* Le damos una altura máxima al contenedor */
    max-height: 250px; /* <-- ¡PUEDES CAMBIAR ESTE NÚMERO! Prueba con 300px o 400px */
    
    overflow: hidden; /* Oculta cualquier parte de la imagen que se desborde */
    display: block; /* Asegura que se comporte como un bloque */
}

/* 2. Regla de ajuste para la imagen interior */
.full-width-item img {
    width: 100%;
    height: 100%; /* La imagen ahora llenará la altura del contenedor (350px) */
    object-fit: cover; /* Esto recorta la imagen (arriba y abajo) para que no se deforme */
}
/* ==================================================================== */
/* == ETIQUETA DE VENDIDO (CINTA AZUL TRANSPARENTE A LA DERECHA)     == */
/* ==================================================================== */

.galeria-item {
    position: relative; 
    overflow: hidden; 
}

/* 1. ETIQUETA EN LAS MINIATURAS (GRID) */
.etiqueta-vendido {
    position: absolute;
    top: 15px;
    right: -30px; /* AHORA A LA DERECHA */
    left: auto;   /* Quitamos la propiedad left */
    width: 120px; 
    /* Azul bonito y transparente (RGBA: Rojo, Verde, Azul, Transparencia) */
    background-color: rgba(245, 48, 48, 0.75); 
    color: #fff;
    text-align: center;
    font-size: 0.75em;
    font-weight: 700;
    padding: 5px 0;
    transform: rotate(45deg); /* Rotación hacia la derecha */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none; 
}

/* 2. ETIQUETA DENTRO DEL LIGHTBOX (PANTALLA GRANDE) */
/* Necesitamos asegurar que el contenedor recorte lo que sobra de la cinta */
.lb-outerContainer {
    position: relative;
    overflow: hidden; /* Esto hace el corte diagonal limpio en las esquinas */
}

#lb-vendido-badge {
    position: absolute;
    top: 25px;
    right: -30px; /* A la derecha */
    width: 150px; /* Un poco más grande para que se vea bien en pantalla grande */
    background-color: rgb(189, 25, 25); /* El mismo azul transparente */
    color: #fff;
    text-align: center;
    font-size: 0.9em;
    font-weight: 800;
    padding: 10px 0;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 9990; /* Debajo de los botones de cerrar/maximizar */
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
}