/* ==========================================================================
   DESIGN SYSTEM VARIABLES (TOKENS)
   ========================================================================== */
:root {
    /* Color Palette (Extracted from Real Logo) */
    --primary-color: #183080;       /* Corporate Trust Blue */
    --primary-light: #2040aa;      /* Highlight Blue */
    --secondary-color: #70a038;     /* Leaf Agricultural Green */
    --secondary-light: #7cb83e;     /* Highlight Green */
    --accent-color: #f4f440;        /* Sunset Gold/Yellow Accent */
    --neutral-dark: #0d1b3e;        /* Deep Navy for rich typography */
    --neutral-light: #f8f8f8;       /* Clean Light Grey for backgrounds */
    --white: #ffffff;
    --gray-text: #556280;
    --border-color: rgba(13, 27, 62, 0.08);

    /* Fonts */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Border Radii (Level 12 soft/rounded premium) */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows & Depths */
    --shadow-sm: 0 4px 6px rgba(13, 27, 62, 0.03);
    --shadow-md: 0 12px 24px rgba(13, 27, 62, 0.06);
    --shadow-lg: 0 24px 48px rgba(13, 27, 62, 0.12);
    --shadow-glow-blue: 0 0 15px rgba(24, 48, 128, 0.2);
    --shadow-glow-green: 0 0 15px rgba(112, 160, 56, 0.2);

    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

strong {
    font-weight: 600;
}

/* Common Layout Containers */
.max-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(24, 48, 128, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(24, 48, 128, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(112, 160, 56, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(112, 160, 56, 0.35);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.uppercase-track {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   NAVIGATION BAR (GLASSMORPHISM)
   ========================================================================== */
.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(24, 48, 128, 0.06);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.navbar-wrapper.scrolled .navbar {
    height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    height: 48px;
    width: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.navbar-wrapper.scrolled .logo-badge {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-subtext {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 0.15em;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    outline: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--neutral-dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.nav-link:hover:not(.btn-primary):not(.btn-secondary) {
    color: var(--primary-color);
    background-color: rgba(24, 48, 128, 0.05);
}

.nav-link.active:not(.btn-primary):not(.btn-secondary) {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    padding-bottom: 6px;
}

/* ==========================================================================
   NAVBAR ACTION BUTTONS (HIGH-CONTRAST & PREMIUM GLOW)
   ========================================================================== */
.nav-link.btn-primary,
.nav-link.btn-secondary {
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md) !important;
    color: var(--white) !important; /* Force override of standard dark text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: var(--transition-smooth);
}

/* Contact / Solicitar Personal Button (Primary Blue Glow) */
.nav-link.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    box-shadow: 0 4px 12px rgba(24, 48, 128, 0.25) !important;
}

.nav-link.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, #254acc 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 48, 128, 0.45), 0 0 10px rgba(32, 74, 220, 0.25) !important;
    color: var(--white) !important;
}

/* Bolsa / Trabaja con Nosotros Button (Agricultural Green Glow) */
.nav-link.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
    box-shadow: 0 4px 12px rgba(112, 160, 56, 0.2) !important;
}

.nav-link.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, #8ac84a 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(112, 160, 56, 0.4), 0 0 10px rgba(124, 184, 62, 0.25) !important;
    color: var(--white) !important;
}

/* Active Press Effect */
.nav-link.btn-primary:active,
.nav-link.btn-secondary:active {
    transform: translateY(0);
}

/* ==========================================================================
   HERO SECTION (FULL-SCREEN CAROUSEL + TICKER)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Asymmetrical Left-aligned */
    overflow: hidden;
    background-color: var(--neutral-dark);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08); /* Starts zoomed in slightly */
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.0); /* Zooms out smoothly to 100% (Ken Burns Effect) */
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left Aligned */
    text-align: left;
    max-width: 700px;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(13, 27, 62, 0.5);
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(24, 48, 128, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: var(--radius-md); /* Consistent rounding */
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-badge .icon-spin {
    color: var(--accent-color);
    font-variation-settings: 'FILL' 1;
    font-size: 1.1rem;
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 4rem;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.text-gradient-white {
    background: linear-gradient(135deg, var(--white) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 620px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

.hero-actions .btn-primary:hover {
    box-shadow: 0 0 25px rgba(24, 48, 128, 0.6);
}

.hero-actions .btn-secondary:hover {
    box-shadow: 0 0 25px rgba(112, 160, 56, 0.6);
}

/* Entrance Animations */
.animate-fade-in {
    animation: heroFadeIn 0.8s ease-out forwards;
}

.animate-slide-up-1 {
    opacity: 0;
    animation: heroSlideUp 0.8s ease-out 0.2s forwards;
}

.animate-slide-up-2 {
    opacity: 0;
    animation: heroSlideUp 0.8s ease-out 0.4s forwards;
}

.animate-slide-up-3 {
    opacity: 0;
    animation: heroSlideUp 0.8s ease-out 0.6s forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Carousel Controls & Indicators (Ultra-Subtle) */
.carousel-controls {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 5;
}

.control-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    color: var(--white);
    opacity: 0.8;
    transform: scale(1.1);
}

.control-btn .material-symbols-outlined {
    font-size: 1.5rem;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.indicator.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 6px var(--accent-color);
}

/* Brand Ticker (Infinite Horizontal Ribbon) */
.hero-brand-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: rgba(13, 27, 62, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 6;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.brand-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.brand-ticker {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    animation: ticker-slide 50s linear infinite; /* Slowed down to 50s for a premium, elegant, and non-distracting pace */
}

.ticker-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent-color);
    margin-right: 80px; /* Increased from 32px to 80px for a more spacious, premium feel */
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ticker-item {
    font-family: var(--font-title);
    font-weight: 750;
    font-size: 1.1rem;
    color: var(--white);
    margin-right: 80px; /* Increased from 32px to 80px for a more spacious, premium feel */
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
}

.ticker-sub {
    font-size: 0.65rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--secondary-color);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-left: 10px;
    vertical-align: middle;
}

.ticker-dot {
    color: rgba(255, 255, 255, 0.25);
    margin-right: 80px; /* Increased from 32px to 80px for a more spacious, premium feel */
    font-size: 1.25rem;
}

@keyframes ticker-slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* ==========================================================================
   ABOUT US / VALUES SECTION
   ========================================================================== */
/* Scroll Reveal Presentation Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed,
.scroll-reveal-left.revealed,
.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

.nosotros-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 70px;
    align-items: center;
    width: 100%;
}

.nosotros-image-container {
    position: relative;
}

.photo-border-glow {
    position: absolute;
    top: -12px;
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    border: 3px solid var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.owner-portrait-card {
    position: relative;
    z-index: 2;
    aspect-ratio: 4 / 5;
    background: linear-gradient(180deg, rgba(13, 27, 62, 0.15) 0%, rgba(13, 27, 62, 0.85) 100%), 
                url('../images/jpd_real.webp') center/cover no-repeat;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.owner-portrait-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.owner-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    z-index: 3;
}

.owner-logo-overlay {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    object-fit: cover;
    transition: var(--transition-smooth);
}

.owner-portrait-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(244, 244, 64, 0.25);
}

.owner-portrait-card:hover .owner-logo-overlay {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 15px rgba(244, 244, 64, 0.4);
}


.portrait-quote {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
    font-style: italic;
    opacity: 0.95;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.owner-name-tag {
    display: flex;
    flex-direction: column;
}

.owner-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.owner-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.nosotros-content {
    display: flex;
    flex-direction: column;
}

.section-label {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--secondary-color);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 850;
    font-size: 2.25rem;
    color: var(--neutral-dark);
    line-height: 1.25;
    margin-bottom: 24px;
}

.italic-quote {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.about-paragraphs p {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.about-paragraphs strong {
    color: var(--neutral-dark);
}

/* Stats Grid (Option A) */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 20px;
    margin-top: 36px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: linear-gradient(135deg, rgba(24, 48, 128, 0.01) 0%, rgba(24, 48, 128, 0.03) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 48, 128, 0.05);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(24, 48, 128, 0.02) 0%, rgba(24, 48, 128, 0.05) 100%);
    border-color: rgba(24, 48, 128, 0.12);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 850;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--gray-text);
    line-height: 1.4;
    font-weight: 500;
}

/* Founder Signature Block */
.founder-signature-wrapper {
    margin-top: 32px;
}

.signature-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(24, 48, 128, 0.15) 0%, rgba(24, 48, 128, 0.02) 100%);
    margin-bottom: 20px;
    width: 100%;
}

