/* public/css/estilos-modernos.css */

:root {
    /* --- PALETA DE COLORES MODERNA --- */
    /* Azul Profundo (Confianza, Corporativo) - Reemplaza al azul viejo */
    --color-primary: #0f2c59; 
    /* Azul Vibrante (Acción, Botones) */
    --color-accent: #3b82f6; 
    /* Fondo Claro (No blanco puro, para descansar la vista) */
    --color-bg-light: #f8fafc;
    /* Texto Principal */
    --color-text-main: #1e293b;
    /* Texto Secundario (Gris suave) */
    --color-text-muted: #64748b;
    
    /* --- TIPOGRAFÍA --- */
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* --- UI ELEMENTS --- */
    --border-radius-card: 16px; /* Bordes redondeados modernos */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05); /* Sombra suave */
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.1); /* Sombra al pasar el mouse */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

/* Utilidad rápida para imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Reset básico de enlaces */
a {
    text-decoration: none;
    transition: var(--transition);
}
/* --- TARJETAS DE INMUEBLES (Cards) --- */
.property-card {
    border: none;
    background: #fff;
    border-radius: var(--border-radius-card);
    transition: var(--transition);
    overflow: hidden; /* Para que la imagen no se salga de los bordes redondeados */
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px); /* Efecto de elevación */
    box-shadow: var(--shadow-hover);
}

.property-image-wrapper {
    position: relative;
    height: 220px; /* Altura fija para uniformidad */
    overflow: hidden;
}

.property-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    transition: transform 0.5s ease;
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

/* Etiquetas flotantes sobre la imagen (Venta/Arriendo) */
.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.property-badge.type {
    left: auto;
    right: 15px;
    background-color: var(--color-accent);
    color: #fff;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.property-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Grid de características (Camas, Baños, etc.) */
.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: auto; /* Empuja esto al fondo si hay espacio */
    border-top: 1px solid #eee;
}

.feature-item {
    font-size: 0.85rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-item i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* --- BOTONES --- */
.btn-view-property {
    width: 100%;
    margin-top: 1rem;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- PAGINACIÓN MODERNA --- */
.pagination .page-link {
    border: none;
    color: var(--color-text-main);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 44, 89, 0.3);
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}
.whatsapp-float img { width: 35px; height: 35px; }
/* --- HERO SECTION (Portada) --- */
.hero-section {
    position: relative;
    /* Imagen de fondo de la ciudad o un inmueble bonito */
    background: linear-gradient(rgba(15, 44, 89, 0.7), rgba(15, 44, 89, 0.5)), url('https://cucutanuestra.com/imagenes/lugares/templo-historico-villa-del-rosrio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax simple */
    height: 85vh; /* Ocupa casi toda la pantalla */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 4rem;
    border-radius: 0 0 30px 30px; /* Curva moderna abajo */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff; /* Forzamos blanco sobre el fondo oscuro */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

/* --- BUSCADOR FLOTANTE EN HERO --- */
.hero-search-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 50px; /* Forma de píldora */
    display: flex;
    gap: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    flex-wrap: wrap; /* Para móviles */
    backdrop-filter: blur(10px);
}

.hero-search-box .form-control,
.hero-search-box .form-select {
    border: none;
    background: transparent;
    box-shadow: none;
    height: 50px;
    border-radius: 0;
    border-right: 1px solid #ddd;
}

.hero-search-box input:last-of-type,
.hero-search-box select:last-of-type {
    border-right: none;
}

.btn-hero-search {
    border-radius: 50px;
    padding: 0 30px;
    height: 50px;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-search:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Ajuste Móvil */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { height: auto; padding: 100px 0; }
    .hero-search-box { border-radius: 20px; flex-direction: column; padding: 20px; }
    .hero-search-box .form-control, .hero-search-box .form-select { border-right: none; border-bottom: 1px solid #eee; margin-bottom: 10px; }
    .btn-hero-search { width: 100%; justify-content: center; }
}
/* --- HEADER Y NAVEGACIÓN --- */

/* Barra superior delgada (Top Bar) */
.top-bar {
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: #fff;
}

/* Barra de Navegación Principal */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand img {
    max-height: 55px; /* Ajuste para que el logo no sea gigante */
    transition: var(--transition);
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-main) !important; /* Forzar color oscuro */
    margin: 0 10px;
    position: relative;
    font-size: 0.95rem;
}

/* Efecto hover subrayado animado */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary) !important;
}

