/* =========================================
   1. VARIABLES Y ESTILOS GLOBALES
   ========================================= */
:root {
    --brand-dark: #0c3a85;
    --brand-light: #007fc8;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* FIX: Forzar que el contenedor HEADER ocupe el 100% del ancho */
header.position-fixed.sticky-top {
    width: 100% !important;
    left: 0;
    right: 0;
    padding: 0;
    margin: 0;
}

/* Recuperación de tipografías */
body, p, .matriculas, .footer-bottom { 
    font-family: "corbel", sans-serif; 
    font-size: 18px;
    font-weight: 400;
}
button, input, select, option, a, li, span, h1, h2, h3, h4, h5, h6, .nav-link, .btn { 
    font-family: "helveticaNeue", sans-serif; 
}

/* =========================================
   2. HEADER Y TOPBAR (Base Desktop)
   ========================================= */
.header_iconos {
    background-color: var(--brand-light);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.topbar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem; 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-link:hover { color: #d1e6f5; }
.topbar-link i { font-size: 0.9rem; }

.hover_iconos {
    width: 28px; height: 28px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
    transition: all 0.3s ease;
}
.hover_iconos:hover { background: #ffffff; color: var(--brand-light); }

.header_nav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    padding: 5px 0;
}

.navbar-brand img.img_logo {
    max-height: 70px; 
    width: auto;
    transition: all 0.3s ease;
}

.nav-link h5 {
    font-size: 1.1rem; font-weight: 500; letter-spacing: 0.2px;
    transition: color 0.3s ease; margin: 0;
}

/* --- ESTADO SÓLIDO (Al hacer scroll o páginas internas) --- */
.header_nav2 .nav-link h5 { color: #333333 !important; text-shadow: none !important; }
.header_nav2 .nav-link:hover h5 { color: var(--brand-light) !important; }
.header_nav2 .navbar-nav .nav-item.active .nav-link h5 { color: var(--brand-dark) !important; font-weight: 700; }
.header_nav2 .navbar-toggler { border-color: rgba(0,0,0,0.2) !important; }

/* --- ESTADO TRANSPARENTE (Home, arriba) --- */
.bg-transparent { background-color: transparent !important; box-shadow: none !important; }
.bg-transparent .nav-link h5 { color: #ffffff !important; text-shadow: 1px 1px 4px rgba(0,0,0,0.8) !important; }
.bg-transparent .nav-link:hover h5 { color: var(--brand-light) !important; }

/* TRUCO: Convertir el logo a blanco puro con CSS */
.bg-transparent .logo-header { filter: brightness(0) invert(1); }

/* Forzar hamburguesa blanca desde el primer segundo */
.bg-transparent .navbar-toggler { border-color: rgba(255,255,255,0.6) !important; }
.bg-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdowns y PSE */
.dropdown-toggle::after { display: none !important; }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 10px; margin-top: 15px !important; }
.dropdown-item { font-weight: 500; padding: 10px 20px; transition: all 0.2s; color: #333; }
.dropdown-item:hover { background-color: var(--brand-light); color: white !important; }
.img_pse { height: 60px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.img_pse:hover { transform: scale(1.05); }

/* =========================================
   DROPDOWN DE TELÉFONOS (TOPBAR)
   ========================================= */
/* Ocultar la flecha por defecto de Bootstrap para usar la nuestra */
.topbar-link.dropdown-toggle::after {
    display: none !important;
}

/* Caja del menú desplegable */
.topbar-dropdown {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-top: 12px !important;
    min-width: 220px;
    padding: 8px 0;
}

/* Elementos dentro del dropdown */
.topbar-dropdown .dropdown-item {
    font-family: "helveticaNeue", sans-serif;
    font-size: 0.85rem;
    color: #333333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.topbar-dropdown .dropdown-item i {
    font-size: 1rem;
    color: var(--brand-light);
    transition: all 0.2s ease;
}

/* Efecto Hover en el dropdown */
.topbar-dropdown .dropdown-item:hover {
    background-color: var(--brand-light);
    color: #ffffff;
}

.topbar-dropdown .dropdown-item:hover i {
    color: #ffffff !important;
}

/* =========================================
   3. BOTÓN FLOTANTE Y PRELOADER
   ========================================= */
.btn-estudio-floating {
    position: fixed; bottom: 30px; right: 20px;
    background: #ffffff; color: var(--brand-dark);
    padding: 12px 20px; border-radius: 50px;
    box-shadow: 0 10px 25px rgba(12, 58, 133, 0.25);
    border: 2px solid var(--brand-light);
    font-weight: 700; font-size: 0.9rem;
    text-decoration: none; z-index: 1040;
    transition: all 0.3s ease;
    display: flex; align-items: center;
}
.btn-estudio-floating:hover { background: var(--brand-light); color: #ffffff; transform: translateY(-5px); }

#modern-preloader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s ease; }
.preloader-content { position: relative; display: flex; justify-content: center; align-items: center; width: 100px; height: 100px; }
.preloader-content i { font-size: 40px; color: var(--brand-dark); z-index: 2; animation: pulseHome 1.5s infinite ease-in-out; }
.preloader-ring { position: absolute; width: 100%; height: 100%; border: 3px solid transparent; border-top-color: var(--brand-light); border-bottom-color: var(--brand-light); border-radius: 50%; animation: spinRing 1.5s linear infinite; }
@keyframes spinRing { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseHome { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.6; } }

/* =========================================
   4. HERO SECTION (Slider + Buscador)
   ========================================= */
#hero-section { position: relative; width: 100%; margin-top: 40px; margin-bottom: 150px; overflow: visible; }
.hero-slider { position: relative; width: 100%; height: 80vh; min-height: 600px; overflow: hidden; background-color: var(--brand-dark); }
.hero-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(12, 58, 133, 0.3) 0%, rgba(12, 58, 133, 0.85) 100%); z-index: 2; }
.hero-text-container { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: 100%; z-index: 3; text-align: center; color: white; padding: 0 20px; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-title::after { content: ""; display: block; width: 80px; height: 4px; background-color: var(--brand-light); margin: 20px auto 0; border-radius: 2px; }
.hero-subtitle { font-size: 1.25rem; font-weight: 300; max-width: 800px; margin: 1.5rem auto 0; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); color: #f0f0f0; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; width: 55px; height: 55px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.hero-nav:hover { background: var(--brand-light); border-color: var(--brand-light); color: white; transform: translateY(-50%) scale(1.1); }
.hero-nav.prev { left: 30px; } .hero-nav.next { right: 30px; }
.hero-search-wrapper { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1200px; z-index: 10; }
.hero-search-wrapper .buscador-lite-container { margin: 0 !important; padding: 30px !important; border-radius: 20px; box-shadow: 0 15px 40px rgba(12, 58, 133, 0.25); border: 1px solid rgba(0, 127, 200, 0.1); }

/* =========================================
   5. CONSIGNAR INMUEBLE
   ========================================= */
.bg-texture { background-color: #f4f7f6; background-image: radial-gradient(#d1d9e6 1.5px, transparent 1.5px); background-size: 25px 25px; border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; }
.consignar-box { background: #ffffff; border-radius: 20px; padding: 40px 50px; max-width: 1100px; box-shadow: 0 15px 40px rgba(12, 58, 133, 0.08); border: 1px solid rgba(0, 127, 200, 0.1); position: relative; overflow: hidden; }
.consignar-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-light) 100%); }
.icon-box { width: 65px; height: 65px; background: rgba(0, 127, 200, 0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box i { font-size: 30px; color: var(--brand-light); }
.consignar-title { color: var(--brand-dark); font-weight: 700; font-size: 1.8rem; letter-spacing: 0.5px; }
.consignar-subtitle { color: #6c757d; font-size: 1.1rem; }
.consignar-btn-primary { background-color: var(--brand-light); color: #ffffff; font-weight: 700; border-radius: 50px; padding: 12px 28px; border: 2px solid var(--brand-light); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.consignar-btn-primary:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #ffffff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(12, 58, 133, 0.2); }
.consignar-btn-secondary { background-color: transparent; color: var(--brand-dark); font-weight: 700; border-radius: 50px; padding: 12px 28px; border: 2px solid var(--brand-dark); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.consignar-btn-secondary:hover { background-color: var(--brand-dark); color: #ffffff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(12, 58, 133, 0.2); }

/* =========================================
   6. QUIÉNES SOMOS
   ========================================= */
.about-section { background-color: #ffffff; position: relative; overflow: hidden; }
.text-brand-light { color: var(--brand-light); }
.about-title { color: var(--brand-dark); font-weight: 700; font-size: 2.5rem; line-height: 1.2; }
.about-text { font-size: 1.1rem; color: #555; line-height: 1.6; }
.about-highlight-box { display: flex; align-items: flex-start; gap: 15px; background: #f8fbfe; border: 1px solid #e1eef9; border-radius: 16px; padding: 20px; transition: transform 0.3s ease; }
.about-highlight-box:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 127, 200, 0.05); }
.icon-wrapper { width: 45px; height: 45px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.icon-wrapper i, .fc-icon i { color: #ffffff !important; }
.stat-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 16px; padding: 20px 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.stat-card:hover { border-color: var(--brand-light); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 127, 200, 0.1); }
.stat-number { color: var(--brand-light); font-weight: 800; font-size: 2rem; margin-bottom: 5px; }
.stat-label { color: #666; font-size: 0.85rem; margin: 0; }
.btn-brochure { background-color: var(--brand-dark); color: #ffffff; font-weight: 600; padding: 12px 28px; border-radius: 50px; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.btn-brochure:hover { background-color: var(--brand-light); color: #ffffff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 127, 200, 0.3); }
.btn-brochure i { color: #ffffff !important; }

.about-slider-container { position: relative; width: 100%; height: 550px; border-radius: 24px; overflow: visible; }
.about-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px rgba(12, 58, 133, 0.15); }
.about-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-color: #e9ecef; opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1; }
.about-slide.active { opacity: 1; z-index: 2; }
.floating-card { position: absolute; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 20px; border-radius: 16px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; z-index: 10; border: 1px solid rgba(255,255,255,0.5); transition: transform 0.3s ease; }
.floating-card:hover { transform: translateY(-5px) scale(1.02); }
.floating-card h6 { color: #222 !important; }
.fc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.bg-brand-dark { background-color: var(--brand-dark); }
.bg-brand-light { background-color: var(--brand-light); }
.top-left { top: -20px; left: -20px; }
.bottom-right { bottom: -20px; right: -20px; }

/* =========================================
   7. SERVICIOS
   ========================================= */
.services-section { position: relative; z-index: 2; }
.services-title { color: var(--brand-dark); font-weight: 700; font-size: 2.2rem; margin-bottom: 10px; }
.services-subtitle { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; max-width: 1100px; margin: 0 auto; }
.service-card { display: flex; flex-direction: column; border-radius: 16px; padding: 30px 20px; text-align: center; text-decoration: none !important; border: none; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }
.bg-dark-blue { background: var(--brand-dark); }
.bg-light-blue { background: var(--brand-light); }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(12, 58, 133, 0.25); }
.service-icon-wrapper { width: 70px; height: 70px; margin: 0 auto 15px; border-radius: 18px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); transition: transform 0.3s ease; }
.service-card:hover .service-icon-wrapper { transform: scale(1.1) rotate(5deg); background: rgba(255, 255, 255, 0.25); }
.service-icon-wrapper i { font-size: 28px; color: #ffffff !important; }
.service-card-title { color: #ffffff; font-weight: 700; font-size: 1.15rem; margin-bottom: 15px; line-height: 1.3; flex-grow: 1; }
.service-card-footer { font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s ease; }
.service-card-footer i { font-size: 13px; transition: transform 0.3s ease; }
.service-card:hover .service-card-footer { color: #ffffff; }
.service-card:hover .service-card-footer i { transform: translateX(5px); }

/* =========================================
   8. ALIADOS (Marquee)
   ========================================= */
.aliados-section { background-color: #ffffff; overflow: hidden; }
.marquee-container { width: 100%; overflow: hidden; position: relative; padding: 20px 0; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: flex; align-items: center; gap: 60px; width: max-content; animation: scrollMarquee 30s linear infinite; }
.marquee-container:hover .marquee-content { animation-play-state: paused; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; justify-content: center; width: 220px; height: 120px; padding: 10px; background: #ffffff; border-radius: 16px; border: 1px solid #f0f0f0; box-shadow: 0 5px 15px rgba(0,0,0,0.03); transition: all 0.3s ease; filter: grayscale(100%); opacity: 0.7; }
.marquee-item:hover { filter: grayscale(0%); opacity: 1; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(12, 58, 133, 0.1); border-color: rgba(0, 127, 200, 0.3); }
.marquee-item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =========================================
   9. FOOTER
   ========================================= */
.footer-modern { background-color: #0c3a85; color: #ffffff; }
.footer-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; color: #ffffff; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background-color: var(--brand-light); border-radius: 2px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease; display: flex; align-items: center; }
.footer-links a:hover { color: #ffffff; transform: translateX(5px); }
.footer-links i { color: var(--brand-light); }
.matriculas-box { background: rgba(255, 255, 255, 0.05); padding: 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.matriculas { font-size: 0.85rem; line-height: 1.8; color: rgba(255, 255, 255, 0.85); }
.footer-bottom { background-color: rgba(0, 0, 0, 0.2); font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-bottom a { color: var(--brand-light); font-weight: bold; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =========================================
   BOTÓN SCROLL TOP (Subir)
   ========================================= */
.subir {
    position: fixed;
    bottom: 100px; /* Lo subimos para que no choque con el botón de Arrendamiento */
    right: 25px;
    width: 45px;
    height: 45px;
    background-color: var(--brand-light); /* Azul claro de la marca */
    color: #ffffff !important; /* Icono blanco forzado */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 1045; /* Asegura que esté por encima de todo */
    box-shadow: 0 5px 15px rgba(0, 127, 200, 0.4); /* Sombra azulona */
    transition: background-color 0.3s ease, transform 0.3s ease;
    
    /* Animación de salto */
    animation: bounceUpDown 2s infinite;
}

/* Efecto al pasar el ratón */
.subir:hover {
    background-color: var(--brand-dark); /* Se oscurece al pasar el ratón */
    transform: scale(1.1);
    animation-play-state: paused; /* El salto se pausa para que sea fácil de clicar */
}

/* Keyframes para la animación del saltito */
@keyframes bounceUpDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px); /* Sube un poco */
    }
    60% {
        transform: translateY(-4px); /* Baja a la mitad */
    }
}

/*CSS para sub página quienes somos*/

/* Fondo general de la página (Azul muy suave en lugar de blanco) */
body.page-quienes-somos {
    background-color: #eef4f9; 
}

/* --- BANNER SUPERIOR --- */
.page-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-top: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(12, 58, 133, 0.85) 0%, rgba(0, 127, 200, 0.4) 100%);
    z-index: 1;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* --- SECCIÓN: HISTORIA (Blanco para resaltar sobre el fondo azul) --- */
.section-history {
    background-color: #ffffff;
    margin: -40px auto 40px; /* Se superpone sutilmente al banner */
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(12, 58, 133, 0.08);
    position: relative;
    z-index: 10;
    max-width: 95%;
}

/* Tarjeta flotante sobre la imagen */
.floating-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 16px;
    border-left: 5px solid var(--brand-light);
    z-index: 10;
}

/* --- SECCIÓN: MISIÓN Y VISIÓN (Fondo Oscuro) --- */
.section-mv {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #051c45 100%);
    position: relative;
    overflow: hidden;
}

/* Luz decorativa en el fondo oscuro */
.section-mv::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 400px; height: 400px;
    background: rgba(0, 127, 200, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

/* Tarjetas de Misión y Visión (Efecto Cristal) */
.mv-card {
    background: rgba(255, 255, 255, 0.08); /* Transparente */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.mv-card h3 {
    color: #ffffff !important;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.mv-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mv-icon-box i {
    color: #ffffff !important;
}

/* --- SECCIÓN: VALORES (Fondo Texturizado) --- */
.section-values {
    background-color: #eef4f9;
    background-image: radial-gradient(#c5d5e6 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Tarjetas de valores con gradientes de color */
.value-card {
    border-radius: 24px;
    padding: 40px 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 35px rgba(12, 58, 133, 0.15);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(12, 58, 133, 0.25);
}

/* Color 1: Azul Claro */
.value-card.bg-gradient-light {
    background: linear-gradient(135deg, var(--brand-light) 0%, #005a8f 100%);
}

/* Color 2: Azul Oscuro */
.value-card.bg-gradient-dark {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #051c45 100%);
}

/* Textos e Iconos blancos en las tarjetas de valores */
.value-card h4 {
    color: #ffffff !important;
}

.value-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px; height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.value-icon i {
    font-size: 32px;
    color: #ffffff !important;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}
/*Termina css de página quienes somos*/

/*Página servicios de la inmobiliaria*/

/* Fondo general de la página */
body.page-servicios {
    background-color: #eef4f9; /* Azul hielo suave */
}

/* --- MENÚ DE ANCLAS RÁPIDO --- */
.anchor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.anchor-btn {
    background-color: #ffffff;
    color: var(--brand-dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1eef9;
    transition: all 0.3s ease;
}

.anchor-btn:hover {
    background-color: var(--brand-light);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 127, 200, 0.2);
}

/* --- DISEÑO ZIGZAG (Tarjetas de Servicio) --- */
.service-row {
    position: relative;
}

/* Icono Gigante (Izquierda o Derecha) */
.service-icon-large {
    width: 100%;
    height: 250px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(12, 58, 133, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-icon-large:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 25px 45px rgba(12, 58, 133, 0.25);
}

/* Degradados de color para los iconos */
.bg-gradient-light {
    background: linear-gradient(135deg, var(--brand-light) 0%, #005a8f 100%);
}
.bg-gradient-dark {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #051c45 100%);
}

.service-icon-large i {
    font-size: 90px;
    color: #ffffff !important;
}

/* Tarjeta de Contenido de Texto */
.service-content-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border-left: 5px solid var(--brand-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 58, 133, 0.08);
}

.service-title {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Tarjeta especial para la imagen de MEGO (Inversiones) */
.service-image-large {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(12, 58, 133, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    transition: transform 0.4s ease;
}

.service-image-large:hover {
    transform: translateY(-5px);
}

/*Termina css página servicios de la inmobiliaria*/


/* ESTILOS PÁGINA CONTACTO */

/* Fondo general de la página */
body.page-contacto {
    background-color: #eef4f9;
}

/* --- TARJETA PRINCIPAL (Datos + Formulario) --- */
.contact-main-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(12, 58, 133, 0.08);
    border-top: 6px solid var(--brand-light);
    position: relative;
    z-index: 10;
}

.contact-title {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 1.8rem;
}

/* --- DATOS DE CONTACTO --- */
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-box-contact {
    width: 45px;
    height: 45px;
    background: rgba(0, 127, 200, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-box-contact i {
    font-size: 20px;
    color: var(--brand-light);
}

.contact-info-list li:hover .icon-box-contact {
    background: var(--brand-light);
}
.contact-info-list li:hover .icon-box-contact i {
    color: #ffffff;
}

/* Redes Sociales (Botones circulares) */
.social-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--brand-light);
    color: #ffffff;
    border-color: var(--brand-light);
    transform: translateY(-3px);
}

/* --- FORMULARIO MODERNO --- */
.contact-form-wrapper {
    background: #f8fbfe;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e1eef9;
}

/* Estilos de los inputs flotantes de Bootstrap 5 */
.form-floating > .form-control {
    border: 1px solid #dce4ec;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    background-color: #ffffff;
    font-family: "corbel", sans-serif;
    font-size: 1rem;
}

.form-floating > .form-control:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 127, 200, 0.15);
}

.form-floating > label {
    color: #777;
    font-family: "helveticaNeue", sans-serif;
    font-size: 0.95rem;
}

.form-check-input:checked {
    background-color: var(--brand-light);
    border-color: var(--brand-light);
}

/* --- TARJETAS DE CORREO (Escríbenos) --- */
.email-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.email-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Línea superior que aparece al hacer hover */
.email-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(12, 58, 133, 0.1);
    border-color: transparent;
}

.email-card:hover::before {
    opacity: 1;
}

.email-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f4f7f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.email-icon-wrapper img {
    width: 45%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.email-card:hover .email-icon-wrapper {
    transform: scale(1.1);
    background: rgba(0, 127, 200, 0.1);
}

.email-card h5 {
    color: var(--brand-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.email-card span.text-muted {
    font-size: 0.8rem !important; /* Letra un poco más pequeña para que quepa mejor */
    display: block;
    width: 100%;
    padding: 0 10px;
    /* Estas dos líneas son las mágicas que cortan el correo si es muy largo */
    overflow-wrap: break-word; 
    word-break: break-word;
    line-height: 1.3;
    color: #666 !important;
}

/* ---Termina página de contacto --- */


/* =========================================
   10. BLOQUES DE MEDIA QUERIES UNIFICADOS
   ========================================= */
   
@media (min-width: 1200px) {
    .section-history { max-width: 1140px; } /* Alineado con el container de Bootstrap */
}

/* --- TABLETS (max-width: 991px) --- */
@media (max-width: 991px) {
    
    /* 1. HEADER Y TOPBAR */
    .navbar-brand img.img_logo { max-height: 50px !important; }
    .navbar-toggler { width: auto !important; padding: 6px 10px !important; margin: 0 !important; }

    /* Menú desplegable */
    .navbar-collapse { 
        background-color: #ffffff !important; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; 
        border-radius: 12px; 
        margin-top: 15px; 
        padding: 20px; 
    }
    
    /* Forzar textos oscuros en el menú abierto, sin importar si es Home o no */
    .navbar-collapse .nav-link h5 { 
        color: #333333 !important; 
        text-shadow: none !important; 
        font-weight: 600; 
    }
    
    .navbar-collapse .img_pse { margin-top: 10px; height: 50px;}

    /* 2. HERO principal home */
    #hero-section { margin-top: 40px; margin-bottom: 30px; }
    .hero-slider { height: 500px; min-height: auto; }
    .hero-text-container { top: 55%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-nav { display: none; }
    .hero-search-wrapper { position: relative; bottom: auto; left: auto; transform: none; width: 100%; max-width: 100%; padding: 0 15px; margin-top: -40px; }
    .hero-search-wrapper .buscador-lite-container { padding: 15px !important; margin-top: 0 !important; box-shadow: 0 10px 25px rgba(12, 58, 133, 0.15); }

    /* 3. SECCIONES INTERNAS */
    .consignar-box { padding: 30px 25px; }
    .consignar-title { font-size: 1.5rem; }
    .consignar-subtitle { font-size: 1rem; }
    .consignar-btn-primary, .consignar-btn-secondary { width: 100%; }
    
    /* Quiénes Somos del home */
    .about-title { font-size: 2rem; }
    .about-slider-container { height: 400px; margin-top: 30px; border-radius: 20px; }
    .top-left { top: 10px; left: 10px; }
    .bottom-right { bottom: 10px; right: 10px; }
    .floating-card { padding: 10px 15px; }
    .floating-card h6 { font-size: 0.9rem; }
    .floating-card span { font-size: 0.75rem; }

    /* Botón Flotante */
    .btn-estudio-floating { bottom: 15px; right: 15px; padding: 8px 15px; font-size: 0.8rem; }
    
    .subir {
        bottom: 85px; /* Ajustado a la altura del botón de arrendamiento en móvil */
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /*subpágina quienes somos*/
    .page-banner {
        height: 300px;
        margin-top: 90px;
    }
    
    .section-history {
        margin: 20px auto;
        padding: 30px 20px !important;
    }

    .floating-badge {
        position: relative;
        bottom: 0; right: 0;
        margin-top: 20px;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .mv-card {
        padding: 30px 20px;
    }
    
    .value-card {
        padding: 30px 15px;
    }
    /*Termina subpagina quienes somos*/
    
    /*Pagina servicios*/
    .service-icon-large {
        height: 200px;
        border-radius: 20px;
    }
    .service-icon-large i {
        font-size: 70px;
    }
    .service-content-card {
        padding: 30px 20px;
        border-left: 4px solid var(--brand-light);
    }
    .service-title {
        font-size: 1.4rem;
    }
    .service-image-large {
        height: 180px;
    }
    /*Finaliza página servicios*/
    
    /*Página de contacto*/
    .contact-main-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .contact-form-wrapper {
        padding: 20px 15px;
        margin-top: 30px;
    }
    .contact-title {
        font-size: 1.5rem;
    }
    .email-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    /*Termina página de contacto*/
}

/* --- MÓVILES GRANDES (max-width: 767px) --- */
@media (max-width: 767px) {
    .hero-slider { height: 400px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-title::after { margin: 15px auto 0; width: 60px; }

    .marquee-content { gap: 30px; }
    .marquee-item { width: 170px; height: 90px; padding: 8px; }
}

/* --- MÓVILES PEQUEÑOS (max-width: 576px) --- */
@media (max-width: 576px) {
    /* Topbar: Ocultar textos, dejar solo iconos */
    .topbar-link span { display: none; }
    .topbar-link i { font-size: 1.1rem; }
    .header_iconos { padding: 10px 0; }
    .hover_iconos { width: 26px; height: 26px; font-size: 11px; }
    .email-grid {
        grid-template-columns: 1fr;
    }
}