/* ===============================================================
   EDGARD CASTRO REALTY GROUP - DESIGN SYSTEM
   Paleta sobria y de lujo + Tipografías DejaVu Serif + Poppins
   =============================================================== */

/* ========== 1. VARIABLES CSS (ROOT) ========== */
:root {
    /* ===== PALETA DE COLORES (orden y valores del cliente) ===== */
    --ec-gray-dark: #606260;
    --ec-gray-deep: #1A202C;
    --ec-gray-light: #949797;
    --ec-white: #FFFFFF;
    --ec-black: #141414;
    --ec-amber: #FFB703;
    --ec-pink: #F7057A;
    --ec-orange: #F6702F;

    /* ===== ASIGNACIÓN SEMÁNTICA ===== */
    --primary-orange: var(--ec-orange);
    --secondary-amber: var(--ec-amber);
    --luxury-pink: var(--ec-pink);
    --text-main: var(--ec-gray-dark);
    --title-dark: var(--ec-gray-deep);
    --bg-white: var(--ec-white);
    --bg-soft: rgba(148, 151, 151, 0.08);
    --shadow-base: var(--ec-gray-light);

    /* ===== TIPOGRAFÍA (DejaVu Serif + Poppins) ===== */
    --font-serif: 'DejaVu Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'Poppins', 'Montserrat', 'Open Sans', sans-serif;

    /* ===== SOMBRAS Y EFECTOS ===== */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.15);

    /* ===== BORDES ===== */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* ===== TRANSICIONES ===== */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* ===== ESPACIADO ===== */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
}

/* ========== 2. RESET & BASE ========== */
/* ========== 2. RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.edgard-body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* CORREGIDO: gris oscuro en lugar de naranja/amarillo */
::selection {
    background: var(--ec-gray-dark);  /* #606260 - gris oscuro */
    color: var(--ec-white);            /* #FFFFFF - blanco para contraste */
}

