/* ========================================
   ESTILOS PRINCIPALES - ALAIN NGALE NGALE
   ======================================== */

/* Variables de colores - Paleta Azul */
:root {
    /* Colores principales - Tonos de azul */
    --color-primary: #1e40af;        /* Azul principal */
    --color-primary-light: #3b82f6;  /* Azul claro */
    --color-primary-dark: #1e3a8a;   /* Azul oscuro */
    --color-secondary: #60a5fa;      /* Azul cielo suave */
    --color-secondary-light: #93c5fd; /* Azul cielo muy claro */
    --color-secondary-dark: #3b82f6;  /* Azul cielo oscuro suave */
    
    /* Colores de acento */
    --color-accent: #06b6d4;         /* Cyan */
    --color-accent-light: #22d3ee;   /* Cyan claro */
    --color-accent-dark: #0891b2;    /* Cyan oscuro */
    
    /* Colores de estado (mantener para funcionalidad) */
    --color-success: #10b981;        /* Verde para éxito */
    --color-warning: #f59e0b;        /* Amarillo para advertencias */
    --color-error: #ef4444;          /* Rojo para errores */
    
    /* Grises y neutros */
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    
    /* Gradientes principales */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Estilos mejorados para el blog */
.blog-card-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
}

.blog-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.blog-card-button:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.4);
}

.blog-card-button:hover::before {
    left: 100%;
}

.blog-category-button {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.blog-category-button:hover {
    color: white;
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.25);
}

.blog-category-button:hover::before {
    width: 100%;
}