.signature-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.signature-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 750;
    font-style: italic;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.signature-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary-color);
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--gray-text);
    line-height: 1.4;
}

/* ==========================================================================
   SERVICES SECTION (INTERACTIVE ASYMMETRICAL ACCORDION & SHOWCASE)
   ========================================================================== */
.servicios-section {
    padding: 100px 0;
    background-color: var(--neutral-light);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 12px auto 0 auto;
}

/* Asymmetrical Layout Grid */
.servicios-grid-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* Left Accordion Column */
.servicios-cards-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Interactive Accordion Cards */
.servicio-interactive-card {
    background-color: var(--white);
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    transform: scale(0.98);
}

.servicio-interactive-card:hover {
    opacity: 0.8;
    transform: scale(0.99) translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Active Accordion Card State */
.servicio-interactive-card.active {
    opacity: 1;
    transform: scale(1) translateX(8px);
    border-color: rgba(24, 48, 128, 0.15);
    box-shadow: var(--shadow-lg);
}

/* Icon Box Structure */
.service-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(24, 48, 128, 0.08);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.servicio-interactive-card:hover .service-icon-box:not(.bg-white-accent) {
    background-color: var(--primary-color);
    color: var(--white);
}

.servicio-interactive-card.active .service-icon-box:not(.bg-white-accent) {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Card Header (Icon + Title) */
.service-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-card-header h3 {
    font-family: var(--font-title);
    font-weight: 750;
    font-size: 1.25rem;
    color: var(--neutral-dark);
    margin: 0;
    transition: var(--transition-smooth);
}

/* Card Body (Paragraph + Checklist) */
.service-card-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.servicio-interactive-card.active .service-card-body {
    max-height: 400px;
    opacity: 1;
    margin-top: 16px;
}

.servicio-interactive-card p {
    font-size: 0.925rem;
    color: var(--gray-text);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Feature Checkmarks Box */
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: rgba(24, 48, 128, 0.02);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(24, 48, 128, 0.04);
    transition: var(--transition-smooth);
}

.servicio-interactive-card:hover .service-features {
    background-color: rgba(24, 48, 128, 0.035);
    border-color: rgba(24, 48, 128, 0.08);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-title);
    font-weight: 650;
    font-size: 0.825rem;
    color: var(--neutral-dark);
}

.material-symbols-outlined.text-green {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Highlighted Services Card (Advantages of JPD - Blue Card) */
.servicio-interactive-card.highlighted-card {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: none;
}

.servicio-interactive-card.highlighted-card h3 {
    color: var(--white);
}

.servicio-interactive-card.highlighted-card p {
    color: rgba(255, 255, 255, 0.85);
}

.servicio-interactive-card.highlighted-card .service-features {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.servicio-interactive-card.highlighted-card .service-features li {
    color: var(--white);
}

.service-icon-box.bg-white-accent {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
}

.material-symbols-outlined.text-yellow {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Double-border Gold Highlight on Active Blue Card */
.servicio-interactive-card.highlighted-card.active {
    box-shadow: 0 20px 40px rgba(24, 48, 128, 0.25), 0 0 20px rgba(244, 244, 64, 0.25);
    border: 1px solid rgba(244, 244, 64, 0.35);
}

/* Right Showcase Panel (Image Stack Previsualizer) */
.servicios-showcase-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.showcase-glow-border {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(244, 244, 64, 0.25); /* Double visual border glow matching Nosotros Section photo */
    box-shadow: 0 24px 48px rgba(13, 27, 62, 0.18), 0 0 35px rgba(24, 48, 128, 0.12);
    position: relative;
    transition: var(--transition-smooth);
}

.showcase-glow-border::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px dashed rgba(244, 244, 64, 0.2);
    border-radius: calc(var(--radius-lg) + 6px);
    pointer-events: none;
}

.showcase-images-frame {
    width: 100%;
    min-height: 480px;
    position: relative;
    border-radius: calc(var(--radius-lg) - 8px);
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(13, 27, 62, 0.4);
}

.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08); /* starts slightly zoomed for smooth Ken Burns activation */
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.showcase-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 62, 0.05) 40%, rgba(13, 27, 62, 0.45) 100%);
    z-index: 3;
    pointer-events: none;
}


