/* ============================================
   VARGAS DE LA SILVA & ASOCIADOS
   Boutique Legal - Identidad Visual Premium
   ============================================ */

:root {
    /* Paleta de Colores Corporativa */
    --midnight-blue: #0A192F;
    --gold-metallic: #C5A059;
    --gold-light: #D4B068;
    --gold-dark: #A88848;
    --ivory-white: #F8F6F3;
    --charcoal: #1E2937;
    --slate-gray: #4A5568;
    --text-muted: #718096;
    
    /* Tipografías */
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Espaciado y Sombras */
    --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.3);
    --shadow-deep: 0 10px 40px rgba(10, 25, 47, 0.4);
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--ivory-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   NAVIGATION - HEADER FLOTANTE
   ============================================ */

#mainNav {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    background: rgba(10, 25, 47, 0.98);
}

.navbar-brand {
    transition: var(--transition-smooth);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-metallic);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(197, 160, 89, 0.8);
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-main {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ivory-white);
    letter-spacing: 1px;
}

.brand-sub {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--gold-metallic);
    letter-spacing: 2px;
    font-weight: 300;
}

.nav-link {
    color: var(--ivory-white) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-metallic), transparent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-portal {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue) !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
}

.btn-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 160, 89, 0.5);
}

.dropdown-menu {
    background: rgba(10, 25, 47, 0.98);
    border: 1px solid var(--gold-metallic);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--ivory-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-metallic);
}

/* ============================================
   HERO SECTION - SECCIÓN PRINCIPAL
   ============================================ */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, #1a2332 50%, var(--midnight-blue) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5 rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    padding: 2.5rem 1.5rem;
    border-radius: 10px;
    color: var(--gold-metallic);
    font-weight: 600;
    font-size: 0.9rem;
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-title {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.title-highlight {
    display: block;
    font-size: 2rem;
    color: var(--gold-metallic);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: shimmer 3s ease-in-out infinite;
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold-light) 50%, 
        var(--gold-dark) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.title-main {
    display: block;
    font-size: 3.5rem;
    color: var(--ivory-white);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.5rem;
}

.hero-subtitle {
    color: rgba(248, 246, 243, 0.8);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2rem;
}


/* O más específico:*/ 
#home {
    padding-top: 100px !important; /* Ajustado para que el header no lo tape */
    margin-top: 0 !important;
}


/* AI Assistant Box */
.ai-assistant-box {
    background: rgba(30, 41, 55, 0.8);
    border: 2px solid var(--gold-metallic);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-gold);
    backdrop-filter: blur(10px);
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-metallic);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.assistant-header i {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.assistant-form {
    display: flex;
    gap: 1rem;
}

.assistant-input {
    flex: 1;
    background: rgba(248, 246, 243, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--ivory-white);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.assistant-input::placeholder {
    color: rgba(248, 246, 243, 0.5);
}

.assistant-input:focus {
    background: rgba(248, 246, 243, 0.15);
    border-color: var(--gold-metallic);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
    outline: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    white-space: nowrap;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(197, 160, 89, 0.5);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-metallic));
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-metallic);
    font-family: var(--font-display);
    line-height: 1;
}

.stat-label {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-seal-3d {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.3) 0%, transparent 70%);
    animation: sealPulse 4s ease-in-out infinite;
}

@keyframes sealPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.seal-image {
    position: relative;
    width: 350px;
    height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(197, 160, 89, 0.5));
    animation: sealShimmer 3s ease-in-out infinite;
}


@keyframes sealShimmer {
    0%, 100% { 
        filter: drop-shadow(0 10px 30px rgba(197, 160, 89, 0.5));
    }
    50% { 
        filter: drop-shadow(0 10px 40px rgba(197, 160, 89, 0.9)) brightness(1.2);
    }
}

.trust-indicators {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badge {
    background: rgba(30, 41, 55, 0.9);
    border: 1px solid var(--gold-metallic);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--ivory-white);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.trust-badge i {
    color: var(--gold-metallic);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--gold-metallic);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    margin: 0 auto 10px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gold-metallic);
    border-radius: 2px;
    animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

.arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold-metallic);
    border-bottom: 2px solid var(--gold-metallic);
    transform: rotate(45deg);
    margin: -5px 0;
    animation: arrowMove 2s ease-in-out infinite;
}

.arrow-down span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes arrowMove {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ============================================
   SECTIONS - ESTILOS GENERALES
   ============================================ */

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--gold-metallic);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-metallic), transparent);
}