/* Para Firefox */
::-moz-selection {
    background: var(--ec-gray-dark);
    color: var(--ec-white);
}
/* ========== 3. TIPOGRAFÍA Y ESCALAS ========== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--title-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Hero H1 específico con DejaVu Serif */
.hero-section h1 {
    font-family: var(--font-serif);
    font-weight: 700;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.blog-content p,
article p {
    text-align: justify;
}

.section-title:hover {
    color: var(--ec-gray-dark);
    transition: color 0.3s ease;
}

/* Texto general en Poppins */
body, p, .hero-text, .nosotros-text, .service-text,
.testimonial-text, .property-address, .property-meta,
.blog-content p {
    font-family: var(--font-sans);
}

/* Badge UX - AHORA SOBRIO: gris fuerte */
.badge-ux {
    display: inline-block;
    background: #4F6783;  /* Antes: var(--ec-gray-dark) */
    color: var(--ec-white);
    padding: 0.45rem 1.2rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    box-shadow: none;
    font-family: var(--font-sans);
}

/* ========== 4. BOTONERA Y COMPONENTES UI ========== */
.btn-primary-ec {
    background: #4F6783;   /* Antes: var(--primary-orange) o var(--ec-gray-deep) */
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease-in-out;  /* Aseguramos la transición suave */
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-ec:hover {
    background: #3A4D63;   /* Tono más profundo */
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-ec:active {
    transform: translateY(0);
}

.btn-primary-ec:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Botón outline - ya corregido en CSS global */
.btn-outline-ec {
    background: transparent;
    color: var(--ec-gray-deep);
    border: 1px solid var(--ec-gray-deep);
    padding: 10px 26px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-ec:hover {
    background: var(--ec-gray-deep);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.btn-outline-ec:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-ghost-ec {
    background: transparent;
    color: var(--text-main);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-ghost-ec:hover {
    background: var(--bg-soft);
    color: var(--primary-orange);
}

/* Botón link - corregido a escala de grises */
.btn-link-ec {
    color: var(--ec-gray-deep);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
}

.btn-link-ec:hover {
    color: var(--ec-gray-dark);
    gap: 0.7rem;
}

/* ========== 5. FORMULARIOS (CORREGIDO - ESCALA DE GRISES) ========== */
.ec-input,
.form-control.ec-input {
    border: 1px solid rgba(148, 151, 151, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

/* FOCUS del input - gris oscuro en lugar de naranja */
.ec-input:focus,
.form-control.ec-input:focus {
    border-color: var(--ec-gray-deep);
    box-shadow: 0 0 0 3px rgba(26, 32, 44, 0.15);
    outline: none;
}

.luxury-form {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Botón de enviar - gris oscuro en lugar de naranja */
.luxury-form .btn-primary-ec {
    background: #4F6783;   /* o hereda del global si no lo sobrescribes */
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hover del botón de enviar - gris sutil */
.luxury-form .btn-primary-ec:hover {
    background: var(--ec-gray-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.luxury-form .btn-primary-ec:active {
    transform: translateY(0);
}

.luxury-form .btn-primary-ec:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== 6. HEADER Y NAVEGACIÓN ========== */
.ec-header {
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.ec-navbar .navbar-brand {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
}

.brand-logo {
    color: var(--title-dark);
}

.orange-dot {
    color: var(--primary-orange);
    font-size: 2rem;
    line-height: 0;
}

.tag-luxury {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-main);
    margin-left: 0.5rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* ========== 7. HERO SECTION ========== */
.hero-section {
    padding: 3rem 0 5rem;
    position: relative;
    overflow: hidden;
}



.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.orange-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-pattern {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="none" stroke="%23F6702F" stroke-width="1" d="M10,10 L90,10 M10,30 L90,30 M10,50 L90,50 M10,70 L90,70 M10,90 L90,90 M30,10 L30,90 M50,10 L50,90 M70,10 L70,90 M90,10 L90,90" /></svg>');
    background-repeat: repeat;
    height: 400px;
    border-radius: 30px;
    transform: rotate(5deg);
}

/* ========== 8. CARD GLASSMORPHISM ========== */
.hero-search-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 16px 18px 16px 18px;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.hero-search-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-search-glass .hero-search-compact {
    margin-top: 0 !important;
}

.hero-search-glass .search-radios {
    margin-bottom: 0.5rem !important;
}

/* ========== 9. RADIOS Y BUSCADOR ========== */
.radio-luxury {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    color: white;
    gap: 8px;
    flex-shrink: 0;
}

.radio-luxury input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
}

.radio-luxury input:checked {
    border-color: var(--ec-gray-dark);
    background-color: var(--ec-gray-dark);
    box-shadow: inset 0 0 0 4px white;
}

.radio-luxury span {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .hero-search-compact .d-flex {
        flex-direction: column;
    }
    .hero-search-compact select,
    .hero-search-compact input,
    .hero-search-compact button {
        width: 100%;
    }
    .hero-search-compact button {
        width: 100% !important;
    }
    .radio-luxury span {
        font-size: 0.85rem;
    }
}

/* ========== 10. SECCIONES GENERALES ========== */
.section-padding {
    padding: 2rem 0 !important;
}

.bg-soft-accent {
    background: #F5F5F5;
}

#nosotros,
#propiedades,
#equipo,
#contacto,
.section-padding:not(.bg-soft-accent) {
    background: var(--bg-white) !important;
}

.property-card,
.agent-card,
.testimonial-card,
.blog-card-preview,
.service-card,
.luxury-form,
.nosotros-img-wrapper {
    background: var(--bg-white);
}

.min-vh-75 {
    min-height: 75vh;
}

/* ========== 11. TARJETAS DE PROPIEDADES (CORREGIDO - ESCALA DE GRISES) ========== */
.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.property-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    background: var(--bg-soft);
}

.property-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

/* Badge de propiedad - gris oscuro */
.property-badge {
    position: static;
    display: inline-block;
    background: #4F6783;  /* Antes: var(--ec-gray-dark) */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}



.property-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Precio: gris oscuro en estado normal */
.property-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ec-gray-deep);
    margin-top: auto;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

/* Hover del precio: gris sutil (no naranja) */
.property-card:hover .property-price {
    transform: scale(1.05);
    color: var(--ec-gray-dark);
}

.property-title {
    margin-bottom: 0.5rem;
}

.property-title a {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title-dark);
    text-decoration: none;
    transition: color 0.25s ease;
    display: inline-block;
}

.property-title a:hover {
    color: var(--ec-gray-dark);
}

.property-address {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-sans);
}

.property-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    padding-top: 0.75rem;
border-top: 1px solid rgba(26, 32, 44, 0.25);
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Botón primario dentro de la propiedad - gris oscuro */
.property-body .btn-primary-ec {
    text-align: center;
    justify-content: center;
    margin-top: auto;
    background: var(--ec-gray-deep);
    color: white;
}

/* Hover del botón primario - gris sutil (nada de amarillo/naranja) */
.property-body .btn-primary-ec:hover {
    background: var(--ec-gray-dark);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .property-price {
        font-size: 1.25rem;
    }
    .property-title a {
        font-size: 1rem;
    }
    .property-meta {
        gap: 0.75rem;
        font-size: 0.7rem;
    }
}

@media (min-width: 768px) {
    #propiedades .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

/* ========== 12. TARJETAS DE SERVICIOS (CORREGIDO - ESCALA DE GRISES) ========== */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all var(--transition-normal);
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Círculo: sin color de fondo en estado normal */
.icon-circle {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--ec-gray-light);
}

/* Hover del círculo: adquiere color gris oscuro */
.service-card:hover .icon-circle {
    background: var(--ec-gray-deep);
    border-color: var(--ec-gray-deep);
    transform: scale(1.05);
}

/* Icono: gris oscuro en estado normal */
.icon-circle i {
    font-size: 2.5rem;
    color: var(--ec-gray-deep);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover del icono: se vuelve blanco para contraste */
.service-card:hover .icon-circle i {
    color: white;
    transform: scale(1.1);
}

/* Título del servicio: gris oscuro en estado normal */
.service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ec-gray-deep);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

/* Hover del título: gris sutil */
.service-card:hover .service-title {
    color: var(--ec-gray-dark);
}

.service-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    .icon-circle {
        width: 65px;
        height: 65px;
    }
    .icon-circle i {
        font-size: 2rem;
    }
    .service-title {
        font-size: 1.1rem;
    }
    .service-text {
        font-size: 0.85rem;
    }
}

/* ========== 13. SECCIÓN NOSOTROS ========== */
.nosotros-img-wrapper {
    width: 85%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
    margin: 0 auto;
    background: var(--bg-white);
}

.nosotros-img-wrapper:hover {
    box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.nosotros-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.nosotros-img-wrapper:hover .nosotros-img {
    transform: scale(1.05);
}

.nosotros-title {
    transition: all var(--transition-normal);
    display: inline-block;
}

/* CORREGIDO: hover en gris oscuro, no naranja */
.nosotros-title:hover {
    color: var(--ec-gray-deep);
    transform: translateX(5px);
}

.nosotros-text {
    transition: all var(--transition-normal);
    font-family: var(--font-sans);
}

.nosotros-text:hover {
    color: var(--title-dark);
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .nosotros-img-wrapper {
        width: 70%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nosotros-img-wrapper {
        width: 85%;
        aspect-ratio: 4 / 5;
        margin: 0 auto 2rem;
    }
    .nosotros-title:hover {
        transform: translateX(3px);
    }
    .nosotros-text:hover {
        transform: translateX(2px);
    }
}

/* ========== 14. TESTIMONIOS (CORREGIDO - MISMO HOVER QUE LAS DEMÁS CARDS) ========== */
.testimonial-card {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover de la card - MISMO EFECTO QUE property-card y service-card */
.testimonial-card:hover {
    box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

/* Comillas - gris oscuro */
.quote-icon-enhanced {
    font-size: 3rem;
    color: var(--ec-gray-deep);
    margin-bottom: 1rem;
    display: inline-block;
    transition: all var(--transition-normal);
}

/* Hover de comillas - gris sutil */
.testimonial-card:hover .quote-icon-enhanced {
    color: var(--ec-gray-dark);
    transform: scale(1.05);
}

.testimonial-text {
    flex: 1;
    margin-bottom: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    font-family: var(--font-sans);
    transition: color var(--transition-normal);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: all var(--transition-normal);
}

/* Hover de la imagen del autor */
.testimonial-card:hover .testimonial-author img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-serif);
    color: var(--title-dark);
    font-size: 0.9rem;
    transition: color var(--transition-normal);
}

/* Hover del nombre del autor */
.testimonial-card:hover .testimonial-author strong {
    color: var(--ec-gray-dark);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--text-main);
    font-family: var(--font-sans);
}
/* ========== 15. EQUIPO / AGENTES (CORREGIDO - ESCALA DE GRISES) ========== */
.agent-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 0.25rem;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.agent-card:hover {
    box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.agent-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 0.25rem;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 1.5px solid var(--ec-gray-dark);
    transition: transform 0.4s ease, border-color 0.3s ease;
    border-radius: 50%;
}

.agent-card:hover .agent-avatar img {
    transform: scale(1.05);
    border-color: var(--ec-gray-light);
}

.agent-name-link {
    text-decoration: none;
    color: var(--title-dark);
    transition: color 0.25s ease;
    font-family: var(--font-serif);
}

.agent-name-link:hover {
    color: var(--ec-gray-dark);
}

.agent-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--ec-gray-deep);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.agent-social a:hover {
    background: var(--ec-gray-dark);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Diagonal decorativa - GRIS MÁS OSCURO (#606260 en lugar de #949797) */
.luxury-detail {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, transparent 50%, var(--ec-gray-dark) 50%);
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.agent-card:hover .luxury-detail {
    opacity: 0.3;
}

.agent-card.h-100 {
    display: flex;
    flex-direction: column;
}

.agent-info {
    flex: 1;
}

.agent-info h4 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Grid responsivo para 4 columnas */
@media (min-width: 992px) {
    #equipo .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 25%; /* 4 columnas en desktop */
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #equipo .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 50%; /* 2 columnas en tablet */
    }
}

@media (max-width: 767px) {
    #equipo .row > [class*="col-"] {
        flex: 0 0 auto;
        width: 100%; /* 1 columna en móvil */
    }
}

/* ========== 16. BLOG CARDS (CORREGIDO - ESCALA DE GRISES) ========== */
.blog-card-preview {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

.blog-card-preview:hover {
    box-shadow: 0 28px 40px -16px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

.blog-img-link {
    display: block;
    overflow: hidden;
}

.blog-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    overflow: hidden;
    background: var(--bg-soft);
}

.blog-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.blog-card-preview:hover .blog-img img {
    transform: scale(1.05);
}

/* Categoría - gris oscuro en lugar de naranja */
.blog-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ec-gray-deep);
    font-weight: 600;
    font-family: var(--font-sans);
}

.blog-category {
    display: inline-block;
    width: auto;
}

/* Fecha - texto en gris normal, icono en gris oscuro */
.blog-date {
    font-size: 0.75rem;
    color: var(--text-main);
    margin: 0.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
}

.blog-date i {
    color: var(--ec-gray-deep);
    font-size: 0.9rem;
}

/* Título del blog */
.blog-title-link {
    text-decoration: none;
    color: var(--title-dark);
    transition: color 0.25s ease;
    font-family: var(--font-serif);
}

/* Hover del título - gris sutil en lugar de naranja */
.blog-title-link:hover {
    color: var(--ec-gray-dark);
}

.blog-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Botón "Leer más" - gris oscuro en lugar de naranja */
.blog-content .btn-link-ec {
    margin-top: auto;
    align-self: flex-start;
    color: var(--ec-gray-deep);
}

/* Hover del botón "Leer más" - gris sutil */
.blog-content .btn-link-ec:hover {
    color: var(--ec-gray-dark);
    gap: 0.7rem;
}

/* Botón "Ver más publicaciones" - ya usa btn-outline-ec (corregido previamente) */

/* ========== 17. CTA CARIBBEAN (CORREGIDO - ESCALA DE GRISES) ========== */
.cta-caribbean-section {
    padding: 5rem 0;
    background: var(--title-dark);
    position: relative;
    overflow: hidden;
}

.cta-caribbean-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="none" stroke="white" stroke-width="1" d="M10,10 L90,10 M10,30 L90,30 M10,50 L90,50 M10,70 L90,70 M10,90 L90,90 M30,10 L30,90 M50,10 L50,90 M70,10 L70,90 M90,10 L90,90"/></svg>');
    background-repeat: repeat;
    pointer-events: none;
}

/* Badge CTA - gris oscuro sobrio */
.cta-caribbean-badge {
    background: var(--ec-gray-dark);
    color: white;
    margin-bottom: 1.25rem;
    display: inline-block;
}

/* Título CTA - completamente blanco, sin gradiente naranja */
.cta-caribbean-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    font-family: var(--font-serif);
}

/* Eliminamos el orange-gradient, el span dentro del título queda blanco */
.cta-caribbean-title span {
    color: white;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

@media (min-width: 768px) {
    .cta-caribbean-title {
        font-size: 3rem;
    }
}

.cta-caribbean-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 90%;
    line-height: 1.6;
    font-family: var(--font-sans);
}

.cta-caribbean-buttons {
    margin-top: 0.5rem;
}

/* Botón CTA - gris oscuro en lugar de naranja */
.cta-caribbean-buttons .btn-primary-ec {
    background: var(--ec-gray-deep);
    color: white;
    border: 1px solid var(--ec-gray-light);
}

/* Hover botón CTA - gris sutil */
.cta-caribbean-buttons .btn-primary-ec:hover {
    background: var(--ec-gray-dark);
    color: white;
    transform: translateY(-2px);
}

.cta-caribbean-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: rgba(96, 98, 96, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cta-caribbean-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--ec-gray-dark);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-caribbean-icon i {
    font-size: 5rem;
    color: var(--ec-gray-dark);
    position: relative;
    z-index: 2;
}

/* ========== 18. FOOTER RENOVADO (2 PARTES) ========== */

/* PARTE PRINCIPAL - fondo #606260 */
.footer-main {
    background: var(--bg-white);
    padding: 2rem 0 1.5rem;
    border-top: 1px solid rgba(26, 32, 44, 0.15);
}

.footer-main-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo .navbar-brand {
    padding: 0;
    margin: 0;
    line-height: 1;
    display: inline-block;
}

.footer-logo-image {
    max-width: 200px;
    width: auto;
    height: auto;
}

/* Iconos de redes sociales */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: transparent;
    border-radius: 50%;
    color: var(--ec-gray-dark);
    font-size: 1.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--ec-gray-dark);
}

.footer-social-icon:hover {
    background: var(--ec-gray-deep);
    color: white;
    border-color: var(--ec-gray-deep);
    transform: translateY(-4px);
    text-decoration: none;
}

/* Enlaces legales */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-link-small {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--ec-gray-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.footer-link-small:hover {
    color: var(--ec-gray-deep);
    text-decoration: none;
}

.footer-separator {
    color: var(--ec-gray-light);
    font-size: 0.7rem;
}

/* ========== PARTE INFERIOR - fondo más oscuro, padding reducido ========== */
.footer-bottom {
    background: var(--ec-gray-deep);  /* #1A202C */
    padding: 0.75rem 0;
}

.footer-bottom-content {
    text-align: center;
}

.footer-credits-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}

.footer-credits-text .footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
}

.footer-credits-text .footer-link:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.65rem;
    font-family: var(--font-sans);
    margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .footer-logo-image {
        max-width: 280px;
    }
    .footer-main {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 576px) {
    .footer-social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-separator {
        display: none;
    }
    .footer-bottom {
        padding: 0.6rem 0;
    }
    .footer-credits-text {
        font-size: 0.65rem;
    }
    .footer-copyright {
        font-size: 0.6rem;
    }
}

/* ========== 19. WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
        bottom: 16px;
        right: 16px;
    }
}

/* ========== 20. UTILIDADES ========== */
.gap-3 {
    gap: 1rem;
}

.mt-auto {
    margin-top: auto;
}

.cursor-pointer {
    cursor: pointer;
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.shadow-soft {
    box-shadow: var(--shadow-sm);
}


.cta-caribbean-image-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.cta-caribbean-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4);
}

.cta-caribbean-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.cta-caribbean-image-wrapper:hover .cta-caribbean-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cta-caribbean-image-wrapper {
        max-width: 300px;
        margin-top: 2rem;
    }
}

