/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #034566;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Moderno con Glassmorphism */
header {
    background: rgba(3, 69, 102, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto al hacer scroll */
header.scrolled {
    background: rgba(3, 69, 102, 0.98);
    backdrop-filter: blur(25px);
    padding: 10px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Barra de progreso de scroll */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0992C6, #00D4FF);
    border-radius: 2px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
    z-index: 10;
}

/* Logo mejorado */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

header .logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-text {
    margin-left: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #e0f4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.logo-link:hover .logo-text {
    opacity: 1;
    transform: translateX(0);
}

header.scrolled .logo img {
    height: 45px;
}

/* Botón hamburguesa moderno */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    position: relative;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navegación moderna */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.nav-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Estado activo */
.nav-link.active {
    color: #fff;
    background: rgba(9, 146, 198, 0.3);
    border: 1px solid rgba(9, 146, 198, 0.5);
    box-shadow: 0 4px 16px rgba(9, 146, 198, 0.2);
}

.nav-link.active .nav-icon {
    color: #00D4FF;
    opacity: 1;
}

/* Botón destacado mejorado */
.nav-link.btn-destacado {
    background: linear-gradient(135deg, #0992C6, #00D4FF);
    color: #fff;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 4px 16px rgba(9, 146, 198, 0.3);
    border: none;
}

.nav-link.btn-destacado:hover {
    background: linear-gradient(135deg, #077AA3, #00B8E6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(9, 146, 198, 0.4);
}

.nav-link.btn-destacado .nav-icon {
    color: #fff;
}

/* Overlay mejorado */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(3, 69, 102, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1rem;
        justify-content: flex-start;
        gap: 16px;
        border-radius: 12px;
        margin: 4px 0;
    }

    .nav-icon {
        font-size: 1.2rem;
        min-width: 20px;
    }

    .nav-link.btn-destacado {
        margin: 16px 0 8px 0;
        background: linear-gradient(135deg, #0992C6, #00D4FF);
        box-shadow: 0 6px 20px rgba(9, 146, 198, 0.3);
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    header {
        padding: 12px 0;
    }

    header.scrolled {
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 90%;
        padding: 70px 15px 15px;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
    }
}

/* Hero Section */
#hero {
    background-image: url('./images/heroe_img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 150px 0;
    text-align: right;
    overflow: hidden;
}

.hero-content {
    background-color: rgba(19, 74, 99, 0.8);
    display: inline-block;
    padding: 40px;
    border-radius: 10px;
    text-align: left;
    max-width: 500px;
    margin-right: 50%;
    position: relative;
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #fff;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-contacto {
    background-color: #0992C6;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-contacto:hover {
    background-color: #077AA3;
}

/* ========================================
   HERO SECTION IMPROVEMENTS
======================================== */

/* Hero keywords styling */
.hero-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    justify-content: center;
}

.keyword-tag {
    background: linear-gradient(135deg, #00a8ff, #0066cc);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 168, 255, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.keyword-tag:nth-child(1) { animation-delay: 0.2s; }
.keyword-tag:nth-child(2) { animation-delay: 0.4s; }
.keyword-tag:nth-child(3) { animation-delay: 0.6s; }
.keyword-tag:nth-child(4) { animation-delay: 0.8s; }

.keyword-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content improvements */
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #e8f4f8;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .keyword-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .hero-keywords {
        justify-content: center;
        gap: 8px;
    }
}

/* Servicios Section */
#servicios {
    padding: 80px 0;
    background: #F4F4F4;
    position: relative;
    overflow: hidden;
}

.servicios-contenedor {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.columna-izquierda {
    flex: 0 0 45%;
    position: sticky;
    top: 120px;
}

#servicios h2 {
    color: #034566;
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
}

#servicios h2::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 3px;
    background: #0992C6;
    bottom: -15px;
    left: 0;
}

.imagen-contenedor {
    width: 100%;
    margin-bottom: 30px;
}

.servicios-imagen {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.columna-derecha {
    flex: 1;
    margin-left: auto;
    margin-top: 83px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.servicio {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.servicio i {
    font-size: 2rem;
    color: #0992C6;
    margin-bottom: 15px;
}

.servicio h3 {
    color: #034566;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.servicio p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Nosotros Section */
#nosotros {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbfd 0%, #e6f3f8 100%);
}

#nosotros .container {
    display: block; /* Cambia a block para que los elementos se apilen verticalmente */
    text-align: center; /* Centra el contenido */
}

#nosotros h2 {
    text-align: center;
    font-size: 2.8rem;
    color: #034566;
    margin-bottom: 50px;
    position: relative;
}

#nosotros h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #0992C6;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.nosotros-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(3, 69, 102, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nosotros-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #0992C6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nosotros-card:hover::before {
    transform: scaleX(1);
}

.nosotros-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(3, 69, 102, 0.15);
}

.nosotros-card.destacado {
    background: linear-gradient(135deg, #034566 0%, #0992C6 100%);
    color: #fff;
}

.nosotros-card.destacado h3,
.nosotros-card.destacado .card-icon i {
    color: #fff;
}

.card-icon {
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 2.5rem;
    color: #0992C6;
    transition: transform 0.3s ease;
}

.nosotros-card:hover .card-icon i {
    transform: rotate(15deg) scale(1.1);
}

.nosotros-card h3 {
    font-size: 1.6rem;
    color: #034566;
    margin-bottom: 15px;
}

.nosotros-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.nosotros-card.destacado p {
    color: #e6f3f8;
}

/* Contenedor del botón */
.btn-container {
    text-align: center;
    margin-top: 40px;
}

.btn-contacto {
    background-color: #0992C6;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-contacto:hover {
    background-color: #077AA3;
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-card {
        margin-bottom: 20px;
    }

    #nosotros h2 {
        font-size: 2.2rem;
    }
}

/* Sección de Imagen Destacada */
.imagen-destacada {
    position: relative;
    height: 70vh;
    overflow: hidden;
    animation: aparecer 1.5s ease-out forwards;
}

.imagen-container {
    width: 100%;
    height: 100%;
    background-image: url('./images/office_pic.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    animation: 
        movimientoSuave 30s infinite alternate linear,
        zoomEntrada 1.5s ease-out forwards;
    position: relative;
}

/* Efecto de overlay sutil */
.imagen-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(3, 69, 102, 0.3) 0%, rgba(9, 146, 198, 0.15) 100%);
}