.section-title {
    font-size: 2.5rem;
    color: var(--midnight-blue);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   EXPERTISE SECTION - ÁREAS DE PRÁCTICA
   ============================================ */

.expertise-section {
    background: var(--ivory-white);
    position: relative;
}

.expertise-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    border: 1px solid rgba(197, 160, 89, 0.1);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-metallic), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.card-premium {
    border: 2px solid var(--gold-metallic);
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, white 100%);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-gold);
}

.card-icon i {
    font-size: 2rem;
    color: var(--midnight-blue);
}

.card-title {
    font-size: 1.5rem;
    color: var(--midnight-blue);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--slate-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-features i {
    color: var(--gold-metallic);
    font-size: 0.9rem;
}

.card-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tool-tag {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-card {
    background: transparent;
    border: 2px solid var(--gold-metallic);
    color: var(--gold-metallic);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.btn-card:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    transform: translateX(5px);
}

/* ============================================
   C.A.D.A. SECTION
   ============================================ */

.cada-section {
    background: linear-gradient(135deg, var(--midnight-blue) 0%, #1a2332 100%);
    color: var(--ivory-white);
    position: relative;
    overflow: hidden;
}

.cada-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
}

.cada-content {
    position: relative;
    z-index: 2;
}

.cada-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--gold-metallic);
    font-weight: 600;
}

.cada-title {
    font-size: 2.5rem;
    color: var(--gold-metallic);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cada-subtitle {
    font-size: 1.3rem;
    color: rgba(248, 246, 243, 0.8);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.cada-description {
    color: rgba(248, 246, 243, 0.9);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cada-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    color: var(--gold-metallic);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-item h4 {
    color: var(--ivory-white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: rgba(30, 41, 55, 0.8);
    border: 1px solid var(--gold-metallic);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

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

.stat-box i {
    font-size: 2.5rem;
    color: var(--gold-metallic);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-metallic);
    font-family: var(--font-display);
}

.stat-label {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   BLOG SECTION - PULSO PYME
   ============================================ */

.blog-section {
    background: var(--ivory-white);
}

.economic-ticker {
    background: var(--midnight-blue);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-deep);
}

.ticker-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ivory-white);
}

.ticker-item i {
    color: var(--gold-metallic);
    font-size: 1.5rem;
}

.ticker-label {
    font-size: 0.9rem;
    color: rgba(248, 246, 243, 0.7);
}

.ticker-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-metallic);
    font-family: var(--font-display);
}

.blog-featured {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transition: var(--transition-smooth);
}

