/* Estilos personalizados para el sitio web de Misantla */
:root {
    --color-primary: #FF6B00; /* Naranja principal */
    --color-primary-light: #e78742;
    --color-primary-dark: #CC552A;
    --color-beige: #D1A469;
    --color-beige-light: #F9F9F0;
    --color-gray: #7E8081;
    --color-gray-light: #E9ECEF;
    --color-white: #FFFFFF;
    --color-dark: #212529;
}

/* ============================================
   FUENTES PERSONALIZADAS - MISANTLA
   ============================================ */

/* Fuente para TEXTO (cuerpo) - Nutmeg */
@font-face {
    font-family: 'Nutmeg';
    src: url('/fonts/Nutmeg/Nutmeg-Regular.ttf') format('opentype');
    font-weight: 400; /* normal */
    font-style: normal;
    font-display: swap; 
}

@font-face {
    font-family: 'Nutmeg';
    src: url('/fonts/Nutmeg/Nutmeg-ThinItalic.ttf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Nutmeg';
    src: url('/fonts/Nutmeg/Nutmeg-Bold.ttf') format('opentype');
    font-weight: 700; /* bold */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nutmeg';
    src: url('/fonts/Nutmeg/Nutmeg-BoldItalic.ttf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Fuente para TITULARES - LinearGrotesk */
@font-face {
    font-family: 'LinearGrotesk';
    src: url('/fonts/Linear-Grotesk/LinearGrotesk-Regular.eot') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LinearGrotesk';
    src: url('/fonts/Linear-Grotesk/LinearGrotesk-Italic.eot') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'LinearGrotesk';
    src: url('/fonts/Linear-Grotesk/LinearGrotesk-Medium.eot') format('opentype');
    font-weight: 500; /* medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LinearGrotesk';
    src: url('/fonts/Linear-Grotesk/LinearGrotesk-Bold.eot') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LinearGrotesk';
    src: url('/fonts/Linear-Grotesk/LinearGrotesk-Black.eot') format('opentype');
    font-weight: 900; /* black/extra-bold */
    font-style: normal;
    font-display: swap;
}

/* ============================================
   APLICACIÓN EN EL SITIO
   ============================================ */

/* Aplicar Nutmeg para TODO el texto del body */
body {
    font-family: 'LinearGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 400; /* Peso normal por defecto */
    padding-top: 76px; /* Para compensar la navbar fija */
}

/* Aplicar LinearGrotesk para TODOS los títulos */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.card-title,
.navbar-brand,
.btn-participa,
.featured-title {
    font-family: 'Nutmeg', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700; /* Bold por defecto para titulares */
}

/* Ajustes específicos para diferentes niveles */
h1 {
    font-weight: 900; /* Black para h1 */
    letter-spacing: -0.5px;
}

h2, h3 {
    font-weight: 700; /* Bold */
}

h4, h5, h6 {
    font-weight: 500; /* Medium */
}

/* Para elementos que requieren variantes */
.navbar-nav .nav-link {
    font-family: 'Nutmeg', sans-serif;
    font-weight: 500; /* Medium para navegación */
}

.btn {
    font-family: 'LinearGrotesk', sans-serif;
    font-weight: 600; /* Semi-bold para botones */
}

/* Elementos que deben mantener Nutmeg (texto normal) */
p, li, .form-control, .footer, .hero-subtitle, .section-subtitle {
    font-family: 'LinearGrotesk', sans-serif;
    /* No necesitas especificar, hereda de body */
}

/* Estilos generales */



.section-title {
    /* font-size: 2.5rem; */
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-gray);
    /* font-size: 1.1rem; */
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-orange {
    color: var(--color-primary) !important;
}

.bg-orange {
    background-color: var(--color-primary) !important;
    color: white;
}

.bg-beige {
    background-color: var(--color-beige) !important;
}

.bg-gray {
    background-color: var(--color-gray) !important;
    color: white;
}

/* Navbar */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand .logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand .logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-dark);
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--color-primary);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Estilos para el logo SVG en el navbar */
.navbar-logo {
    height: 50px; /* Ajusta esta altura según cómo se vea mejor tu SVG */
    width: auto;
    transition: height 0.3s ease;
}

/* Estilos para dropdowns */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.2s;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--color-beige-light);
    color: var(--color-primary);
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid var(--color-gray-light);
}

/* Icono flecha en dropdowns */
.nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-left: 0.3em solid transparent;
}

/* Efecto hover para escritorio */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu {
        margin-top: 0;
    }
}