/* Animaciones */
@keyframes movimientoSuave {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes zoomEntrada {
    from { transform: scale(1.2); opacity: 0; }
    to { transform: scale(1.1); opacity: 1; }
}

@keyframes aparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Efecto hover para desktop */
@media (hover: hover) {
    .imagen-container:hover {
        animation-play-state: paused;
        transform: scale(1.03);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .imagen-destacada {
        height: 50vh;
    }
    
    .imagen-container {
        animation: 
            movimientoSuaveMobile 30s infinite alternate linear,
            zoomEntrada 1.5s ease-out forwards;
    }

    @keyframes movimientoSuaveMobile {
        0% { transform: scale(1); }
        100% { transform: scale(1.05); }
    }
}

/* Sección Contadores */
#contadores {
    padding: 80px 0;
    background: #fff;
}

#contadores h2 {
    text-align: center;
    color: #034566;
    font-size: 2.8rem;
    margin-bottom: 50px;
    position: relative;
}

#contadores h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #0992C6;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.contadores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contador-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(3, 69, 102, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.contador-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(3, 69, 102, 0.15);
}

.contador-img {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.contador-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contador-card:hover .contador-img img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 69, 102, 0) 0%, rgba(3, 69, 102, 0.4) 100%);
}

.contador-info {
    padding: 25px;
    text-align: center;
}

.contador-info h3 {
    color: #034566;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.cargo {
    color: #0992C6;
    font-weight: bold;
    margin-bottom: 20px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telefono, .correo {
    color: #034566;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.telefono:hover, .correo:hover {
    color: #0992C6;
}

.telefono i, .correo i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contadores-grid {
        grid-template-columns: 1fr;
    }
    
    .contador-img {
        height: 280px;
    }
    
    #contadores h2 {
        font-size: 2.2rem;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.contador-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.contador-card:nth-child(1) {
    animation-delay: 0.2s;
}

.contador-card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Sección Ventajas */
#ventajas {
    padding: 100px 0;
    background: #f8fbfd;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(45deg, #034566, #0992C6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 800;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.ventaja-item {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.ventaja-shape {
    position: absolute;
    width: 90%;
    height: 100%;
    background: #fff;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 0 15px 50px rgba(3, 69, 102, 0.1);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.ventaja-item:hover .ventaja-shape {
    transform: rotate3d(1, 1, 0, 15deg) scale(1.05);
    border-radius: 30% 70% 50% 50% / 30% 40% 60% 70%;
}

.ventaja-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    padding: 30px;
    z-index: 3;
}

.ventaja-text i {
    font-size: 3rem;
    color: #0992C6;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.5s ease;
}

.ventaja-item:hover i {
    transform: rotate(360deg) scale(1.2);
}

