/* ========================================
   SAR ABOGADOS - CSS OPTIMIZADO Y MODERNO
   ======================================== */

/* Variables CSS - Sistema de colores y espaciado */
:root {
    /* Colores principales - Paleta LUXURY-VERDE-DORADO */
    --color-primary: #1A474F;              /* Azul marino (Color 5) */
    --color-primary-light: #005F61;        /* Teal oscuro (Color 4) */
    --color-secondary: #CFB27E;            /* Dorado (Color 3) */
    --color-secondary-light: #b89a6a;      /* Variación del dorado */
    --color-tertiary: #5B8B83;             /* Verde medio (Color 2) */
    --color-gray-lightest: #EEEEEE;        /* Gris muy claro (Color 1) */
    
    /* Colores adicionales */
    --color-text: #2c3e50;
    --color-text-light: #666;
    --color-white: #ffffff;
    --color-gray-light: #f8f9fa;
    --color-gray-medium: #ddd;
    --color-overlay-dark: rgba(26, 71, 79, 0.7);
    --color-overlay-light: rgba(0, 95, 97, 0.65);

    /* Tipografía */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.8;
    --line-height-heading: 1.2;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Bordes y sombras */
    --border-radius: 8px;
    --border-radius-sm: 3px;
    --border-radius-full: 50%;
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 25px rgba(207, 178, 126, 0.3);

    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Breakpoints */
    --breakpoint-mobile: 768px;
    --container-max-width: 1200px;
}

/* Reset básico mejorado */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevenir scroll horizontal en todos los elementos */
* {
    max-width: 100%;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--color-text);
    font-size: var(--font-size-base);
    padding-top: 4rem;
    overflow-x: hidden;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mejora de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ========================================
   ENLACES GENERALES
   ======================================== */

/* Enlaces por defecto */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Enlaces en secciones con fondo claro */
.contact-cta a,
section.contact-page a,
.content-section a {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.contact-cta a:hover,
section.contact-page a:hover,
.content-section a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Enlaces en footer */
.footer a {
    color: rgba(255, 255, 255, 0.8);
}

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

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    color: var(--color-white);
    z-index: 1000;
    transition: all var(--transition-base);
    background-color: rgba(0, 95, 97, 0.95);
}

header.scrolled {
    min-height: 60px;
    background-color: rgba(26, 71, 79, 0.98);
}

.top-bar {
    background-color: rgba(0, 95, 97, 0.95);
    padding: 0.15rem 0;
    font-size: 0.8rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    will-change: max-height, opacity, transform;
}

header.scrolled .top-bar {
/* ========================================
   SECCIÓN CALL TO ACTION
   ======================================== */

/* Sección "¿Necesitas Asesoría Legal?" */
.contact-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    color: var(--color-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/fondo/fondo_diseño.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-cta p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cta .contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

/* Estilos específicos para la información de contacto en CTA */
.contact-cta .contact-info p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-white) !important;
    font-weight: var(--font-weight-normal);
}

.contact-cta .contact-info p strong {
    color: var(--color-secondary) !important;
    font-weight: var(--font-weight-bold);
    margin-right: var(--spacing-xs);
}

.contact-cta .contact-info p a {
    color: var(--color-white) !important;
    font-weight: var(--font-weight-normal);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-cta .contact-info p a:hover {
    color: var(--color-secondary) !important;
    text-decoration: underline;
}

.contact-cta .btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(207, 178, 126, 0.3);
}

.contact-cta .btn:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(207, 178, 126, 0.4);
}

/* Responsivo para móvil - CTA */
@media (max-width: 768px) {
    .contact-cta {
        padding: var(--spacing-2xl) 0;
    }
    
    .contact-cta .contact-info {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .contact-cta .contact-info p {
        margin-bottom: var(--spacing-xs);
    }
}
    height: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Utilidades de flexbox */
.flex {
    display: flex;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.top-bar a {
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.top-bar a:hover {
    color: var(--color-secondary);
}

/* Estilos específicos para contact-info del topbar */
.top-bar .contact-info {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    width: 100%;
}

/* Separación entre el ícono del teléfono y el número */
.top-bar .contact-link.phone-number {
    gap: 0.25rem;
}

.top-bar .contact-link.phone-number svg {
    flex-shrink: 0;
}

.top-bar .contact-link .phone-text {
    margin-left: 0.25rem;
}

/* Separación entre el ícono del email y el texto */
.top-bar .contact-link.email-address {
    gap: 0.25rem;
}

.top-bar .contact-link.email-address svg {
    flex-shrink: 0;
}

.top-bar .contact-link .email-text {
    margin-left: 0.25rem;
}

/* Iconos */
.h-3 {
    height: 0.75rem;
}

.w-3 {
    width: 0.75rem;
}

.mr-1\.5 {
    margin-right: 0.375rem;
}

/* Navegación principal */
.main-nav {
    background-color: rgba(26, 71, 79, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

header.scrolled .main-nav {
    background-color: rgba(26, 71, 79, 0.98);
    box-shadow: var(--shadow-md);
    padding: 0.75rem var(--spacing-sm);
    min-height: 60px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Contenedor del logo */
.logo-container {
    display: flex;
    align-items: center;
}

/* Logo principal */
.logo-main {
    height: 65px;
    max-width: 400px;
    margin-left: 1px;
}

/* Logo símbolo - AL LADO IZQUIERDO */
.logo-symbol {
    height: 65px;
    max-width: 80px;
    margin-right: 1px;
}

/* Contenedor de navegación principal */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Menú de navegación */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    gap: var(--spacing-sm);
}

.nav-menu li {
    margin-left: var(--spacing-sm);
}

.nav-menu li a {
    color: var(--color-white);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    text-decoration: none;
    color: var(--color-secondary);
}

/* Responsivo para móviles - FORZADO */
@media (max-width: 768px) {
    .main-nav .nav-menu {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 71, 79, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 20px 0;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
        z-index: 101;
        border: 1px solid rgba(207, 178, 126, 0.2);
        border-top: none;
    }
    
    .main-nav .nav-menu.active {
        display: flex; /* Se muestra cuando tiene clase 'active' */
    }
    
    .main-nav .nav-menu li {
        margin: 0;
        text-align: center;
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav .nav-menu li:last-child {
        border-bottom: none;
    }

    .logo-main {
        height: 60px;
        max-width: 240px;
    }

    /* Logo en hero - MÓVIL */
    .hero-logo {
        width: 150px;
    }

    /* BOTÓN HAMBURGUESA VISIBLE EN MÓVIL - CONTRASTE MEJORADO */
    #menu-toggle {
        display: block !important; /* FORZADO */
        padding: 12px;
        background: rgba(255, 255, 255, 0.1); /* Fondo semi-transparente */
        border: 2px solid rgba(255, 255, 255, 0.3); /* Borde visible */
        border-radius: 6px;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Sombra para definición */
    }
    
    #menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: var(--color-secondary);
        box-shadow: 0 4px 15px rgba(207, 178, 126, 0.3);
    }
    
    /* LÍNEAS DEL HAMBURGUESA - MÁXIMO CONTRASTE FORZADO */
    .hamburger span {
        display: block;
        height: 4px; /* MÁS GRUESO */
        width: 28px; /* MÁS ANCHO */
        background: #ffffff !important; /* BLANCO PURO FORZADO */
        border-radius: 2px;
        margin: 3px 0; /* MÁS ESPACIO */
        transition: all var(--transition-base);
        transform-origin: center;
        /* SOMBRA FUERTE PARA MÁXIMA VISIBILIDAD */
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 8px rgba(255, 255, 255, 0.3);
    }
    
    #menu-toggle:hover .hamburger span {
        background: var(--color-secondary) !important; /* DORADO EN HOVER */
        box-shadow:
            0 2px 4px rgba(207, 178, 126, 0.6),
            0 0 8px rgba(207, 178, 126, 0.4);
    }
    
    /* MOSTRAR MENÚ ACTIVADO */
    .main-nav .nav-menu.active {
        display: flex !important;
    }
}

/* Desktop - ocultar botón hamburguesa */
@media (min-width: 769px) {
    #menu-toggle {
        display: none;
    }
}

/* Propiedades generales del botón */
#menu-toggle {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-base);
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

#menu-toggle:hover {
    color: var(--color-secondary);
}

/* Hamburger menu icon */
.hamburger {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-white);
    border-radius: 2px;
    margin: 2px 0;
    transition: all var(--transition-base);
    transform-origin: center;
}

