/* =====================================================
   GPD PENAL â€” Global Styles
   Color palette:
     Deep Black:    #0F0F12
     Anthracite:    #1C1F26
     Cold White:    #F2F2F2
     Accent BurguÃ±dy: #8C182A  â† ACCENTS ONLY (lines, labels, btn bg, highlights)
     Border Bronze: #B39536
     Text Metallic: #A6ABB6
   ===================================================== */

:root {
    /* Spacing System (8px Grid Based) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-section: 160px;
    --space-hero: 240px;
}

/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Only use Cormorant Garamond (headings) and Inter (body). Never Arial, serif, or Cinzel. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Inter:wght@300;400;700&display=swap');

body,
p,
a,
span,
li,
div,
button,
input,
textarea {
    font-family: 'Inter', 'Helvetica Neue', 'Helvetica', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif-cormorant {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    color: #F2F2F2;
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings: "lnum";
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

/* â”€â”€ Hero: Background Image Filter â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-img-filter {
    filter: sepia(0.05) brightness(0.85) contrast(1.1);
    object-fit: cover;
}

/* â”€â”€ Hero: Per-image flex alignment â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* We enable flexbox on the slides to allow independent centering of contents */
.swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Specific framing moved below general swiper rules to avoid overrides */
/* 
.img-hero-1 { object-position: center 20%; }
.img-hero-2 { object-position: center 10%; }
.img-hero-3 { object-position: center 20%; }
.img-hero-4 { object-position: center 10%; }
*/

/* â”€â”€ Hero: Atmospheric Overlay (RESTORED) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.4) 0%, rgba(15, 15, 18, 0.95) 100%);
    z-index: 20;
    pointer-events: none;
}


/* â”€â”€ Hero Title: Unified Typography Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --hero-title-size: 5rem;
    /* Default for desktop */
    --hero-title-size-mobile: clamp(3rem, 12vw, 4rem);
    /* Fluid size for mobile. Increased minimum bound so "DEFENSA PENAL" looks large enough */
}

@media (min-width: 768px) {
    :root {
        --hero-title-size: 5rem;
        /* High-end editorial size */
    }
}

@media (min-width: 1280px) {
    :root {
        --hero-title-size: 6rem;
        /* Premium large screen size */
    }
}

.hero-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: var(--hero-title-size-mobile) !important;
    color: #F2F2F2;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.9;
    font-weight: 700;
    font-variant-numeric: lining-nums;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--hero-title-size) !important;
    }
}

/* â”€â”€ Unified Section Titles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-title-standard {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(2rem, 10vw, 4.5rem) !important;
    /* Fluid size: scales dynamically based on screen width for maximum impact */
    text-transform: uppercase;
    letter-spacing: -0.05em;
    /* tracking-tighter */
    line-height: 1.1;
    /* leading-tight adjusted for larger text */
    margin-bottom: 4rem;
    font-weight: 700;
    color: #F2F2F2;
}

@media (min-width: 1024px) {
    .section-title-standard {
        font-size: clamp(4rem, 6vw, 5.5rem) !important;
        /* Prevent overflow inside fixed-width columns while scaling up gracefully */
        margin-bottom: 5rem;
    }
}


/* â”€â”€ Sub-block Titles (smaller than main section titles) â”€â”€ */
/* Used for 'EL SISTEMA PENAL', 'NUESTRA ESTRATEGIA', 'LO QUE ESTÃ EN JUEGO' */
.section-title-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.875rem !important;
    /* text-3xl */
    font-weight: 700;
    color: #F2F2F2;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title-sub {
        font-size: 2.25rem;
        /* text-4xl */
    }
}

/* â”€â”€ CTA Button: Metallic Shimmer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-cta {
    position: relative;
    overflow: hidden;
    padding: 20px 48px;
    /* Increased from 16x36 */
    background: #8C182A;
    color: #F2F2F2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 13px;
    /* Increased from 11px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.36s ease-in-out, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(179, 149, 54, 0.3);
}

.hero-cta:hover {
    background: #6e1020;
    transform: translateY(-1px);
}

/* The metallic golden shimmer streak */
.hero-cta::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -120%;
    width: 20%;
    height: 300%;
    background: linear-gradient(90deg,
            transparent,
            rgba(198, 160, 60, 0.05),
            rgba(245, 220, 130, 0.05),
            rgba(198, 160, 60, 0.055),
            transparent);
    transform: rotate(20deg) scaleX(0.5);
    transition: left 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), background 1.5s ease;
}