.ventaja-text h3 {
    color: #034566;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.ventaja-text p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Efecto de fondo dinámico */
#ventajas::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: linear-gradient(45deg, rgba(9, 146, 198, 0.05) 0%, rgba(3, 69, 102, 0.03) 100%);
    transform: rotate(15deg);
    animation: flow 20s infinite linear;
}

@keyframes flow {
    0% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-100px); }
    100% { transform: rotate(15deg) translateY(0); }
}

/* Responsive */
@media (max-width: 1200px) {
    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .ventaja-item {
        height: 300px;
    }
    
    .text-gradient {
        font-size: 2.8rem;
    }
}

/* Sección de Contacto Integrado */
#contacto {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fbfd 0%, #e6f3f8 100%);
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(3, 69, 102, 0.1);
}

.formulario-wrapper {
    background: #fff;
    padding: 50px;
    display: flex;
    align-items: center;
}

.form-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

h2 {
    color: #034566;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0992C6;
    font-size: 1.2rem;
}

input, textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #e0f0f7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

textarea {
    height: 120px;
    resize: vertical;
    padding-left: 40px;
}

input:focus, textarea:focus {
    border-color: #0992C6;
    box-shadow: 0 0 8px rgba(9, 146, 198, 0.2);
    outline: none;
}

.btn-enviar {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-enviar:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-enviar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.mapa-wrapper {
    position: relative;
}

.mapa-interactivo {
    height: 100%;
    width: 100%;
    position: relative;
}

.mapa-interactivo iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.mapa-interactivo:hover iframe {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.mapa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(3, 69, 102, 0.05) 0%, rgba(9, 146, 198, 0.03) 100%);
    pointer-events: none;
}

/* Animaciones */
@keyframes slideInForm {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInMap {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-content {
    animation: slideInForm 0.8s ease-out;
}

.mapa-interactivo {
    animation: slideInMap 0.8s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .contacto-container {
        grid-template-columns: 1fr;
        margin: 0 20px;
    }
    
    .formulario-wrapper {
        padding: 30px;
    }
    
    .mapa-interactivo iframe {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2rem;
    }
    
    .input-group i {
        font-size: 1rem;
    }
    
    input, textarea {
        padding-left: 35px;
    }
}

/* Sección Enlaces de Interés */
#enlaces-interes {
    padding: 80px 0;
    background: #f8fbfd;
}

#enlaces-interes h2 {
    text-align: center;
    color: #034566;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

#enlaces-interes h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #0992C6;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.acordeon-enlaces {
    max-width: 800px;
    margin: 0 auto;
}

.acordeon-item {
    border-bottom: 1px solid #e0f0f7;
    margin-bottom: 10px;
    overflow: hidden;
}

.acordeon-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acordeon-header:hover {
    background: rgba(9, 146, 198, 0.05);
}

.acordeon-header img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.acordeon-header span {
    font-size: 1.2rem;
    color: #034566;
    font-weight: 500;
    flex-grow: 1;
}

.acordeon-header i {
    font-size: 1.2rem;
    color: #0992C6;
    transition: transform 0.3s ease;
}

.acordeon-item.active .acordeon-header i {
    transform: rotate(180deg);
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.acordeon-item.active .acordeon-content {
    max-height: 200px;
    padding: 15px 20px;
}

.acordeon-content p {
    color: #666;
    margin-bottom: 10px;
}

.acordeon-content a {
    color: #0992C6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.acordeon-content a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .acordeon-header {
        padding: 12px 15px;
    }
    
    .acordeon-header img {
        width: 30px;
        height: 30px;
    }
    
    .acordeon-header span {
        font-size: 1rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #034566 0%, #0992C6 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="60" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.footer-top {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    height: 100%;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.3));
    border-radius: 2px;
}

/* Lista de contacto */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 8px 0;
}

.footer-contact i {
    color: #fff;
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Lista de enlaces */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 0;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-links i {
    margin-right: 10px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #fff;
    color: #034566;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.social-link i {
    font-size: 1.2rem;
}

/* Columna CTA */
.footer-cta-col {
    text-align: left;
    padding: 0;
    background: none;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
}

.footer-cta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff, #f0f8ff);
    color: #034566;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #f0f8ff, #fff);
}

.footer-cta i {
    font-size: 1rem;
}

/* Footer bottom mejorado */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

.copyright-text strong {
    color: #fff;
    font-weight: 700;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.legal-links i {
    font-size: 0.85rem;
}

/* Responsive del footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-cta-col {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand {
        margin-bottom: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .legal-links {
        justify-content: center;
    }
}



/* Estilos del botón */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #034566, #0992C6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(3, 69, 102, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 6px 16px rgba(3, 69, 102, 0.3);
}