#menu-toggle:hover .hamburger span {
    background-color: var(--color-secondary);
}

/* Transform hamburger to X when menu is active */
#menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */

main {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

/* Hero Section optimizada */
.hero {
    background: linear-gradient(135deg, var(--color-overlay-dark) 0%, var(--color-overlay-light) 100%),
        url('../images/fondo/fondo_diseño.webp') center/cover no-repeat;
    padding: 12rem var(--spacing-sm) 10rem;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 1;
}

/* Logo en el hero */
.hero-logo {
    height: auto;
    max-width: 100%;
    width: 250px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 100;
    line-height: var(--line-height-heading);
    color: var(--color-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out;
}

.hero-content .tagline {
    font-style: italic;
    color: var(--color-secondary);
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    margin-bottom: var(--spacing-xl);
    font-weight: var(--font-weight-light);
    letter-spacing: 1.5px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: var(--spacing-lg);
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: var(--font-weight-light);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Botones modernos */
.btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::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 var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 0.9rem 2rem;
    font-size: 1rem;
    transition: all var(--transition-base);
}

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

/* ========================================
   SECCIONES DE CONTENIDO
   ======================================== */

.intro {
    padding: var(--spacing-3xl) var(--spacing-sm);
    background-color: var(--color-gray-light);
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.intro h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-light);
    position: relative;
    display: inline-block;
}

.intro h2::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

.intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
    color: var(--color-text-light);
}
/* ========================================
   CONTENEDORES ORGANIZADOS PARA LAYOUT INDEX
   ======================================== */

/* Layout de contenedores organizados */
.content-containers {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    margin: 0;
}

.content-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--color-secondary);
    transition: all var(--transition-base);
}

.content-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Secciones específicas dentro de los containers */
.intro-section h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    position: relative;
}

.intro-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Grid de servicios compactos */
.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-card {
    background: rgba(207, 178, 126, 0.05);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(207, 178, 126, 0.1);
}

.service-card:hover {
    background: rgba(207, 178, 126, 0.1);
    transform: translateY(-2px);
    border-color: var(--color-secondary);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Blog preview */
.blog-preview {
    margin-top: var(--spacing-lg);
}

.blog-preview h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
}

.blog-preview h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.blog-post {
    background: rgba(207, 178, 126, 0.05);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--color-tertiary);
    transition: all var(--transition-base);
}

.blog-post:hover {
    background: rgba(207, 178, 126, 0.1);
    border-left-color: var(--color-secondary);
}

.blog-post h4 {
    margin-bottom: var(--spacing-sm);
}

.blog-post h4 a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.blog-post h4 a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.post-excerpt {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Call to actions */
.services-cta, .blog-cta {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Móvil - todos en una columna */
@media (max-width: 768px) {
    .content-containers {
        padding: var(--spacing-lg) 0;
    }
    
    .content-box {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .services-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: var(--spacing-sm);
    }
    
    .blog-post {
        padding: var(--spacing-sm);
    }
    
    .intro-section h2,
    .blog-preview h3 {
        font-size: 1.4rem;
    }
/* Responsive design para sección de Ruby en móvil - específico */
@media (max-width: 768px) {
    .ruby-profile-section[style*="padding: 4rem 0"] {
        padding: 2rem 0 !important;
    }
    
    .ruby-profile-section div[style*="grid-template-columns: 2fr 3fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-lg) !important;
        text-align: center !important;
    }
    
    .ruby-profile-section div[style*="width: 300px"][style*="height: 400px"] {
        width: 250px !important;
        height: 320px !important;
        margin: 0 auto;
    }
    
    .ruby-profile-section h2[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .ruby-profile-section p[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
        text-align: center;
    }
}
}

.services-overview {
    padding: var(--spacing-3xl) var(--spacing-sm);
    background-color: var(--color-white);
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.services-overview h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-light);
    position: relative;
    display: inline-block;
}

.services-overview h2::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.overview-item {
    padding: 2.5rem var(--spacing-sm);
    border: none;
    border-radius: var(--border-radius);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.overview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.overview-item:hover::before {
    transform: scaleX(1);
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.overview-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
}

.overview-item p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Call to Action Section */
.contact-cta {
    padding: 2.5rem 0;
    background: linear-gradient(rgba(26, 71, 79, 0.8), rgba(0, 95, 97, 0.8)), url('../images/fondo/fondo_asesoria.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--color-white);
    text-align: center;
    position: relative;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.contact-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-light);
}

.contact-cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    opacity: 0.95;
}
/* ========================================
   RESPONSIVE FIX - CONTACT CTA MÓVIL
   ======================================== */

/* Fix para background-attachment en móviles */
@media (max-width: 768px) {
    .contact-cta {
        background-attachment: scroll; /* Cambiar de fixed a scroll en móviles */
        background-position: center center; /* Asegurar centrado */
        padding: 2rem 0; /* Ajustar padding para móvil */
    }
    
    .contact-cta h2 {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Mejor responsive para títulos */
    }
    
    .contact-cta p {
        font-size: 1rem; /* Reducir tamaño de texto en móvil */
    }
}

/* ========================================

/* ========================================
   PÁGINAS ESPECÍFICAS
   ======================================== */

/* Página Acerca de - Solución al superposición */
.about-page {
    padding: 6rem 0 4rem 0; /* Espacio superior para evitar superposición */
    min-height: calc(100vh - 200px); /* Altura mínima */
    margin-top: 0; /* Eliminar margen superior */
}

.about-page .page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.about-page .page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-light);
}