.hero-cta:hover::after {
    left: 150%;
    transform: rotate(45deg) scaleX(2.5);
    background: linear-gradient(90deg,
            transparent,
            rgba(198, 160, 60, 0.1),
            rgba(245, 220, 130, 0.1),
            rgba(198, 160, 60, 0.1),
            transparent);
}

/* â”€â”€ Footer: Stein & Markus Inspired â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer-spacious {
    position: relative;
    padding: 120px 8% 60px 8%;
    color: var(--color-cold-white);
    background-color: var(--color-deep-black);
    /* Fallback */
    overflow: hidden;
    border-top: 1px solid #8C182A;
}

.footer-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.35;
}

/* Lighter overlay so imagen_2.jpg is more visible */
.footer-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(10, 17, 26, 0.88) 0%,
            rgba(10, 17, 26, 0.60) 60%,
            rgba(10, 17, 26, 0.40) 100%);
    z-index: 1;
}

.btn-top {
    position: absolute;
    top: 0;
    right: 0;
    background: #B39536;
    color: #F2F2F2;
    padding: 15px 30px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    transition: background 0.24s ease-in-out;
}

.btn-top:hover {
    background: #967c2d;
}

/* â”€â”€ Overlap Lines (Jurisprudencia Section) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.overlap-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(179, 149, 54, 0.4);
    pointer-events: none;
    z-index: 5;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.overlap-line-tl {
    transform: translate(-10px, -10px);
}

.overlap-line-br {
    transform: translate(10px, 10px);
}

.plaque-container:hover .overlap-line-tl {
    transform: translate(-11px, -11px);
}

.plaque-container:hover .overlap-line-br {
    transform: translate(11px, 11px);
}

/* â”€â”€ Partners: Hover Glow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.partner-name {
    transition: text-shadow 0.36s ease-in-out, color 0.24s ease-in-out;
}

.partner-card:hover .partner-name {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(242, 242, 242, 0.18), 0 0 16px rgba(140, 24, 42, 0.12);
}


.cta-margin {
    margin-top: 3.5rem;
    /* Increased spacing for better "air" */
}

/* â”€â”€ WhatsApp Pulse Animation â€” 3 pulses, then rests â”€â”€ */
@keyframes wa-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(179, 149, 54, 0.25);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 28px rgba(179, 149, 54, 0.4);
    }
}

.wa-pulse {
    /* 3 pulses Ã— 1.6s each = 4.8s active, then 8s pause via delay trick */
    animation: wa-pulse 1.6s ease-in-out 3;
    animation-delay: 1s;
}

/* â”€â”€ Infinite Marquee Testimonials â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 50s linear infinite;
}

/* â”€â”€ Custom Swiper Arrows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.swiper-button-next,
.swiper-button-prev {
    color: #F2F2F2 !important;
    background: rgba(15, 15, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    transition: background 0.24s ease-in-out, border-color 0.24s ease-in-out, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(140, 24, 42, 0.8);
    border-color: #8C182A;
    transform: scale(1.03);
}

/* â”€â”€ Swiper Cinematic Framing â€” 8px Grid Compatible â”€â”€ */
.swiper-slide {
    display: flex;
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    /* Centrado vertical */
    overflow: hidden;
    width: 100%;
}

.swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantenemos cover para estÃ©tica editorial, pero centrado por flex */
    object-position: center;
    transition: transform 0.64s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Para imÃ¡genes con tamaÃ±o irregular (MÃ©todo 2 sugerido) */
.img-contain {
    object-fit: contain !important;
}

/* Specific framing for press thumbnails if needed */
.press-thumbnail {
    object-position: center 40%;
}

.medios-slide {
    padding: 24px;
    /* Gallery "framed" feel */
}