.scroll-top i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    #hero {
        padding: 100px 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        max-width: 90%;
    }

    .servicios-contenedor {
        flex-direction: column;
        gap: 30px;
    }

    .columna-izquierda {
        position: static;
        width: 100%;
    }

    #servicios h2 {
        text-align: center;
    }

    #servicios h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicios-imagen {
        max-width: 100%;
    }
}

/* ========================================= */
/* SECCIÓN BLOG TRIBUTARIO                   */
/* ========================================= */

#blog {
    padding: 100px 0 120px 0;
    background: #fff;
    min-height: 100vh;
}

#blog .container {
    display: block;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header del Blog */
.blog-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.blog-header h2 {
    color: #034566;
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
}

.blog-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #0992C6;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.blog-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Controles del Blog */
.blog-controls {
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Filtros del Blog */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px;
}

.filter-btn {
    background: #f8fbfd;
    color: #034566;
    border: 2px solid #e0f0f7;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #034566, #0992C6);
    color: #fff;
    border-color: #0992C6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 146, 198, 0.3);
}

.filter-btn i {
    font-size: 1rem;
}

/* Ajustes para pantallas medianas */
@media (min-width: 768px) {
    .blog-filters {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
        min-width: 160px;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1024px) {
    .blog-filters {
        gap: 25px;
        margin-bottom: 50px;
        flex-wrap: nowrap;
    }
    
    .filter-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* Pantallas Ultra Anchas (1800px+) */
@media (min-width: 1800px) {
    .blog-grid {
        grid-template-columns: repeat(3, 550px);
        gap: 60px;
        justify-content: center;
        max-width: none;
    }
    
    .blog-card {
        min-height: 620px;
    }
    
    .blog-filters {
        gap: 40px;
        padding: 40px 0;
    }
    
    .filter-btn {
        padding: 18px 36px;
        font-size: 18px;
        min-width: 200px;
    }
    
    #blog {
        padding: 120px 0 140px 0;
    }
    
    .blog-header {
        margin-bottom: 120px;
    }
    
    .blog-content-area {
        margin-bottom: 120px;
    }
}

/* Área de Contenido del Blog */
.blog-content-area {
    margin-bottom: 80px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Grid de Artículos */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Ajustes responsivos específicos para el grid */
@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        max-width: 1500px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

@media (min-width: 1400px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .blog-card {
        min-height: 600px;
    }
    
    .blog-title {
        font-size: 1.6rem;
        min-height: 70px;
    }
    
    .blog-excerpt {
        font-size: 16px;
        min-height: 80px;
    }
    
    .blog-filters {
        max-width: 1500px;
        margin: 0 auto;
        justify-content: center;
        gap: 30px;
        padding: 30px 0;
    }
    
    .filter-btn {
        padding: 16px 32px;
        font-size: 17px;
        min-width: 180px;
    }
    
    .blog-header {
        margin-bottom: 100px;
    }
    
    .blog-content-area {
        margin-bottom: 100px;
    }
}

/* Pantallas Ultra Anchas */
@media (min-width: 1600px) {
    .blog-grid {
        grid-template-columns: repeat(3, 420px);
        justify-content: center;
        gap: 50px;
        max-width: 1400px;
    }
    
    .blog-card {
        min-height: 600px;
    }
    
    .filter-btn {
        padding: 16px 28px;
        font-size: 17px;
    }
}

/* Tarjetas de Artículos */
.blog-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(3, 69, 102, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(3, 69, 102, 0.15);
}

.blog-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Ajustes para pantallas medianas */
@media (min-width: 768px) {
    .blog-card {
        min-height: 620px;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 1024px) {
    .blog-card {
        min-height: 640px;
    }
}

/* Header de la Tarjeta */
.blog-card-header {
    position: relative;
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(3, 69, 102, 0.7) 0%, rgba(9, 146, 198, 0.5) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
}

.blog-category {
    background: #fff;
    color: #034566;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    min-width: max-content;
}

.blog-category i {
    font-size: 0.8rem;
}

/* Cuerpo de la Tarjeta */
.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-date,
.blog-author {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-date i,
.blog-author i {
    color: #0992C6;
}

.blog-title {
    color: #034566;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
    min-height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    min-height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #e6f3f8;
    color: #0992C6;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer de la Tarjeta */
.blog-card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.blog-read-more {
    color: #0992C6;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #e6f3f8;
    border-radius: 20px;
    background: #f8fbfd;
    font-size: 0.9rem;
    margin: 0 auto;
    width: fit-content;
}

.blog-read-more:hover {
    color: #fff;
    background: linear-gradient(135deg, #034566, #0992C6);
    border-color: #0992C6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 146, 198, 0.3);
}

/* Navegación del Blog */
.blog-navigation {
    margin-top: 60px;
}

.blog-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.pagination-btn {
    background: #f8fbfd;
    color: #034566;
    border: 2px solid #e0f0f7;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #034566, #0992C6);
    color: #fff;
    border-color: #0992C6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(9, 146, 198, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 2px solid #e0f0f7;
    background: #f8fbfd;
    color: #034566;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-number:hover,
.page-number.active {
    background: linear-gradient(135deg, #034566, #0992C6);
    color: #fff;
    border-color: #0992C6;
    transform: scale(1.1);
}

/* Animaciones del Blog */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Responsive del Blog */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .blog-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #blog {
        padding: 60px 0;
    }
    
    .blog-header h2 {
        font-size: 2.2rem;
    }
    
    .blog-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .blog-pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .pagination-center {
        order: -1;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-card-body {
        padding: 20px;
    }
    
    .blog-card-footer {
        padding: 0 20px 20px;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .blog-read-more {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Modal del Blog */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.blog-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInModal 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 0;
    border-bottom: 1px solid #e0f0f7;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: #034566;
    font-size: 1.8rem;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8fbfd;
    color: #034566;
}

.modal-body {
    padding: 0 30px 30px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-image {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.modal-text h4 {
    color: #034566;
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.modal-text p {
    margin-bottom: 15px;
}

.modal-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-text li {
    margin-bottom: 8px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Modales Legales */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    padding: 20px;
    overflow-y: auto;
}

.legal-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

.legal-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInModal 0.3s ease;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e6f3f8;
    background: linear-gradient(135deg, #f8fbfd, #e6f3f8);
}

.legal-modal-header h2 {
    color: #034566;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.legal-modal-close:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

.legal-modal-body {
    padding: 30px;
    line-height: 1.7;
    color: #444;
}

.legal-modal-body h4 {
    color: #034566;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-modal-body h4:first-child {
    margin-top: 0;
}

.legal-modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-modal-body li {
    margin-bottom: 8px;
}

/* Responsive para modales legales */
@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }
    
    .legal-modal.show {
        padding-top: 20px;
    }
    
    .legal-modal-header {
        padding: 20px;
    }
    
    .legal-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .legal-modal-body {
        padding: 20px;
    }
    
    .legal-modal-body h4 {
        font-size: 1.1rem;
    }
}

/* ========================================
   LEAD MAGNETS SECTION
======================================== */

.lead-magnets-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.lead-magnets-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,168,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.lead-magnets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.lead-magnet-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.lead-magnet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00a8ff, #0078d4);
}

.lead-magnet-card.featured {
    transform: scale(1.05);
    border: 2px solid #00a8ff;
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.2);
}

.lead-magnet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff5722);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.magnet-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
}

.magnet-icon i {
    font-size: 2rem;
    color: white;
}

.lead-magnet-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.lead-magnet-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.magnet-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.magnet-benefits li {
    padding: 8px 0;
    color: #495057;
    font-size: 0.95rem;
}

.btn-lead-magnet {
    width: 100%;
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lead-magnet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6);
    background: linear-gradient(135deg, #0078d4, #005a9f);
}

.btn-lead-magnet i {
    margin-right: 10px;
}

/* ========================================
   LEAD MODAL STYLES
======================================== */

.lead-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.lead-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.lead-modal-header {
    background: linear-gradient(135deg, #00a8ff, #0078d4);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.lead-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lead-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lead-modal-body {
    padding: 30px;
}

.resource-preview {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px dashed #00a8ff;
}

.resource-preview i {
    font-size: 3rem;
    color: #00a8ff;
    margin-bottom: 15px;
}

.resource-preview p {
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.resource-preview ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.resource-preview li {
    padding: 5px 0;
    color: #495057;
}

.lead-form {
    display: grid;
    gap: 20px;
}

.lead-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.lead-input-group i {
    position: absolute;
    left: 15px;
    color: #00a8ff;
    z-index: 2;
}

.lead-input-group input,
.lead-input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.lead-input-group input:focus,
.lead-input-group select:focus {
    outline: none;
    border-color: #00a8ff;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
}

.checkbox-container input {
    margin-right: 10px;
}

.btn-lead-submit {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 768px) {
    .lead-magnets-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lead-magnet-card.featured {
        transform: none;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .lead-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .lead-modal-body {
        padding: 20px;
    }
}