@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #e2e2ec;
    color: #18154a;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-60px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================================
   HEADER (Idéntico a Inicio)
================================== */
.site-header {
    width: 100%;
    background-color: #ffffff;
    min-height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInDown 0.8s ease forwards;
}
.header-container { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 600; color: #18154a; transition: transform 0.3s ease; }
.logo img { height: 48px; }
.logo:hover { transform: scale(1.05); }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a:not(.btn-contact) { font-size: 16px; font-weight: 500; color: #18154a; position: relative; transition: color 0.3s ease; padding-bottom: 4px; }
.nav-menu a:not(.btn-contact)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: #c99700; transition: width 0.3s ease; }
.nav-menu a:not(.btn-contact):hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: #c99700; font-weight: 600; }
.btn-contact { background-color: #c99700; color: white !important; padding: 10px 25px; border-radius: 50px; font-weight: 600; font-size: 16px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-contact:hover { background-color: #aa7f00; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 151, 0, 0.3); }
/* ==================================
   MENÚ DESPLEGABLE (DROPDOWN)
================================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    z-index: 1001;
    flex-direction: column;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 10px 20px;
    color: #18154a !important;
    font-size: 15px !important;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a::after {
    display: none; /* Oculta la línea naranja del menú principal en el submenú */
}

.dropdown-menu a:hover {
    background-color: #f5f5f9;
    color: #c99700 !important;
}
/* ==================================
   HERO BARRIOS
================================== */
.hero-barrios { width: 100%; height: 350px; position: relative; overflow: hidden; }
.hero-barrios img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(30, 42, 120, 0.75); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.hero-overlay h1 { color: white; font-size: 64px; margin-bottom: 10px; }
.hero-overlay p { font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.9); font-size: 20px; max-width: 800px; }

/* ==================================
   INTRODUCCIÓN
================================== */
.intro-section { width: 100%; max-width: 1200px; padding: 60px 20px; }
.intro-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.intro-container p { font-size: 18px; line-height: 1.6; color: #333; font-weight: 300; text-align: justify; }

/* ==================================
   FRANJA CARACTERÍSTICAS
================================== */
.features-bar { width: 100%; max-width: 1200px; margin: 20px auto 60px; padding: 0 20px; }
.features-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { padding: 0 20px; border-right: 2px solid #1e2a78; display: flex; flex-direction: column; }
.feature-item:last-child { border-right: none; }
.feature-item h3 { font-size: 26px; color: #1e2a78; line-height: 1.2; margin-bottom: 15px; }
.feature-item p { font-size: 14px; color: #555; line-height: 1.5; font-weight: 500; }

/* ==================================
   POR QUÉ INVERTIR + GRÁFICO
================================== */
.why-invest-section { width: 100%; max-width: 1200px; padding: 0 20px 80px; }
.why-invest-container { background: #fff; border: 2px solid #1e2a78; border-radius: 20px; padding: 50px; text-align: center; }
.why-invest-container h2 { font-size: 38px; color: #1e2a78; margin-bottom: 10px; }
.why-invest-container .subtitle { color: #c99700; font-size: 20px; font-weight: 600; margin-bottom: 40px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.stat-box { background: rgba(83, 167, 242, 0.1); border-radius: 12px; padding: 25px 15px; }
.stat-box h4 { font-size: 42px; color: #1e2a78; margin-bottom: 10px; }
.stat-box p { font-size: 14px; color: #1e2a78; font-weight: 600; line-height: 1.4; }

.data-split-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; text-align: left; }
.benefits-list ul { list-style: none; padding: 0; }
.benefits-list li { font-size: 15px; color: #444; margin-bottom: 20px; line-height: 1.5; position: relative; padding-left: 30px; }
/* Viñeta personalizada simulando el icono del diseño */
.benefits-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #c99700; font-weight: bold; font-size: 18px; }
.benefits-list strong { color: #1e2a78; display: block; margin-bottom: 4px; font-size: 16px; }

.chart-container { width: 100%; height: 350px; position: relative; }

/* ==================================
   LISTADO BARRIOS
================================== */
.barrios-list-section { width: 100%; max-width: 1200px; padding: 0 20px 80px; }
.barrios-list-section h2 { font-size: 52px; color: #1e2a78; margin-bottom: 40px; }

.barrios-list-container { display: flex; flex-direction: column; gap: 30px; }
.barrio-card { display: flex; background: #fff; border-radius: 30px; overflow: hidden; height: 260px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.barrio-card:hover { transform: translateY(-5px); }

.barrio-img { width: 45%; }
.barrio-img img { width: 100%; height: 100%; object-fit: cover; }

.barrio-info { width: 55%; padding: 40px 50px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.barrio-info h3 { font-size: 48px; color: #1e2a78; margin-bottom: 15px; }
.barrio-info p { font-size: 16px; color: #444; line-height: 1.5; }
.barrio-info strong { color: #1e2a78; text-decoration: underline; }

.barrio-info a { align-self: flex-end; margin-top: auto; font-size: 18px; font-weight: 600; color: #18154a; transition: color 0.3s ease; }
.barrio-info a:hover { color: #c99700; }
/* Subrayado de ubicaciones */
.barrio-info p a {
    text-decoration: underline;
    color: #1e2a78;
    transition: color 0.3s ease;
}

.barrio-info p a:hover {
    color: #c99700;
}
/* ==================================
   FOOTER (Idéntico a Inicio)
================================== */
.site-footer { width: 100%; background-color: #ffffff; padding: 25px 0; margin-top: auto; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 40px; }
.footer-brand { font-size: 32px; font-weight: 700; color: #18154a; letter-spacing: 1px; }
.footer-address { font-size: 14px; color: #666; line-height: 1.5; }
.footer-address strong { color: #18154a; font-weight: 600; display: block; margin-bottom: 2px; }
.footer-right { display: flex; align-items: center; gap: 30px; }
.footer-contact-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #18154a; font-size: 13px; font-weight: 500; transition: all 0.3s ease; }
.footer-contact-link:hover { color: #c99700; transform: translateY(-3px); }
.footer-wp-icon { width: 28px; height: 28px; object-fit: contain; }
.footer-logo { height: 60px; width: 60px; object-fit: contain; }

/* ==================================
   RESPONSIVE
================================== */
/* ==================================
   RESPONSIVE
================================== */
/* Pantallas medianas y media página en PC (Max 1200px) */
@media (max-width: 1200px) {
    .intro-container { gap: 30px; }
    .features-container { gap: 10px; }
    .feature-item { padding: 0 10px; }
    .feature-item h3 { font-size: 22px; }
    .barrio-info { padding: 30px; }
    .barrio-info h3 { font-size: 38px; }
}

/* Tablets (Max 992px) */
@media (max-width: 992px) {
    .intro-container, .data-split-container { grid-template-columns: 1fr; }
    
    .features-container { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .feature-item { border-right: none; padding: 0; text-align: center; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .barrio-card { flex-direction: column; height: auto; }
    .barrio-img, .barrio-info { width: 100%; }
    .barrio-img { height: 300px; }
    .barrio-info a { margin-top: 20px; align-self: flex-start; }
}

/* Celulares (Max 768px) */
@media (max-width: 768px) {
    .site-header { position: relative; padding: 15px 0; }
    .header-container { flex-direction: column; gap: 15px; padding: 10px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    .hero-barrios { height: 280px; }
    .hero-overlay h1 { font-size: 42px; }
    
    .features-container { grid-template-columns: 1fr; gap: 25px; }
    
    .why-invest-container { padding: 30px 20px; }
    .why-invest-container h2 { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .barrios-list-section h2 { font-size: 36px; text-align: center; }
    .barrio-info { padding: 25px 20px; }
    .barrio-info h3 { font-size: 28px; }
    
    .footer-container { flex-direction: column; gap: 30px; text-align: center; }
    .footer-left { flex-direction: column; gap: 15px; }
}