.blog-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-featured:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.featured-content {
    padding: 2.5rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.blog-category,
.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.blog-category i,
.blog-date i {
    color: var(--gold-metallic);
}

.featured-title {
    font-size: 1.8rem;
    color: var(--midnight-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-excerpt {
    color: var(--slate-gray);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold-metallic);
    color: var(--gold-metallic);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-deep);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    margin-bottom: 0.75rem;
}

.blog-card-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-card-meta i {
    color: var(--gold-metallic);
}

.blog-card-title {
    font-size: 1.1rem;
    color: var(--midnight-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--slate-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mini-tag {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-dark);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-card-link {
    color: var(--gold-metallic);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.blog-card-link:hover {
    gap: 0.75rem;
}

.informe-especial {
    background: white;
    border: 2px solid var(--gold-metallic);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow-gold);
}

.informe-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(197, 160, 89, 0.2);
}

.informe-header i {
    font-size: 2.5rem;
    color: var(--gold-metallic);
}

.informe-header h3 {
    font-size: 3rem;
    color: var(--midnight-blue);
    margin: 0;
}

.informe-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

.informe-content {
    color: var(--slate-gray);
    line-height: 1.8;
}

.informe-highlights {
    list-style: none;
    margin: 1.5rem 0;
}

.informe-highlights li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.informe-highlights i {
    color: var(--gold-metallic);
}

/* ============================================
   PORTAL DEL CLIENTE
   ============================================ */

.portal-section {
    background: linear-gradient(135deg, #f5f3f0 0%, white 100%);
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: var(--gold-metallic);
    font-weight: 600;
}

.portal-title {
    font-size: 2.5rem;
    color: var(--midnight-blue);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.portal-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.portal-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.feature-box:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-gold);
}

.feature-box i {
    font-size: 2rem;
    color: var(--gold-metallic);
    margin-top: 0.25rem;
}

.feature-box h4 {
    color: var(--midnight-blue);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.security-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(197, 160, 89, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 500;
}

.security-item i {
    color: var(--gold-metallic);
}

.portal-login-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-deep);
    border: 2px solid rgba(197, 160, 89, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--gold-metallic);
    margin-bottom: 1rem;
}

.login-header h3 {
    color: var(--midnight-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-floating .form-control {
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.form-floating .form-control:focus {
    border-color: var(--gold-metallic);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-floating label {
    color: var(--text-muted);
}

.link-gold {
    color: var(--gold-metallic);
    font-weight: 500;
    font-size: 0.9rem;
}

.link-gold:hover {
    color: var(--gold-dark);
}

.login-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

/* ============================================
   SECCIÓN INSTITUCIONAL
   ============================================ */

.institucional-section {
    background: white;
}

.institucional-text {
    color: var(--slate-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.valor-card {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.05) 0%, white 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-metallic);
}

.valor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-gold);
}

.valor-icon i {
    font-size: 2rem;
    color: var(--midnight-blue);
}

.valor-card h4 {
    color: var(--midnight-blue);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.valor-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   EQUIPO
   ============================================ */

.equipo-section {
    background: linear-gradient(135deg, #f5f3f0 0%, white 100%);
}

.team-card-principal {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    border: 2px solid var(--gold-metallic);
}

.team-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.team-content {
    padding: 2.5rem;
}

.team-name {
    color: var(--midnight-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.team-title {
    color: var(--gold-metallic);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-bio {
    color: var(--slate-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.team-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.team-credentials span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.team-credentials i {
    color: var(--gold-metallic);
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-metallic);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.team-social a:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    transform: translateY(-3px);
}

/* ============================================
   CONTACTO
   ============================================ */

.contacto-section {
    background: var(--midnight-blue);
    color: var(--ivory-white);
}

.contacto-info {
    padding-right: 2rem;
}

.contacto-description {
    color: rgba(248, 246, 243, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--gold-metallic);
    font-size: 1.3rem;
}

.info-content h4 {
    color: var(--gold-metallic);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.contacto-form-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-deep);
}

.form-title {
    color: var(--midnight-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contacto-form .form-control,
.contacto-form .form-select {
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-radius: 10px;
}

.contacto-form .form-control:focus,
.contacto-form .form-select:focus {
    border-color: var(--gold-metallic);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.contacto-form label {
    color: var(--text-muted);
}

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

.footer {
    background: var(--midnight-blue);
    color: var(--ivory-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-metallic), transparent);
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(197, 160, 89, 0.5));
}

.footer-title {
    color: var(--ivory-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.footer-tagline {
    color: var(--gold-metallic);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--gold-metallic);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-metallic);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--gold-metallic);
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-metallic);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    transform: translateY(-3px);
}

.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.3), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    padding-top: 1rem;
}

.footer-copyright {
    color: rgba(248, 246, 243, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-seals {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.seal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 246, 243, 0.7);
    font-size: 0.85rem;
}

.seal-item i {
    color: var(--gold-metallic);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

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

@media (max-width: 768px) {
    .news-ticker-wrapper {
        flex-direction: row !important; /* Fuerza una sola línea horizontal */
        flex-wrap: nowrap;
        overflow: hidden; /* Oculta el texto que sobresale de la pantalla */
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-highlight {
        font-size: 1.5rem;
    }
    
    .logo-seal-3d {
        width: 300px;
        height: 300px;
    }
    
    .seal-image {
        width: 250px;
        height: 250px;
    }
    
    .trust-indicators {
        position: static;
        transform: none;
        margin-top: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .team-image {
        min-height: 300px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .assistant-form {
        flex-direction: column;
    }
    
    .ticker-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-seals {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    .navbar-brand .brand-text {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-indicator,
    .btn,
    .footer-social {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}


/* =========================================
   SECCIÓN MISIÓN Y VISIÓN
   ========================================= */

.valores-section {
    background: linear-gradient(135deg, #1a2332, var(--midnight-blue));
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-metallic);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #9CA3AF;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.valor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--gold-metallic);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.valor-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.4);
}

.valor-icon i {
    font-size: 2.5rem;
    color: var(--midnight-blue);
}

.valor-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin-bottom: 1.5rem;
}

.valor-text {
    color: #D1D5DB;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}


/* ============================================
   PERFILES DE EQUIPO - SISTEMA JERÁRQUICO
   ============================================ */

/* Tarjeta Principal - Socia Fundadora */
.profile-card-principal {
    background: linear-gradient(to bottom, #FDFCFA 0%, #FFFFFF 100%);
    border: 3px solid var(--gold-metallic);
    border-radius: 25px;
    overflow: visible;
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.25);
    position: relative;
    transition: var(--transition-smooth);
}

.profile-card-principal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(197, 160, 89, 0.35);
}

/* Tarjetas Secundarias - Abogados Asociados */
.profile-card-secundaria {
    background: linear-gradient(to bottom, #FDFCFA 0%, #FFFFFF 100%);
    border: 2px solid rgba(197, 160, 89, 0.4);
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    transition: var(--transition-smooth);
}

.profile-card-secundaria:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(197, 160, 89, 0.2);
    border-color: var(--gold-metallic);
}

/* Badge de Cargo */
.badge-cargo {
    position: absolute;
    top: -15px;
    left: 30px;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.badge-cargo.principal {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    font-size: 1rem;
    padding: 0.7rem 2rem;
}

.badge-cargo.secundario {
    background: linear-gradient(135deg, #8B7355, #A0826D);
    color: white;
    font-size: 0.85rem;
}

/* Foto de Perfil */
.profile-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.profile-photo.secondary {
    height: 350px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.profile-card-principal:hover .profile-photo img,
.profile-card-secundaria:hover .profile-photo img {
    transform: scale(1.05);
}

/* Contenido del Perfil */
.profile-content {
    padding: 2.5rem;
}

.profile-content.secondary {
    padding: 2rem 1.8rem;
}

/* Nombre */
.profile-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--midnight-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-name.secondary {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Matrícula Profesional */
.profile-matricula {
    color: var(--gold-metallic);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Rol/Cargo */
.profile-role {
    color: var(--gold-metallic);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.profile-role.secondary {
    font-size: 1rem;
}

/* Biografía */
.profile-bio {
    color: var(--slate-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.profile-bio.secondary {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Credenciales */
.profile-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.credential-item-gold {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.credential-item-gold i {
    color: var(--gold-metallic);
    font-size: 1.2rem;
}

.credential-item-gold span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills Pills */
.profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.skill-pill {
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--gold-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 18px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-pill:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    border-color: var(--gold-metallic);
}

/* Highlights */
.profile-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.highlight-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.highlight-mini i {
    color: var(--gold-metallic);
    font-size: 0.95rem;
}

.highlight-mini span {
    color: var(--slate-gray);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Social Links */
.profile-social {
    display: flex;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(197, 160, 89, 0.2);
}

.social-btn-gold {
    width: 45px;
    height: 45px;
    background: rgba(197, 160, 89, 0.1);
    border: 2px solid var(--gold-metallic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-metallic);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.social-btn-gold.small {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.social-btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-photo {
        height: 300px;
    }
    
    .profile-photo.secondary {
        height: 280px;
    }
    
    .profile-content {
        padding: 2rem 1.5rem;
    }
    
    .profile-content.secondary {
        padding: 1.5rem 1.2rem;
    }
    
    .profile-name {
        font-size: 1.6rem;
    }
    
    .profile-name.secondary {
        font-size: 1.3rem;
    }
    
    .badge-cargo {
        left: 20px;
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .profile-card-principal,
    .profile-card-secundaria {
        border-radius: 15px;
    }
    
    .badge-cargo.principal {
        font-size: 0.85rem;
    }
}

/******************************************************************/

/* Corrección de Encuadre de Fotos en Tarjetas */
.profile-card-principal,
.profile-card-secundaria {
    overflow: hidden; /* CRÍTICO: Evita que contenido sobrepase bordes */
}

.badge-cargo {
    position: absolute;
    top: 20px; /* Cambiado de -15px a 20px para mantener dentro */
    left: 30px;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.profile-photo {
    width: 100%;
    height: 400px;
    overflow: hidden; /* Asegura recorte de imagen */
    border-radius: 0; /* Sin redondeo en esquinas internas */
    position: relative;
}

.profile-photo.secondary {
    height: 350px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta para ajustar [[2](https://support.microsoft.com/es-es/office/recortar-una-imagen-para-que-se-adapte-a-una-forma-1ce8cf89-6a19-4ee4-82ca-4f8e81469590)] */
    object-position: center center; /* Centra la imagen */
    display: block; /* Elimina espacios blancos */
}

/* Aplicar border-radius solo al contenedor principal */
.profile-card-principal {
    border-radius: 25px;
    overflow: hidden; /* ESENCIAL */
}

.profile-card-secundaria {
    border-radius: 20px;
    overflow: hidden; /* ESENCIAL */
}

/* Mejora del Menú Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 25, 47, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: none;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        padding: 1rem !important;
        border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    }
}

/*******************************************************************/

/* ============================================
   TARJETAS DE PERFIL COMPACTAS CON EXPANDIBLE
   ============================================ */

.profile-card-compact {
    background: linear-gradient(to bottom, #FDFCFA 0%, #FFFFFF 100%);
    border: 2px solid var(--gold-metallic);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.2);
    transition: var(--transition-smooth);
}

.profile-card-compact.principal {
    border-width: 3px;
}

.profile-card-compact.secundaria {
    border-width: 2px;
    border-color: rgba(197, 160, 89, 0.5);
}

.profile-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.3);
}

/* Foto Compacta */
.profile-photo-compact {
    width: 100%;
    height: 380px;
    overflow: hidden;
}

.profile-photo-compact.secondary {
    height: 350px;
}

.profile-photo-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Información Compacta */
.profile-info-compact {
    padding: 2rem;
}

.profile-name-compact {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--midnight-blue);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.profile-name-compact.secondary {
    font-size: 1.4rem;
}

.profile-matricula-compact {
    color: var(--gold-metallic);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.profile-subtitle-compact {
    color: var(--gold-metallic);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.profile-subtitle-compact.secondary {
    font-size: 0.95rem;
}

/* Vista Previa */
.profile-preview {
    margin-bottom: 1.2rem;
}

.profile-snippet {
    color: var(--slate-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Características Destacadas Compactas */
.profile-highlights-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.profile-highlights-compact.mini {
    gap: 0.5rem;
}

.highlight-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.highlight-badge.mini {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

.highlight-badge i {
    color: var(--gold-metallic);
    font-size: 0.9rem;
}

/* Botón Ver Más */
.btn-ver-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-ver-mas.small {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

.btn-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-metallic));
}

.btn-ver-mas i {
    transition: transform 0.3s ease;
}

.btn-ver-mas.active i {
    transform: rotate(180deg);
}

/* Contenido Completo (Expandible) */
.profile-full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.profile-full-content.expanded {
    max-height: 1000px;
    margin-top: 1.5rem;
}

.profile-bio-full {
    color: var(--slate-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(197, 160, 89, 0.05);
    border-left: 3px solid var(--gold-metallic);
    border-radius: 5px;
}

.profile-credentials-full h4 {
    color: var(--midnight-blue);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.profile-credentials-full ul {
    list-style: none;
    padding: 0;
}

.profile-credentials-full li {
    color: var(--slate-gray);
    font-size: 0.9rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.profile-credentials-full li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-metallic);
    font-weight: bold;
}

.expertise-detail {
    margin-top: 1rem;
}

.expertise-detail h5 {
    color: var(--midnight-blue);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expertise-detail h5 i {
    color: var(--gold-metallic);
}

.expertise-detail p {
    color: var(--slate-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.profile-social-full {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(197, 160, 89, 0.2);
}

.social-link-gold {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    border: 2px solid var(--gold-metallic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-metallic);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.social-link-gold:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-photo-compact {
        height: 300px;
    }
    
    .profile-photo-compact.secondary {
        height: 280px;
    }
    
    .profile-info-compact {
        padding: 1.5rem;
    }
    
    .profile-name-compact {
        font-size: 1.5rem;
    }
    
    .profile-name-compact.secondary {
        font-size: 1.2rem;
    }
}

/* =========================================
   VARGAS DE LA SILVA & ASOCIADOS
   LEGAL-TECH STYLES - Versión Actualizada
   ========================================= */

:root {
    /* Colores Principales */
    --midnight-blue: #0A192F;
    --gold-metallic: #C5A059;
    --gold-light: #D4B068;
    --ivory-white: #F8F6F3;
    --charcoal: #2D2D2D;
    --slate-gray: #4A5568;
    
    /* Tipografías */
    --font-display: 'Playfair Display', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--ivory-white);
    background-color: var(--midnight-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   NEWS TICKER SUPERIOR
   ========================================= */

.news-ticker-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #C5A059, #D4B068);
    z-index: 1050;
    display: flex;
    align-items: center;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ticker-label {
    background: var(--midnight-blue);
    color: var(--gold-metallic);
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    height: 100%;
    background: var(--midnight-blue);
}

.ticker-content {
    display: flex;
    flex-shrink: 0; /* Evita que colapse y salte a la línea inferior */
    white-space: nowrap;
    align-items: center;
    height: 100%;
    animation: tickerScroll 30s linear infinite;
    padding-left: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    color: var(--ivory-white);
    font-size: 0.9rem;
    padding: 0 2rem;
}

.ticker-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ticker-tag.alerta-ia {
    background: #3B82F6;
    color: white;
}

.ticker-tag.pyme {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.ticker-tag.distribucion {
    background: #10B981;
    color: white;
}

.ticker-tag.legaltech {
    background: #8B5CF6;
    color: white;
}

.ticker-separator {
    color: var(--gold-metallic);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* =========================================
   NAVIGATION - Ajustado por Ticker
   ========================================= */

#mainNav {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    top: 45px;
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-metallic);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.5);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-metallic);
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--ivory-white);
}

.nav-link {
    color: var(--ivory-white) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-metallic) !important;
}

.btn-portal {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue) !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600;
}

.dropdown-menu {
    background: rgba(10, 25, 47, 0.98);
    border: 1px solid var(--gold-metallic);
}

.dropdown-item {
    color: var(--ivory-white);
}

.dropdown-item:hover {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-metallic);
}

/* =========================================
   BOTÓN FLOTANTE LATERAL - ACTUALIDAD PYME
   ========================================= */

.floating-news-button {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    padding: 1.5rem 1rem;
    border-radius: 15px 0 0 15px;
    cursor: pointer;
    z-index: 1030;
    box-shadow: -4px 0 15px rgba(197, 160, 89, 0.5);
    transition: var(--transition-smooth);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.floating-news-button:hover {
    padding-right: 1.5rem;
    box-shadow: -8px 0 25px rgba(197, 160, 89, 0.7);
}

.floating-news-button i {
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}

/* ========================================= */
.floating-news-button2 {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    padding: 1.5rem 1rem;
    border-radius: 15px 0 0 15px;
    cursor: pointer;
    z-index: 1030;
    box-shadow: -4px 0 15px rgba(197, 160, 89, 0.5);
    transition: var(--transition-smooth);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.floating-news-button2:hover {
    padding-right: 1.5rem;
    box-shadow: -8px 0 25px rgba(197, 160, 89, 0.7);
}

.floating-news-button2 i {
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}
/* ========================================= */


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* =========================================
   SIDEBAR LATERAL - TOP 3 NOTICIAS
   ========================================= */

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-sidebar {
    position: fixed;
    right: -400px;
    top: 45px;
    width: 380px;
    height: calc(100vh - 45px);
    background: linear-gradient(135deg, var(--midnight-blue), #1a2332);
    border-left: 3px solid var(--gold-metallic);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    overflow-y: auto;
    z-index: 1041;
    display: flex;
    flex-direction: column;
}

.news-sidebar.active {
    right: 0;
}

.sidebar-header {
    background: rgba(197, 160, 89, 0.15);
    border-bottom: 2px solid var(--gold-metallic);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title i {
    color: var(--gold-metallic);
    font-size: 1.5rem;
}

.sidebar-title h3 {
    color: var(--gold-metallic);
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-display);
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--ivory-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.close-sidebar:hover {
    color: var(--gold-metallic);
    transform: rotate(90deg);
}

.sidebar-news-list {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-news-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--gold-metallic);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sidebar-news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
}

/* ========================================= */
.sidebar-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.sidebar-overlay2.active {
    opacity: 1;
    visibility: visible;
}

.news-sidebar2 {
    position: fixed;
    right: -400px;
    top: 45px;
    width: 380px;
    height: calc(100vh - 45px);
    background: linear-gradient(135deg, var(--midnight-blue), #1a2332);
    border-left: 3px solid var(--gold-metallic);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    overflow-y: auto;
    z-index: 1041;
    display: flex;
    flex-direction: column;
}

.news-sidebar2.active {
    right: 0;
}

.sidebar-header2 {
    background: rgba(197, 160, 89, 0.15);
    border-bottom: 2px solid var(--gold-metallic);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-title2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title2 i {
    color: var(--gold-metallic);
    font-size: 1.5rem;
}

.sidebar-title2 h3 {
    color: var(--gold-metallic);
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-display);
}

.close-sidebar2 {
    background: none;
    border: none;
    color: var(--ivory-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.5rem;
}

.close-sidebar2:hover {
    color: var(--gold-metallic);
    transform: rotate(90deg);
}

.sidebar-news-list2 {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-news-item2 {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--gold-metallic);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.sidebar-news-item2:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
} 
/* ========================================= */

.news-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-badge.urgent {
    background: #EF4444;
    color: white;
}

.news-badge.importante {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.news-badge.legaltech {
    background: #8B5CF6;
    color: white;
}

.sidebar-news-item h4 {
    color: var(--ivory-white);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sidebar-news-item p {
    color: #9CA3AF;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-metallic);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-ver-todas {
    display: block;
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    padding: 1rem;
    margin: 0 1.5rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-ver-todas:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.5);
    color: var(--midnight-blue);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--midnight-blue) 0%, #1a2332 50%, var(--midnight-blue) 100%);
    overflow: hidden;
    padding-top: 140px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(197, 160, 89, 0.1) 0%, transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;    
    gap: 0.75rem;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    /* ... tus estilos actuales ... */
    white-space: nowrap; /* Evita que el texto salte de línea o se corte internamente */
}

.badge-text {
    color: var(--gold-metallic);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-highlight {
    display: block;
    color: var(--gold-metallic);
}

.title-main {
    display: block;
    color: var(--ivory-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #9CA3AF;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ai-assistant-box {
    background: rgba(30, 41, 55, 0.8);
    border: 2px solid var(--gold-metallic);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--ivory-white);
    font-weight: 600;
}

.assistant-form {
    display: flex;
    gap: 1rem;
}

.assistant-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--ivory-white);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.assistant-input::placeholder {
    color: #9CA3AF;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-metallic), var(--gold-light));
    color: var(--midnight-blue);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.5);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold-metallic);
    color: var(--gold-metallic);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-metallic);
}

.stat-label {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.logo-seal-3d {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.seal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.3) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.seal-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.6));
}

.trust-indicators {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.trust-badge i {
    color: var(--gold-metallic);
    font-size: 1.5rem;
}

/* =========================================
   PÁGINA DE NOTICIAS
   ========================================= */

.noticias-page {
    padding-top: 45px;
}

.noticias-hero {
    background: linear-gradient(135deg, var(--midnight-blue), #1a2332);
    padding: 6rem 0 2rem;
    text-align: center;
}

.noticias-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--gold-metallic);
    margin-bottom: 1rem;
}

.noticias-subtitle {
    color: #9CA3AF;
    font-size: 1.2rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(197, 160, 89, 0.3);
    color: #9CA3AF;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
    border-color: var(--gold-metallic);
}

.noticia-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.noticia-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-metallic);
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.3);
}

.noticia-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.noticia-card:hover .noticia-image img {
    transform: scale(1.1);
}

.noticia-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.noticia-tag.urgente {
    background: #EF4444;
    color: white;
}

.noticia-tag.pyme {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.noticia-tag.legaltech {
    background: #8B5CF6;
    color: white;
}

.noticia-tag.ia {
    background: #3B82F6;
    color: white;
}

.noticia-content {
    padding: 2rem;
}

.noticia-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
    font-size: 0.85rem;
}

.noticia-content h3 {
    font-family: var(--font-display);
    color: var(--ivory-white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.noticia-content p {
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.noticia-link {
    color: var(--gold-metallic);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.noticia-link:hover {
    color: var(--gold-light);
}

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

.footer {
    background: var(--charcoal);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--gold-metallic);
}

.footer-title {
    font-family: var(--font-display);
    color: var(--gold-metallic);
}

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

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-metallic);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--gold-metallic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-metallic);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold-metallic);
    color: var(--midnight-blue);
}

.footer-divider {
    border-color: rgba(197, 160, 89, 0.2);
    margin: 2rem 0;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .news-ticker-wrapper {
        flex-direction: row;
        height: 45px;
    }
    
    #mainNav {
        top: 0;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .news-sidebar {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100vh;
    }
    
    .floating-news-button {
        writing-mode: horizontal-tb;
        bottom: 100px;
        right: 20px;
        top: auto;
        transform: none;
        border-radius: 10px;
        padding: 1rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-seal-3d {
        width: 250px;
        height: 250px;
    }
}

/*  */


/* =========================================
   BOTONES FLOTANTES
   ========================================= */

.floating-news-button,
.floating-news-button2 {
    position: fixed;
    right: 0;
    padding: 1.5rem 1rem;
    border-radius: 15px 0 0 15px;
    cursor: pointer;
    z-index: 1030;
    box-shadow: -4px 0 15px rgba(197, 160, 89, 0.5);
    transition: all 0.4s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.floating-news-button {
    top: 25%;
    background: linear-gradient(135deg, #0A192F, #1a2332);
    color: #C5A059;
}

.floating-news-button2 {
    top: 50%;
    background: linear-gradient(135deg, #C5A059, #D4B068);
    color: #0A192F;
}

.floating-news-button:hover,
.floating-news-button2:hover {
    padding-right: 1.8rem;
    box-shadow: -8px 0 25px rgba(197, 160, 89, 0.7);
}

/* =========================================
   SIDEBARS
   ========================================= */

.sidebar-overlay,
.sidebar-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active,
.sidebar-overlay2.active {
    opacity: 1;
    visibility: visible;
}

.news-sidebar,
.news-sidebar2 {
    position: fixed;
    right: -400px;
    top: 45px;
    width: 380px;
    height: calc(100vh - 45px);
    background: linear-gradient(135deg, #0A192F, #1a2332);
    border-left: 3px solid #C5A059;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1041;
    display: flex;
    flex-direction: column;
}

.news-sidebar.active,
.news-sidebar2.active {
    right: 0;
}

/* Estilos del header y contenido (usa los que ya tienes o agrega estos si faltan) */
.sidebar-header, .sidebar-header2 {
    background: rgba(197, 160, 89, 0.15);
    border-bottom: 2px solid #C5A059;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title h3, .sidebar-title2 h3 {
    color: #C5A059;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.close-sidebar, .close-sidebar2 {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
}

.sidebar-news-list, .sidebar-news-list2 {
    padding: 1.5rem;
    flex: 1;
}

.sidebar-news-item, .sidebar-news-item2 {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #C5A059;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 8px;
}

.news-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.btn-ver-todas {
    display: block;
    background: linear-gradient(135deg, #C5A059, #D4B068);
    color: #0A192F;
    padding: 1rem;
    margin: 0 1.5rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}





        /* Estilos específicos para La Voz del Estudio */
        .lavoz-hero {
            background: linear-gradient(135deg, #0A192F, #1a2332);
            padding: 10rem 0 5rem;
            margin-top: 45px;
        }
        
        .article-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        .article-header {
            margin-bottom: 3rem;
        }
        
        .article-category {
            display: inline-block;
            background: linear-gradient(135deg, #C5A059, #D4B068);
            color: #0A192F;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            font-weight: 700;
            font-size: 0.85rem;
            letter-spacing: 1px;
            margin-bottom: 1.5rem;
        }
        
        .article-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.8rem;
            font-weight: 800;
            color: #F8F6F3;
            line-height: 1.3;
            margin-bottom: 1.5rem;
        }
        
        .article-meta {
            display: flex;
            align-items: center;
            gap: 2rem;
            color: #9CA3AF;
            font-size: 0.95rem;
            padding: 1.5rem 0;
            border-top: 1px solid rgba(197, 160, 89, 0.2);
            border-bottom: 1px solid rgba(197, 160, 89, 0.2);
        }
        
        .article-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .article-meta i {
            color: #C5A059;
        }
        
        .author-section {
            background: rgba(197, 160, 89, 0.1);
            border-left: 4px solid #C5A059;
            padding: 2rem;
            border-radius: 10px;
            margin: 3rem 0;
            display: flex;
            align-items: center;
            gap: 2rem;
        }
        
        .author-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #C5A059;
            flex-shrink: 0;
        }
        
        .author-info h4 {
            font-family: 'Playfair Display', serif;
            color: #C5A059;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }
        
        .author-info p {
            color: #D1D5DB;
            margin: 0.25rem 0;
        }
        
        .article-content {
            background: rgba(255, 255, 255, 0.03);
            padding: 3rem;
            border-radius: 15px;
            margin-top: 2rem;
        }
        
        .article-content h2 {
            font-family: 'Playfair Display', serif;
            color: #C5A059;
            font-size: 1.8rem;
            margin: 2.5rem 0 1.5rem;
            font-weight: 700;
        }
        
        .article-content h3 {
            font-family: 'Playfair Display', serif;
            color: #D4B068;
            font-size: 1.4rem;
            margin: 2rem 0 1rem;
            font-weight: 600;
        }
        
        .article-content p {
            color: #D1D5DB;
            font-size: 1.1rem;
            line-height: 1.9;
            margin-bottom: 1.5rem;
        }
        
        .article-content strong {
            color: #F8F6F3;
            font-weight: 600;
        }
        
        .highlight-quote {
            background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(212, 176, 104, 0.1));
            border-left: 4px solid #C5A059;
            padding: 1.5rem 2rem;
            margin: 2rem 0;
            border-radius: 8px;
            font-style: italic;
            color: #F8F6F3;
            font-size: 1.15rem;
        }
        
        .article-conclusion {
            background: rgba(197, 160, 89, 0.05);
            border: 2px solid #C5A059;
            border-radius: 15px;
            padding: 2rem;
            margin-top: 3rem;
        }
        
        .article-conclusion h3 {
            color: #C5A059;
            margin-top: 0;
        }
        
        .share-section {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 3rem 0;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 10px;
            align-items: center;
            flex-wrap: wrap;
        }
        
        .share-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(197, 160, 89, 0.1);
            border: 1px solid #C5A059;
            color: #C5A059;
            transition: all 0.3s ease;
            text-decoration: none;
        }
        
        .share-btn:hover {
            background: #C5A059;
            color: #0A192F;
            transform: translateY(-3px);
        }