.portrait-thumbnail {
    object-position: center 30%;
    /* Focus on the upper third (faces) */
}

/* â”€â”€ Individual Asset Framing (Manual Control) â”€â”€â”€â”€â”€â”€ */
/* Use these classes to fine-tune each image independently */

.img-partner-1 {
    object-position: center 25%;
}

.img-partner-2 {
    object-position: center 30%;
}

.img-partner-3 {
    object-position: center 20%;
}

.img-press-1 {
    object-position: center 40%;
}

.img-press-2 {
    object-position: center 40%;
}

.img-press-3 {
    object-position: center 40%;
}

.img-press-4 {
    object-position: center 40%;
}

/* â”€â”€ Hero Swiper: Responsive Positioning â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Mobile (Default) */
.heroSwiper .swiper-slide img.img-hero-1 {
    object-position: center 10% !important;
}

.img-press-5 {
    object-position: center 40%;
}

.heroSwiper .swiper-slide img.img-hero-2 {
    object-position: center 10% !important;
}

.heroSwiper .swiper-slide img.img-hero-3 {
    object-position: center 20% !important;
}

.heroSwiper .swiper-slide img.img-hero-4 {
    object-position: center 10% !important;
}

/* Desktop (Large Screens) */
@media (min-width: 1024px) {
    .heroSwiper .swiper-slide img.img-hero-1 {
        object-position: center 90% !important;
    }

    .heroSwiper .swiper-slide img.img-hero-2 {
        object-position: center 40% !important;
    }

    .heroSwiper .swiper-slide img.img-hero-3 {
        object-position: center 30% !important;
    }

    .heroSwiper .swiper-slide img.img-hero-4 {
        object-position: center 20% !important;
    }
}

/* â”€â”€ Section: Lo que estÃ¡ en juego â€” Image Positioning â”€â”€ */
.img-consecuencias-1 {
    object-position: center center;
    /* Default, adjust as needed */
}

.img-consecuencias-2 {
    object-position: 70% 50% !important;
    /* Ensuring the sign/important part is visible */
}



/* â”€â”€ Animated Draw Lines â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes drawLineVertical {
    0% {
        height: 0;
        opacity: 0;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

@keyframes drawLineHorizontal {
    0% {
        width: 0;
        opacity: 0;
    }

    100% {
        width: 100%;
        opacity: 1;
    }
}

.animate-draw-v {
    animation: drawLineVertical 1.8s ease-in-out forwards;
}

.animate-draw-h {
    animation: drawLineHorizontal 1.8s ease-in-out forwards;
}

/* â”€â”€ Typography Background Watermarks â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mobile-phone-bar {
    display: none;
    width: 100%;
    padding: 15px 8%;
    justify-content: center;
    gap: 30px;
    align-items: center;
    position: fixed;
    top: 96px;
    /* Header height (24 * 4px = 96px) */
    left: 0;
    z-index: 40;
}

.hamburger-btn {
    display: none;
}

@media (max-width: 1023px) {
    .hamburger-btn {
        display: block;
    }
}