.about-page .page-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* LAYOUT VERTICAL REORGANIZADO PARA ACERCA.HTML */
.about-sections-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin-bottom: var(--spacing-lg);
}

/* CUADROS INDIVIDUALES - MISIÓN, VISIÓN Y VALORES */
.mission-box, .vision-box, .values-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

/* ESTILOS ESPECÍFICOS PARA MISIÓN */
.mission-box {
    border-left: 4px solid var(--color-secondary);
}

/* ESTILOS ESPECÍFICOS PARA VISIÓN */
.vision-box {
    border-left: 4px solid var(--color-tertiary);
}

/* ESTILOS ESPECÍFICOS PARA VALORES */
.values-box {
    border-top: 4px solid var(--color-secondary);
}

/* TÍTULOS DE LOS CUADROS */
.mission-box h2, .vision-box h2, .values-box h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    word-wrap: break-word;
}

/* TEXTOS DE LOS CUADROS */
.mission-box p, .vision-box p {
    color: var(--color-text-light);
    line-height: 1.7;
    text-align: center;
    font-size: 1.1rem;
    word-wrap: break-word;
}

/* Lista de valores */
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-bottom: 1px solid #eee;
    transition: all var(--transition-base);
    display: flex;  /* Usar flexbox para separar checkmark del texto */
    align-items: center;
    justify-content: center;  /* Centrar elementos */
}

.values-list li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
    margin-right: 0.75rem;  /* Espacio solo entre checkmark y texto */
    font-size: 1rem;
}

.values-list li:hover {
    background-color: rgba(207, 178, 126, 0.1);
    transform: translateX(5px);
}

/* DESKTOP - Layout en dos columnas para misión y visión */
@media (min-width: 769px) {
    .about-sections-vertical {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .mission-box {
        grid-column: 1;
    }
    
    .vision-box {
        grid-column: 2;
    }
    
    .values-box {
        grid-column: 1 / -1;  /* Ocupa toda la fila */
    }
}

/* MÓVIL - Layout vertical completo sin overflow */
@media (max-width: 768px) {
    .about-sections-vertical {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        gap: var(--spacing-md);
        padding: 0;
        margin: 0;
    }
    
    .mission-box, .vision-box, .values-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-md);
        margin: 0;
        font-size: 0.95rem;
    }
    
    .mission-box h2, .vision-box h2, .values-box h2 {
        font-size: 1.3rem !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .mission-box p, .vision-box p {
        font-size: 1rem !important;
        line-height: 1.6;
    }
    
    .values-list li {
        font-size: 0.95rem;
        padding: var(--spacing-sm);
    }
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    border-bottom: 1px solid #eee;
    transition: all var(--transition-base);
    display: flex;  /* Usar flexbox para separar checkmark del texto */
    align-items: center;
}

.values-list li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
    margin-right: 0.75rem;  /* Espacio solo entre checkmark y texto */
    font-size: 1rem;
}

.values-list li:hover {
    background-color: rgba(207, 178, 126, 0.1);
    transform: translateX(5px);
}

/* Sección del equipo */
.team-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    border-radius: var(--border-radius);
    text-align: center;
}

.team-section h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

.team-member {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.member-image {
    position: relative;
}

.member-image img {
    width: 130px;
    height: 170px;
    border-radius: var(--border-radius);
    object-fit: cover;
    object-position: center 30%;  /* Más cerca del rostro */
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);  /* Zoom reducido para evitar overflow */
}

.member-placeholder {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 4px solid var(--color-secondary);
}

.member-info h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.member-title {
    color: var(--color-secondary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.member-description {
    color: var(--color-text-light);
    line-height: 1.6;
    text-align: left;
}

/* Responsive para página acerca de - LAYOUT VERTICAL OPTIMIZADO */
@media (max-width: 768px) {
    .about-page {
        padding: 4rem 0 2rem 0;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .about-page .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 var(--spacing-sm) !important;
        overflow-x: hidden !important;
        margin: 0 auto !important;
    }
    
    .team-section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .team-member {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-md) !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .member-image {
        width: 100% !important;
        max-width: 110px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .member-image img {
        transform: none !important;
        width: 100px !important;
        height: 130px !important;
        max-width: 100px !important;
        max-height: 130px !important;
        object-fit: cover !important;
    }
    
    .member-info {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .member-info h3 {
        font-size: 1.3rem !important;
        word-wrap: break-word !important;
    }
    
    .member-title {
        font-size: 1rem !important;
        word-wrap: break-word !important;
    }
    
    .member-description {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
    }
    
    .page-header {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-md) 0 !important;
        overflow-x: hidden !important;
    }
    
    .page-header h1 {
        font-size: clamp(1.6rem, 5vw, 2rem) !important;
        word-wrap: break-word !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
    }
    
    .page-intro {
        font-size: 0.95rem !important;
        padding: 0 var(--spacing-sm) !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        line-height: 1.6 !important;
    }
    
    /* ASEGURAR QUE TODOS LOS ELEMENTOS SE CONTENGAN */
    .about-page * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
    }
    
    /* PREVENIR ELEMENTOS QUE PUEDAN CAUSAR OVERFLOW */
    .about-page img,
    .about-page video,
    .about-page iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Página Servicios - Solución al superposición */
.services-page {
    padding: 6rem 0 4rem 0; /* Espacio superior para evitar superposición */
    min-height: calc(100vh - 200px); /* Altura mínima */
    margin-top: 0; /* Eliminar margen superior */
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.services-page .page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.services-page .page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-light);
}

.services-page .page-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Grid detallado de servicios */
.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(207, 178, 126, 0.1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.service-icon {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-base);
}

.service-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: var(--border-radius-full);
}

.service-item:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-content h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

.service-content > p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-size: 1rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
    transition: all var(--transition-base);
}

.service-content li:last-child {
    border-bottom: none;
}

.service-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    transition: transform var(--transition-base);
}

.service-content li:hover {
    background-color: rgba(207, 178, 126, 0.05);
    padding-left: 2rem;
    color: var(--color-primary);
}

.service-content li:hover::before {
    transform: translateX(3px);
}

/* Call to Action para servicios */
.services-contact-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius);
    color: var(--color-white);
    position: relative;
}

.services-contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.services-contact-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
}

.services-contact-cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    opacity: 0.95;
}

.services-contact-cta .btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.services-contact-cta .btn:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive para página servicios */
@media (max-width: 768px) {
    .services-page {
        padding: 4rem 0 2rem 0;
    }
    
    .services-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: var(--spacing-md);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .services-contact-cta {
        padding: var(--spacing-lg);
    }
}