/* Para dispositivos móviles */
@media (max-width: 992px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .dropdown-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* Indicador visual para enlaces activos en dropdowns */
.dropdown-item.active {
    background-color: var(--color-primary-light);
    color: white;
}

/* Ajustes para diferentes tamaños de pantalla */
@media (max-width: 992px) {
    .navbar-logo {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
    }
}

/* SOLUCIÓN HÍBRIDA PARA SUBMENÚS LARGOS */

/* Para submenús con muchas opciones - Adaptativo */
.dropdown-menu.adaptive-menu {
    /* Configuración base para móviles */
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 10px;
}

/* Personalización del scroll para móviles */
.dropdown-menu.adaptive-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu.adaptive-menu::-webkit-scrollbar-track {
    background: var(--color-gray-light);
    border-radius: 10px;
}

.dropdown-menu.adaptive-menu::-webkit-scrollbar-thumb {
    background: var(--color-beige);
    border-radius: 10px;
}

.dropdown-menu.adaptive-menu::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* TABLETS (768px - 991px) - 2 columnas */
@media (min-width: 768px) {
    .dropdown-menu.adaptive-menu {
        min-width: 450px;
        max-height: 60vh;
        padding: 1.25rem;
    }
    
    .dropdown-menu.adaptive-menu .menu-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .dropdown-menu.adaptive-menu .menu-section {
        margin-bottom: 0;
    }
    
    .dropdown-menu.adaptive-menu .section-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--color-beige-light);
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 0.9rem;
        transition: all 0.2s;
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item:hover {
        background-color: transparent;
        color: var(--color-primary);
        padding-left: 0.75rem;
        border-left: 3px solid var(--color-primary);
    }
    
    .dropdown-menu.adaptive-menu .dropdown-divider {
        display: none;
    }
}

/* ESCRITORIO (992px en adelante) - 3 columnas */
@media (min-width: 992px) {
    .dropdown-menu.adaptive-menu {
        min-width: 650px;
        max-height: none;
        overflow-y: visible;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .dropdown-menu.adaptive-menu .menu-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .dropdown-menu.adaptive-menu .section-title {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid var(--color-beige);
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item:hover {
        padding-left: 1rem;
    }
}

/* MÓVILES (hasta 767px) - Scroll vertical */
@media (max-width: 767px) {
    .dropdown-menu.adaptive-menu {
        max-height: 60vh;
        background-color: var(--color-white) !important;
        border: 1px solid var(--color-gray-light);
    }

    
    
    .dropdown-menu.adaptive-menu .menu-section {
        margin-bottom: 1.5rem;
    }
    
    .dropdown-menu.adaptive-menu .section-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--color-primary);
        text-transform: uppercase;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--color-beige-light);
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu.adaptive-menu .dropdown-item:hover {
        background-color: var(--color-beige-light);
        color: var(--color-primary);
        padding-left: 1.5rem;
    }
}

/* Para móviles en horizontal (landscape) */
@media (max-width: 991px) and (orientation: landscape) {
    .dropdown-menu.adaptive-menu {
        max-height: 50vh;
    }
}

/* Efecto hover suave para el dropdown en escritorio */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu.adaptive-menu {
        display: block;
        animation: fadeInDown 0.3s ease-out;
    }
    
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Para submenús normales (no adaptativos) mantén estos estilos */
.dropdown-menu:not(.adaptive-menu) {
    max-height: 400px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .dropdown-menu:not(.adaptive-menu) {
        max-height: none;
        overflow-y: visible;
    }
}


/* ESTILOS MEJORADOS PARA EL BOTÓN DE PARTICIPACIÓN */

/* Botón principal para escritorio - VERSIÓN 2 LÍNEAS */
.btn-participa {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 8px; /* Cambié a 8px en lugar de 50px para mejor apariencia */
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-left: 1rem;
    height: auto;
    min-height: 60px; /* Altura mínima para acomodar 2 líneas */
    text-align: center;
    line-height: 1.3;
}

.btn-participa:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

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

/* Contenedor del texto en 2 líneas */
.btn-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem; /* Texto más pequeño */
    line-height: 1.2;
    text-align: center;
    white-space: normal; /* Permite múltiples líneas */
    max-width: 150px; /* Ancho máximo controlado */
}

.btn-line-1 {
    font-weight: 600;
    margin-bottom: 2px;
}

.btn-line-2 {
    font-weight: 500;
    font-size: 0.9rem; /* Un poco más pequeño la segunda línea */
}

/* Botón para móviles */
.btn-participa-mobile {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.3;
}

.btn-participa-mobile:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
}