.blog-tag {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.blog-tag:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.card .blog-image-container:first-child {
    border-radius: 1rem 1rem 0 0;
}

.blog-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .blog-image {
    transform: scale(1.08);
}

.blog-title {
    transition: color 0.3s ease;
}

.card:hover .blog-title {
    color: var(--color-primary-light);
}

/* Mejoras específicas para el contenido de los cards (excepto artículo destacado) */
.card .p-6:not(.featured-article .p-8) {
    padding: 1.5rem !important;
}

/* Excluir el artículo destacado de las reglas generales */
.featured-article .p-8 {
    padding: 2rem !important;
}

/* Espaciado mejorado para elementos dentro de los cards (excepto artículo destacado) */
.card:not(.featured-article) .mb-3 {
    margin-bottom: 1rem !important;
}

.card:not(.featured-article) .mb-4 {
    margin-bottom: 1.5rem !important;
}

.card:not(.featured-article) h3.mb-3 {
    margin-bottom: 1rem !important;
}

.card:not(.featured-article) p.mb-4 {
    margin-bottom: 1.5rem !important;
}

.card:not(.featured-article) .flex.flex-wrap.gap-1 {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Asegurar que el texto no toque los bordes (excepto artículo destacado) */
.card:not(.featured-article) .blog-title {
    margin-bottom: 1rem !important;
    line-height: 1.3;
}

.card:not(.featured-article) .text-gray-600 {
    margin-bottom: 1.5rem !important;
    line-height: 1.6;
}

/* Espaciado específico para la información de fecha/tiempo (excepto artículo destacado) */
.card:not(.featured-article) .flex.items-center.justify-between {
    margin-bottom: 1.5rem !important;
}

/* Espaciado para tags (excepto artículo destacado) */
.card:not(.featured-article) .flex.flex-wrap {
    margin-bottom: 1.5rem !important;
}

/* Asegurar padding adecuado en el contenido (excepto artículo destacado) */
.card:not(.featured-article) > div:last-child {
    padding: 1.5rem !important;
}

/* Espaciado específico para diferentes elementos (excepto artículo destacado) */
.card:not(.featured-article) .flex.items-center.gap-2.mb-3,
.card:not(.featured-article) .flex.items-center.gap-2.mb-4 {
    margin-bottom: 1rem !important;
}

.card:not(.featured-article) h3 + p {
    margin-top: 1rem;
    margin-bottom: 1.5rem !important;
}

.card:not(.featured-article) .flex.items-center.justify-between + .flex.flex-wrap {
    margin-top: 0;
}

.card:not(.featured-article) .flex.flex-wrap + button {
    margin-top: 0.5rem;
}

/* Mejorar el espaciado vertical general (excepto artículo destacado) */
.card:not(.featured-article) .p-6 > * {
    margin-bottom: 0;
}

.card:not(.featured-article) .p-6 > * + * {
    margin-top: 1rem;
}

.card:not(.featured-article) .p-6 > h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.card:not(.featured-article) .p-6 > p {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.card:not(.featured-article) .p-6 > button {
    margin-top: 1.5rem;
}

/* Estilos específicos para el artículo destacado */
.featured-article {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 3;
}

/* Mantener el espaciado original del artículo destacado */
.featured-article .mb-4 {
    margin-bottom: 1rem !important;
}

.featured-article .mb-6 {
    margin-bottom: 1.5rem !important;
}

.featured-article .text-3xl {
    margin-bottom: 1rem !important;
}

.featured-article .text-lg {
    margin-bottom: 1.5rem !important;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    padding: 2px;
    background: var(--gradient-hero);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-article:hover::before {
    opacity: 1;
}

/* Mejoras para el espaciado general */
.section-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Espaciado entre secciones */
.section {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section:last-child {
    margin-bottom: 0;
}

/* Asegurar separación adecuada entre secciones */
.section + .section {
    margin-top: 2rem;
}

/* Mejoras para cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    isolation: isolate; /* Crear contexto de apilamiento independiente */
}

/* Asegurar que cada card tenga su propio contexto de apilamiento */
.cards-grid .card {
    position: relative;
    z-index: auto;
    isolation: isolate;
}

/* Asegurar que los cards no se sobrepongan */
.card {
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    transform: translateZ(0); /* Forzar aceleración de hardware */
}

.card:hover {
    z-index: 10;
    transform: translateY(-4px) translateZ(0); /* Controlar el movimiento hover */
}

/* Corregir problemas específicos de solapamiento */
.card.group {
    isolation: isolate; /* Crear nuevo contexto de apilamiento */
}

/* Asegurar que el grid tenga suficiente espacio para los efectos hover */
.cards-grid {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Sobrescribir el efecto hover problemático */
.card.hover\:-translate-y-1:hover {
    transform: translateY(-4px) translateZ(0) !important;
}

/* Alternativa más específica para el efecto hover */
.card.group.hover\:shadow-xl.hover\:-translate-y-1:hover {
    transform: translateY(-4px) translateZ(0) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Regla general para todos los cards con hover translate */
.hover\:-translate-y-1:hover {
    transform: translateY(-4px) !important;
}

/* Asegurar que los cards mantengan su posición base */
.card {
    transform: translateY(0) translateZ(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    contain: layout style paint; /* Contener el layout para evitar solapamientos */
}

/* Regla específica para evitar solapamiento del card problemático */
.card:nth-child(4) {
    z-index: 1 !important;
}

.card:nth-child(4):hover {
    z-index: 5 !important;
}

/* Espaciado adicional en el contenedor para evitar cortes de hover */
.section .section-container {
    overflow: visible;
}

.section .cards-grid {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .section-container { padding: 0 1rem; }
    .page-content, .main-content { padding: 0 1rem; }

    .section-title { font-size: 1.75rem; }

    .cards-grid { gap: 1rem !important; grid-template-columns: 1fr; }
    .featured-article { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .featured-article .p-8 { padding: 1.25rem !important; }

    /* Tipografía más grande y legible en móvil */
    h1, .text-4xl, .hero-title { font-size: 1.75rem !important; line-height: 1.2; }
    h2, .text-3xl, .section-title { font-size: 1.5rem !important; line-height: 1.3; }
    h3, .text-2xl { font-size: 1.25rem !important; }
    p, li { font-size: 1rem; }
}

/* Reset básico y configuración de fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Asegurar que todos los elementos se rendericen correctamente */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
    overflow-x: hidden;
}

/* Prevenir problemas de overflow horizontal */
.main-content,
.section-container,
.hero-content,
.footer-content {
    width: 100%;
    overflow-x: visible;
}

/* Variables CSS para colores principales */
:root {
    --color-primary: #1e3a8a;      /* Azul principal */
    --color-secondary: #f59e0b;    /* Amarillo/Ámbar */
    --color-text: #111827;         /* Texto principal */
    --color-text-light: #6b7280;  /* Texto secundario */
    --color-background: #ffffff;   /* Fondo blanco */
    --color-background-light: #f9fafb; /* Fondo gris claro */
    --sidebar-width: 16rem;        /* Ancho del sidebar */
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.main-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Contenido principal */
.main-content {
    flex: 1;
    padding-left: 0;
    transition: padding-left 0.3s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: var(--sidebar-width) !important;
        padding-left: 0 !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }
    
    /* Asegurar que el contenido principal tenga el espacio correcto */
    .min-h-screen .main-content,
    .min-h-screen > .flex > .flex-1 {
        margin-left: var(--sidebar-width) !important;
        padding-left: 0 !important;
        width: calc(100% - var(--sidebar-width)) !important;
    }
}

/* Estilos para páginas con estructura Tailwind */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.w-full {
    width: 100%;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.fixed {
    position: fixed;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.z-10 {
    z-index: 10;
}

.h-svh {
    height: 100vh;
}

.w-64 {
    width: 16rem;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.bg-white {
    background-color: white;
}

.md\:flex {
    display: flex;
}

@media (max-width: 767px) {
    .md\:hidden {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }
    
    .md\:flex {
        display: flex !important;
    }
}

.hidden {
    display: none !important;
}

/* Más estilos Tailwind necesarios */
.h-full {
    height: 100%;
}

.flex-col {
    flex-direction: column;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.p-6 {
    padding: 1.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-900 {
    --tw-gradient-from: #1e3a8a;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.to-blue-800 {
    --tw-gradient-to: #1e40af;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.from-blue-500 {
    --tw-gradient-from: #0ea5e9;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14, 165, 233, 0));
}

.to-blue-600 {
    --tw-gradient-to: #1e40af;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: 700;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-blue-100 {
    color: #dbeafe;
}

.min-h-0 {
    min-height: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

/* Estilos específicos para el layout con Tailwind */
.min-h-screen.flex.w-full.bg-gray-50 {
    min-height: 100vh;
    display: flex;
    width: 100%;
    background-color: #f9fafb;
}

/* Asegurar que el contenido principal ocupe el espacio correcto */
@media (min-width: 768px) {
    .min-h-screen.flex.w-full.bg-gray-50 > *:not(.desktop-sidebar):not(.mobile-menu) {
        margin-left: var(--sidebar-width) !important;
        width: calc(100% - var(--sidebar-width)) !important;
        padding-left: 0 !important;
    }
}

.overflow-auto {
    overflow: auto;
}

.relative {
    position: relative;
}

.min-w-0 {
    min-width: 0;
}

.text-gray-600 {
    color: #4b5563;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.h-8 {
    height: 2rem;
}

.text-sm {
    font-size: 0.875rem;
}

.hover\:bg-blue-50:hover {
    background-color: #eff6ff;
}

.hover\:text-blue-700:hover {
    color: #1d4ed8;
}

.transition-all {
    transition-property: all;
}

.duration-200 {
    transition-duration: 200ms;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

/* Estilos para navegación del sidebar */
.desktop-sidebar ul.flex.w-full.min-w-0.flex-col.gap-1 {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.desktop-sidebar a.flex.w-full.items-center.gap-3 {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    height: auto;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #374151;
}

.desktop-sidebar a.flex.w-full.items-center.gap-3:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.desktop-sidebar a.nav-active {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    font-weight: 600 !important;
}

/* Estilos para botón hamburguesa */
.hamburger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background-color: #1e3a8a;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: none;
}

@media (max-width: 767px) {
    .hamburger {
        display: block;
    }
}

.top-4 {
    top: 1rem;
}

.left-4 {
    left: 1rem;
}

.z-50 {
    z-index: 50;
}

.bg-blue-900 {
    background-color: #1e3a8a;
}

/* Más estilos Tailwind para menú móvil */
.inset-y-0 {
    top: 0;
    bottom: 0;
}

.left-0 {
    left: 0;
}

.z-40 {
    z-index: 40;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bg-sidebar {
    background-color: white;
}

/* Estilos específicos para el sidebar con estructura Tailwind */
.desktop-sidebar .fixed.inset-y-0.z-10.h-svh.w-64.border-r.border-gray-200.bg-white.md\:flex {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10;
    height: 100vh;
    width: 16rem;
    border-right: 1px solid #e5e7eb;
    background-color: white;
    display: flex;
}

/* Asegurar que el contenido del sidebar se muestre */
.desktop-sidebar .flex.h-full.w-full.flex-col.bg-sidebar {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
    background-color: white;
}

/* ========================================
   SIDEBAR Y NAVEGACIÓN
   ======================================== */

/* Sidebar desktop */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid #e5e7eb;
    z-index: 10;
    display: none;
}

/* Ocultar sidebar en móviles para ganar espacio y evitar solapes */
@media (max-width: 767px) {
    .desktop-sidebar { display: none !important; }
    .main-content, .section-container, .page-content { margin-left: 0 !important; width: 100% !important; }
}

@media (min-width: 768px) {
    .desktop-sidebar {
        display: flex !important;
    }
}

/* Asegurar que el sidebar se muestre correctamente */
.desktop-sidebar.md\:block {
    display: block !important;
}

@media (min-width: 768px) {
    .desktop-sidebar.md\:block {
        display: block !important;
    }
    
    /* Forzar visibilidad del sidebar en desktop */
    .desktop-sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Header del sidebar */
.sidebar-header {
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-secondary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-icon span {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-text h2 {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    margin: 0;
}

.logo-text p {
    color: #dbeafe;
    font-size: 0.75rem;
    margin: 0;
}

/* Navegación del sidebar */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
}

.nav-section {
    padding: 0.5rem;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.nav-link.nav-active {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Footer del sidebar */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #f3f4f6;
    background-color: #f9fafb;
    text-align: center;
}

.contact-info {
    margin-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.contact-icon {
    color: var(--color-secondary);
    width: 1rem;
    height: 1rem;
}

.sidebar-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    margin-top: 0.5rem;
}

/* ========================================
   MENÚ MÓVIL
   ======================================== */

/* Botón hamburguesa */
.hamburger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 767px) {
    .hamburger {
        display: block;
    }
    /* Mejoras de tipografía y espaciado para móvil */
    html { font-size: 16px; }
    body { line-height: 1.6; }
    .section-title { font-size: 1.75rem; }
    .section-subtitle { font-size: 1rem; padding: 0 1rem; }
    .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card, .service-card { border-radius: 0.75rem; }
    .sidebar-content { padding: 1rem; }
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(85vw, var(--sidebar-width));
    max-width: 20rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Estilos para el menú móvil con clases Tailwind */
.mobile-menu .flex.h-full.w-full.flex-col {
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: column;
}

.mobile-menu a.flex.w-full.items-center.gap-3 {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    height: auto;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #374151;
}

.mobile-menu a.flex.w-full.items-center.gap-3:hover {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.mobile-menu a.nav-active {
    background-color: #dbeafe !important;
    color: #1e40af !important;
    font-weight: 600 !important;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   SECCIONES PRINCIPALES
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 1rem;
    background: var(--color-primary);
    color: white;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section { padding: 6rem 2rem; }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.85);
}

.hero-content {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    color: #fcd34d;
    font-size: 1.875rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 2.25rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #dbeafe;
    font-weight: 300;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-text {
    font-size: 1.125rem;
    color: #bfdbfe;
    max-width: 64rem;
    margin: 0 auto 2.5rem;
    line-height: 1.625;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ========================================
   BOTONES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* ========================================
   TARJETAS Y CONTENIDO
   ======================================== */

/* Secciones generales */
.section {
    padding: 3rem 0;
}

.section-container {
    width: 100%;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 48rem;
    margin: 0 auto;
}

/* Grid de tarjetas */
.cards-grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

/* Estilos para grids especiales */
.cards-grid[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

@media (max-width: 768px) {
    .cards-grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjetas */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    text-align: center;
    line-height: 1.4;
}

.card-description {
    color: var(--color-text-light);
    line-height: 1.5;
    text-align: center;
    font-size: 0.95rem;
}

/* Estilos para elementos con estilos inline */
.section-title[style*="text-align: left"] {
    text-align: left !important;
}

/* Estilos para listas de especialidades */
.specialty-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.specialty-icon {
    color: var(--color-secondary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.specialty-text {
    color: #374151;
    font-weight: 500;
}

/* Tarjetas de servicios */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-icon {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-icon svg {
    color: white;
    width: 1rem;
    height: 1rem;
}

.service-text {
    color: #374151;
    font-weight: 500;
}

/* ========================================
   SECCIONES ESPECIALES
   ======================================== */

/* Sección de diferenciación */
.differentiation-section {
    background: var(--color-background-light);
}

.differentiation-card {
    position: relative;
    overflow: hidden;
}

.differentiation-image {
    height: 8rem;
    background: linear-gradient(to right, #1e40af, #0ea5e9);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.differentiation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.differentiation-icon {
    color: white;
    width: 3rem;
    height: 3rem;
}

/* Sección de especialización */
.specialization-section {
    background: linear-gradient(to bottom, white, #f9fafb, #f3f4f6);
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.location-tag svg {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

.specialization-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.specialization-image img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    object-position: center;
}

/* Mejoras para imágenes generales */
img {
    max-width: 100%;
    height: auto;
}

/* Estilos para imágenes con overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem;
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.overlay-subtitle {
    color: #dbeafe;
}

/* Estilos para elementos de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* Estilos para elementos de footer */
.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #111827;
    color: white;
    padding: 3rem 1.5rem;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #d1d5db;
    font-size: 0.875rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatUp {
    0% { transform: translateY(16px); opacity: 0; }
    60% { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

.slide-in-left { animation: slideInLeft 0.6s ease-out; }
.slide-in-right { animation: slideInRight 0.6s ease-out; }
.zoom-in { animation: zoomIn 0.5s ease-out; }
.float-up { animation: floatUp 0.7s ease-out; }

/* Estado inicial para animaciones por scroll */
.will-animate {
    opacity: 0;
    transform: translateY(20px);
}

/* ========================================
   UTILIDADES RESPONSIVE
   ======================================== */

/* Ocultar/mostrar elementos según el tamaño de pantalla */
.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md-block {
        display: block;
    }
    
    .md-hidden {
        display: none;
    }
    
    .md-flex {
        display: flex;
    }
}

/* Espaciado responsive */
.responsive-padding {
    padding: 1rem;
}

@media (min-width: 768px) {
    .responsive-padding {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .responsive-padding {
        padding: 3rem;
    }
}

/* Texto responsive */
.responsive-text {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .responsive-text {
        font-size: 1.125rem;
    }
}

/* ========================================
   FAQ STYLES
   ======================================== */

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}

.faq-answer p {
    padding: 1.5rem 2rem;
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-question {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

/* ========================================
   BLOG STYLES
   ======================================== */

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.blog-date {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ========================================
   COMPARISON STYLES
   ======================================== */

.comparison-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparison-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

/* ========================================
   SERVICE CARD STYLES
   ======================================== */

.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
    min-height: 280px;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.1);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-secondary);
    flex-shrink: 0;
}

.service-text {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ========================================
   IMAGE OVERLAY STYLES
   ======================================== */

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem;
}

.overlay-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-card {
        min-height: 320px;
    }
    
    .blog-image {
        height: 150px;
    }
    
    .blog-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .card-content {
        padding: 1.5rem;
        min-height: 180px;
    }
    
    .card-icon {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .comparison-item {
        gap: 0.75rem;
    }
    
    .comparison-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .comparison-icon svg {
        width: 1rem;
        height: 1rem;
    }
    
    /* Ajustes para móvil */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .specialization-image {
        margin-top: 2rem;
    }
    
    .specialization-image img {
        height: 16rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .location-tag {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Mejoras para elementos inline en móvil */
    .section-title[style*="text-align: left"] {
        text-align: center !important;
    }
    
    .specialty-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .responsive-text {
        font-size: 1.25rem;
    }
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */

/* Duplicado de .fade-in eliminado para conservar la animación por keyframes definida arriba */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-info {
    background: #1e40af;
    color: white;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para formularios con errores */
.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Mejoras para el menú móvil */
.menu-open {
    overflow: hidden;
}

/* Estilos para lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}