/* Página Contacto - DISEÑO MODERNO Y ORGANIZADO */
.contact-page {
    padding: 6rem 0 4rem 0;
    min-height: calc(100vh - 200px);
    margin-top: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow-x: hidden;
}

/* Decoración de fondo */
.contact-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(207, 178, 126, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 71, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 95, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-page .page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(207, 178, 126, 0.05) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(207, 178, 126, 0.2);
    position: relative;
    z-index: 1;
}

.contact-page .page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-light);
    position: relative;
}

.contact-page .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: 2px;
}

.contact-page .page-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Contenido principal reorganizado */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

/* Formulario de contacto con diseño moderno */
.contact-form-section {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(207, 178, 126, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), var(--color-secondary));
}

.contact-form-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

/* Estilos de formulario mejorados */
.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-base);
    background-color: var(--color-white);
    position: relative;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(207, 178, 126, 0.1);
    transform: translateY(-2px);
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label {
    color: var(--color-secondary);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Información de contacto moderna */
.contact-info-section {
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(207, 178, 126, 0.05) 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(207, 178, 126, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
}

.contact-info-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    text-align: center;
}

/* Elementos de contacto individuales */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(207, 178, 126, 0.1);
    transition: all var(--transition-base);
    position: relative;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--color-secondary);
    background: rgba(207, 178, 126, 0.1);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-full);
    width: 40px;
    height: 40px;
    transition: all var(--transition-base);
}

.contact-item:hover svg {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.contact-item strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-item a:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

/* Mapa estilizado */
.map-section {
    margin-top: var(--spacing-xl);
}

.map-section h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: var(--font-weight-semibold);
}

.map-placeholder {
    background: var(--color-white);
    border-radius: var(--border-radius);
    border: 2px solid rgba(207, 178, 126, 0.2);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-container {
    height: 200px;
    background: linear-gradient(135deg, rgba(207, 178, 126, 0.1) 0%, rgba(207, 178, 126, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-content {
    text-align: center;
    color: var(--color-primary);
}

.map-content p {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.map-content small {
    color: var(--color-text-light);
}

/* Botón de envío mejorado */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.btn-submit::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 var(--transition-slow);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(207, 178, 126, 0.3);
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Responsive design para móvil - Widgets separados y compactos */
@media (max-width: 768px) {
    /* Forzar contenedor principal */
    .contact-content,
    section.contact-page .contact-content,
    .contact-content.grid {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-xl) !important;
        padding: 0 var(--spacing-sm) !important;
        margin-bottom: var(--spacing-xl) !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Widgets con dimensiones forzadas y compactas */
    .contact-form-section,
    .contact-info-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-lg) !important; /* Padding más compacto */
        margin-bottom: var(--spacing-md) !important;
        border-radius: var(--border-radius) !important;
        box-shadow: var(--shadow-sm) !important;
        border: 1px solid rgba(207, 178, 126, 0.1) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Formulario primero */
    .contact-form-section {
        background: linear-gradient(135deg, var(--color-white) 0%, rgba(207, 178, 126, 0.02) 100%) !important;
        order: 1 !important;
        margin-top: 0 !important;
    }
    
    /* Información después */
    .contact-info-section {
        background: var(--color-white) !important;
        order: 2 !important;
        margin-top: 0 !important;
    }
    
    /* Títulos más compactos */
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.4rem !important;
        margin-bottom: var(--spacing-md) !important;
        padding-bottom: var(--spacing-sm) !important;
    }
    
    /* ELEMENTOS DE CONTACTO - FORZAR VERTICAL */
    .contact-details {
        display: flex !important;
        flex-direction: column !important; /* FORZAR columnas una debajo de otra */
        gap: var(--spacing-md) !important;
        margin-bottom: var(--spacing-lg) !important;
    }
    
    .contact-item {
        display: flex !important;
        flex-direction: column !important; /* FORZAR vertical dentro de cada item */
        align-items: flex-start !important; /* Alinear al inicio */
        gap: var(--spacing-sm) !important; /* Espacio entre icono y texto */
        padding: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-sm) !important;
        border-radius: var(--border-radius-sm) !important;
        background: var(--color-gray-lightest) !important;
        border-left: 3px solid var(--color-secondary) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important; /* Evitar desbordamiento de texto */
    }
    
    .contact-item svg {
        width: 30px !important;
        height: 30px !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        margin-bottom: var(--spacing-xs) !important; /* Espacio debajo del icono */
    }
    
    .contact-item div {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .contact-item strong {
        display: block !important;
        margin-bottom: var(--spacing-xs) !important;
        color: var(--color-primary) !important;
        font-size: 1rem !important;
    }
    
    .contact-item p {
        margin: 0 !important;
        color: var(--color-text-light) !important;
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Formulario más compacto */
    .form-group {
        margin-bottom: var(--spacing-md) !important;
    }
    
    .form-input,
    .form-textarea {
        padding: var(--spacing-sm) !important;
        font-size: 0.95rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .form-textarea {
        min-height: 80px !important;
    }
    
    .btn-submit {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mapa más compacto */
    .map-container {
        height: 120px !important;
    }
    
    /* PREVENIR CUALQUIER DISPLAY INLINE O GRID QUE CAUSE PROBLEMAS */
    .contact-form-section * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .contact-info-section * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .contact-item svg {
        width: 35px;
        height: 35px;
        padding: 0.5rem;
    }
    
    .map-container {
        height: 150px;
    }
    
    .btn-submit {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 4rem 0 2rem 0;
    }
    
    .contact-page .page-header {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .contact-page .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-page .page-intro {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
    
    .contact-form-section,
    .contact-info-section {
        padding: var(--spacing-md);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

/* Página Blog - Solución al superposición */
.blog-page {
    padding: 6rem 0 4rem 0; /* Espacio superior para evitar superposición */
    min-height: calc(100vh - 200px); /* Altura mínima */
    margin-top: 0; /* Eliminar margen superior */
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.blog-page .page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.blog-page .page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-light);
}

.blog-page .page-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Página Privacidad - Solución al superposición */
.privacy-page {
    padding: 6rem 0 4rem 0; /* Espacio superior para evitar superposición */
    min-height: calc(100vh - 200px); /* Altura mínima */
    margin-top: 0; /* Eliminar margen superior */
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
}

.privacy-page .page-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-light) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.privacy-page .page-header h1 {
    color: var(--color-primary);
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-light);
}

.privacy-page .page-intro {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========================================
   PÁGINA ABOGADOS - EQUIPO COMPLETO
   ======================================== */

/* Sección del líder del equipo (encabezada sin banner) */
.team-leader-section {
    margin-bottom: var(--spacing-2xl);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.leader-member {
    background: linear-gradient(135deg, rgba(207, 178, 126, 0.08) 0%, rgba(207, 178, 126, 0.15) 100%);
    border: 2px solid var(--color-secondary);
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    max-width: 100%;
}

.leader-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light), var(--color-secondary));
    transform: scaleX(1);
}

/* Grid del equipo de abogados */
.lawyers-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* Miembro individual del equipo */
.lawyer-member {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(207, 178, 126, 0.1);
}

.lawyer-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.lawyer-member:hover::before {
    transform: scaleX(1);
}

.lawyer-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

/* Imagen del abogado */
.lawyer-image {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.lawyer-image img {
    width: 140px;
    height: 140px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    object-position: center 30%;
    border: 3px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
    margin: 0 auto;
    transition: transform var(--transition-base);
}

.lawyer-member:hover .lawyer-image img {
    transform: scale(1.05);
}

/* Información del abogado */
.lawyer-info {
    text-align: center;
}

.lawyer-info h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
}

.lawyer-title {
    color: var(--color-secondary);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.lawyer-specialty {
    color: var(--color-primary-light);
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.lawyer-description {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    text-align: left;
}

.lawyer-contact {
    background: rgba(207, 178, 126, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    text-align: left;
}

.lawyer-contact p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-text);
}

.lawyer-contact strong {
    color: var(--color-primary);
}

/* Call to Action del equipo */
.team-contact-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius);
    color: var(--color-white);
    position: relative;
}

.team-contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.team-contact-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
}

.team-contact-cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    opacity: 0.95;
}

.team-contact-cta .btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.team-contact-cta .btn:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive para todas las páginas restantes */
@media (max-width: 768px) {
    .contact-page,
    .blog-page,
    .privacy-page {
        padding: 4rem 0 2rem 0;
    }
    
    .contact-page .page-header h1,
    .blog-page .page-header h1,
    .privacy-page .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-page .page-intro,
    .blog-page .page-intro,
    .privacy-page .page-intro {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
}

/* ========================================
   COMPONENTES ADICIONALES
   ======================================== */

/* Grid de sobre nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Valores */
.values ul {
    list-style: none;
    padding: 0;
}

.values li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #eee;
    transition: all var(--transition-base);
}

.values li:hover {
    background-color: rgba(207, 178, 126, 0.1);
    padding-left: var(--spacing-sm);
}

/* Equipo */
.about .team {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.member {
    text-align: center;
    max-width: 300px;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius-full);
    margin-bottom: var(--spacing-sm);
    transition: transform var(--transition-base);
}

.member:hover img {
    transform: scale(1.05);
}

/* Servicios */
.services .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.service {
    padding: var(--spacing-xl) var(--spacing-sm);
    border: none;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition-base);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.service:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.service p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact form {
    max-width: none;
}

.contact label {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.contact input,
.contact textarea {
    width: 100%;
    padding: var(--spacing-xs);
    margin-top: 0.5rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: all var(--transition-base);
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(207, 178, 126, 0.1);
}

.contact-info {
    margin-top: 0;
    text-align: left;
}

.contact-info h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.map-placeholder {
    margin-top: var(--spacing-sm);
}

/* Blog - Diseño Moderno */
.blog-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
}

/* Contenido Principal del Blog */
.main-content {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(207, 178, 126, 0.1);
}

.posts-container {
    display: grid;
    gap: var(--spacing-lg);
}

.post {
    background: var(--color-white);
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.post h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 1.4rem;
    line-height: 1.3;
}

.post h2 a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post h2 a:hover {
    color: var(--color-secondary);
}

.post .post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.post .post-category {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
}

.post .post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post .post-excerpt {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.read-more {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition-fast);
}

.read-more:hover {
    color: var(--color-secondary);
}

.read-more::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Sidebar Moderno */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Widgets del Sidebar */
.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(207, 178, 126, 0.1);
    transition: all var(--transition-base);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-widget h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--color-secondary);
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

/* Categorías */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: var(--spacing-xs);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-normal);
}