/* RESPONSIVE MEJORADO */

/* Para pantallas entre 992px y 1200px */
@media (min-width: 992px) and (max-width: 1200px) {
    .btn-participa {
        padding: 0.4rem 1rem;
        margin-left: 0.8rem;
        min-height: 55px;
    }
    
    .btn-text {
        font-size: 0.8rem;
        max-width: 140px;
    }
    
    .btn-line-2 {
        font-size: 0.75rem;
    }
}

/* Para pantallas extra grandes (más de 1200px) */
@media (min-width: 1200px) {
    .btn-participa {
        padding: 0.6rem 1.5rem;
        min-height: 65px;
    }
    
    .btn-text {
        font-size: 0.9rem;
        max-width: 160px;
    }
    
    .btn-line-2 {
        font-size: 0.85rem;
    }
}

/* Para pantallas entre 1100px y 992px - versión compacta */
@media (max-width: 1100px) and (min-width: 992px) {
    .btn-participa {
        padding: 0.5rem;
        border-radius: 8px;
        width: 60px;
        height: 60px;
        justify-content: center;
        margin-left: 0.5rem;
    }
    
    .btn-text {
        display: none;
    }
    
    /* Mostrar solo icono con tooltip */
    .btn-participa::before {
        content: "P";
        font-weight: bold;
        font-size: 1.1rem;
    }
    
    /* Tooltip para mostrar texto en hover */
    .btn-participa::after {
        content: "Participa en el Plan Municipal de Desarrollo";
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-dark);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        margin-top: 10px;
    }
    
    .btn-participa:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

/* Para móviles en el menú colapsado */
@media (max-width: 992px) {
    .btn-participa-mobile {
        font-size: 0.9rem;
        padding: 0.8rem;
        line-height: 1.4;
    }
}



/* Botones */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-light {
    color: var(--color-dark);
    border-color: var(--color-gray-light);
}

.btn-outline-light:hover {
    background-color: var(--color-gray-light);
    color: var(--color-dark);
    border-color: var(--color-gray-light);
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0;
}

.btn-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Sección de información rápida */
.info-section {
    background-color: var(--color-white);
}

.info-icon, .value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-beige-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-primary);
}

/* Cards de servicios */
.service-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--color-white);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-beige-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 1.5rem 1.5rem 0;
}

.service-card .card-body {
    padding: 1.5rem;
}

/* Banner informativo */
.info-banner {
    background-color: var(--color-primary);
    color: white;
}

.info-banner h3 {
    font-weight: 600;
}

/* Cards de noticias */
.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card .card-img-top {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-img-1 {
    background-image: url('/images/IMG_1080.JPG');
}

.news-img-2 {
    background-image: url('/images/IMG_1313.JPG');
}

.news-img-3 {
    background-image: url('/images/IMG_9485.JPG');
}

.news-card .card-body {
    padding: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-gray);
    color: var(--color-white);
}

.footer h5 {
    color: var(--color-beige-light);
}

.footer a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--color-primary);
}

.footer-brand .logo-circle {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.footer-brand .logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.map-placeholder {
    height: 180px;
    background-image: url('/images/map-placeholder.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Estilos para el mapa en el footer */
.map-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover .map-iframe {
    filter: grayscale(0%) contrast(1);
}

.map-overlay-content {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.map-overlay-content .btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.map-overlay-content .btn:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-overlay-content .btn i {
    color: var(--color-primary);
}

/* Ajustes responsive para el mapa */
@media (max-width: 992px) {
    .map-container {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 200px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .map-container {
        height: 180px;
    }
}

/* Efecto de carga para el mapa */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.map-loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Sección de Servicios Destacados */
.featured-services-section {
    background: 
        linear-gradient(rgba(245, 245, 220, 0.95), rgba(255, 255, 255, 0.98)),
        url('/images/IMG_1324.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Versión móvil sin parallax */
@media (max-width: 768px) {
    .featured-services-section {
        background-attachment: scroll;
        padding: 4rem 0;
    }
}

/* Elemento decorativo opcional */
.featured-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-beige-light) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.7) 100%);
    z-index: 1;
}

.featured-services-section .container {
    position: relative;
    z-index: 2;
}

/* Título de la sección */
.featured-title {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.featured-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 500px;
    line-height: 1.6;
}

/* Cuadrícula de servicios */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 500px;
    margin-left: auto;
}

.grid-row {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.grid-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 107, 0, 0.1);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 107, 0, 0.2);
}

.grid-icon {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.8rem;
}

