/* 
 * GyP Producciones Deportivas
 * Reskin: Gold/Amber Identity - 2026
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Red+Hat+Display:wght@400;500;600;700;800;900&family=Merriweather:wght@300;400;700&family=Outfit:wght@400;600;800;900&display=swap');

/* Style for the client's highlighted yellow text on Hero */
.highlight-yellow-text {
    color: var(--accent-gold) !important;
    font-family: 'Outfit', 'Poppins', sans-serif !important;
    font-weight: 800;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080f18;
}
::-webkit-scrollbar-thumb {
    background: #fcbc47;
    border-radius: 4px;
    border: 2px solid #080f18;
}
::-webkit-scrollbar-thumb:hover {
    background: #e7ac3c;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette — Gold/Amber Identity */
    --bg-dark-primary: #080f18;
    --bg-dark-secondary: #0d1a28;
    --bg-light: #faf9f9;
    --bg-white: #FFFFFF;
    
    --text-dark-primary: #333333;
    --text-dark-secondary: #666666;
    --text-light-primary: #ffffff;
    --text-light-secondary: #CBD5E1; /* High contrast lighter slate gray */
    
    --accent-gold: #fcbc47;
    --accent-gold-dark: #e7ac3c;
    --accent-red: #fcbc47;   /* alias for backwards compat */
    --accent-blue: #00aeff;
    --accent-whatsapp: #03c44d;
    --accent-teal: #048ba8;
    --accent-fucsia: #e2007a;
    --border-color: rgba(255,255,255,0.08);
    
    /* Fonts */
    --font-title: 'Poppins', Helvetica, Arial, sans-serif;
    --font-display: 'Red Hat Display', Helvetica, Arial, sans-serif;
    --font-body: Merriweather, Georgia, 'Times New Roman', serif;
    
    /* Layout */
    --max-width: 1280px;
    --topbar-height: 38px;
    --header-height: 70px;
    --total-header: 108px;
    --radius-sm: 50px;
    --radius-md: 8px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cotización button fucsia active class */
.btn-cotizar-active,
.btn:active,
.nav-cta:active,
.btn-wp-cta:active,
.btn.active-click,
.nav-cta.active-click,
.btn-wp-cta.active-click {
    background-color: var(--accent-fucsia) !important;
    background: var(--accent-fucsia) !important;
    box-shadow: 0 4px 14px rgba(226, 0, 122, 0.4) !important;
    color: #ffffff !important;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    font-family: var(--font-title);
}

h2 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
}

h3 {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 900;
    font-family: var(--font-display);
}

p {
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.75;
    font-weight: 400;
    font-family: var(--font-body);
}

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

/* --- Layout Elements --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    position: relative;
}

/* =============================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ============================================= */

/* Base hidden state — applied via JS to elements with [data-animate] */
[data-animate] {
    opacity: 0;
    transition-property: opacity, transform, filter;
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Variant start states */
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-40px); }
[data-animate="fade-left"]  { transform: translateX(50px); }
[data-animate="fade-right"] { transform: translateX(-50px); }
[data-animate="scale-in"]   { transform: scale(0.92); }
[data-animate="blur-in"]    { transform: translateY(20px); filter: blur(8px); }
[data-animate="fade-in"]    { transform: none; }

/* Revealed state — toggled by IntersectionObserver */
[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
    filter: blur(0);
}

/* Stagger delays via data-delay attribute */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* =============================================
   HOVER MICRO-INTERACTIONS (GLOBAL)
   ============================================= */