.category-list a:hover {
    background: rgba(207, 178, 126, 0.1);
    color: var(--color-primary);
    padding-left: var(--spacing-sm);
}

.category-count {
    background: var(--color-gray-light);
    color: var(--color-text-light);
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.category-list a:hover .category-count {
    background: var(--color-secondary);
    color: var(--color-white);
}

/* Categoría Activa */
.category-list a.active {
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
}

.category-list a.active .category-count {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Artículos Recientes */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-gray-light);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    text-decoration: none;
    color: var(--color-text);
    transition: color var(--transition-fast);
    display: block;
}

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

.recent-posts h4 {
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.post-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Contacto Sidebar */
.sidebar-contact {
    text-align: center;
}

.sidebar-contact p {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.sidebar-contact .btn {
    width: 100%;
    justify-content: center;
}

/* Paginación Moderna */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.pagination-btn {
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-semibold);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--color-text-light);
    font-weight: var(--font-weight-semibold);
    padding: 0 var(--spacing-sm);
}

/* Loading State */
.loading-posts {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-text-light);
}

/* Responsive Design - Móvil Optimizado */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal completamente */
    body {
        overflow-x: hidden;
    }
    
    .blog-page {
        overflow-x: hidden;
    }
    
    .blog-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        max-width: 100vw; /* Forzar que no exceda el ancho de viewport */
        overflow-x: hidden;
        /* Orden: Sidebar primero, luego Main Content, luego Widget Contacto */
    }
    
    /* Mantener sidebar primero en móvil */
    .blog-sidebar {
        order: 1;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .main-content {
        order: 2;
        padding: var(--spacing-md);
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box; /* Incluir padding en el ancho */
    }
    
    .sidebar-widget {
        padding: var(--spacing-md);
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .post {
        padding: var(--spacing-md);
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .post h2 {
        font-size: 1.2rem;
        word-wrap: break-word; /* Romper palabras largas */
        overflow-wrap: break-word;
    }
    
    /* Widget de asesoría legal al final en móvil */
    .blog-sidebar .sidebar-widget:last-child {
        order: 3;
        margin-top: var(--spacing-lg);
    }
    
    /* Optimizaciones adicionales para móvil */
    .category-list a {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-xs);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .recent-posts li {
        padding: var(--spacing-sm);
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }
    
    .recent-posts h4 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        max-width: 100%;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: var(--spacing-xs);
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Prevenir overflow en todos los elementos de texto */
    .sidebar-widget h3,
    .category-list,
    .recent-posts,
    .sidebar-contact {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* Asegurar que las imágenes no causen overflow */
    .post img,
    .sidebar-widget img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet y Desktop - Mantener diseño original */
@media (min-width: 769px) {
    .blog-content {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: var(--spacing-2xl);
    }
    
    .blog-sidebar {
        order: 2; /* Sidebar a la derecha en desktop */
    }
    
    .main-content {
        order: 1; /* Contenido principal a la izquierda en desktop */
    }
}

/* Política de privacidad */
.privacy {
    padding: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.privacy h1 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.privacy h2 {
    margin-top: var(--spacing-lg);
    color: var(--color-primary-light);
}

.privacy p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 0 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--color-primary-light);
    margin-top: var(--spacing-lg);
}

.footer-bottom a {
    color: var(--color-secondary);
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de aparición en scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states mejorados para accesibilidad */
*:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN MEJORADO
   ======================================== */

@media (max-width: 1024px) {
    .hero {
        padding: 8rem var(--spacing-sm) 6rem;
        background-attachment: scroll;
        /* Mejor para móviles */
    }

    .hero-logo {
        width: 200px;
    }

    .intro h2::before,
    .services-overview h2::before {
        display: none;
    }

    .intro h2,
    .services-overview h2 {
        font-size: 2rem;
    }
}

@media (max-width: var(--breakpoint-mobile)) {
    .top-bar {
        display: none;
    }
}

/* Mejor soporte para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .overview-item:hover {
        transform: none;
    }

    .service:hover {
        transform: none;
    }

    .member:hover {
        transform: none;
    }
}

/* Print styles */
@media print {

    header,
    .hero,
    .contact-cta,
    footer {
        display: none;
    }

    .intro,
    .services-overview {
        padding: var(--spacing-sm);
    }

    /* ========================================
     NUEVAS FUNCIONALIDADES - JAVASCRIPT
     ======================================== */

    /* Notificaciones */
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
        border-radius: var(--border-radius);
        color: white;
        font-weight: var(--font-weight-semibold);
        z-index: 10000;
        max-width: 300px;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        opacity: 0;
    }

    .notification.show {
        transform: translateX(0);
        opacity: 1;
    }

    .notification-success {
        background: linear-gradient(135deg, #28a745, #20c997);
        border-left: 4px solid #1e7e34;
    }

    .notification-error {
        background: linear-gradient(135deg, #dc3545, #e74c3c);
        border-left: 4px solid #bd2130;
    }

    .notification-info {
        background: linear-gradient(135deg, #17a2b8, #138496);
        border-left: 4px solid #117a8b;
    }

    /* Validación de formularios */
    .form-group.error input,
    .form-group.error textarea {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        background-color: #fff5f5;
    }

    .field-error {
        display: block;
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 0.25rem;
        font-weight: var(--font-weight-normal);
    }

    .form-control.error {
        border-color: #dc3545;
    }

    .form-control.success {
        border-color: #28a745;
        background-color: #f8fff8;
    }

    /* Animaciones de entrada */
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .animated {
        opacity: 1 !important;
        transform: translate(0, 0) !important;
    }

    /* Estados de botones */
    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        pointer-events: none;
    }

    button.loading {
        position: relative;
        color: transparent !important;
    }

    button.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: translate(-50%, -50%) rotate(0deg);
        }

        100% {
            transform: translate(-50%, -50%) rotate(360deg);
        }
    }

    /* Accesibilidad - estados de focus mejorados */
    .post-link:focus,
    .read-more:focus,
    button:focus,
    input:focus,
    textarea:focus {
        outline: 2px solid var(--color-secondary);
        outline-offset: 2px;
    }

    /* Menú móvil - mejoras de accesibilidad */
    .main-nav .nav-menu.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .main-nav .nav-menu.show li {
        margin: var(--spacing-xs) 0;
    }

    .main-nav .nav-menu.show a {
        color: var(--color-white);
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-sm);
        transition: background-color var(--transition-fast);
    }

    .main-nav .nav-menu.show a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Posts del blog - mejoras */
    .post {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-md);
        background: var(--color-white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
        transition: transform var(--transition-base), box-shadow var(--transition-base);
        opacity: 0;
        transform: translateY(20px);
    }

    .post:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .post h2 {
        margin-bottom: var(--spacing-sm);
    }

    .post-link {
        color: var(--color-primary);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        transition: color var(--transition-fast);
    }

    .post-link:hover {
        color: var(--color-secondary);
    }

    .post .date {
        color: var(--color-text-light);
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
        font-weight: var(--font-weight-normal);
    }

    .excerpt {
        line-height: var(--line-height-base);
        margin-bottom: var(--spacing-md);
    }

    .read-more {
        color: var(--color-secondary);
        text-decoration: none;
        font-weight: var(--font-weight-semibold);
        transition: color var(--transition-fast);
    }

    .read-more:hover {
        color: var(--color-secondary-light);
    }

    /* Formulario mejorado */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-control {
        width: 100%;
        padding: var(--spacing-sm);
        border: 2px solid var(--color-gray-medium);
        border-radius: var(--border-radius);
        font-size: var(--font-size-base);
        transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
        background-color: var(--color-white);
    }

    .form-control:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.2rem rgba(26, 71, 79, 0.25);
        outline: none;
    }

    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }

    /* Estados de validación */
    .form-control.is-valid {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.3-.3L5.8 4.2l3.2-3.2.3.3L5.8 7.2l-3.2-3.2z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 7.4 5.8 6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    }

    /* Transiciones globales suaves */
    .smooth-transition {
        transition: all var(--transition-base);
    }

    /* Mejoras de rendimiento */
    * {
        box-sizing: border-box;
    }

    /* Prefers reduced motion */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .post {
            transition: none;
        }

        .fade-in-up,
        .fade-in-left,
        .fade-in-right {
            transition: none;
            opacity: 1;
            transform: none;
        }
    }

    /* Estilos de impresión */
    @media print {
        * {
            color: black !important;
            background: white !important;
        }
    }
}
/* ========================================
   PÁGINAS INDIVIDUALES DE ABOGADOS
   ======================================== */