/* ==========================================================================
   GALLERY SECTION (INTERACTIVE MOSAIC + PREMIUM LIGHTBOX)
   ========================================================================== */
.gallery-section {
    padding: 90px 0; /* Large premium margins matching flow of adjacent sections */
    background: linear-gradient(180deg, var(--neutral-light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

/* Horizontal Operations Mosaic Wrapper */
.gallery-horizontal-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 24px 0; /* Let scale/tilt effects overflow safely */
    cursor: grab;
    transition: cursor 0.2s ease;
}

.gallery-horizontal-wrapper.dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snap during active drag for fluid movement */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-horizontal-wrapper::-webkit-scrollbar {
    display: none;
}

/* Grid-based Horizontal Asymmetric Mosaic Track */
.gallery-horizontal-track {
    display: grid;
    grid-template-rows: repeat(2, 280px);
    grid-auto-flow: column dense;
    grid-auto-columns: 280px;
    gap: 12px;
    padding: 0 24px;
    width: max-content; /* Allow track to expand horizontally */
}

/* Base Mosaic Card Styling */
.gallery-item {
    grid-column: span 1;
    grid-row: span 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    scroll-snap-align: start;
    background-color: var(--white);
}

/* Mosaic Cell Dimension Mapping */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.tall {
    grid-column: span 1;
    grid-row: span 2;
}
.gallery-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Hover Scaling and Organic Tilt micro-animation */
.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 5;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* Disable default browser drag */
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08) rotate(0.5deg); /* Organic tilt depth */
}