/* Botón de Acceso en el menú */
.btn-nav-login {
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Ajustes Mobile */
@media (max-width: 991px) {
    .navbar-collapse.collapse.show {
        background: #fff;
        padding: 20px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    .top-bar { display: none; }
}

/* --- PRELOADER MODERNO --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo blanco limpio */
    z-index: 99999; /* Por encima de todo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Cuando la página carga, añadimos esta clase con JS para ocultarlo */
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Permite hacer clic a través de él mientras se desvanece */
}

.preloader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo central */
.preloader-logo {
    width: 80px; /* Ajusta según tu logo */
    height: auto;
    animation: logo-pulse 2s infinite ease-in-out;
}

/* Anillo giratorio */
.preloader-spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(15, 44, 89, 0.1); /* Color primario muy suave */
    border-top: 3px solid var(--color-accent); /* Color de acento girando */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* --- ANIMACIONES --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes logo-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
/* --- FILTRO HORIZONTAL --- */
.filter-horizontal-container {
    background: #fff;
    padding: 25px 25px 10px 25px; /* Padding ajustado */
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    border: 1px solid #f1f5f9;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    display: block;
    letter-spacing: 0.5px;
}

.form-select-modern, .form-control-modern {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: var(--transition);
}

.form-select-modern:focus, .form-control-modern:focus {
    background-color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-filter-submit {
    width: 100%;
    height: 46px; /* Altura para igualar inputs */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.4rem; /* Alinear con los inputs */
}
/* --- PÁGINA DE DETALLES --- */

/* Encabezado del Inmueble */
.property-header h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.property-location-badge {
    color: var(--color-text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Galería */
.gallery-section {
    position: relative;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
}

.main-gallery {
    height: 450px; /* Altura fija para impacto visual */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.main-gallery img, .main-gallery video {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.gallery-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 10;
}
.gallery-controls .prev { left: 15px; }
.gallery-controls .next { right: 15px; }
.gallery-controls button:hover { background: #fff; transform: translateY(-50%) scale(1.1); }

.thumbnails-track {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    background: #fff;
}
.thumbnail-item {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border-radius: 6px;
    overflow: hidden;
}
.thumbnail-item.active, .thumbnail-item:hover { opacity: 1; border: 2px solid var(--color-accent); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjeta Flotante (Sticky Sidebar) */
.sidebar-booking-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 110px; /* Debajo del header fijo */
}

.price-tag-large {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.btn-share-action {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    color: var(--color-text-main);
    transition: var(--transition);
}
.btn-share-action:hover { background: #f8fafc; border-color: var(--color-accent); color: var(--color-accent); }

/* Características */
.feature-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list-grid li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
}
.feature-list-grid li i { color: var(--color-accent); }

/* Mapa */
#map {
    height: 350px;
    width: 100%;
    border-radius: var(--border-radius-card);
    z-index: 1; /* Para que no tape el sticky header */
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sidebar-booking-card { position: relative; top: 0; margin-top: 2rem; }
    .main-gallery { height: 300px; }
    .property-header h1 { font-size: 1.5rem; }
}
/* --- AJUSTES DETALLES --- */

/* Forzar altura del mapa (CRUCIAL para que se vea Leaflet) */
#map {
    width: 100%;
    height: 400px; /* Altura fija necesaria */
    border-radius: 12px;
    z-index: 1;
    background-color: #eee; /* Color de fondo mientras carga */
}

/* Cursor para indicar zoom en galería */
.main-gallery-image {
    cursor: zoom-in;
}

/* Ajuste para Fancybox (z-index alto para que tape todo) */
.fancybox__container {
    z-index: 10000 !important;
}
/* --- AJUSTES DETALLES RESPONSIVE --- */

/* En Desktop (Pantallas grandes) */
@media (min-width: 992px) {
    .sidebar-booking-card {
        position: sticky;
        top: 110px; /* Se queda fija a 110px del techo al bajar */
        z-index: 90;
    }
}

/* En Móvil y Tablet (Pantallas pequeñas) */
@media (max-width: 991px) {
    .sidebar-booking-card {
        position: static !important; /* Quita el efecto fijo */
        top: auto;
        margin-bottom: 2rem; /* Espacio para separar del contenido de abajo */
        z-index: 1;
    }
    
    /* Aseguramos que el mapa no cause problemas de scroll */
    #map {
        height: 300px; /* Un poco más pequeño en móvil */
    }
}
/* Estilos para Modal WhatsApp - Skin de WhatsApp */
#whatsappModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5 0%, #e5e5e7 100%);
}

#whatsappModal .modal-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-bottom: none;
    padding: 20px;
    text-align: center;
}

#whatsappModal .modal-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#whatsappModal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#whatsappModal .btn-close:hover {
    opacity: 1;
}

#whatsappModal .modal-body {
    padding: 30px 20px;
    background: #f0f2f5;
    text-align: center;
}