/* Breadcrumb navigation */
.breadcrumb {
    margin: 6rem 0 2rem 0;
    padding: 0 var(--spacing-sm);
}

.breadcrumb a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

/* Página de perfil individual */
.lawyer-profile-page {
    padding: 6rem 0 4rem 0;
    background: linear-gradient(135deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    min-height: calc(100vh - 200px);
}

/* Header del perfil */
.profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    align-items: center;
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.profile-image-section {
    text-align: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    object-position: center 30%;
    border: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.profile-info-section h1 {
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-bold);
}

.profile-title {
    color: var(--color-secondary);
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.profile-specialty {
    color: var(--color-primary-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.profile-contact {
    background: rgba(207, 178, 126, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--color-secondary);
}

.profile-contact p {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.profile-contact strong {
    color: var(--color-primary);
}

/* Secciones del perfil */
.profile-section {
    background: var(--color-white);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-secondary);
}

.profile-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: var(--spacing-xs);
}

.profile-content {
    line-height: 1.8;
    color: var(--color-text-light);
}

.profile-content p {
    margin-bottom: var(--spacing-sm);
}

/* Elementos educativos */
.education-item {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(207, 178, 126, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--color-tertiary);
}

.education-item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.education-item p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.studies-list {
    list-style: none;
    padding: 0;
}

.studies-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-sm);
    position: relative;
    line-height: 1.6;
}

.studies-list li::before {
    content: '•';
    color: var(--color-secondary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Timeline de experiencia */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.experience-item {
    padding: var(--spacing-md);
    background: rgba(207, 178, 126, 0.05);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--color-tertiary);
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--color-white);
}

.experience-item h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
}

