/* 
    Premium Upgrade for Ventimiglia Abogados
    "Taking it to the next level"
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #963436;
    /* Original brand red */
    --accent-color: #C5A059;
    /* Premium Gold */
    --dark-bg: #121212;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Fixes for Cross-Browser/Mobile Consistency */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scroll on mobile */
    width: 100%;
}

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

/* Global Typography Overrides */
body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.title-law h2,
.title-law-center h2 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700 !important;
}

/* Header Glassmorphism */
.header-wrapper {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    padding: 12px 0px !important;
    position: relative;
    z-index: 1000;
}

.header-wrapper.sticky {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.menu ul li a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
}

.menu ul li a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.menu ul li a:hover::after,
.menu ul li a.active::after {
    width: 100%;
}

/* Hero Section Refinement */
._slider_01 .carousel-item {
    background: #000;
    height: calc(var(--vh, 1vh) * 100);
    /* Use dynamic VH for mobile */
    min-height: 500px;
}

._slider_01 .carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 8s ease;
}

._slider_01 .carousel-item.active img {
    transform: scale(1.1);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    padding: 2rem;
    border-radius: 15px;
    bottom: 30% !important;
}

.carousel-caption h2 {
    font-size: 3.5rem !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Premium Buttons */
.btn_01 a {
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    background: transparent;
    border: 2px solid #fff !important;
    transition: var(--transition-smooth);
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
}

.btn_01 a:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
}

/* Section Titles */
.title-law h2::before,
.title-law-center h2::before {
    background: var(--accent-color) !important;
    height: 4px !important;
}

.title-law h2 span {
    color: var(--primary-color) !important;
}

/* Service Cards System - High Specificity Override */
.practice-area .our-pra-are {
    max-width: 100% !important;
    height: 300px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background: #fdfdfd !important;
    display: block !important;
    /* Reset flex to allow absolute positioning of text */
}

.practice-area .our-pra-are .our-pra-are-img {
    height: 100% !important;
    width: 100% !important;
    border-radius: 12px !important;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* Remove legacy dark overlay */
.practice-area .our-pra-are .our-pra-are-img::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%) !important;
    opacity: 0.8 !important;
    border-radius: 12px !important;
}

.practice-area .our-pra-are:hover .our-pra-are-img::after {
    background: linear-gradient(to top, var(--primary-color) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    opacity: 0.9 !important;
}

.practice-area .our-pra-are h2 {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    font-size: 1.15rem !important;
    color: #ffffff !important;
    padding: 25px 15px !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    background: transparent !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    pointer-events: none;
}

/* Reset legacy borders/lines on h2 */
.practice-area .our-pra-are h2::before,
.practice-area .our-pra-are h2::after {
    display: none !important;
}

.practice-area .our-pra-are:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(150, 52, 54, 0.25) !important;
}

/* Counter Section */
.counter-sec {
    background: linear-gradient(135deg, var(--primary-color), #6b2527) !important;
    padding: 80px 0;
}

.counter-sec-img img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 15px;
    max-height: 50px;
}

/* Service Block Upgrades (for sub-pages) */
.ser-block {
    background: #fff;
    padding: 35px 25px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition-smooth) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
}

.ser-block:hover {
    background: var(--dark-bg) !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.ser-block:hover h4 a {
    color: #fff !important;
}

.ser-icon {
    margin-bottom: 20px;
}

.ser-icon img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.ser-block:hover .ser-icon img {
    filter: brightness(0) invert(1);
    transform: rotateY(180deg);
}

.ser-block h4 {
    font-size: 1.1rem !important;
    margin: 0;
}

.ser-block h4 a {
    color: var(--dark-bg) !important;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

/* WhatsApp Button Pulse */
#whatsapp-premium-global {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366 !important;
    width: 65px !important;
    height: 65px !important;
    line-height: 65px !important;
    font-size: 35px !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    animation: pulse-green 2s infinite;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999999;
    text-decoration: none !important;
}




/* Icon System - Definitive Fix for Squares and Distortion */
.fa,
.fab,
.far,
.fas,
.fa-brands,
.fa-solid {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", "FontAwesome", sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.25em !important;
    height: 1.25em !important;
    line-height: 1 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: 400 !important;
    vertical-align: middle;
}

/* WhatsApp Floating Button - Brand Correct */
#whatsapp-premium-global {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4) !important;
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}

#whatsapp-premium-global:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5) !important;
}

#whatsapp-premium-global::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: wsp-ripple 2s infinite;
    pointer-events: none;
}

@keyframes wsp-ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Cookie Consent card - Floating Modern */
.premium-cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px !important;
    padding: 0 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
    z-index: 999999;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    overflow: hidden;
    opacity: 0;
}

.premium-cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-header {
    background: var(--accent-color);
    padding: 12px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cookie-body {
    padding: 25px;
}

.cookie-body h3 {
    margin: 0 0 10px 0 !important;
    font-size: 1.1rem !important;
    color: #111 !important;
    font-weight: 700 !important;
}

.cookie-body p {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.cookie-footer {
    padding: 0 25px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cookie-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cookie-secondary {
    background: #f4f4f4 !important;
    color: #777 !important;
    border: none !important;
    padding: 10px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    cursor: pointer;
}

@media (max-width: 768px) {
    .premium-cookie-banner {
        left: 15px;
        right: 15px;
        width: auto;
        bottom: 100px;
        /* Above WhatsApp */
    }
}

@media (max-width: 991px) {
    .premium-cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Social Icons Refinement */
.topbar-social ul li a i,
.topbar-social ul li a span,
._ne_ol_vw ol li a i,
.footer-links ul li a i {
    transition: var(--transition-smooth);
    display: inline-block;
}

.topbar-social ul li a:hover i,
._ne_ol_vw ol li a:hover i,
.footer-links ul li a:hover i {
    color: var(--accent-color) !important;
    transform: translateY(-3px) scale(1.1);
}

.fa-brands {
    font-size: 1.1rem;
    vertical-align: middle;
}

.topbar-social ul li {
    padding: 0 12px !important;
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .carousel-caption {
        bottom: 20% !important;
        padding: 1.5rem;
    }

    .carousel-caption h2 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 1.8rem !important;
    }

    .title-law h2,
    .title-law-center h2 {
        font-size: 1.6rem !important;
    }

    .counter-sec-img {
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .header-wrapper {
        padding: 8px 0px !important;
    }
}