/* --- Trust Blocks --- */
.trust-block {
    transition: border-left-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.trust-block:hover {
    transform: translateY(-3px);
    background-color: rgba(0, 0, 0, 0.02);
}

/* --- FAQ Accordion --- */
.faq-item summary {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.faq-item summary:hover {
    color: var(--accent-gold);
    padding-left: 0.5rem;
}

/* --- Spec items --- */
.spec-item {
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.spec-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    padding-left: 0.5rem;
}

/* --- Footer links lift --- */
.footer-links a {
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

/* --- Social link pulse --- */
.social-link {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.social-link:hover {
    transform: scale(1.18) rotate(-5deg);
    color: var(--accent-gold);
}

/* --- Section headers slide-in underline --- */
.section-label {
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate].is-visible .section-label::after,
.section-label.is-visible::after {
    width: 100%;
}

/* --- Gallery image Ken-Burns subtle zoom --- */
.gallery-item {
    overflow: hidden;
}

.gallery-img {
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

/* --- Service card image zoom on hover --- */
.service-card-img-wrapper {
    overflow: hidden;
}

.service-card-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover .service-card-img-wrapper img {
    transform: scale(1.05);
}

/* --- Inner page gallery items subtle lift --- */
.page-gallery .gallery-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.page-gallery .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Button icon nudge on hover --- */
.btn i,
.service-card-link i {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover i,
.service-card-link:hover i {
    transform: translateX(4px);
}

/* --- Page hero title entrance --- */
@keyframes heroTitleSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.page-title {
    animation: heroTitleSlide 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.breadcrumb {
    animation: heroTitleSlide 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    opacity: 0;
}

/* --- Floating WhatsApp bounce-in --- */
@keyframes fabBounceIn {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    60%  { transform: scale(1.15) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.floating-whatsapp {
    animation: fabBounceIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
    opacity: 0;
}

/* Section Background Variations with Subtle Textures */
.section-dark {
    position: relative;
    background-color: var(--bg-dark-primary);
    color: var(--text-light-primary);
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(225, 29, 46, 0.03) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 45px 45px, 45px 45px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.section-dark > * {
    position: relative;
    z-index: 1;
}

.section-dark-secondary {
    position: relative;
    background-color: var(--bg-dark-secondary);
    color: var(--text-light-primary);
    overflow: hidden;
}

.section-dark-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 75% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 25% 20%, rgba(225, 29, 46, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.006) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.section-dark-secondary > * {
    position: relative;
    z-index: 1;
}

.section-light {
    position: relative;
    background-color: var(--bg-light);
    color: var(--text-dark-primary);
    overflow: hidden;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(225, 29, 46, 0.03) 0%, transparent 40%),
        radial-gradient(rgba(17, 24, 39, 0.015) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
}

.section-light > * {
    position: relative;
    z-index: 1;
}

.section-light p {
    color: var(--text-dark-secondary);
}

/* --- Top Bar (above header) --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--topbar-height);
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 1010;
    display: flex;
    align-items: center;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 300;
    color: #333333;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.top-bar-item i {
    font-size: 0.78rem;
    color: #333333;
}

.top-bar a {
    color: #333333;
    text-decoration: none;
    transition: opacity 0.2s;
}

.top-bar a:hover {
    opacity: 0.75;
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 0px;
        --total-header: var(--header-height);
    }
    .top-bar {
        display: none !important;
    }
}

/* --- Main Header & Navigation --- */
.header {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: height var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.logo-img {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
    /* Dark logo on gold bg — no filter needed */
    filter: none;
}

.header.scrolled .logo-img {
    height: 36px;
}

@media (max-width: 480px) {
    /* Safe container scale limit for very small phones so text does not clip with hamburger menu */
    .logo-link {
        max-width: 72%;
    }
    .logo-img {
        height: auto;
        width: 100%;
        max-height: 38px;
    }
}

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

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.88rem;
    font-family: var(--font-title);
    color: #333333;
    padding: 0.5rem 0;
    transition: color var(--transition-smooth);
}

/* Underline micro-animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #080f18;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav-link:hover {
    color: #080f18;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--accent-blue);
    font-weight: 600;
}

.nav-link.active::after {
    background-color: var(--accent-blue);
    transform: scaleX(1);
    transform-origin: left;
}

/* Header Social Links */
.nav-social-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 1.5rem;
}

.nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.12);
    color: #333333 !important;
    font-size: 0.95rem;
    transition: all var(--transition-smooth);
}

.nav-social-link:hover {
    background: #080f18;
    border-color: #080f18;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .nav-social-links {
        display: none !important;
    }
}

/* Primary CTA Button — WhatsApp Green Pill */
.nav-cta {
    position: relative;
    background: var(--accent-whatsapp);
    color: #ffffff !important;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: 56px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 14px rgba(3, 196, 77, 0.35);
    overflow: hidden;
    z-index: 1;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    white-space: nowrap;
}

.nav-cta i {
    margin-right: 0.4rem;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(3, 196, 77, 0.5);
    background: #02b044;
}

.nav-cta:active {
    transform: translateY(-0.5px);
}

/* --- Dropdown Menu (Desktop Hover / Mobile Click) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-toggle i {
    transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
    color: #080f18;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 280px;
    padding: 0.8rem 0;
    padding-top: calc(0.8rem + 8px);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
    z-index: 1100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    position: relative;
    display: block;
    padding: 0.65rem 1.5rem 0.65rem 2rem;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--font-title);
    color: #555555;
    transition: color var(--transition-smooth), padding-left var(--transition-smooth), background-color var(--transition-smooth);
}

/* Custom indicator dot for dropdown item hover */
.dropdown-item::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 50%;
    width: 5px;
    height: 5px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform var(--transition-smooth);
}

.dropdown-item:hover {
    color: #080f18;
    background-color: rgba(252, 188, 71, 0.08);
    padding-left: 2.4rem;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scale(1);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    /* Invisible bridge to prevent hover gap */
    .dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 12px; /* Covers any residual gap */
        pointer-events: none;
    }

    .dropdown:hover::after {
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #ffffff; /* White background for submenus in mobile */
        border: none;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05), inset 0 -2px 10px rgba(0, 0, 0, 0.05);
        padding: 0.5rem 0;
        display: none;
        opacity: 1;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        text-align: center; /* Center the sub-menu options */
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        color: #333333 !important; /* Dark text for readability on white background */
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item::before {
        display: none; /* Hide hover dot indicators on mobile */
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 6px auto;
    background-color: #333333;
    transition: var(--transition-fast);
}

/* --- Section Headers (Editorial style) --- */
.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    border-left: 3px solid var(--accent-red);
    padding-left: 1.5rem;
}

.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-desc {
    max-width: 700px;
    margin-bottom: 0;
}

/* --- Buttons & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    gap: 0.6rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-dark-primary);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-fucsia);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 0, 122, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-light-primary);
}

.section-light .btn-secondary {
    color: var(--text-dark-primary);
    border-color: var(--text-dark-secondary);
}

.btn-secondary:hover {
    border-color: var(--text-light-primary);
    transform: translateY(-2px);
}

.section-light .btn-secondary:hover {
    border-color: var(--text-dark-primary);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: calc(var(--total-header) + 4rem);
    padding-bottom: 6rem;
    background-color: var(--bg-dark-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Technical grid texture overlay + dual radial accent glows */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.16) 0%, transparent 45%), 
        radial-gradient(circle at 15% 85%, rgba(225, 29, 46, 0.14) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 35px 35px, 35px 35px;
    background-position: 0 0, 0 0, center center, center center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--text-light-primary);
    line-height: 1.1;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Dynamic shifting span inside title */
.hero-title-dynamic {
    display: inline-block;
    color: var(--text-light-primary);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.hero-desc {
    color: var(--text-light-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

/* Slider container for elegant crossfade */
.hero-visual {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark-secondary);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.05);
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Subtle continuous zoom animation on active slide */
.hero-slide.active .hero-img {
    animation: subtleZoom 8s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

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

/* --- Services Bar (Horizontal Ticker / Bar) --- */
.services-bar {
    position: relative;
    background-color: var(--bg-dark-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    overflow: hidden;
}

/* Checkered dark background effect */
.services-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 35px 35px;
    background-position: center center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.services-bar .container {
    position: relative;
    z-index: 1;
}

.services-bar-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 100%;
}

.services-bar-item {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff; /* White text as requested */
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.services-bar-separator {
    color: var(--accent-gold); /* Yellow dots as requested */
    font-weight: 900;
}

/* --- Services Cards Grid --- */
/* --- Services Section Texture --- */
#servicios {
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(225, 29, 46, 0.04) 0%, transparent 40%),
        radial-gradient(rgba(17, 24, 39, 0.018) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 28px 28px;
    pointer-events: none;
    z-index: 0;
}

#servicios .container {
    position: relative;
    z-index: 1;
}

/* --- Services Cards Grid --- */
.grid-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop for a balanced 3 and 3 look */
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .grid-services {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .grid-services {
        grid-template-columns: 1fr; /* Single column on phones */
    }
}

.service-card {
    background-color: var(--bg-dark-primary);
    border: 1px solid rgba(255, 255, 255, 0.08); /* White translucent border for dark theme */
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card-num {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    height: 1px;
}

.service-card-num::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background-color: var(--accent-gold); /* Gold/Yellow separator lines */
}

/* Modern wrapper with scaling image */
.service-card-img-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.75rem;
    aspect-ratio: 16/10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.service-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img-wrapper img {
    transform: scale(1.08);
}

.service-card-title {
    color: #ffffff; /* White title for contrast */
    margin-bottom: 1rem;
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color var(--transition-smooth);
}

.service-card:hover .service-card-title {
    color: var(--accent-gold);
}

.service-card-desc {
    color: var(--text-light-secondary); /* Clear gray text */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
    transition: color var(--transition-smooth);
}

.service-card-link i {
    font-size: 0.85rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-card-link {
    color: var(--accent-gold);
}

.service-card:hover .service-card-link i {
    transform: translateX(6px);
    color: var(--accent-gold);
}

/* --- Method Section (Process steps) --- */
.grid-process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3.5rem;
}

/* Background connector line */
.grid-process::before {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

/* Glowing active progress line */
.process-progress-line {
    position: absolute;
    background: linear-gradient(90deg, var(--accent-red), #ff3646);
    box-shadow: 0 0 10px rgba(225, 29, 46, 0.6);
    z-index: 2;
    transition: all 0.1s linear; /* Smooth responsive follow on scroll */
}

.process-step {
    position: relative;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    opacity: 0.3; /* Dimmed state for storytelling scroll reveal */
}

.process-step.active {
    opacity: 1;
}

/* Timeline nodes / points */
.process-step::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--bg-dark-secondary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    z-index: 3;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.process-step.active::before {
    background-color: var(--accent-red);
    border-color: #ff3646;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(225, 29, 46, 0.8);
}

.process-num {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.015);
    position: absolute;
    top: 1rem;
    right: 0;
    transition: color var(--transition-smooth), transform var(--transition-smooth);
    pointer-events: none;
}

.process-step.active .process-num {
    color: rgba(255, 255, 255, 0.04);
    transform: scale(1.05);
}

.process-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light-primary);
    transition: color var(--transition-smooth);
}

.process-desc {
    font-size: 0.95rem;
    color: var(--text-light-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Desktop horizontal timeline layout rules */
@media (min-width: 769px) {
    .grid-process::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
    }
    
    .process-progress-line {
        top: 0;
        left: 0;
        height: 2px;
        width: 0%;
    }
    
    .process-step {
        padding-top: 2.5rem;
    }
    
    .process-step::before {
        top: -4px;
        left: 0;
    }
}

/* Mobile vertical timeline layout rules */
@media (max-width: 768px) {
    .grid-process {
        padding-left: 2rem;
        gap: 2.5rem;
    }
    
    .grid-process::before {
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
    }
    
    .process-progress-line {
        top: 0;
        left: 0;
        width: 2px;
        height: 0%;
    }
    
    .process-step {
        padding-top: 0.5rem;
        padding-bottom: 1.5rem;
    }
    
    .process-step:last-child {
        padding-bottom: 0;
    }
    
    .process-step::before {
        left: -24px;
        top: 12px;
    }
    
    .process-num {
        top: -0.5rem;
    }
}

/* --- Gallery Section Texture --- */
#evidencia {
    position: relative;
    overflow: hidden;
}

#evidencia .container {
    position: relative;
    z-index: 1;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.gallery-img, .gallery-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-hover {
    display: none; /* Disable double hover swap layout to avoid black panels */
}

.gallery-img {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

/* Vignette overlay on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(7, 17, 31, 0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 3;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(225, 29, 46, 0.35);
    box-shadow: 0 15px 30px rgba(7, 17, 31, 0.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06); /* Simple and secure zoom effect */
}

/* --- Trust Block / Atributos --- */
.grid-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.trust-block {
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

.trust-block:hover {
    border-left-color: var(--accent-red);
}

.trust-title {
    color: var(--text-dark-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.trust-desc {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    margin-bottom: 0;
}

/* --- Strong CTA Banner --- */
.cta-banner {
    background-color: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 5rem 4rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: var(--text-light-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* --- Optimized CTA Contact Channels --- */
.cta-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

.cta-main-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.cta-contact-channels {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1rem;
}

.contact-channel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-smooth);
    min-width: 250px;
    text-align: left;
}

.contact-channel-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
    transition: all var(--transition-smooth);
}

.contact-channel-item:hover .channel-icon {
    background: var(--accent-red);
    color: var(--text-light-primary) !important;
}

.wa-color {
    color: #25D366;
}
.tel-color {
    color: #3b82f6;
}
.email-color {
    color: #ef4444;
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.channel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light-secondary);
    opacity: 0.6;
}

.channel-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light-primary);
}

/* Responsiveness for CTA section */
@media (max-width: 768px) {
    .cta-contact-channels {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .contact-channel-item {
        width: 100%;
        min-width: unset;
        box-sizing: border-box;
        padding: 0.8rem 1rem; /* Margen interno más seguro */
    }
    .channel-val {
        font-size: 0.85rem; /* Ajustar fuente para prevenir desbordes de emails */
        word-break: break-all; /* Permitir salto en correos muy largos */
    }
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-item summary {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-red);
    transition: var(--transition-fast);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-content {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-dark-secondary);
}

/* --- Contact Page Specific --- */
.contact-section-wrapper {
    position: relative;
    overflow: hidden;
}

.contact-section-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(225, 29, 46, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.004) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.004) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.contact-section-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Contact Channel Cards — prominent top section */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@keyframes channelGlowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(225, 29, 46, 0.12); }
}