#whatsappModal h2 {
    color: #075E54;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

#whatsappModal p {
    color: #667781;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

#whatsappModal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

#whatsappModal li {
    margin-bottom: 12px;
}

#whatsappModal .whatsapp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #075E54;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border-left: 4px solid #25D366;
}

#whatsappModal .whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f0f2f5;
    text-decoration: none;
    color: #075E54;
}

#whatsappModal .whatsapp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    padding: 8px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

#whatsappModal .whatsapp-link:hover .whatsapp-icon {
    transform: scale(1.1);
}

#whatsappModal strong {
    color: #25D366;
    font-weight: 600;
}

#closeModalButton {
    margin-top: 20px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background 0.2s;
}

#closeModalButton:hover {
    background: #128C7E;
}

/* Responsive */
@media (max-width: 576px) {
    #whatsappModal .modal-dialog {
        margin: 10px;
    }
    
    #whatsappModal .whatsapp-link {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    #whatsappModal .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
}
/* --- PÁGINA NOSOTROS --- */

/* Cabecera de Página (Page Header) */
.page-header {
    background: linear-gradient(rgba(15, 44, 89, 0.8), rgba(15, 44, 89, 0.7)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}
.page-header2 {
    background: linear-gradient(rgba(15, 44, 89, 0.8), rgba(86, 129, 193, 0.7)), url('https://unplandenegocios.com/wp-content/uploads/2020/11/construccion-800x365.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-align: center;
    margin-bottom: 4rem;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 3rem;
    color : #fff;
}

/* Sección de Valores (Iconos) */
.value-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius-card);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f1f5f9;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-accent);
}

.value-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(59, 130, 246, 0.1); /* Color accent muy suave */
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem;
    transition: var(--transition);
}

.value-box:hover .value-icon-wrapper {
    background-color: var(--color-primary);
    color: #fff;
}

/* Sección de Equipo (Asesores) */
.team-card {
    background: #fff;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.05);
}