.experience-item p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.experience-item strong {
    color: var(--color-primary);
}

/* Sección de idiomas */
.languages-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.language-item {
    padding: var(--spacing-md);
    background: rgba(207, 178, 126, 0.05);
    border-radius: var(--border-radius-sm);
    border: 2px solid rgba(207, 178, 126, 0.2);
}

.language-item h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
}

.language-item p {
    margin-bottom: var(--spacing-xs);
}

/* Call to Action del perfil */
.profile-contact-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius);
    color: var(--color-white);
    position: relative;
}

.profile-contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
}

.profile-contact-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
}

.profile-contact-cta p {
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.profile-contact-cta .btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.profile-contact-cta .btn:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.profile-contact-cta .btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.profile-contact-cta .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Responsive para páginas de perfil */
@media (max-width: 768px) {
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-section {
        padding: var(--spacing-lg);
    }
    
    .experience-timeline {
        gap: var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-contact-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}
/* ========================================
   TARJETAS CLICKABLES DE ABOGADOS
   ======================================== */

/* Enlaces de tarjetas de abogados */
.lawyer-member-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.lawyer-member-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Botón "Ver Perfil Completo" */
.profile-cta {
    margin-top: var(--spacing-sm);
    text-align: center;
}

.btn-profile {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    display: inline-block;
    transition: all var(--transition-base);
    cursor: pointer;
}

.lawyer-member-link:hover .btn-profile {
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
    transform: scale(1.05);
}

/* Efectos hover mejorados para tarjetas clickeables */
.lawyer-member-link .lawyer-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
    z-index: 1;
}

.lawyer-member-link:hover .lawyer-member::before {
    transform: scaleX(1);
}

/* Mejorar el hover de la imagen */
.lawyer-member-link:hover .lawyer-image img {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Responsive para tarjetas clickeables */
@media (max-width: 768px) {
    .lawyer-member-link:hover {
        transform: none;
    }
    
    .profile-cta {
        margin-top: var(--spacing-xs);
    }
    
    .btn-profile {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
/* ========================================
   MEJORAS RESPONSIVE DESIGN MÓVIL
   ======================================== */

/* PÁGINA DE ABOGADOS - MÓVIL OPTIMIZADA */
@media (max-width: 768px) {
    /* Sección de Ruby (encabezado) - Móvil */
    .team-leader-section {
        max-width: 100% !important;
        margin: 0 auto var(--spacing-lg) auto !important;
        padding: 0 var(--spacing-xs);
    }
    
    .leader-member {
        width: 100% !important;
        max-width: 100% !important;
        padding: var(--spacing-sm) !important;
        margin: 0;
    }
    
    .leader-member .lawyer-image img {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto;
    }
    
    .leader-member .lawyer-info h3 {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .leader-member .lawyer-title {
        font-size: 0.95rem !important;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .leader-member .lawyer-specialty {
        font-size: 0.85rem !important;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .leader-member .lawyer-description {
        font-size: 0.8rem !important;
        text-align: center;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Grid de abogados restantes - Móvil */
    .lawyers-team-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md) !important;
        margin-bottom: var(--spacing-lg) !important;
        max-width: 100% !important;
        padding: 0 var(--spacing-xs);
    }
    
    .lawyer-member {
        padding: var(--spacing-sm) !important;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .lawyer-image img {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto;
    }
    
    .lawyer-info h3 {
        font-size: 1.2rem !important;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .lawyer-title {
        font-size: 1rem !important;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .lawyer-specialty {
        font-size: 0.9rem !important;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .lawyer-description {
        font-size: 0.85rem !important;
        text-align: center;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
    }
    
    .lawyer-contact {
        background: rgba(207, 178, 126, 0.1);
        padding: var(--spacing-xs);
        border-radius: var(--border-radius-sm);
        margin-top: var(--spacing-sm);
    }
    
    .lawyer-contact p {
        font-size: 0.8rem !important;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .profile-cta {
        margin-top: var(--spacing-sm);
    }
    
    .btn-profile {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.7rem !important;
    }
}

/* PÁGINA INDIVIDUAL DE HAROLD - MÓVIL OPTIMIZADA */
@media (max-width: 768px) {
    .lawyer-profile-page {
        padding: 4rem 0 2rem 0 !important;
    }
    
    .breadcrumb {
        margin: 4rem 0 1rem 0 !important;
        padding: 0 var(--spacing-xs) !important;
    }
    
    .breadcrumb a {
        font-size: 0.9rem !important;
    }
    
    .profile-header {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: var(--spacing-md) !important;
        padding: var(--spacing-lg) !important;
        margin-bottom: var(--spacing-lg) !important;
    }
    
    .profile-image {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto;
    }
    
    .profile-info-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: var(--spacing-xs) !important;
    }
    
    .profile-title {
        font-size: 1.1rem !important;
        margin-bottom: var(--spacing-xs) !important;
    }
    
    .profile-specialty {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .profile-contact {
        background: rgba(207, 178, 126, 0.1);
        padding: var(--spacing-xs);
        border-radius: var(--border-radius-sm);
        margin-top: var(--spacing-sm);
    }
    
    .profile-contact p {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem;
    }
    
    .profile-section {
        padding: var(--spacing-md) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .profile-section h2 {
        font-size: 1.4rem !important;
        margin-bottom: var(--spacing-sm) !important;
        text-align: center;
    }
    
    .profile-content {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }
    
    .profile-content p {
        margin-bottom: var(--spacing-xs);
    }
    
    /* Timeline de experiencia - MÓVIL */
    .experience-timeline {
        gap: var(--spacing-sm) !important;
    }
    
    .experience-item {
        padding: var(--spacing-sm) !important;
        border-radius: var(--border-radius-sm);
    }
    
    .experience-item::before {
        display: none;
    }
    
    .experience-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: var(--spacing-xs) !important;
        text-align: center;
    }
    
    .experience-item p {
        font-size: 0.85rem !important;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    /* Sección de educación - MÓVIL */
    .education-item {
        padding: var(--spacing-sm) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .education-item h3 {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }
    
    .education-item p {
        font-size: 0.85rem !important;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .studies-list li {
        font-size: 0.8rem !important;
        padding: var(--spacing-xs);
        text-align: center;
    }
    
    /* Sección de idiomas - MÓVIL */
    .languages-section {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-sm) !important;
    }
    
    .language-item {
        padding: var(--spacing-sm) !important;
        text-align: center;
    }
    
    .language-item h3 {
        font-size: 1.1rem !important;
        margin-bottom: var(--spacing-xs);
    }
    
    .language-item p {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem;
    }
    
    /* Call to Action del perfil - MÓVIL */
    .profile-contact-cta {
        padding: var(--spacing-lg) !important;
        margin: var(--spacing-md) 0;
    }
    
    .profile-contact-cta h2 {
        font-size: 1.6rem !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .profile-contact-cta p {
        font-size: 1rem !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-buttons {
        flex-direction: column !important;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .profile-contact-cta .btn {
        width: 100% !important;
        max-width: 250px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* MEJORAS ADICIONALES PARA PANTALLAS MUY PEQUEÑAS */
@media (max-width: 480px) {
    .lawyer-member {
        padding: var(--spacing-xs) !important;
    }
    
    .lawyer-info h3 {
        font-size: 1.1rem !important;
    }
    
    .profile-info-section h1 {
        font-size: 1.6rem !important;
    }
    
    .profile-section h2 {
        font-size: 1.3rem !important;
    }
    
    .profile-image {
        width: 120px !important;
        height: 120px !important;
    }
}
}
/* ========================================
   ARTÍCULOS INDIVIDUALES DEL BLOG
   ======================================== */

/* Estilos para artículos individuales */
.post-article {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    color: var(--color-text-light);
    border-left: 4px solid var(--color-secondary);
}

.post-article h1 {
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
}

.post-article .date {
    color: var(--color-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-article p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.post-article ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.post-article li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
    color: var(--color-text-light);
}

.post-article li::marker {
    color: var(--color-secondary);
}

.post-article a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.post-article a:hover {
    color: var(--color-secondary-light);
    text-decoration: underline;
}

/* Botón "Volver al Blog" */
.post-article .btn {
    margin-top: var(--spacing-lg);
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.post-article .btn:hover {
    background-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-primary);
    text-decoration: none;
}

/* Responsive para artículos */
@media (max-width: 768px) {
    .post-article {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .post-article h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .post-article .date {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }
    
    .post-article p {
        font-size: 1rem;
        text-align: left;
    }
    
    .post-article ul {
        padding-left: var(--spacing-md);
    }
    
    .post-article li {
        font-size: 0.95rem;
    }
    
    .post-article .btn {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-md);
    }
}

/* ========================================
   MEJORAS ADICIONALES PARA NAVEGACIÓN
   ======================================== */

/* Estilos para el enlace activo en posts */
.nav-link.active {
    color: var(--color-secondary) !important;
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::after {
    width: 100% !important;
}

/* ========================================
}

/* ========================================
   NUEVAS SECCIONES PARA QUIÉNES SOMOS
   ======================================== */

/* NUEVA SECCIÓN DETALLADA - QUIÉNES SOMOS EXPANDIDO */
.about-detailed-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-secondary);
}

.about-detailed-box h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    word-wrap: break-word;
}

.about-detailed-box p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    word-wrap: break-word;
}

/* NUEVA SECCIÓN HISTORIA */
.history-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-tertiary);
}

.history-box h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    word-wrap: break-word;
}

.history-box p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    word-wrap: break-word;
}

/* RESPONSIVE PARA LAS NUEVAS SECCIONES */
@media (max-width: 768px) {
    .about-detailed-box, .history-box {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .about-detailed-box h2, .history-box h2 {
        font-size: 1.3rem !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .about-detailed-box p, .history-box p {
        font-size: 1rem !important;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-detailed-box, .history-box {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
}
   FIN DE ESTILOS PARA POSTS
/* ========================================
   NUEVAS SECCIONES PARA QUIÉNES SOMOS
   ======================================== */

/* NUEVA SECCIÓN DETALLADA - QUIÉNES SOMOS EXPANDIDO */
.about-detailed-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-secondary);
}

.about-detailed-box h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    word-wrap: break-word;
}

.about-detailed-box p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    word-wrap: break-word;
}

/* NUEVA SECCIÓN HISTORIA */
.history-box {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-tertiary);
}

.history-box h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    word-wrap: break-word;
}

.history-box p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    text-align: justify;
    word-wrap: break-word;
}

/* RESPONSIVE PARA LAS NUEVAS SECCIONES */
@media (max-width: 768px) {
    .about-detailed-box, .history-box {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .about-detailed-box h2, .history-box h2 {
        font-size: 1.3rem !important;
        margin-bottom: var(--spacing-sm);
    }
    
    .about-detailed-box p, .history-box p {
        font-size: 1rem !important;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-detailed-box, .history-box {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
}

/* ========================================
    FIN DE ESTILOS CSS
/* ========================================
   CORRECCIÓN ESPECÍFICA PARA EMAIL EN CONTACTO CTA
   ======================================== */

/* ESTILOS DE MÁXIMA ESPECIFICIDAD PARA EVITAR COLOR AZUL */
.contact-cta .contact-info p strong {
    color: #CFB27E !important; /* Color dorado forzado */
    font-weight: 700 !important;
    margin-right: 0.5rem !important;
}

.contact-cta .contact-info p a {
    color: #ffffff !important; /* Blanco forzado */
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.contact-cta .contact-info p a:hover {
    color: #CFB27E !important; /* Dorado en hover */
    text-decoration: underline !important;
}

.contact-cta .contact-info p {
    color: #ffffff !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
}

/* Si hay etiquetas span dentro del strong */
.contact-cta .contact-info p strong span {
    color: #CFB27E !important;
    font-weight: 700 !important;
}

/* Para el número de teléfono que está fuera del strong */
.contact-cta .contact-info p span:not(.email-text) {
    color: #ffffff !important;
}

/* ========================================
   FOOTER Y REDES SOCIALES
   ======================================== */

/* Footer general */
.footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--color-secondary);
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: var(--spacing-xs);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.quick-links {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: var(--spacing-xs);
}

.quick-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: var(--font-weight-normal);
}

.quick-links a:hover {
    color: var(--color-secondary);
}

/* Sección de redes sociales */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--color-white);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(207, 178, 126, 0.3);
}

.social-link:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* Fondo negro para todos los iconos de redes sociales */
.social-link {
    background: #000000 !important;
}

/* Iconos específicos para redes sociales */
.social-link .fab.fa-facebook-f {
    font-size: 1.2rem;
    color: #ffffff;
}

.social-link .fab.fa-linkedin-in {
    font-size: 1.2rem;
    color: #ffffff;
}

.social-link .fab.fa-whatsapp {
    font-size: 1.3rem;
    color: #ffffff;
}

.social-link .fa-brands.fa-x-twitter {
    font-size: 1.1rem;
    color: #ffffff;
}

/* Mensaje temporal para redes sociales en proceso */
.social-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    font-weight: var(--font-weight-semibold);
}

.social-message.show {
    transform: translateX(0);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive para footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
}

/* Para el email específico */
.contact-cta .contact-info p a[href*="mailto"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Override específico para evitar color azul del navegador */
.contact-cta a {
    color: #ffffff !important;
}

.contact-cta a[href*="mailto"] {
    color: #ffffff !important;
}

.contact-cta a[href*="mailto"]:hover {
    color: #CFB27E !important;
    text-decoration: underline !important;


}