:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #374151;
    --accent-color: #3b82f6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-white);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-header h2,
.nosotros-hero h1,
.service-hero h1,
.blog-post-content h2,
.blog-post-content h3,
.servicio-card h3,
.propiedad-title,
.experto-nombre,
.error-404-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* NAVBAR */
/* ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 90px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    flex: 1;
    padding: 0 1.5rem;
}

.navbar-tagline span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4b5563;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
}

.navbar-tagline-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1c2b5a !important;
    letter-spacing: 0.05em !important;
}

[data-theme="dark"] .navbar-tagline span {
    color: #9ca3af;
}

[data-theme="dark"] .navbar-tagline-brand {
    color: #93c5fd !important;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-shrink: 0;
}


.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand .logo {
    height: 68px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    filter: none;
}

.navbar.scrolled .navbar-brand .logo {
    height: 60px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

.navbar.scrolled .navbar-menu a {
    color: var(--text-primary);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #293c88;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: #293c88;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.navbar-search,
.navbar-language,
.navbar-theme {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.navbar-search:hover,
.navbar-theme:hover {
    color: var(--accent-color);
}

.navbar-language {
    padding: 0;
}

.navbar-language svg {
    width: 28px;
    height: 28px;
}

.navbar-lang-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    opacity: 1 !important;
}

.navbar.scrolled .navbar-lang-text {
    color: var(--text-secondary);
}


.navbar-lang-text .lang-option {
    cursor: pointer;
    transition: color 0.2s ease;
    color: #6b7280;
}

.navbar-lang-text .lang-option:hover {
    color: #f59e0b;
}

.navbar-lang-text .lang-option.active {
    color: #1f2937;
    font-weight: 600;
}

.navbar.scrolled .navbar-lang-text .lang-option.active {
    color: var(--text-primary);
}

.navbar-lang-text .active {
    color: #1f2937;
}

.navbar-lang-text .separator {
    color: #d1d5db;
    font-weight: 400;
}


.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-toggle span {
    background: var(--text-primary);
}

.navbar.scrolled .navbar-search,
.navbar.scrolled .navbar-language,
.navbar.scrolled .navbar-theme {
    color: var(--text-secondary);
}

.navbar.scrolled .navbar-lang-text .separator {
    color: var(--border-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.6) 0%, rgba(30, 64, 175, 0.85) 100%),
                url('../images/carrusel-6.png') center/cover no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}


.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden !important;
    clip-path: inset(0) !important;
    max-height: 100vh !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    overflow: hidden;
}

.hero-slide {
    /* El JavaScript manejará todos los estilos */
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    transform: scale(1);
    transition: transform 10s ease-out;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.05) !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(28, 43, 90, 0.85) 0%,
        rgba(28, 43, 90, 0.65) 50%,
        rgba(28, 43, 90, 0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.hero-content .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-link:hover {
    border-bottom-color: #ffffff;
    transform: translateX(5px);
}

.hero-link svg {
    transition: transform 0.3s ease;
}

.hero-link:hover svg {
    transform: translateX(5px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.hero-navigation {
    position: absolute;
    bottom: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.hero-nav-btn:hover::before {
    width: 100%;
    height: 100%;
}

.hero-nav-btn svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
}

.hero-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #ffffff;
    color: #1c2b5a;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background-color: #ffffff;
    width: 40px;
    border-radius: 8px;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-indicator.active::before {
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-indicator:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
    border-color: #ffffff;
}

.hero-indicator:hover::before {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.hero-slide:not(.active) .hero-label,
.hero-slide:not(.active) .hero-title,
.hero-slide:not(.active) .hero-subtitle,
.hero-slide:not(.active) .hero-link,
.hero-slide:not(.active) .hero-buttons {
    animation: none;
    opacity: 0;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #3d5a9e;
    transform: translateX(5px);
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c2b5a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #666666;
    line-height: 1.6;
}


/* ============================================ */
/* SERVICIOS */
/* ============================================ */
.servicios {
    background: var(--bg-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.servicio-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1c2b5a, #3d5a9e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #1c2b5a;
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.servicio-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.servicio-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c2b5a;
    margin-bottom: 16px;
}

.servicio-card p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.servicios,
.blog-home {
    padding: 80px 0;
    background-color: #ffffff;
}

/* ============================================ */
/* EXPERTOS */
/* ============================================ */

.expertos-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0 60px;
}

.expertos-hero-content {
    max-width: 800px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
}

.expertos-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.expertos-hero .lead {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

/* Expertos buscador */
.expertos-search {
    background: #f8fafc;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-button button {
    padding: 12px 32px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Results Header */
.results-header {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.results-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Expertos Grid */
.expertos-results {
    padding: 40px 0 80px;
}

.expertos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.experto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.experto-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.experto-card-content {
    padding: 30px;
    display: flex;
    gap: 20px;
    flex: 1;
}

.experto-avatar {
    flex-shrink: 0;
}

.experto-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.avatar-svg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: transform 0.3s;
}

/* Expertos Avatares */
.avatar-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.experto-card:hover .avatar-svg {
    transform: scale(1.05);
}

.experto-info {
    flex: 1;
}

.experto-nombre {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.experto-cargo {
    font-size: 14px;
    color: #1e40af;
    margin-bottom: 5px;
}

.experto-especialidad {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.experto-ubicacion {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.experto-contacto {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #1e40af;
}

.experto-card-footer {
    padding: 0 30px 30px;
}

.experto-card-footer .btn {
    background: #1e40af;
    color: white;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.experto-card-footer .btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Sin Resultados Expertos */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results svg {
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #475569;
    margin-bottom: 10px;
}

/* CTA Section Expertos */
.expertos-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.expertos-cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.expertos-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: #1e40af;
    padding: 14px 40px;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* ============================================ */
/* EXPERTO */
/* ============================================ */

.experto-detail-hero {
    background: #f8fafc;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-experto {
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-experto a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-experto a:hover {
    color: #1e40af;
}

.breadcrumb-experto span {
    margin: 0 8px;
}

.experto-detail {
    padding: 60px 0;
}

.experto-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.experto-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
}

.experto-photo {
    flex-shrink: 0;
}

.experto-photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
}

.photo-svg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
}

.photo-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.experto-header-info h1 {
    font-size: 36px;
    color: #1e293b;
    margin-bottom: 10px;
}

.experto-header-info .cargo {
    font-size: 18px;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 15px;
}

.experto-header-info .especialidad,
.experto-header-info .ubicacion {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.content-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

.certifications-list {
    list-style: none;
    padding: 0;
}

.certifications-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 15px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certifications-list li:last-child {
    border-bottom: none;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    color: #1e40af;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.experto-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card-experto {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar-card-experto h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

.sidebar-card-experto p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-card-experto {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.contact-card-experto h3 {
    color: white;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-button:last-child {
    margin-bottom: 0;
}

.contact-button svg {
    flex-shrink: 0;
}

.contact-button span {
    display: flex;
    flex-direction: column;
}

.contact-button strong {
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-button small {
    font-size: 12px;
    opacity: 0.8;
}

.specialty-badge {
    background: #eff6ff;
    color: #1e40af;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-experto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-experto-primary {
    background: #1e40af;
    color: white;
}

.btn-experto-primary:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.btn-experto-outline {
    background: white;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-experto-outline:hover {
    background: #eff6ff;
}

.btn-experto-block {
    width: 100%;
}

/* ============================================ */
/* BLOG */
/* ============================================ */
.blog-home {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.blog-card-image {
    height: 220px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.blog-card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============================================ */
/* CTA SECTION */
/* ============================================ */
.cta {
    background: linear-gradient(135deg, #1c2b5a 0%, #3d5a9e 100%);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Colores específicos para cada red social al hacer hover */
.footer-social a:first-child:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a:last-child:hover {
    background: #25D366;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ============================================ */
/* UTILITIES */
/* ============================================ */
.text-center {
    text-align: center;
}

.flash-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

.flash-success {
    background: var(--success);
    color: white;
}

.flash-error {
    background: var(--error);
    color: white;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.6) 0%, rgba(30, 64, 175, 0.85) 100%),
                url('../images/carrusel-6.png') center/cover no-repeat;
    color: white;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 800px;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-breadcrumb a {
    color: white;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
}

.service-content {
    padding: 4rem 0;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.service-main {
    max-width: 800px;
}

.service-section {
    margin-bottom: 3rem;
}

.service-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.features-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-content p {
    margin: 0;
    color: var(--text-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.service-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sidebar-card p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 0.75rem;
}

.sidebar-links a {
    color: var(--text-light);
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.sidebar-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sidebar-cta h3,
.sidebar-cta p {
    color: white;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.sidebar-link:hover {
    color: white;
}

.sidebar-stats {
    background: var(--text-dark);
    color: white;
}

.sidebar-stats h3 {
    color: white;
}

.stat {
    padding: 1rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child {
    border-bottom: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.column-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.column-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.column-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.styled-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-content p {
    margin: 0;
    color: var(--text-light);
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid #fbbf24;
}

.highlight-box h2 {
    color: #92400e;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.benefit p {
    margin: 0;
    color: #78350f;
    font-size: 0.9rem;
}

.accordion {
    margin-top: 2rem;
}

.accordion-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    margin-bottom: 1rem;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.approach-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.approach-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.approach-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.approach-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.approach-card p {
    margin: 0;
    color: var(--text-light);
}

.target-audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.audience-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
}

.audience-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.audience-item p {
    margin: 0;
    color: #78350f;
}

.studies-list {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.study-card {
    padding: 2rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.study-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.study-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.study-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.study-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.study-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.study-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.study-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.service-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.service-cta h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: white;
}

.service-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}


/* ============================================ */
/* BLOG STYLES */
/* ============================================ */

.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.blog-post-card.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 3rem;
}

.blog-post-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.blog-post-card.featured .blog-post-image {
    height: 100%;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-post-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-category {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
}

.blog-date {
    color: var(--text-light);
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-post-content h2 a,
.blog-post-content h3 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.blog-post-content h2 a:hover,
.blog-post-content h3 a:hover {
    color: var(--primary-color);
}

.blog-post-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-posts-list {
    display: grid;
    gap: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popular-post {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.popular-post h4 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.popular-post h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ============================================ */
/* CONTACT STYLES */
/* ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.contact-info-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-info-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-social {
    background: var(--text-dark);
    padding: 2rem;
    border-radius: 12px;
    color: white;
}

.contact-social h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact-map-section {
    margin-top: 4rem;
}

.contact-map-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

/*ERROR 404*/
.error-404-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.error-404-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.error-404-container {
    background: white;
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.error-404-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
}

.error-404-code {
    font-size: 100px;
    font-weight: 700;
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.error-404-title {
    font-size: 32px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-404-message {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-404-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.error-404-btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.error-404-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.6);
}

.error-404-btn-secondary {
    background: transparent;
    color: #0066ff;
    border: 2px solid #0066ff;
}

.error-404-btn-secondary:hover {
    background: #0066ff;
    color: white;
    transform: translateY(-2px);
}

.error-404-btn svg {
    width: 20px;
    height: 20px;
}

/*APARTADO PROPIEDADES*/

.propiedades-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 80px 0 60px;
    color: white;
}

.propiedades-hero-content {
    max-width: 800px;
}

.propiedades-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.propiedades-hero .service-lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Search Section */
.propiedades-search {
    background: #f8fafc;
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-form-advanced {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.search-main {
    margin-bottom: 0;
}

.search-field-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: white;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-toggle-advanced {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-toggle-advanced:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.btn-toggle-advanced.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-toggle-advanced svg {
    width: 16px;
    height: 16px;
}

/* Advanced Search */
.search-advanced {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.search-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.search-field-inline label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field-inline input,
.search-field-inline select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-field-inline input:focus,
.search-field-inline select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn-search {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Results Section */
.propiedades-results {
    padding: 3rem 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.results-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-sort label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-sort select {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
}

/* Propiedades Grid */
.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.propiedad-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.propiedad-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.propiedad-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}

.propiedad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.propiedad-card:hover .propiedad-image img {
    transform: scale(1.05);
}

.propiedad-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #3b82f6;
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-venta {
    background: #3b82f6;
}

.badge-arriendo {
    background: #10b981;
}

.badge-para\ arriendo {
    background: #10b981;
}

.badge-para\ venta\ y\ arriendo {
    background: #f59e0b;
}

.image-count {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.propiedad-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.propiedad-header {
    margin-bottom: 1rem;
}

.propiedad-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propiedad-location {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.propiedad-location svg {
    flex-shrink: 0;
}

.propiedad-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.detail-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.propiedad-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.propiedad-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    min-width: 140px;
}

.price-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results svg {
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* CTA Section */
.propiedades-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: #1e40af;
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.btn-white:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.propiedad-card {
    animation: fadeIn 0.5s ease-out;
}

.propiedad-card:nth-child(1) { animation-delay: 0.05s; }
.propiedad-card:nth-child(2) { animation-delay: 0.1s; }
.propiedad-card:nth-child(3) { animation-delay: 0.15s; }
.propiedad-card:nth-child(4) { animation-delay: 0.2s; }
.propiedad-card:nth-child(5) { animation-delay: 0.25s; }
.propiedad-card:nth-child(6) { animation-delay: 0.3s; }


.propiedad-detalle-hero {
    background: #f8fafc;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Gallery Section */
.propiedad-gallery {
    background: #000;
    padding: 0;
}

.gallery-main {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-primary {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.gallery-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.gallery-nav {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #000;
}

.thumbnail {
    position: relative;
    height: 150px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Content Section */
.propiedad-content-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.propiedad-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

.propiedad-main {
    background: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.propiedad-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.propiedad-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.propiedad-location {
    font-size: 1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.propiedad-price-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.price-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.price-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-secondary {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features */
.propiedad-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feature-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.feature-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.feature-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Sections */
.propiedad-section {
    margin-bottom: 2.5rem;
}

.propiedad-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.propiedad-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

/* Características */
.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.caracteristica-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #475569;
}

.caracteristica-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Detalles */
.detalles-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detalle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.detalle-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.detalle-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

/* Sidebar */
.propiedad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card,
.share-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Share Card */
.share-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    background: #f1f5f9;
    border-radius: 6px;
    color: #475569;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}


/*NOSOTROS*/

/* ========================================
   ESTILOS PARA SECCIÓN NOSOTROS
   ======================================== */

/* Hero Section */
.nosotros-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 6rem 0;
    overflow: hidden;
}

.nosotros-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.nosotros-hero h1 {
    color: white;
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

/* Tabs de Navegación */
.nosotros-tabs-section {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0;
}


.nosotros-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
}

.nosotros-tab {
    position: relative;
    padding: 1rem 1.5rem;
    color: #0891b2;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.813rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    border-right: 1px solid #e2e8f0;
}

.nosotros-tab:last-child {
    border-right: none;
}

.nosotros-tab:hover {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.nosotros-tab.active {
    color: #1e3a8a;
    border-bottom-color: #1e3a8a;
}

.nosotros-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1e3a8a;
}

section[id] {
    scroll-margin-top: 100px;
}


/* Secciones */
.nosotros-section {
    padding: 5rem 0;
    background: white;
}

.nosotros-section:nth-child(even) {
    background: #f8fafc;
}

.nosotros-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.nosotros-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
}

/* Grid de Organización */
.organizacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.organizacion-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.organizacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12);
    border-color: #1e3a8a;
}

.organizacion-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.organizacion-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.organizacion-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
}

.organizacion-card .btn-link:hover {
    gap: 1rem;
}

/* Grid de Liderazgo */
.liderazgo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.liderazgo-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid #1e3a8a;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.liderazgo-card:hover {
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.12);
    transform: translateX(5px);
}

.liderazgo-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.liderazgo-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.liderazgo-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    font-size: 0.95rem;
}

.liderazgo-card .btn-link:hover {
    gap: 1rem;
}
/* Artículo Destacado */
.nosotros-articulo {
    background: #f8fafc;
}

.articulo-destacado {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.articulo-imagen img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.articulo-contenido {
    padding: 3rem;
}

.articulo-categoria {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.articulo-contenido h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
    line-height: 1.3;
}

.articulo-contenido p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.articulo-contenido .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.articulo-contenido .btn:hover {
    gap: 1rem;
}

/* Sección Visión y Video */
.nosotros-vision {
    padding: 5rem 0;
    background: #f0f4f8;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-content h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.vision-content p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg circle {
    transition: fill 0.3s ease;
}

.play-button:hover svg circle {
    fill: #2563eb;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Sección Estadísticas */
.nosotros-estadisticas {
    padding: 5rem 0;
    background: white;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-bottom: 3rem;
}

.estadistica-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.estadistica-icon {
    flex-shrink: 0;
}

.estadistica-icon i {
    font-size: 48px;
    color: #1e3a8a;
}

.estadistica-content h3 {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.estadistica-numero {
    font-size: 2rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
}

.estadisticas-description {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.estadisticas-description p {
    color: #1e3a8a;
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;
}

/* Sección Impacto Regional */
.nosotros-impacto {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 400;
    color: #1e3a8a;
    margin-bottom: 3rem;
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.impacto-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.impacto-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.impacto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.impacto-card:hover .impacto-imagen img {
    transform: scale(1.05);
}

.impacto-contenido {
    padding: 2rem;
}

.impacto-contenido h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.impacto-contenido p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Sección Misión con Fondo */
.nosotros-mision {
    position: relative;
    padding: 6rem 0;
    background-image: url('../images/carrusel-6.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.mision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.85);
}

.mision-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.mision-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.mision-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-white-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-white-outline:hover {
    background: white;
    color: #1e3a8a;
}

/* Sección Valores */
.nosotros-valores {
    padding: 5rem 0;
    background: white;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.valores-texto h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.valores-texto > p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.valores-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valores-lista li {
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.valores-lista li strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.valores-lista li span {
    display: block;
    color: #6b7280;
    font-size: 0.95rem;
}

.valores-imagen {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.valores-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Sostenibilidad */
.nosotros-sostenibilidad {
    padding: 5rem 0;
    background: white;
}

.sostenibilidad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sostenibilidad-contenido h2 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.sostenibilidad-contenido p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-primary-outline {
    display: inline-block;
    padding: 0.9rem 2rem;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-primary-outline:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.sostenibilidad-imagen {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sostenibilidad-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/*Lideres Nosotros*/

.nosotros-lideres {
    padding: 5rem 0;
    background: #f8fafc;
}

.lideres-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.lider-tab {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lider-tab:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.lider-tab.active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
}

.lideres-content {
    text-align: center;
}

.lider-panel {
    display: none;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lider-panel.active {
    display: block;
}

.lider-panel p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.lider-panel .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.lider-panel .btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* CTA Section */
.nosotros-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.nosotros-cta h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.nosotros-cta .btn-white {
    background: white;
    color: #1e3a8a;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nosotros-cta .btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.nosotros-cta-final {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.nosotros-cta-final h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.nosotros-cta-final .btn-white {
    display: inline-block;
    background: white;
    color: #1e3a8a;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nosotros-cta-final .btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ========================================
   DROPDOWN MEGA MENU
   ======================================== */

.navbar-dropdown {
    position: relative;
}

.dropdown-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 90vw;
    background: white;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.15);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0;
    border: 1px solid #e5e7eb;
}

.navbar-dropdown:hover .dropdown-mega {
    opacity: 1;
    visibility: visible;
}

.dropdown-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.dropdown-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-section ul li {
    margin-bottom: 0.75rem;
}

.dropdown-section ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.dropdown-section ul li a:hover {
    color: #1e3a8a;
    padding-left: 5px;
}

.dropdown-section ul li a svg {
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 16px;
    height: 16px;
    stroke: #1e3a8a;
}

.dropdown-section ul li a:hover svg {
    opacity: 1;
}

/* Featured Content en Dropdown */
.dropdown-featured {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.featured-image {
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dropdown-featured:hover .featured-image img {
    transform: scale(1.05);
}

.featured-tag {
    display: inline-block;
    background: #1e3a8a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-content p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.featured-content a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s ease;
}

.featured-content a:hover {
    gap: 0.5rem;
}

/* Dropdown Footer */
.dropdown-footer {
    padding: 1.75rem 2.5rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.dropdown-footer p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

.dropdown-footer .btn {
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.dropdown-footer .btn:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary-outline {
    background: white;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-primary-outline:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Servicios Cards con Expansión */
/* Sección de Servicios */

.servicios {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid especial para 5 cards - Layout 3+2 */
.servicios-grid-five {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Primera fila: 3 cards completas */
.servicios-grid-five .servicio-card:nth-child(-n+3) {
    grid-column: auto;
}

/* Segunda fila: 2 cards centradas con espacio en medio */
.servicios-grid-five .servicio-card:nth-child(4) {
    grid-column: 1 / 2;
}

.servicios-grid-five .servicio-card:nth-child(5) {
    grid-column: 3 / 4;
}

/* Cards base */
.servicio-card {
    background: white;
    border-radius: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.servicio-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

/* Barra superior de color */
.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    transition: height 0.3s ease;
    z-index: 1;
}

.servicio-card[data-color="blue"]::before {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.servicio-card[data-color="cyan"]::before {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.servicio-card[data-color="indigo"]::before {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

.servicio-card[data-color="purple"]::before {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.servicio-card[data-color="green"]::before {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.servicio-card:hover::before {
    height: 6px;
}

/* Preview de la card */
.servicio-card-preview {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    flex: 1;
}

/* Iconos */
.servicio-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.servicio-card[data-color="blue"] .servicio-icon {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

.servicio-card[data-color="cyan"] .servicio-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

.servicio-card[data-color="indigo"] .servicio-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

.servicio-card[data-color="purple"] .servicio-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

.servicio-card[data-color="green"] .servicio-icon {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.05) rotate(5deg);
}

.servicio-icon img {
    width: 45px;
    height: 45px;
    filter: brightness(0) invert(1);
}

/* Títulos */
.servicio-card h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Texto preview */
.servicio-preview-text {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
}

/* Botón toggle */
.servicio-toggle {
    background: none;
    border: none;
    color: #1e3a8a;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    flex-shrink: 0;
}

.servicio-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-toggle:hover::before {
    opacity: 1;
}

.servicio-toggle:hover {
    color: #06b6d4;
    transform: translateY(-2px);
}

.toggle-text {
    position: relative;
    z-index: 1;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Contenido expandido */
.servicio-card-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, white 100%);
}

.servicio-expanded-content {
    padding: 0 2rem 2.5rem 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-expanded-content h4 {
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-top: 2px solid #e2e8f0;
}

.servicio-expanded-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.servicio-expanded-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.servicio-expanded-content ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #475569;
    line-height: 1.6;
}

.servicio-expanded-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    top: 0;
}

/* Estado expandido */
.servicio-card.expanded {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.servicio-card.expanded::before {
    height: 6px;
}

.servicio-card.expanded .servicio-card-expanded {
    max-height: 700px;
}

.servicio-card.expanded .servicio-expanded-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.servicio-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Botón CTA */
.btn-sm {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Subsecciones dentro del contenido expandido */
.servicio-subsection {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.servicio-subsection-last {
    border-bottom: none;
    margin-bottom: 1rem;
}

.servicio-subsection:last-of-type {
    border-bottom: none;
}

.servicio-subsection h5 {
    color: #1e3a8a;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection-icon {
    font-size: 1.2rem;
}

.servicio-subsection ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicio-subsection ul li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.6rem;
    color: #475569;
    line-height: 1.5;
    font-size: 0.9rem;
}

.servicio-subsection ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    top: 0;
}

.servicio-subsection ul li strong {
    color: #1e3a8a;
    font-weight: 600;
    display: inline;
}

.subsection-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Features destacados */
.servicio-feature {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    border-left: 3px solid #06b6d4;
}

.servicio-feature strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.5rem;
}

.servicio-feature p {
    margin-bottom: 0.5rem;
}

.servicio-cta-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
}

/* Lista de detalles */
.servicio-detail-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.servicio-detail-list li {
    padding-left: 0;
    margin-bottom: 0.75rem;
    color: #475569;
    line-height: 1.6;
}

.servicio-detail-list li:before {
    display: none;
}

.servicio-detail-list li strong {
    color: #1e3a8a;
    font-weight: 600;
}

.servicio-detail-list li span {
    display: block;
    margin-top: 0.25rem;
    padding-left: 1rem;
}

/* Botones de acción al final */
.servicio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
}

/* Highlight text - para mensajes importantes */
.servicio-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.6;
}

.servicio-card[data-color="indigo"] .servicio-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-left-color: #4f46e5;
}

.servicio-card[data-color="green"] .servicio-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    border-left-color: #10b981;
}

/* Lista de beneficios compacta */
.servicio-benefits {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.servicio-benefits li {
    padding-left: 1.75rem;
    position: relative;
    color: #475569;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.servicio-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    top: 0;
}

/* Texto introductorio */
.servicio-intro {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Nota adicional al final de sección */
.servicio-note {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #06b6d4;
    margin-top: 1rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.servicio-card[data-color="cyan"] .servicio-note {
    border-left-color: #06b6d4;
}

.servicio-card[data-color="purple"] .servicio-note {
    border-left-color: #7c3aed;
}

.servicio-note strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 0.25rem;
}

.servicio-card[data-color="green"] .servicio-benefits li:before {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

/* Ajuste de altura para comercialización */
.servicio-card[data-servicio="comercializacion"].expanded .servicio-card-expanded {
    max-height: 650px;
}

.servicio-card[data-servicio="comercializacion"] .servicio-expanded-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Ajuste de altura para la card expandida de Proyectos Especiales */
.servicio-card[data-servicio="proyectos"].expanded .servicio-card-expanded {
    max-height: 1200px; /* Más altura porque tiene más contenido */
}

/* Ajuste de altura para contenido más compacto */
.servicio-card[data-servicio="proyectos"].expanded .servicio-card-expanded {
    max-height: 650px; /* Reducido de 1200px */
}

/* Scroll interno si el contenido es muy largo */
.servicio-card[data-servicio="proyectos"] .servicio-expanded-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Scrollbar personalizada */
.servicio-card[data-servicio="comercializacion"] .servicio-expanded-content::-webkit-scrollbar {
    width: 6px;
}

.servicio-card[data-servicio="comercializacion"] .servicio-expanded-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.servicio-card[data-servicio="comercializacion"] .servicio-expanded-content::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
}

.servicio-card[data-servicio="comercializacion"] .servicio-expanded-content::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

.servicio-card[data-servicio="proyectos"] .servicio-expanded-content::-webkit-scrollbar {
    width: 6px;
}

.servicio-card[data-servicio="proyectos"] .servicio-expanded-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.servicio-card[data-servicio="proyectos"] .servicio-expanded-content::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

.servicio-card[data-servicio="proyectos"] .servicio-expanded-content::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Ajustes de altura para cada card */
.servicio-card[data-servicio="juridico"].expanded .servicio-card-expanded,
.servicio-card[data-servicio="topografico"].expanded .servicio-card-expanded,
.servicio-card[data-servicio="experiencia"].expanded .servicio-card-expanded {
    max-height: 650px;
}

.servicio-card[data-servicio="juridico"] .servicio-expanded-content,
.servicio-card[data-servicio="topografico"] .servicio-expanded-content,
.servicio-card[data-servicio="experiencia"] .servicio-expanded-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Scrollbars personalizadas por color */
.servicio-card[data-color="blue"] .servicio-expanded-content::-webkit-scrollbar-thumb {
    background: #1e3a8a;
}

.servicio-card[data-color="cyan"] .servicio-expanded-content::-webkit-scrollbar-thumb {
    background: #06b6d4;
}

.servicio-card[data-color="purple"] .servicio-expanded-content::-webkit-scrollbar-thumb {
    background: #7c3aed;
}

/* Checks de colores según la card */
.servicio-card[data-color="blue"] .servicio-subsection ul li:before {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.servicio-card[data-color="cyan"] .servicio-subsection ul li:before {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
}

.servicio-card[data-color="purple"] .servicio-subsection ul li:before,
.servicio-card[data-color="purple"] .servicio-benefits li:before {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* Highlights por color */
.servicio-card[data-color="purple"] .servicio-highlight {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-left-color: #7c3aed;
}

.contacto-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contacto-modal.active {
    display: flex;
    opacity: 1;
}

.contacto-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.contacto-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contacto-modal.active .contacto-modal-content {
    transform: scale(1);
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.contacto-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.contacto-modal-close:hover {
    background: #1e3a8a;
    color: white;
    transform: rotate(90deg);
}

.contacto-modal-close svg {
    width: 20px;
    height: 20px;
}

.contacto-modal-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.contacto-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.3);
}

.contacto-modal-icon svg {
    stroke: currentColor;
}

.contacto-modal-header h3 {
    font-size: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contacto-modal-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.contacto-modal-form {
    padding: 2rem;
}

.form-group-modal {
    margin-bottom: 1.5rem;
}

.form-group-modal label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group-modal input,
.form-group-modal select,
.form-group-modal textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group-modal input:focus,
.form-group-modal select:focus,
.form-group-modal textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group-modal select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contacto-modal-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.btn-modal {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.btn-modal-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-modal-secondary:hover {
    background: #e5e7eb;
}

/* Animación de éxito */
.form-success-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.form-success-message h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success-message p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Scrollbar personalizada para el modal */
.contacto-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contacto-modal-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.contacto-modal-content::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

.contacto-modal-content::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.hero-dual-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    gap: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider-left,
.hero-slider-right {
    position: relative;
}

/* Barra de indicadores económicos */
.economic-indicators-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.indicators-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator-label {
    font-weight: 600;
    opacity: 0.9;
}

.indicator-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.indicator-date {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: auto;
}

/* Loading animation */
.loading-dots {
    display: inline-block;
    animation: blink 1.4s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Indicador en navbar */
.navbar-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e3a8a;
}

.navbar-indicator i {
    color: #06b6d4;
}

.navbar-uf-value {
    color: #1e3a8a;
}

.loading-dots-small {
    display: inline-block;
    animation: blink 1s infinite;
}

/* Dark mode */
body.dark-mode .navbar-indicator {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

body.dark-mode .navbar-uf-value {
    color: #06b6d4;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Botón flotante de WhatsApp */
.back-to-top,
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Botón Volver Arriba */
.back-to-top {
    right: 30px;
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%); /* Azul Google más vibrante */
    border: none;
    color: white;
    font-size: 26px; /* Ligeramente más grande */
    font-weight: bold;
    line-height: 1;
}

/* Botón WhatsApp */
.whatsapp-float {
    right: 105px; /* 30px + 60px + 15px */
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    text-decoration: none;
}

/* Estados visibles */
.back-to-top.visible,
.whatsapp-float.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hover effects - MISMOS EFECTOS PARA AMBOS */
.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.6); /* Azul vibrante */
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.back-to-top:active,
.whatsapp-float:active {
    transform: translateY(-2px) scale(1.05);
}

/* Ícono de WhatsApp */
.whatsapp-float svg {
    color: white;
    width: 32px;
    height: 32px;
}

/* Animación de pulso SOLO para WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Tooltip solo para WhatsApp */
.whatsapp-float::after {
    content: 'Escríbenos';
    position: absolute;
    right: 70px;
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* Animaciones de entrada */
.whatsapp-float.visible {
    animation: slideInRight 0.5s ease-out;
}

.back-to-top.visible {
    animation: slideInRight 0.5s ease-out 0.1s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Mejora de accesibilidad */
.back-to-top:focus,
.whatsapp-float:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hero-single-slider {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 600px !important;
    overflow: hidden !important;
    background: #0f1e45 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hss-track {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* CRÍTICO: todos los slides ocultos por defecto */
.hss-slide {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 1 !important;
    transition: opacity 0.9s ease-in-out !important;
    pointer-events: none !important;
    visibility: visible !important;
    display: block !important;
}

/* CRÍTICO: solo el activo es visible */
.hss-slide.active {
    opacity: 1 !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

.hss-bg {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hss-overlay {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        135deg,
        rgba(28, 43, 90, 0.88) 0%,
        rgba(28, 43, 90, 0.58) 55%,
        rgba(28, 43, 90, 0.30) 100%
    ) !important;
    z-index: 1 !important;
}

.hss-content {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    padding: 90px 20px 0 20px !important;
    box-sizing: border-box !important;
}

.hss-content .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Animaciones de entrada — solo slide activo */
.hss-slide.active .hero-label   { animation: fadeInUp 0.7s ease-out 0.2s both; }
.hss-slide.active .hero-title   { animation: fadeInUp 0.7s ease-out 0.4s both; }
.hss-slide.active .hero-subtitle{ animation: fadeInUp 0.7s ease-out 0.6s both; }
.hss-slide.active .hero-link,
.hss-slide.active .hero-buttons { animation: fadeInUp 0.7s ease-out 0.8s both; }

/* Texto oculto en slides inactivos */
.hss-slide:not(.active) .hero-label,
.hss-slide:not(.active) .hero-title,
.hss-slide:not(.active) .hero-subtitle,
.hss-slide:not(.active) .hero-link,
.hss-slide:not(.active) .hero-buttons {
    opacity: 0 !important;
    animation: none !important;
}

/* Botones */
.hss-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 52px !important;
    height: 52px !important;
    border: 2px solid rgba(255,255,255,0.45) !important;
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    backdrop-filter: blur(8px) !important;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s !important;
}

.hss-prev { left: 24px !important; right: auto !important; }
.hss-next { right: 24px !important; left: auto !important; }

.hss-btn:hover {
    background: rgba(255,255,255,0.9) !important;
    border-color: #fff !important;
    color: #1c2b5a !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28) !important;
}

/* Dots */
.hss-dots {
    position: absolute !important;
    bottom: 36px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 10px !important;
    background: rgba(0,0,0,0.30) !important;
    padding: 10px 18px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(8px) !important;
}

.hss-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.55) !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.4s ease !important;
    display: block !important;
}

.hss-dot.active {
    background: #fff !important;
    width: 38px !important;
    border-radius: 7px !important;
    border-color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-single-slider { height: 85vh !important; }
    .hss-prev { left: 10px !important; }
    .hss-next { right: 10px !important; }
    .hss-btn  { width: 42px !important; height: 42px !important; }
    .hss-dots { bottom: 18px !important; }
    .hss-content { padding-top: 70px !important; }
}

.indicadores-economicos {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.indicadores-economicos::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/carrusel-6.png') center/cover no-repeat;
    opacity: 0.15;
}

.indicadores-economicos .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 0;
}

.indicadores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.indicador-card {
    background: rgba(0, 0, 0, 0.55);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.indicador-card:last-child {
    border-right: none;
}

.indicador-card:hover {
    background: rgba(0,0,0,0.75);
}

.indicador-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 4px;
}

.indicador-info {
    text-align: center;
}

.indicador-label {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.indicador-valor {
    display: block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.indicador-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-decoration: none;
    margin-top: 6px;
    transition: color 0.2s;
}

.indicador-link:hover {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .indicadores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .indicador-card {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
}

@media (max-width: 480px) {
    .indicadores-grid {
        grid-template-columns: 1fr;
    }
}

.faq-home {
  background: #f8faff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.faq-home::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,58,138,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Cabecera ── */
.faq-home-header {
  text-align: center;
  margin-bottom: 52px;
}

.faq-home-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #2563eb;
  background: #eff6ff;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.faq-home-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #1e3a8a;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.faq-home-header p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* ── Lista vertical ── */
.faq-home-list {
  max-width: 780px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Ítem ── */
.faq-home-item {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.faq-home-item:first-child {
  border-top: 1px solid #e5e7eb;
}

/* ── Botón pregunta ── */
.faq-home-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* Número */
.faq-home-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #bfdbfe;
  min-width: 24px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.faq-home-item.open .faq-home-num {
  color: #2563eb;
}

/* Texto pregunta */
.faq-home-q-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e3a8a;
  flex: 1;
  line-height: 1.45;
  transition: color 0.2s;
}

.faq-home-item.open .faq-home-q-text {
  color: #2563eb;
}

/* Chevron */
.faq-home-chevron {
  width: 20px; height: 20px;
  stroke: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s ease, stroke 0.2s;
}

.faq-home-item.open .faq-home-chevron {
  transform: rotate(180deg);
  stroke: #2563eb;
}

/* ── Respuesta ── */
.faq-home-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}

.faq-home-item.open .faq-home-a {
  max-height: 200px;
}

.faq-home-a-inner {
  padding: 0 8px 22px 42px;
}

.faq-home-a-inner p {
  font-family: 'Lora', serif;
  font-size: 0.93rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
  border-left: 3px solid #bfdbfe;
  padding-left: 16px;
}

/* ── CTA inferior ── */
.faq-home-cta {
  text-align: center;
}

.faq-home-cta p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 16px;
}

.faq-home-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 13px 30px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(30,58,138,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.faq-home-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30,58,138,0.32);
}

.faq-home-cta a svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  transition: transform 0.2s;
}

.faq-home-cta a:hover svg {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .faq-home { padding: 60px 0 70px; }
  .faq-home-q { padding: 18px 4px; }
  .faq-home-a-inner { padding-left: 28px; }
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-ssl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.footer-ssl svg {
    width: 12px;
    height: 12px;
    stroke: #10b981;
    flex-shrink: 0;
}

.footer-ssl span {
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {

    /* ── 1. Navbar base: fondo blanco, altura reducida ── */
    .navbar {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }

    .navbar .container {
        height: 70px !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* ── 2. Ocultar elementos del navbar que no caben en mobile ── */
    .navbar-tagline     { display: none !important; }
    .navbar-indicator   { display: none !important; }

    /* ── 3. Logo ── */
    .navbar-brand .logo { height: 48px !important; }

    /* ── 4. Actions: solo mostrar toggle, ocultar el resto ── */
    .navbar-actions {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    /* Ocultar search, idioma, tema en mobile si quieres simplificar.
       Si los quieres visibles, borra estas 3 líneas: */
    /* .navbar-search { display: none !important; }
    .navbar-language { display: none !important; }
    .navbar-theme   { display: none !important; } */

    /* ── 5. Hamburguesa: siempre visible ── */
    .navbar-toggle,
    #navbar-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0.25rem !important;
        position: relative !important;
        z-index: 100002 !important;
        flex-shrink: 0 !important;
    }

    .navbar-toggle span,
    #navbar-toggle span {
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #1e293b !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }

    /* Animación X al abrir */
    .navbar-toggle.active span:nth-child(1),
    #navbar-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .navbar-toggle.active span:nth-child(2),
    #navbar-toggle.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    .navbar-toggle.active span:nth-child(3),
    #navbar-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* ── 6. DRAWER: posición fija, sale desde la izquierda ── */
    .navbar-menu,
    #navbar-menu {
        /* Drawer cerrado — FUERA DE PANTALLA a la izquierda */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80vw !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        display: flex !important;          /* siempre flex, lo mueve transform */
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        z-index: 100001 !important;
        overflow-y: auto !important;
        box-shadow: 4px 0 24px rgba(0,0,0,0.18) !important;

        /* Clave: usar transform para mover el drawer.
           NO usar left:-300px porque overflow:hidden del padre lo bloquea */
        transform: translateX(-100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        will-change: transform !important;
    }

    /* Drawer ABIERTO */
    .navbar-menu.active,
    #navbar-menu.active {
        transform: translateX(0) !important;
    }

    /* Cabecera visual del drawer */
    .navbar-menu::before,
    #navbar-menu::before {
        content: 'MENÚ' !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 1.5rem !important;
        height: 70px !important;
        min-height: 70px !important;
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
        color: rgba(255,255,255,0.7) !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        letter-spacing: 2.5px !important;
        flex-shrink: 0 !important;
    }

    /* Items del menú */
    .navbar-menu li,
    #navbar-menu li {
        width: 100% !important;
        border-bottom: 1px solid #f3f4f6 !important;
    }

    .navbar-menu a,
    #navbar-menu a {
        display: block !important;
        padding: 1rem 1.5rem !important;
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        color: #1f2937 !important;
        border-left: 3px solid transparent !important;
        transition: all 0.2s ease !important;
    }

    .navbar-menu a:hover,
    #navbar-menu a:hover,
    .navbar-menu a.active,
    #navbar-menu a.active {
        color: #2563eb !important;
        background: #eff6ff !important;
        border-left-color: #2563eb !important;
        padding-left: 1.75rem !important;
    }

    /* Quitar el subrayado animado (::after) en mobile */
    .navbar-menu a::after,
    #navbar-menu a::after {
        display: none !important;
    }

    /* ── 7. OVERLAY: cubre el fondo cuando el drawer está abierto ── */
    .navbar-overlay,
    #navbar-overlay {
        display: none !important;           /* oculto por defecto */
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.52) !important;
        z-index: 100000 !important;         /* debajo del drawer (100001) y toggle (100002) */
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
    }

    .navbar-overlay.active,
    #navbar-overlay.active {
        display: block !important;
    }

    /* ── 8. Asegurar que navbar no tape el drawer ── */
    .navbar {
        z-index: 1000 !important;           /* navbar queda DEBAJO del overlay (100000) */
        overflow: visible !important;
    }

    .navbar .container {
        overflow: visible !important;
    }

    .navbar-left {
        overflow: visible !important;
    }

    /* ── 9. Responsive: otros elementos ── */
    .hero-single-slider { height: 85vh !important; }
    .hss-prev { left: 10px !important; }
    .hss-next { right: 10px !important; }
    .hss-btn  { width: 42px !important; height: 42px !important; }
    .hss-dots { bottom: 18px !important; }
    .hss-content { padding-top: 70px !important; }

    .navbar,
    .navbar .container,
    .navbar-left {
        overflow: visible !important;
    }

}

@media (min-width: 769px) {
    #navbar-menu {
        position: static !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        min-height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        flex-direction: row !important;
        overflow: visible !important;
        display: flex !important;
        padding: 0 !important;
        gap: 2rem !important;
    }

    #navbar-menu::before {
        display: none !important;
    }

    #navbar-menu li {
        border-bottom: none !important;
    }

    #navbar-menu li a {
        padding: 0.5rem 0 !important;
        border-left: none !important;
        color: #1f2937 !important;
        font-size: 15px !important;
    }

    #navbar-menu li a:hover,
    #navbar-menu li a.active {
        background: transparent !important;
        padding-left: 0 !important;
        color: #293c88 !important;
    }
}

@media (max-width: 768px) {

    /* Overlay más sutil */
    .navbar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 10000;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .navbar-overlay.active {
        display: block;
    }

    /* Drawer compacto — solo ancho necesario, pegado arriba */
    #navbar-menu {
        position: fixed !important;
        top: 70px !important;          /* justo bajo el navbar */
        left: 0 !important;
        width: 220px !important;       /* más compacto */
        max-width: 70vw !important;
        height: auto !important;       /* solo el alto del contenido */
        max-height: calc(100vh - 70px) !important;
        background: #ffffff !important;
        flex-direction: column !important;
        display: flex !important;
        gap: 0 !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        list-style: none !important;
        z-index: 10001 !important;
        overflow-y: auto !important;
        box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.15) !important;
        border-radius: 0 0 12px 0 !important;  /* esquina redondeada abajo-derecha */
        transform: translateX(-110%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    #navbar-menu.active {
        transform: translateX(0) !important;
    }

    /* Sin cabecera azul */
    #navbar-menu::before {
        display: none !important;
    }

    /* Items limpios */
    #navbar-menu li {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #navbar-menu li:last-child {
        border-bottom: none !important;
    }

    #navbar-menu li a {
        display: flex !important;
        align-items: center !important;
        padding: 0.9rem 1.25rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        transition: all 0.2s ease !important;
        border-left: 3px solid transparent !important;
    }

    #navbar-menu li a:hover,
    #navbar-menu li a.active {
        color: #2563eb !important;
        background: #eff6ff !important;
        border-left-color: #2563eb !important;
    }

    #navbar-menu a::after {
        display: none !important;
    }

    .navbar-overlay {
        pointer-events: none;
    }
    .navbar-overlay.active {
        pointer-events: auto;
    }
}