.grid-text h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.grid-text p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-title {
        font-size: 3rem;
    }
    
    .grid-row {
        gap: 1.5rem;
    }
    
    .grid-item {
        padding: 1.25rem 0.75rem;
    }
    
    .grid-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .featured-services-section {
        text-align: center;
    }
    
    .featured-title {
        font-size: 2.5rem;
    }
    
    .featured-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-grid {
        margin: 0 auto;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .featured-services-section {
        padding: 3rem 0;
    }
    
    .featured-title {
        font-size: 2.2rem;
    }
    
    .grid-row {
        gap: 1rem;
    }
    
    .grid-item {
        padding: 1rem 0.5rem;
    }
    
    .grid-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .grid-text h4 {
        font-size: 1rem;
    }
    
    .grid-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .featured-title {
        font-size: 1.8rem;
    }
    
    .featured-subtitle {
        font-size: 1rem;
    }
    
    .grid-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .grid-item {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
        padding: 1rem 0.5rem;
    }
    
    .services-grid {
        gap: 1rem;
    }
}

/* Versión minimalista sin fondo (opcional) */
.featured-services-section.minimal {
    background: linear-gradient(135deg, var(--color-beige-light) 0%, var(--color-white) 100%);
}

.featured-services-section.minimal::before {
    display: none;
}



/* HERO GENERAL */
.hero {
    height: 70vh;
    min-height: 600px;
    max-height: 800px;
    background: 
        linear-gradient(rgba(33, 37, 41, 0.7), rgba(33, 37, 41, 0.7)),
        url("/images/IMG_1313.JPG") center/cover no-repeat;
    color: var(--color-white);
}

/* IZQUIERDA - Contenido */
.hero-left {
    padding: 2rem;
    min-height: 100%;
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-line {
    width: 100px;
    height: 4px;
    background-color: var(--color-primary);
    /* margin: 1.5rem auto; */
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.9;
}

/* DERECHA - Cuadrícula */
.hero-right {
    background-color: var(--color-dark);
    min-height: 100%;
}

/* CUADROS - Asegurar que ocupen toda la altura */
.hero-right .row {
    height: 100%;
}

.hero-box {
    background-color: var(--color-beige);
    color: var(--color-white);
    padding: 1.5rem;
    height: 50%; /* Cada cuadro ocupa la mitad de la altura */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-box-alt {
    background-color: var(--color-primary);
    
}

.hero-box i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: inherit;
    transition: transform 0.3s ease;
}

.hero-box p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 120px;
}

/* Efecto hover mejorado */
.hero-box:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    /* cursor: pointer; */
    /* transform: translateY(-2px); */
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

.hero-box:hover i {
    transform: scale(1.1);
}