.btn-search-icon {
    width: 48px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* =====================================================
   SOBRESCRITURA FINAL: Color #4F6783 para badges y botones
   (se aplica después de todo para garantizar consistencia)
   ===================================================== */

/* 1. BADGES (todos) */
.badge-ux,
.property-badge,
.hero-badge {
    background: #4F6783 !important;  /* !important opcional, pero asegura */
    color: white !important;
}

/* 2. BOTONES PRIMARIOS (global y específicos) */
.btn-primary-ec,
.property-body .btn-primary-ec,
.luxury-form .btn-primary-ec,
.cta-caribbean-buttons .btn-primary-ec,
.btn-primary-ec.w-100.text-center {  /* por si acaso */
    background: #4F6783 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-primary-ec:hover,
.property-body .btn-primary-ec:hover,
.luxury-form .btn-primary-ec:hover,
.cta-caribbean-buttons .btn-primary-ec:hover,
.btn-primary-ec.w-100.text-center:hover {
    background: #3A4D63 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 3. Botón de búsqueda del hero (estilo inline eliminado) */
.btn-search-icon {
    width: 48px;
    height: 42px;
    padding: 0 !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Etiqueta de tipo/categoría (borde y texto en #4F6783) */
.tag-outline-ec {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4F6783;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #4F6783;
    padding: 2px 10px;
    border-radius: 30px;
    display: inline-block;
}

.tag-outline-ec i {
    font-size: 0.9rem;
}

/* =====================================================
   SOBRESCRITURA: Botones outline con #4F6783
   ===================================================== */

.btn-outline-ec {
    color: #4F6783 !important;
    border: 1px solid #4F6783 !important;
    background: transparent !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-outline-ec:hover {
    background: #4F6783 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Para versiones pequeñas (btn-sm) */
.btn-outline-ec.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

/* =====================================================
   SOBRESCRITURA: Íconos sociales (agentes y footer)
   ===================================================== */

/* Íconos de agentes (círculo sólido) */
.agent-social a {
    background: #4F6783 !important;
    color: white !important;
    transition: all 0.3s ease-in-out !important;
}

.agent-social a:hover {
    background: #3A4D63 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* Íconos del footer (outline) */
.footer-social-icon {
    color: #4F6783 !important;
    border-color: #4F6783 !important;
    background: transparent !important;
    transition: all 0.3s ease-in-out !important;
}

.footer-social-icon:hover {
    background: #4F6783 !important;
    color: white !important;
    border-color: #4F6783 !important;
    transform: translateY(-4px);
}

/* ===== TELÉFONOS EN EL FOOTER ===== */
.footer-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 1rem 0 1.5rem;
    font-family: var(--font-sans);
}

.footer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ec-gray-dark);  /* o #4F6783 si prefieres el nuevo azul */
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone-link:hover {
    color: var(--ec-gray-deep);  /* o #3A4D63 */
    text-decoration: none;
}

.footer-phone-link i {
    font-size: 1.1rem;
    color: #4F6783;  /* icono en azul para destacar */
}

.footer-phone-separator {
    color: var(--ec-gray-light);
    font-size: 0.8rem;
}

/* Responsive móvil */
@media (max-width: 576px) {
    .footer-phones {
        flex-direction: column;
        gap: 0.25rem;
    }
    .footer-phone-separator {
        display: none;
    }
    .footer-phone-link {
        font-size: 0.95rem;
    }
}