/* ===================================
   MEJORAS VISUALES - MMI Abogados
   Diseño Premium y Moderno
   =================================== */

/* ============================================
   1. ANIMACIONES Y KEYFRAMES
   ============================================ */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   2. HERO SECTION MEJORADO
   ============================================ */

.hero {
    background-image: linear-gradient(135deg, rgba(1, 112, 185, 0.3) 0%, rgba(1, 90, 148, 0.35) 50%, rgba(0, 61, 102, 0.4) 100%),
        var(--hero-image, url('../images/banner-2.jpg'));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

/* Capa de overlay decorativa */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, rgba(1, 112, 185, 0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(1, 112, 185, 0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(1, 112, 185, 0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(1, 112, 185, 0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.15;
    z-index: 0;
}

/* Patron de fondo animado */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons .btn {
    animation: fadeInUp 1s ease-out 0.3s both;
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-buttons .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 0.5s;
}

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

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.5s;
}

/* ============================================
   3. TARJETAS DE SERVICIOS PREMIUM
   ============================================ */

.services-grid {
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(1, 112, 185, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0170B9, #c9a961);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(1, 112, 185, 0.25);
    border-color: rgba(1, 112, 185, 0.3);
}

.service-icon-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0170B9 0%, #015a94 100%);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(1, 112, 185, 0.3);
}

.service-card:hover .service-icon-img {
    transform: rotateY(360deg) scale(1.1);
    background: linear-gradient(135deg, #c9a961 0%, #b59451 100%);
}

.service-icon-img img {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #0170B9;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: #1a1a1a;
}

/* ============================================
   4. SECCIÓN "SOBRE NOSOTROS" MEJORADA
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 112, 185, 0.3), rgba(201, 169, 97, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.about-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0170B9, #c9a961);
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(1, 112, 185, 0.05);
    transform: translateX(10px);
}

.feature-item svg {
    flex-shrink: 0;
    color: #0170B9;
    margin-top: 0.2rem;
}

.feature-item p {
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   5. SECCIÓN DE ESTADÍSTICAS MEJORADA
   ============================================ */

.stats {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(1, 112, 185, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-item h3 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a961, #0170B9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   6. FOOTER MEJORADO
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 0 2rem;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0170B9, #c9a961);
    border-radius: 2px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #c9a961;
    transform: translateX(5px);
}

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

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: linear-gradient(135deg, #0170B9, #c9a961);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(1, 112, 185, 0.4);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info svg {
    flex-shrink: 0;
    color: #c9a961;
    margin-top: 0.3rem;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.contact-info a:hover {
    color: #c9a961;
}

.site-footer .contact-info a:hover {
    color: #c9a961;
}

.site-footer .contact-info svg {
    color: #c9a961;
}

/* Fix: Texto azul oscuro en lugar de blanco para contraste con fondo claro */
.site-footer .contact-info {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.site-footer .contact-info li {
    color: #1a1a1a;
}

.site-footer .contact-info a {
    color: #0170B9;
}

.site-footer .contact-info a:hover {
    color: #c9a961;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ============================================
   7. BOTONES MEJORADOS
   ============================================ */

.btn {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #0170B9 0%, #015a94 100%);
    box-shadow: 0 8px 20px rgba(1, 112, 185, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(1, 112, 185, 0.4);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, #c9a961 0%, #b59451 100%);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.4);
    transform: translateY(-3px);
}

.btn-secondary {
    border-width: 2px;
    border-color: currentColor;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(1, 112, 185, 0.3);
}

/* ============================================
   8. ANIMACIONES DE SCROLL
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    transform: translateY(50px);
}

[data-animate="fade-left"] {
    transform: translateX(-50px);
}

[data-animate="fade-right"] {
    transform: translateX(50px);
}

/* ============================================
   9. NAVEGACIÓN MEJORADA
   ============================================ */

/* ============================================
   9. NAVEGACIÓN MEJORADA (NUEVO HEADER)
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1200;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.top-bar {
    background: #041729;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-link {
    color: inherit;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.2s ease;
}

.top-bar-link:hover {
    color: #ffffff;
}

.navbar {
    background: rgba(0, 23, 43, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: minmax(300px, max-content) 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 0;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo-img {
    max-height: 48px;
    height: auto;
    width: auto;
    max-width: 300px;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.3s ease;
    flex: 0 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo:focus-visible .site-logo-img,
.logo:hover .site-logo-img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    /* espacio reservado para subrayado */
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.2rem;
    border-radius: 0;
    letter-spacing: 0.005em;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.88);
    text-transform: none;
    border: none;
    background: transparent;
    transition: color 0.25s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c9a961, #0170B9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta {
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
}

@media (max-width: 1200px) {
    .nav-wrapper {
        grid-template-columns: auto auto;
        gap: 1rem;
    }

    .nav-menu {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 980px) {
    .nav-wrapper {
        grid-template-columns: auto auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(360px, 85vw);
        height: 100vh;
        background: #031123;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: -20px 0 45px rgba(0, 0, 0, 0.55);
        border-left: 1px solid rgba(201, 169, 97, 0.35);
        transition: right 0.35s ease;
        z-index: 1201;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        justify-content: space-between;
        font-size: 1rem;
        padding: 0.85rem 0.25rem;
    }

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

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .firm-info {
        text-align: left;
    }

    .firm-tagline {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-menu {
        width: min(320px, 88vw);
        padding-top: 5rem;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nav-menu a,
    .phone-link,
    .nav-toggle,
    .logo img,
    .btn,
    body.menu-open::after {
        transition: none;
    }

    .nav-menu a:hover,
    .nav-menu a.active,
    .phone-link:hover,
    .btn:hover {
        transform: none;
    }
}

/* ============================================
   10. RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        min-height: 500px;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

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

    .stat-item h3 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle {
        width: 52px;
        height: 52px;
    }

    .phone-link,
    .btn {
        min-height: 48px;
        padding: 1rem 1.75rem;
    }
}

.nav-menu a:focus,
.phone-link:focus,
.nav-toggle:focus,
.btn:focus {
    outline: 3px solid #c9a961;
    outline-offset: 2px;
    position: relative;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #00233A;
    color: #FFFFFF;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: all 0.3s;
}

.skip-link:focus {
    top: 6px;
    left: 6px;
}

.nav-toggle[aria-expanded="true"] {
    background-color: rgba(201, 169, 97, 0.35);
}

@media (prefers-contrast: high) {
    .nav-menu a {
        color: #FFFFFF;
        font-weight: 700;
    }

    .site-header {
        background-color: #001a2e;
        border-bottom: 2px solid #c9a961;
    }

    .phone-link {
        border-width: 3px;
        font-weight: 700;
    }
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background-color: #001321;
    }

    .nav-menu a {
        color: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .map-container .map-overlay {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: none !important;
    }
}

/* ============================================
   11. MAPA DE CONTACTO
   ============================================ */

.map-section {
    position: relative;
}

.map-container {
    position: relative;
}

.map-container iframe {
    filter: grayscale(20%);
    transition: filter 0.4s ease;
}

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

/* Overlay del mapa */
.map-container>div {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.map-container>div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease;
}

/* Responsive para el overlay del mapa */
@media (max-width: 768px) {
    .map-container {
        height: 400px !important;
    }

    .map-container iframe {
        height: 400px !important;
    }

    .map-container>div {
        position: static !important;
        margin: 1rem;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 350px !important;
    }

    .map-container iframe {
        height: 350px !important;
    }
}

/* Fix: Texto visible en footer contacto */
.site-footer .contact-info li {
    color: #1a1a1a !important;
}

.site-footer .contact-info a {
    color: #0170B9 !important;
}

.site-footer .contact-info a:hover {
    color: #c9a961 !important;
}

/* Fondo gris claro para la tarjeta de contacto */
.site-footer .contact-info-card {
    background-color: #f5f5f5 !important;
    padding: 1.5rem !important;
    border-radius: 8px !important;
}

/* Fix: Texto visible en página de contacto (fuera del footer) */
.contact-info {
    color: #1a1a1a !important;
}

.contact-info li {
    color: #1a1a1a !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.contact-info li svg {
    flex-shrink: 0 !important;
    color: #0170B9 !important;
    margin-top: 0.2rem !important;
}

.contact-info li strong {
    color: #0170B9 !important;
    font-weight: 600 !important;
}

.contact-info a {
    color: #0170B9 !important;
    text-decoration: none !important;
}

.contact-info a:hover {
    color: #c9a961 !important;
    text-decoration: underline !important;
}

.contact-info p {
    color: #444 !important;
}

.contact-info h4 {
    color: #1a1a1a !important;
}

/* Fix: Cards de abogados - asegurar que se vean */
#page_id_abogados .service-card {
    background: #ffffff !important;
    padding: 2rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(1, 112, 185, 0.1) !important;
}

#page_id_abogados .service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 8px 30px rgba(1, 112, 185, 0.2) !important;
}

#page_id_abogados .services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

#page_id_abogados .service-card h3 {
    color: #1a1a1a !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

#page_id_abogados .service-card p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

/* Fix: Fotos de abogados en cards */
#page_id_abogados .service-icon-img,
[data-page="abogados"] .service-icon-img {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: none !important;
    box-shadow: 0 10px 30px rgba(1, 112, 185, 0.2) !important;
    margin: 0 auto 1.5rem !important;
}

#page_id_abogados .service-icon-img img,
[data-page="abogados"] .service-icon-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    filter: none !important;
    border-radius: 50% !important;
}

#page_id_abogados .service-card:hover .service-icon-img,
[data-page="abogados"] .service-card:hover .service-icon-img {
    transform: scale(1.05) !important;
    background: none !important;
}

/* ============================================
   12. NUEVAS SECCIONES (MEJORAS)
   ============================================ */

/* Testimonials Section */
.section-testimonials {
    background-color: #f8f9fa;
    padding: 5rem 0;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

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

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(201, 169, 97, 0.2);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
}

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

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: #1a1a1a;
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
}

/* Team Preview Section */
.team-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-photo {
    height: 300px;
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo::before {
    content: '';
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23adb5bd'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    z-index: 0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.team-info .position {
    color: #0170B9;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

/* Quick Contact Form (Home) */
.quick-contact-section {
    background: linear-gradient(135deg, #0170B9 0%, #004a7c 100%);
    color: #fff;
    padding: 5rem 0;
}

.quick-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quick-contact-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.quick-contact-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.quick-contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.quick-contact-form .form-group label {
    color: #333;
}

.quick-contact-form .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .quick-contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}