.contact-channel-card {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 28, 46, 0.9), rgba(7, 17, 31, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Animated shimmer line */
.contact-channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(225, 29, 46, 0.8), transparent);
    transition: left 0.6s ease;
}

.contact-channel-card:hover::before {
    left: 150%;
}

.contact-channel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-channel-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(225, 29, 46, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(225, 29, 46, 0.15),
                inset 0 1px 0 rgba(255,255,255,0.08);
}

.contact-channel-card:hover::after {
    opacity: 1;
}

/* Per-channel color theming */
.contact-channel-card.channel-phone:hover {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(37, 99, 235, 0.15);
}

.contact-channel-card.channel-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(37, 211, 102, 0.15);
}

.contact-channel-card.channel-email:hover {
    border-color: rgba(225, 29, 46, 0.4);
}

.contact-channel-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-channel-card:hover .contact-channel-icon-wrap {
    transform: scale(1.12) rotate(-8deg);
}

.icon-bg-red    { background: rgba(225, 29, 46, 0.15); color: #E11D2E; border: 1px solid rgba(225, 29, 46, 0.25); }
.icon-bg-green  { background: rgba(37, 211, 102, 0.12); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.25); }
.icon-bg-blue   { background: rgba(37, 99, 235, 0.12); color: #3b82f6; border: 1px solid rgba(37, 99, 235, 0.25); }

.contact-channel-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light-secondary);
}