/* Bottom-Up Premium Glassmorphism Card Overlay */
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 27, 62, 0) 30%, rgba(13, 27, 62, 0.7) 65%, rgba(13, 27, 62, 0.95) 100%);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 2;
}

/* Add premium backdrop blur support on hover */
.gallery-item-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 62, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .gallery-item-overlay::before {
    opacity: 1;
}

.gallery-item-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.gallery-item-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.gallery-item-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
}

.gallery-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    font-size: 1.3rem !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsiveness on Mobile Viewports */
@media (max-width: 768px) {
    .gallery-horizontal-track {
        grid-template-rows: repeat(2, 170px);
        grid-auto-columns: 170px;
        gap: 8px;
        padding: 0 12px;
    }
    
    .gallery-horizontal-wrapper {
        padding: 12px 0;
    }
    
    .gallery-item-overlay {
        padding: 12px;
    }
    
    .gallery-item-title {
        font-size: 0.95rem;
    }
    
    .gallery-item-desc {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .gallery-zoom-icon {
        top: 12px;
        right: 12px;
        width: 26px;
        height: 26px;
        font-size: 1.1rem !important;
    }
}

/* Premium Lightbox Modal */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 27, 62, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10010;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    background: #eb5757;
    border-color: #eb5757;
    transform: scale(1.1) rotate(90deg);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10005;
    transition: var(--transition-smooth);
}

.lightbox-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
    left: 40px;
}

.lightbox-arrow-right {
    right: 40px;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10002;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
    display: block;
}

.lightbox-caption {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    margin-top: 20px;
    text-align: left;
}

.lightbox-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.08em;
    display: inline-block;
    margin-bottom: 4px;
}

.lightbox-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px 0;
}

.lightbox-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments for Gallery Mosaic */
@media (max-width: 1023px) {
    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
        gap: 16px;
    }
    
    .lightbox-arrow-left { left: 20px; }
    .lightbox-arrow-right { right: 20px; }
    .lightbox-content { max-width: 90%; }
}

@media (max-width: 767px) {
    .gallery-section {
        padding: 70px 0;
    }
    
    .gallery-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 16px;
    }
    
    /* Reset all mosaic spans on mobile for seamless list layout */
    .gallery-item.large,
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    
    .lightbox-arrow {
        display: none; /* Swipe gestures or tap takes precedence in mobile lightbox */
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonios-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Facebook Embed Carousel Layout */
.fb-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 40px;
    transition: max-width 0.5s ease;
}

@media (min-width: 1024px) {
    .fb-carousel-container {
        max-width: 1200px;
    }
}

.fb-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0; /* Add top/bottom padding to prevent scaled center card from being clipped */
}

.fb-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.fb-comment-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity, filter;
}

@media (min-width: 1024px) {
    .fb-comment-slide {
        flex: 0 0 33.33333%;
        width: 33.33333%;
        padding: 15px;
        transform: scale(0.88);
        opacity: 0.45;
        filter: blur(2.5px);
        z-index: 1;
    }

    .fb-comment-slide.active-center {
        transform: scale(1.06);
        opacity: 1;
        filter: none;
        z-index: 5;
    }
}