.bg-watermark {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 10rem;
    font-weight: 700;
    line-height: 0.8;
    color: #F2F2F2;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

@media (max-width: 767px) {
    :root {
        --space-section: 60px;
        --space-hero: 90px;
    }

    /* Smaller margins for sections (Vertical ONLY) */
    .py-section {
        padding-top: var(--space-section) !important;
        padding-bottom: var(--space-section) !important;
    }

    .py-hero {
        padding-top: var(--space-hero) !important;
        padding-bottom: var(--space-hero) !important;
    }

    /* Video Section larger view */
    .medios-slide {
        padding: 12px 0;
    }

    /* Watermark size reduction */
    .bg-watermark {
        font-size: 4rem !important;
    }

    /* Mobile Header adjustments */
    .nav-cta-box {
        display: none !important;
    }

    /* Mobile Phone Bar */
    .mobile-phone-bar {
        display: flex !important;
        background-color: #1C1F26;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* â”€â”€ BOUTIQUE: Tight leading on all headings â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    h1,
    h2 {
        line-height: 1 !important;
        max-width: 100%;
        word-break: break-word;
    }

    h3,
    h4,
    h5,
    h6 {
        line-height: 1.1 !important;
        max-width: 100%;
        word-break: break-word;
    }

    /* â”€â”€ Proportional subtitle/label scaling â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    h3 {
        font-size: 1.4rem !important;
    }

    h4 {
        font-size: 1.15rem !important;
    }

    /* Labels: monospaced uppercase text */
    .font-mono,
    p[class*="tracking-[0.4em]"],
    p[class*="tracking-[0.5em]"] {
        font-size: 0.65rem !important;
    }

    /* Body text slightly smaller */
    .font-sans-inter.text-sm {
        font-size: 0.8rem !important;
    }

    /* Unified section title treatment on mobile */
    .section-title-mobile {
        font-size: 2.2rem !important;
        line-height: 1 !important;
        letter-spacing: -0.04em !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    /* Hero title: Boutique editorial size (Handled by fluid clamp now) */
    .hero-title {
        font-size: 2.4rem !important;
        /* Calibrated to fit 4 lines and dominate section titles */
        line-height: 1 !important;
        letter-spacing: -0.04em !important;
        max-width: 100% !important;
        word-break: break-word !important;
    }


    /* â”€â”€ Mobile: Footer smaller padding â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .footer-spacious {
        padding: 40px 5% 24px 5% !important;
    }

    .footer-spacious h4 {
        margin-bottom: 16px !important;
        font-size: 0.65rem !important;
    }

    .footer-spacious ul {
        gap: 4px !important;
    }

    .footer-spacious p,
    .footer-spacious a:not(.text-5xl),
    .footer-spacious li {
        font-size: 0.65rem !important;
    }

    /* Bottom bar specifics (Copyright, Legal Links) */
    .footer-spacious div.border-t p,
    .footer-spacious div.border-t a,
    .footer-spacious div.border-t span {
        font-size: 8px !important;
    }

    .footer-spacious a.text-5xl {
        font-size: 2.2rem !important;
    }

    /* â”€â”€ Mobile: Nav Logo slightly larger â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .logo-gpd {
        font-size: 1.3rem !important;
    }

    /* â”€â”€ Mobile: Hamburger menu font smaller â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    #mobile-menu a {
        font-size: 1.5rem !important;
    }

    /* â”€â”€ Mobile: Contact section stacked layout â”€â”€â”€â”€â”€â”€â”€â”€ */
    .contact-map-wrapper {
        position: relative !important;
        width: 100% !important;
        height: 260px !important;
        inset: unset !important;
    }

    .contact-section-mobile {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .contact-form-wrapper {
        width: 100% !important;
        z-index: 10 !important;
        position: relative !important;
        padding: 24px !important;
    }

    /* â”€â”€ Mobile: Contact form inputs smaller â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .contact-form-wrapper input,
    .contact-form-wrapper select,
    .contact-form-wrapper textarea {
        padding: 14px 16px !important;
        padding-top: 22px !important;
        font-size: 0.8rem !important;
    }

    .contact-form-wrapper h3 {
        font-size: 2rem !important;
    }

    .contact-form-wrapper .hero-cta {
        padding: 14px 24px !important;
        font-size: 0.7rem !important;
    }

    /* â”€â”€ Mobile: Testimonials smaller â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    .testimoniosSwiper .swiper-slide {
        padding: 24px !important;
    }

    .testimoniosSwiper p.font-serif-cormorant {
        font-size: 1.2rem !important;
    }

    /* â”€â”€ Mobile: WhatsApp button wider, centered â”€â”€â”€â”€â”€â”€â”€ */
    #wa-toggle {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
    }

    /* Hide the chat box on mobile entirely */
    #wa-box {
        display: none !important;
    }
}


/* Image Offset Block Utility */
.img-offset-block {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.img-offset-block::after {
    content: "";
    position: absolute;
    top: 25px;
    right: -25px;
    width: 100%;
    height: 100%;
    background-color: #8C182A;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.img-offset-block .relative.z-10 {
    position: relative;
    z-index: 10;
}