/* Overlay con redes sociales al pasar el mouse */
.team-social-overlay {
    position: absolute;
    bottom: -50px; /* Oculto inicialmente */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social-overlay {
    bottom: 0;
}

.team-social-link {
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}
.team-social-link:hover { color: var(--color-accent); transform: scale(1.2); }

.team-info {
    padding: 1.5rem;
}

.team-role {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-top: 10px;
}
/* --- PÁGINA DE CONTACTO --- */

/* Cabecera específica de contacto */
.contact-header {
    background: linear-gradient(rgba(15, 44, 89, 0.85), rgba(15, 44, 89, 0.75)), url('https://images.unsplash.com/photo-1423666639041-f142fcb0e0ce?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

/* Cajas de Información (Cards) */
.contact-box {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-card);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: var(--transition);
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.8rem;
    transition: var(--transition);
}

.contact-box:hover .contact-icon {
    background-color: var(--color-primary);
    color: #fff;
}

.contact-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.contact-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.contact-link:hover { color: var(--color-accent); }

/* Redes Sociales en Contacto */
.social-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--color-primary);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}
.social-btn:hover { background: var(--color-primary); color: #fff; transform: scale(1.1); }

/* Mapa */
#map-contact {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    z-index: 1;
}
/* --- PÁGINA DE ACCESO (LOGIN) --- */

.login-wrapper {
    min-height: calc(100vh - 80px); /* Resta la altura aprox del header */
    display: flex;
    background-color: #fff;
    overflow: hidden;
}

/* Lado Izquierdo: Imagen */
.login-side-image {
    background: linear-gradient(rgba(15, 44, 89, 0.7), rgba(15, 44, 89, 0.4)), url('https://www.unilibre.edu.co/wp-content/uploads/2024/08/Ingenieria-Civil-1.webp');
    background-size: cover;
    background-position: center;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 3rem;
    position: relative;
}

.login-caption {
    text-align: center;
    z-index: 2;
}

/* Lado Derecho: Formularios */
.login-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5rem;
    background-color: #fff;
    position: relative;
}

/* Pestañas Modernas */
.nav-pills-custom {
    background-color: #f1f5f9;
    padding: 5px;
    border-radius: 50px;
    display: inline-flex;
    margin-bottom: 2rem;
}

.nav-pills-custom .nav-link {
    border-radius: 50px;
    color: var(--color-text-muted);
    font-weight: 600;
    padding: 10px 25px;
    transition: var(--transition);
}

.nav-pills-custom .nav-link.active {
    background-color: #fff;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Inputs con Iconos */
.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    color: var(--color-text-muted);
}

.form-control-login {
    border: 1px solid #e2e8f0;
    border-left: none;
    background-color: #f8fafc;
    padding: 12px;
}

.form-control-login:focus {
    background-color: #fff;
    border-color: var(--color-accent);
    box-shadow: none;
}

.form-control-login:focus + .input-group-text, 
.input-group-text:has(+ .form-control-login:focus) {
    background-color: #fff;
    border-color: var(--color-accent);
}

/* Responsive */
@media (max-width: 991px) {
    .login-wrapper { flex-direction: column; }
    .login-side-image { display: none; } /* Ocultar imagen en móviles o ponerla arriba pequeña */
    .login-content { width: 100%; padding: 2rem; }
}
/* --- FOOTER MODERNO --- */
.footer-section {
    background-color: var(--color-primary); /* Azul corporativo */
    color: #fff;
    padding-top: 4rem;
    font-size: 0.95rem;
    position: relative;
}

.footer-brand-text {
    opacity: 0.8;
    line-height: 1.6;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

/* Pequeña línea decorativa bajo los títulos */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

/* Enlaces del Footer */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px; /* Efecto de desplazamiento */
    color: var(--color-accent);
}

/* Info de Contacto */
.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
.footer-contact-item i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* Redes Sociales Footer */
.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}
.footer-social-btn:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    color: #fff;
}

/* Barra de Copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Banner Cookies */
.cookie-banner-modern {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 44, 89, 0.95);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
    width: 90%;
    max-width: 600px;
    justify-content: space-between;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-banner-modern {
        flex-direction: column;
        border-radius: 15px;
        text-align: center;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }
}