/* Facebook Embed Card */
.fb-embed-card {
    background-color: var(--white);
    border: 1px solid rgba(13, 27, 62, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fb-embed-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(24, 48, 128, 0.15);
}

.fb-embed-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.fb-avatar-container {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.fb-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 1px solid rgba(13, 27, 62, 0.1);
}

.fb-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

/* Gradient backgrounds for placeholder avatars */
.bg-blue-grad { background: linear-gradient(135deg, #183080 0%, #1e88e5 100%); }
.bg-green-grad { background: linear-gradient(135deg, #70a038 0%, #43a047 100%); }
.bg-orange-grad { background: linear-gradient(135deg, #ff8f00 0%, #e65100 100%); }
.bg-purple-grad { background: linear-gradient(135deg, #8e24aa 0%, #4a148c 100%); }
.bg-pink-grad { background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%); }
.bg-teal-grad { background: linear-gradient(135deg, #00897b 0%, #004d40 100%); }

.fb-user-info {
    display: flex;
    flex-direction: column;
}

.fb-name {
    font-weight: 700;
    color: #050505;
    font-size: 0.95rem;
}

.fb-name:hover {
    text-decoration: underline;
    cursor: pointer;
}

.fb-date {
    font-size: 0.75rem;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.fb-public-icon {
    font-size: 0.85rem !important;
    vertical-align: middle;
}

.fb-logo-badge {
    position: absolute;
    top: 24px;
    right: 24px;
}

/* Facebook Comment Bubble */
.fb-bubble {
    background-color: #f0f2f5;
    border-radius: 18px;
    padding: 12px 18px;
    position: relative;
    margin-bottom: 8px;
    text-align: left;
}

.fb-text {
    font-size: 0.925rem;
    line-height: 1.45;
    color: #050505;
    word-break: break-word;
}

/* Reactions Overlay */
.fb-reactions {
    position: absolute;
    bottom: -8px;
    right: 16px;
    background-color: var(--white);
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(13, 27, 62, 0.15);
    padding: 2px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #65676b;
    user-select: none;
}

.fb-reaction-icons {
    display: flex;
    align-items: center;
    letter-spacing: -2px;
}

.fb-reaction-count {
    font-weight: 600;
    margin-left: 2px;
}

/* Embed Actions */
.fb-actions {
    display: flex;
    gap: 20px;
    margin-left: 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #65676b;
    margin-top: 4px;
}

.fb-action-btn {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fb-action-btn:hover {
    text-decoration: underline;
    color: #1877f2;
}

/* Carousel Control Arrows */
.fb-carousel-arrow {
    background-color: var(--white);
    border: 1px solid rgba(13, 27, 62, 0.08);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: absolute;
    z-index: 10;
    transition: var(--transition-smooth);
}

.fb-carousel-arrow:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.fb-carousel-arrow:active {
    transform: scale(1.0);
}

.arrow-left {
    left: -20px;
}

.arrow-right {
    right: -20px;
}

/* Indicators */
.fb-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.fb-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: rgba(24, 48, 128, 0.15);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.fb-indicator.active {
    background-color: #1877f2; /* Facebook brand blue for active states! */
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(24, 119, 242, 0.4);
}

/* Facebook Community Stats Banner */
.fb-stats-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(24, 119, 242, 0.15);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    margin-top: 60px;
    box-shadow: 0 15px 35px rgba(13, 27, 62, 0.05), 0 0 1px rgba(24, 119, 242, 0.1) inset;
    gap: 20px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.fb-stats-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(24, 119, 242, 0.08);
    border-color: rgba(24, 119, 242, 0.25);
    background: rgba(255, 255, 255, 0.6);
}

.fb-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.fb-stat-icon {
    font-size: 2.2rem !important;
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(24, 119, 242, 0.2) 100%);
    color: #1877f2; /* Facebook brand blue! */
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.fb-stats-banner:hover .fb-stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.15) 0%, rgba(24, 119, 242, 0.25) 100%);
}

/* Custom icon color updates matching JPD palette accents */
/* Star Item (Calidad de Empleador) is now the 3rd child in the HTML (Item 2) */
.fb-stat-item:nth-child(3) .fb-stat-icon {
    color: var(--accent-color);
    background: linear-gradient(135deg, rgba(244, 244, 64, 0.1) 0%, rgba(244, 244, 64, 0.2) 100%);
}
.fb-stats-banner:hover .fb-stat-item:nth-child(3) .fb-stat-icon {
    background: linear-gradient(135deg, rgba(244, 244, 64, 0.15) 0%, rgba(244, 244, 64, 0.25) 100%);
}

/* Favorite Item (Reacciones de Apoyo) is now the 5th child in the HTML (Item 3) */
.fb-stat-item:nth-child(5) .fb-stat-icon {
    color: #eb5757; /* soft red for hearts/favorites */
    background: linear-gradient(135deg, rgba(235, 87, 87, 0.1) 0%, rgba(235, 87, 87, 0.2) 100%);
}
.fb-stats-banner:hover .fb-stat-item:nth-child(5) .fb-stat-icon {
    background: linear-gradient(135deg, rgba(235, 87, 87, 0.15) 0%, rgba(235, 87, 87, 0.25) 100%);
}

.fb-stat-info {
    display: flex;
    flex-direction: column;
}

.fb-stat-value {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.fb-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.fb-stat-divider {
    height: 40px;
    width: 1px;
    background: rgba(13, 27, 62, 0.08);
}

/* Responsive constraints for the stats banner */
@media (max-width: 1023px) {
    .fb-stats-banner {
        flex-direction: column;
        padding: 24px;
        margin-top: 40px;
        gap: 24px;
        align-items: stretch;
    }
    
    .fb-stat-divider {
        display: none;
    }
    
    .fb-stat-item {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .fb-stats-banner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .fb-stat-item {
        justify-content: flex-start;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fb-carousel-container {
        padding: 0 10px;
    }
    .fb-carousel-arrow {
        display: none; /* Touch gestures take precedence on mobile */
    }
    .fb-embed-card {
        padding: 16px;
    }
}

/* ==========================================================================
   PORTAL DUAL FORMS
   ========================================================================== */
.portal-section {
    padding: 100px 0;
    background-color: var(--neutral-light);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portal-card {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.portal-card.worker-card {
    background-color: rgba(112, 160, 56, 0.03);
    border-color: rgba(112, 160, 56, 0.15);
}

.portal-tag {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
}

.portal-tag.text-blue {
    color: var(--primary-color);
}

.portal-tag.text-green {
    color: var(--secondary-color);
}

.portal-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.85rem;
    color: var(--neutral-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.portal-desc {
    font-size: 0.925rem;
    color: var(--gray-text);
    margin-bottom: 32px;
}

.portal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-dark);
    margin-bottom: 8px;
}

.form-input, .form-select {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--radius-md);
    color: var(--neutral-dark);
    outline: none;
    transition: var(--transition-smooth);
}

.form-select:disabled {
    background-color: rgba(13, 27, 62, 0.03) !important;
    border-color: rgba(13, 27, 62, 0.1) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Textarea */
.form-textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--radius-md);
    color: var(--neutral-dark);
    outline: none;
    transition: var(--transition-smooth);
    resize: vertical;
    min-height: 100px;
}

/* Form focus glow effects */
.producer-card .form-input:focus, 
.producer-card .form-select:focus,
.producer-card .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow-blue);
}

.worker-card .form-input:focus, 
.worker-card .form-select:focus,
.worker-card .form-textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow-green);
}

/* Premium CV File Upload Mockup */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 90px;
    border: 2px dashed rgba(112, 160, 56, 0.25);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.file-upload-wrapper:hover {
    background-color: rgba(112, 160, 56, 0.05);
    border-color: var(--secondary-color);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.file-upload-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    pointer-events: none;
    color: var(--gray-text);
}

.upload-icon {
    font-size: 1.8rem !important;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.file-upload-wrapper:hover .upload-icon {
    transform: translateY(-2px);
}

.upload-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.upload-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Portal Blur Overlay & Cartel Styles */
.portal-card.producer-card {
    position: relative;
}

.portal-card.producer-card.blurred-state .portal-header,
.portal-card.producer-card.blurred-state .portal-form,
.portal-card.producer-card.blurred-state .form-status {
    filter: blur(8px);
    opacity: 0.35;
    pointer-events: none;
    transition: filter 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.portal-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
    border-radius: var(--radius-lg);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cartel {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 24px 36px;
    font-family: var(--font-title);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(13, 27, 62, 0.25), 0 0 0 1px rgba(24, 119, 242, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cartel:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 25px 45px rgba(13, 27, 62, 0.35), 0 0 20px rgba(24, 119, 242, 0.3);
    border-color: var(--accent-color);
}

.cartel-icon {
    font-size: 2.2rem !important;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}

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

.cartel-text {
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cartel-subtext {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-status {
    margin-top: 16px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-md);
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(112, 160, 56, 0.08);
    color: var(--secondary-color);
    border: 1px solid rgba(112, 160, 56, 0.2);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: var(--neutral-dark);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.9fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-badge-footer {
    height: 48px;
    width: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-color);
}

.footer-logo-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* MAP DESIGN */
.footer-location-map {
    height: 120px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 20px;
    transition: var(--transition-smooth);
}

.footer-location-map:hover {
    border-color: rgba(244, 244, 64, 0.3);
}

.map-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--white);
}

.map-icon {
    font-size: 2.25rem;
    color: var(--accent-color);
}

.map-text {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

/* Contact List */
.footer-contact-column h3, 
.footer-community-column h3 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.footer-contact-column h3::after, 
.footer-community-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: var(--radius-full);
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-list-icon {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-top: 2px;
}

.contact-value:hover {
    color: var(--accent-color);
}

/* Social column */
.community-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.community-desc strong {
    color: var(--white);
}

.community-logos {
    display: flex;
    gap: 12px;
}

.comm-icon {
    font-size: 1.75rem;
    color: var(--accent-color);
    opacity: 0.85;
}

/* Footer bottom */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet View (1024px and below) */
@media (max-width: 1024px) {
    /* Backdrop and scroll lock when menu is active */
    body:has(.nav-menu.active) {
        overflow: hidden !important;
    }

    body:has(.nav-menu.active)::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 27, 62, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 998;
        animation: fadeInOverlay 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes fadeInOverlay {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .nav-toggle {
        display: flex !important;
        background: rgba(24, 48, 128, 0.05);
        border: 1px solid rgba(24, 48, 128, 0.1);
        color: var(--primary-color);
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition-smooth);
        z-index: 1010;
        position: relative;
    }

    .nav-toggle:hover {
        background: rgba(24, 48, 128, 0.1);
        transform: scale(1.05);
    }

    .navbar-wrapper.scrolled .nav-toggle {
        background: rgba(24, 48, 128, 0.05);
    }

    /* Change toggle color on active menu for clear contrast against deep navy drawer */
    .navbar:has(.nav-menu.active) .nav-toggle {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -110%; /* Hidden off-screen right */
        width: 320px;
        max-width: 85%;
        height: 100vh;
        max-height: 100vh;
        background: rgba(13, 27, 62, 0.96); /* Elegant Navy Glassmorphism */
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 100px 24px 40px 24px;
        gap: 8px;
        box-shadow: -10px 0 35px rgba(13, 27, 62, 0.4);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s ease;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-sizing: border-box;
    }

    .nav-menu.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        display: block;
    }

    .nav-menu .nav-link {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 14px 20px !important;
        border-radius: var(--radius-md) !important;
        text-align: left;
        display: flex;
        align-items: center;
        width: 100%;
        transition: var(--transition-smooth) !important;
        background: transparent !important;
        box-sizing: border-box;
        border-bottom: none !important;
    }

    /* Elegant Navigation Icons for Mobile */
    .nav-menu .nav-link::before {
        font-family: 'Material Symbols Outlined';
        font-weight: normal;
        font-style: normal;
        font-size: 1.25rem;
        line-height: 1;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        -webkit-font-smoothing: antialiased;
        vertical-align: middle;
        margin-right: 12px;
        opacity: 0.6;
        transition: opacity 0.35s ease;
    }

    #link-inicio::before { content: 'home'; }
    #link-nosotros::before { content: 'info'; }
    #link-servicios::before { content: 'agriculture'; }
    #link-testimonios::before { content: 'forum'; }
    #link-bolsa::before,
    #link-login-cta::before { display: none !important; }

    .nav-menu .nav-link:hover:not(.btn-primary):not(.btn-secondary) {
        background: rgba(255, 255, 255, 0.06) !important;
        color: var(--white) !important;
        padding-left: 28px !important;
    }

    .nav-menu .nav-link:hover::before {
        opacity: 1;
    }

    .nav-menu .nav-link.active:not(.btn-primary):not(.btn-secondary) {
        background: rgba(112, 160, 56, 0.15) !important;
        color: var(--secondary-light) !important;
        font-weight: 700;
        border-left: 4px solid var(--secondary-light) !important;
        border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
        padding-left: 24px !important;
    }
    
    .nav-menu .nav-link.active::before {
        color: var(--secondary-light);
        opacity: 1;
    }

    /* Drawer action CTA buttons */
    .nav-menu .nav-link.btn-secondary {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
        color: var(--white) !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin-top: 16px !important;
        box-shadow: 0 4px 15px rgba(112, 160, 56, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: center !important;
    }

    .nav-menu .nav-link.btn-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
        color: var(--white) !important;
        justify-content: center !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin-top: 8px !important;
        box-shadow: 0 4px 15px rgba(24, 48, 128, 0.25) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        text-align: center !important;
    }

    .nav-menu .nav-link.btn-primary:hover,
    .nav-menu .nav-link.btn-secondary:hover {
        transform: translateY(-2px) !important;
        filter: brightness(1.1) !important;
        padding-left: 20px !important; /* Lock slide horizontal effect for buttons */
    }

    .hero-section {
        min-height: 100vh;
        height: auto;
        padding-top: 140px;
        padding-bottom: 120px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .nosotros-image-container {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .servicios-grid-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .servicios-showcase-column {
        display: block !important;
        order: -1; /* Stack image above accordion cards on mobile */
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        height: auto;
    }

    .showcase-glow-border {
        padding: 8px;
    }

    .showcase-images-frame {
        min-height: 250px !important;
        height: 250px !important;
    }

    .servicio-interactive-card {
        opacity: 0.75 !important;
        transform: scale(0.98) !important;
        cursor: pointer;
        padding: 24px;
        transition: var(--transition-smooth) !important;
    }

    .servicio-interactive-card.active {
        opacity: 1 !important;
        transform: scale(1) !important;
        box-shadow: var(--shadow-lg) !important;
        border-color: rgba(24, 48, 128, 0.15) !important;
    }

    .servicio-interactive-card .service-card-body {
        max-height: 0 !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease !important;
    }

    .servicio-interactive-card.active .service-card-body {
        max-height: 400px !important;
        opacity: 1 !important;
        margin-top: 16px !important;
        overflow: visible !important;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile View (768px and below) */
@media (max-width: 768px) {
    /* Hide manual arrows on mobile to declutter */
    .control-btn {
        display: none;
    }
    
    .carousel-controls {
        bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Very Small Mobile View (576px and below) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .navbar-wrapper.scrolled .navbar {
        height: 60px;
    }
    
    .logo-badge {
        height: 36px;
        width: 36px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-subtext {
        font-size: 0.6rem;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .owner-portrait-card {
        padding: 24px;
    }
    
    .portrait-quote {
        font-size: 1.2rem;
        padding-left: 12px;
    }
    
    .owner-title {
        font-size: 1.25rem;
    }

    .servicio-card {
        padding: 24px;
    }

    .testimonio-card {
        padding: 24px;
    }

    .portal-card {
        padding: 28px 20px;
    }
    
    .portal-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-brand-banner {
        height: 48px;
    }
    
    .ticker-title {
        font-size: 0.65rem;
        margin-right: 20px;
    }
    
    .ticker-item {
        font-size: 0.95rem;
        margin-right: 20px;
    }
    
    .ticker-dot {
        margin-right: 20px;
        font-size: 1rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
        gap: 16px;
    }
}

/* ==========================================================================
   BRAND WATERMARK AESTHETIC (FLOATING BADGES WITH COLOR & PRESENCE)
   ========================================================================== */
.brand-watermark {
    position: absolute;
    width: 280px;
    height: 280px;
    background-image: url('../images/logo jpd.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.045; /* Increased baseline opacity to make it clearly present and professional */
    pointer-events: none; /* Make sure users can interact with text/cards above it */
    user-select: none;
    z-index: 0;
    filter: none; /* Removed blur and grayscale to let the official blue, green, and gold shine through */
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.watermark-bottom-left {
    bottom: -60px;
    left: -60px;
    transform: rotate(-15deg);
}

.watermark-top-right {
    top: -60px;
    right: -60px;
    transform: rotate(15deg);
}

.watermark-bottom-right {
    bottom: -80px;
    right: -80px;
    transform: rotate(25deg);
}

.watermark-top-left {
    top: -50px;
    left: -50px;
    transform: rotate(-20deg);
}

/* Micro-interaction: Watermark sutil scale-up and color pop on section hover */
section:hover .brand-watermark {
    opacity: 0.075; /* Smooth fade-in to 7.5% when the user explores the section */
}
section:hover .watermark-bottom-left {
    transform: scale(1.06) rotate(-10deg);
}
section:hover .watermark-top-right {
    transform: scale(1.06) rotate(20deg);
}
section:hover .watermark-bottom-right {
    transform: scale(1.06) rotate(30deg);
}
section:hover .watermark-top-left {
    transform: scale(1.06) rotate(-15deg);
}

/* Responsive constraints on small viewports */
@media (max-width: 768px) {
    .brand-watermark {
        width: 180px;
        height: 180px;
        opacity: 0.03; /* Perfect color density for mobile displays */
    }
}

/* Copied brand banner between sections */
.hero-brand-banner.brand-banner-copy {
    position: relative;
    bottom: auto;
    left: auto;
    height: 70px;
    background-color: var(--neutral-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

/* ==========================================================================
   GEOLOCATION SECTION (GOOGLE MAPS + LOCAL INFO)
   ========================================================================== */
.ubicacion-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.ubicacion-info {
    display: flex;
    flex-direction: column;
}

.ubicacion-card {
    background: linear-gradient(135deg, rgba(24, 48, 128, 0.01) 0%, rgba(24, 48, 128, 0.03) 100%);
    border: 1px solid rgba(24, 48, 128, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon-box {
    width: 44px;
    height: 44px;
    background-color: rgba(24, 48, 128, 0.06);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 0.95rem;
    color: var(--neutral-dark);
    font-weight: 600;
    line-height: 1.4;
}

.info-value a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-value a:hover {
    color: var(--primary-color);
}

.map-showcase {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.map-showcase:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(24, 119, 242, 0.2);
}

.map-showcase iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 991px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-showcase {
        height: 320px;
    }
}

/* ==========================================================================
   CATAPAZ BRAND STYLING (PREMIUM FUCHSIA/PINK GRADIENT DESIGN)
   ========================================================================== */
.brand-catapaz {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    background: linear-gradient(90deg, #db81b5 0%, #ad76be 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #db81b5; /* Fallback for older browsers */
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    text-decoration: none;
    margin-left: 4px;
    letter-spacing: -0.01em;
    vertical-align: middle;
}

.brand-catapaz:hover {
    filter: brightness(1.2);
    transform: translateY(-2px) scale(1.08);
}

/* ==========================================================================
   PREMIUM LOGIN MODAL MOCKUP STYLING
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(13, 27, 62, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000; /* Above everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.login-modal-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 48, 128, 0.08);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    box-shadow: var(--shadow-lg), 0 0 35px rgba(24, 48, 128, 0.08);
    position: relative;
    transform: scale(0.93) translateY(24px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    box-sizing: border-box;
    margin: 20px;
}

.login-modal-overlay.active .login-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.login-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(13, 27, 62, 0.05);
    border: none;
    color: var(--neutral-dark);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.login-close-btn:hover {
    background: rgba(13, 27, 62, 0.1);
    transform: rotate(90deg);
}

.login-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    gap: 12px;
}

.login-logo {
    height: 64px;
    width: 64px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.login-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--neutral-dark);
    margin-top: 4px;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.825rem;
    color: var(--gray-text);
    line-height: 1.4;
}

.login-modal-card .form-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-glow-blue) !important;
}

@media (max-width: 576px) {
    .login-modal-card {
        padding: 32px 20px;
    }
}