/* RESPONSIVE */
@media (max-width: 991px) {
    .hero {
        min-height: auto;
        max-height: none;
        height: auto;
    }
    
    .hero-left {
        padding: 3rem 1.5rem;
        min-height: auto;
        height: auto;
    }
    
    .hero-right {
        min-height: 500px; /* Altura fija en móvil */
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-box {
        height: 33.333%; /* 3 filas en móvil */
        padding: 1.5rem 1rem;
    }
    
    .hero-box p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
    
    .hero-right {
        min-height: 400px;
        height: 400px;
    }
    
    .hero-box {
        height: 33.333%;
        padding: 1rem;
    }
    
    .hero-box i {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-box p {
        font-size: 0.8rem;
        max-width: 100px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-right {
        min-height: 350px;
        height: 350px;
    }
    
    .hero-box {
        height: 50%; /* 2 filas en móviles muy pequeños */
        padding: 0.75rem;
    }
    
    .hero-box:nth-child(n+5) {
        display: none; /* Ocultar últimos 2 elementos */
    }
}




/* ============================================
   HERO BANNER
   ============================================ */

/* Contenedor principal del banner */
.hero-banner {
    position: relative;
    color: var(--bg-white);
    padding: 0;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 0px; 
    height: 85vh;
    max-height: 800px;
}

/* Carrusel de imágenes */
.hero-banner-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Imágenes específicas para desktop */
@media (min-width: 992px) {
    .carousel-slide:nth-child(1) {
        background-image: url('/images/l1.jpg');
    }
    
    .carousel-slide:nth-child(2) {
        background-image: url('/images/l2.jpg');
    }
    
    .carousel-slide:nth-child(3) {
        background-image: url('/images/l3.jpg');
    }
    
}

/* Imágenes específicas para mobile */
@media (max-width: 991.98px) {
    .hero-banner {
        height: 70vh;
        max-height: 600px;
    }
    
    .carousel-slide:nth-child(1) {
        background-image: url('/images/m1.jpg');
    }
    
    .carousel-slide:nth-child(2) {
        background-image: url('/images/m2.jpg');
    }
    
    .carousel-slide:nth-child(3) {
        background-image: url('/images/m3.jpg');
    }
    
    
}

/* Overlay transparente (igual que en el ejemplo) */
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

/* Controles del carrusel - EXACTO como el ejemplo */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 3;
    pointer-events: none;
}

.carousel-btn {
    background: var(--color-primary);
    border: 2px solid var(--color-primary-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    color: var(--bg-white);
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-beige-light);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
    justify-content: center;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover,
.indicator.active {
    background: var(--bg-white);
    border-color: var(--bg-white);
    transform: scale(1.2);
}

/* Responsive para controles */
@media (max-width: 768px) {
    .hero-banner {
        height: 60vh;
        max-height: 500px;
        margin-top: 0px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 50vh;
        max-height: 400px;
        margin-top: 0px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Variables que necesita del ejemplo */
:root {
    --bg-white: #ffffff;
}

/* Para pantallas muy altas */
@media (min-height: 1000px) {
    .hero-banner {
        max-height: 900px;
    }
}


/* ============================================
   BOTÓN FLOTANTE DE PARTICIPACIÓN
   ============================================ */

.floating-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-100%);
    background: var(--color-beige);
    color: white;
    text-decoration: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    overflow: hidden;
    height: 30px;
    min-height: 60px;
    max-width: 300px;
    border: none;
    cursor: pointer;
}

/* Estado inicial: solo se asoma el icono */
.floating-btn:not(.expanded) {
    width: 50px;
    padding: 0;
}

/* Estado expandido: se muestra completo */
.floating-btn.expanded {
    width: auto;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    right: 0;
    transform: translateY(-50%);
}

/* Icono del botón */
.floating-btn-icon {
    font-family: 'LinearGrotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
}

/* Texto del botón */
.floating-btn-text {
    font-family: 'LinearGrotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: normal;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.1s;
    padding-left: 0.5rem;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Cuando está expandido, mostrar texto */
.floating-btn.expanded .floating-btn-text {
    opacity: 1;
    transform: translateX(0);
}

/* Efecto hover para escritorio */
@media (min-width: 992px) {
    .floating-btn:hover {
        width: auto;
        padding: 0.5rem 1rem 0.5rem 0.5rem;
        right: 0;
        transform: translateY(-100%);
    }
    
    .floating-btn:hover .floating-btn-text {
        opacity: 1;
        transform: translateX(0);
    }
    
    .floating-btn:hover .floating-btn-icon {
        background: rgba(0, 0, 0, 0.15);
    }
}

/* Efecto hover (solo escritorio) */
.floating-btn:hover {
    background: var(--color-beige);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* Versión para móviles */
@media (max-width: 991px) {
    .floating-btn {
        top: auto;
        bottom: 20px;
        transform: none;
        right: 10px;
        min-height: 50px;
        max-width: 280px;
    }
    
    /* En móviles, siempre mostrar asomado */
    .floating-btn:not(.expanded) {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    }
    
    .floating-btn:not(.expanded) .floating-btn-icon {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
    }
    
    /* Cuando está expandido en móviles */
    .floating-btn.expanded {
        width: auto;
        padding: 0.5rem 1rem 0.5rem 0.5rem;
        border-radius: 25px 8px 8px 25px;
        bottom: 20px;
        right: 10px;
        transform: none;
        min-height: 50px;
    }
    
    .floating-btn.expanded .floating-btn-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .floating-btn-text {
        font-size: 0.85rem;
        max-width: 200px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 576px) {
    .floating-btn.expanded {
        max-width: 250px;
    }
    
    .floating-btn-text {
        font-size: 0.8rem;
        max-width: 180px;
    }
}

/* Para tablets en modo landscape */
@media (max-width: 991px) and (orientation: landscape) {
    .floating-btn {
        bottom: 10px;
        right: 10px;
    }
}

/* Ajuste para no interferir con el footer */
@media (max-width: 991px) {
    .footer {
        padding-bottom: 80px; /* Espacio para el botón flotante */
    }
}

/* Animación para llamar la atención (opcional) */
@keyframes floatPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
    }
}

.floating-btn:not(.expanded) {
    animation: floatPulse 3s infinite;
}

/* Para cuando el botón está en hover o expandido, detener animación */
.floating-btn:hover,
.floating-btn.expanded {
    animation: none;
}