.contact-channel-value {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light-primary);
    line-height: 1.3;
}

.contact-channel-action {
    font-size: 0.82rem;
    color: var(--text-light-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-channel-card:hover .contact-channel-action {
    opacity: 1;
    transform: translateY(0);
}

/* Main grid: info + form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: rgba(16, 28, 46, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-info-item:hover {
    border-color: rgba(225, 29, 46, 0.3);
    transform: translateX(4px);
}

.contact-info-icon {
    font-size: 1.15rem;
    color: var(--text-light-primary);
    background: linear-gradient(135deg, var(--accent-red), #c0152c);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(225, 29, 46, 0.25);
}

.contact-info-content h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--text-light-secondary);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.contact-info-content p,
.contact-info-content a {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-light-primary);
}

.contact-info-content a:hover {
    color: var(--accent-red);
}

/* Form */
.contact-form {
    background: linear-gradient(135deg, rgba(16, 28, 46, 0.95), rgba(7, 17, 31, 0.9));
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--text-light-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input, .form-textarea {
    background-color: rgba(7, 17, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light-primary);
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    background-color: rgba(7, 17, 31, 0.95);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

/* --- Floating FAB --- */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 54px;
    height: 54px;
    background-color: #25d366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: #20ba5a;
}

/* --- Footer --- */
.footer {
    background-color: #030810;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5rem 0 2.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light-secondary);
}

.footer-brand .logo-img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light-primary);
}

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

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

.footer-links a {
    color: var(--text-light-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-light-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-red);
    color: var(--text-light-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light-secondary);
}

/* --- Logo: Dark SVG on gold header — no filter needed --- */
.logo-img {
    filter: none;
}


/* --- Page Hero & Breadcrumbs --- */
.page-hero {
    background-color: var(--bg-dark-secondary);
    padding-top: calc(var(--total-header) + 3rem);
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .page-hero {
        padding-top: calc(var(--total-header) + 2rem);
        padding-bottom: 3rem;
    }
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-light-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light-secondary);
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: inline-block;
}

.breadcrumb a {
    color: var(--text-light-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.2);
}

/* --- Inner Page Layout (Two Columns) --- */
.page-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.page-body-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-light-secondary);
}

.page-body-text h2.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-light-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-body-text p {
    margin-bottom: 1.5rem;
}

/* --- Technical Specifications List --- */
.tech-specs {
    background-color: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-top: 3.5rem;
}

.tech-specs h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 0.6rem;
    color: var(--text-light-primary);
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 0;
    font-size: 0.95rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-light-primary);
}

.spec-val {
    color: var(--text-light-secondary);
    text-align: right;
}

/* --- Inner Page Gallery Grid --- */
.page-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* --- Nosotros Mission & Vision Blocks --- */
.mission-vision-container {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background-color: var(--bg-dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.mv-card h3 {
    color: var(--accent-gold);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mv-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light-secondary);
    margin-bottom: 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 3rem;
    }
    .page-content-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: calc(var(--total-header) + 1.5rem);
        padding-bottom: 3.5rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-cta {
        display: none !important;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--total-header);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--total-header));
        background-color: var(--accent-gold); /* Return to brand gold/orange color */
        flex-direction: column;
        align-items: stretch; /* Stretch to allow centered inline contents */
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        border-top: 2px solid var(--accent-gold-dark);
        z-index: 999;
        overflow-y: auto; /* Allow scrolling if items expand */
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header.scrolled .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-link {
        display: block;
        text-align: center; /* Center the link text */
        font-size: 1.25rem;
        color: #333333;
        width: 100%;
    }
    
    /* Hide the sliding hover underlines on mobile touch devices */
    .nav-link::after {
        display: none;
    }
    
    .services-bar-list {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .services-bar-separator {
        display: none;
    }
    
    .page-content-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-gallery {
        grid-template-columns: 1fr;
    }
    
    .page-gallery .gallery-item {
        grid-column: span 1 !important;
    }
    
    .contact-channels {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- AI-Citable Block & GEO Optimization --- */
.citable-block {
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.03) 0%, rgba(7, 17, 31, 0.02) 100%);
    border-left: 4px solid var(--accent-red);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.citable-block h3 {
    font-size: 1.25rem;
    color: var(--text-dark-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.citable-block h3 i {
    color: var(--accent-red);
}

.citable-block p {
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--text-dark-secondary);
    margin-bottom: 1.2rem !important;
}

.citable-block ul {
    margin: 0;
    padding-left: 1.2rem;
}

.citable-block li {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.citable-block li strong {
    color: var(--text-dark-primary);
}

/* Light / Dark Mode adaptive styling for citable-block inside section-dark or page-body-text */
.section-dark .citable-block {
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left: 4px solid var(--accent-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.section-dark .citable-block h3 {
    color: var(--text-light-primary);
}

.section-dark .citable-block p,
.section-dark .citable-block li {
    color: var(--text-light-secondary);
}

.section-dark .citable-block li strong {
    color: var(--text-light-primary);
}

/* =============================================
   CONTACTO PAGE — WordPress-style 3 Cards
   ============================================= */

.wp-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.wp-contact-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 18px 22px -6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 24px 30px -6px;
}

.wp-contact-card-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.wp-contact-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light-primary);
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}

.wp-contact-card-value {
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--accent-blue);
    text-decoration: none;
    word-break: break-word;
    transition: opacity 0.2s;
}

.wp-contact-card-value:hover { opacity: 0.8; }

span.wp-contact-card-value { color: var(--text-light-secondary); }

/* WhatsApp pill CTA */
.btn-wp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent-whatsapp);
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 56px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(3, 196, 77, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-wp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(3, 196, 77, 0.5);
}

@media (max-width: 768px) {
    .wp-contact-cards { grid-template-columns: 1fr; max-width: 380px; }
    .wp-contact-card { padding: 1.8rem 1.2rem; }
}

/* =============================================
   GALLERY HOVER ZOOM & LIGHTBOX MODAL (2026 UX)
   ============================================= */

/* Universal interactive pointer for gallery images */
.gallery-img, 
.gallery-item img, 
.page-gallery img {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

/* Standardized hover scaling instead of double image swap */
.gallery-item:hover img, 
.gallery-item:hover .gallery-img, 
.page-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal lightbox overlay background */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
}

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

/* Main enlarged image container */
.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md, 8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal close button */
.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.25rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.lightbox-close:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* Caption under the enlarged image */
.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 500;
}

