/* ==========================================================================
   YARTECH - MODERN RESPONSIVE PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', -apple-system, system-ui, sans-serif;
    
    /* Core Palette */
    --color-primary: #0066ff;
    --color-primary-dark: #004ecc;
    --color-primary-light: #e6f0ff;
    
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-success-light: #ecfdf5;
    
    --color-info: #06b6d4;
    --color-info-dark: #0891b2;
    --color-info-light: #ecfeff;
    
    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-warning-light: #fffbeb;
    
    --color-dark: #0f172a;
    --color-dark-surface: #1e293b;
    --color-body-bg: #f8fafc;
    --color-card-bg: #ffffff;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow-blue: 0 12px 30px -5px rgba(0, 102, 255, 0.25);
    --shadow-glow-green: 0 12px 30px -5px rgba(16, 185, 129, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Document & Overflow Protection */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-body-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

#page {
    overflow-x: hidden;
    width: 100%;
}

/* ==========================================================================
   GOOGLE MATERIAL SYMBOLS & MATERIAL ICONS SUPPORT
   ========================================================================== */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

.material-icons,
.material-icons-outlined {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* ==========================================================================
   GLOBAL LINK & BUTTON VISITED RESET
   ========================================================================== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:visited {
    color: inherit;
}

a:hover {
    color: var(--color-primary-dark);
}

.btn,
.btn:visited,
.btn-hero-cta,
.btn-hero-cta:visited,
.action-btn,
.action-btn:visited,
.custom-card-link,
.custom-card-link:visited,
.nav-link,
.nav-link:visited,
.social-icon,
.social-icon:visited {
    text-decoration: none !important;
}

.btn-success,
.btn-success:visited {
    color: #ffffff !important;
    background-color: var(--color-success) !important;
    border-color: var(--color-success) !important;
}

.btn-primary,
.btn-primary:visited {
    color: #ffffff !important;
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-hero-cta,
.btn-hero-cta:visited {
    color: #ffffff !important;
}

.action-btn.text-success:visited {
    color: var(--color-success) !important;
}

.action-btn.text-info:visited {
    color: var(--color-info) !important;
}

.action-btn.text-warning:visited {
    color: var(--color-warning) !important;
}

.action-btn.text-primary:visited {
    color: var(--color-primary) !important;
}

.action-btn.text-secondary:visited {
    color: var(--color-text-muted) !important;
}

.action-btn.text-dark:visited {
    color: var(--color-dark) !important;
}

.custom-card-link:visited {
    color: inherit !important;
}

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

/* Elegant Corporate Typography (Outfit + Plus Jakarta Sans) */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.legal-doc-title, .page-title, .entry-title {
    font-family: var(--font-heading) !important;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h1, .display-3 {
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: clamp(2.1rem, 4.5vw + 0.8rem, 3.85rem) !important;
    line-height: 1.15;
}

h2, .display-6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.35rem) !important;
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.4rem, 1.6rem);
}

.lead {
    font-family: var(--font-main);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   NAVBAR & LOGO HANDLING (STRICT CONSTRAINTS)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition-base);
}

.site-header .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.05);
    padding: 0.75rem 0;
    transition: var(--transition-base);
}

/* Restricción Estricta para Logo Personalizado de WordPress */
.site-branding,
.navbar-brand-wrapper,
.navbar-brand,
.custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 48px !important;
    max-width: 220px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.custom-logo,
.custom-logo-link img,
.navbar-brand img,
.site-branding img,
.site-header .custom-logo {
    max-height: 42px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: transform 0.3s ease;
}

.custom-logo:hover,
.custom-logo-link:hover img,
.navbar-brand:hover img {
    transform: scale(1.03);
}

.navbar-toggler {
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 10px !important;
    padding: 0.4rem 0.65rem !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15) !important;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--color-text-main) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Mobile Dropdown Menu Styling */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        background: #ffffff;
        border-radius: 16px;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(226, 232, 240, 0.9);
        padding: 1rem;
        margin-top: 0.75rem;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
    }
    .navbar-nav .nav-link:hover {
        background: var(--color-primary-light);
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ==========================================================================
   HERO SECTION (FLUID RESPONSIVE)
   ========================================================================== */
.hero {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.28), rgba(11, 19, 43, 0.32)), url('../img/banner-ppal.jpg');
    background-size: cover;
    background-position: center;
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.hero p.lead {
    font-size: clamp(1rem, 2vw + 0.3rem, 1.25rem);
    color: #ffffff;
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Hero Badges */
.badge-glow {
    font-size: clamp(0.72rem, 1.5vw, 0.85rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
}

.badge-glow:hover {
    transform: translateY(-3px) scale(1.04);
}

.badge-glow-blue {
    background: rgba(0, 102, 255, 0.25);
    color: #93c5fd;
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.badge-glow-green {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.badge-glow-cyan {
    background: rgba(6, 182, 212, 0.25);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.badge-glow-amber {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

/* Hero CTA Button */
.btn-hero-cta {
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    padding: clamp(0.75rem, 1.5vw, 0.9rem) clamp(1.8rem, 3.5vw, 2.5rem);
    border-radius: 50rem;
    border: none;
    box-shadow: var(--shadow-glow-blue);
    transition: var(--transition-bounce);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 35px -5px rgba(0, 102, 255, 0.45);
    color: #ffffff !important;
}

/* Hero Social Container */
.social-icons-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50rem;
    padding: 6px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    transition: var(--transition-bounce);
    text-decoration: none;
}

.social-icon.instagram-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.whatsapp-icon {
    background: #25d366;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.12);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Hero Distributor Box */
.hero-distributor-badge {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 10px 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .hero {
        min-height: auto;
        padding: 3rem 0.5rem;
    }
    .hero .badge-glow {
        margin-bottom: 0.35rem;
    }
    .btn-hero-cta {
        width: 100%;
        max-width: 300px;
    }
    .hero-distributor-badge img {
        max-height: 32px;
    }
}

/* ==========================================================================
   CARDS & PRODUCTS SECTION (RESPONSIVE GRID)
   ========================================================================== */
.our-products {
    background-color: #f8fafc;
}

.card-product-premium {
    background: var(--color-card-bg);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.card-product-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-product-premium .card-img-wrapper {
    overflow: hidden;
    height: clamp(190px, 28vw, 260px);
    position: relative;
}

.card-product-premium .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-product-premium:hover .card-img-top {
    transform: scale(1.08);
}

.card-accent {
    height: 5px;
    width: 100%;
}

.bg-blue { background: linear-gradient(90deg, #0066ff, #38bdf8) !important; }
.bg-green { background: linear-gradient(90deg, #10b981, #34d399) !important; }
.bg-info { background: linear-gradient(90deg, #06b6d4, #22d3ee) !important; }
.bg-yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24) !important; }

.border-blue { border-color: rgba(0, 102, 255, 0.25) !important; }
.border-green { border-color: rgba(16, 185, 129, 0.25) !important; }
.border-info { border-color: rgba(6, 182, 212, 0.25) !important; }
.border-yellow { border-color: rgba(245, 158, 11, 0.25) !important; }

/* ==========================================================================
   FEATURES / 4 PILLARS (RESPONSIVE GRID)
   ========================================================================== */
.feature-card {
    background: #ffffff;
    border-radius: 18px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card .card-img-wrapper {
    height: clamp(160px, 20vw, 190px);
    overflow: hidden;
}

.feature-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .card-img-top {
    transform: scale(1.06);
}

.accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
    border-radius: 50rem !important;
    background: #f1f5f9 !important;
    color: var(--color-primary) !important;
    box-shadow: none !important;
    transition: var(--transition-fast);
    min-height: 42px;
}

.accordion-button:not(.collapsed) {
    background: var(--color-primary-light) !important;
    color: var(--color-primary-dark) !important;
}

.feature-card ul li {
    padding: 0.4rem 0;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: transform 0.2s ease;
}

.feature-card ul li:hover {
    transform: translateX(4px);
}

/* ==========================================================================
   BRAND LOGOS (TRUST SEALS)
   ========================================================================== */
.brand-logos {
    background-color: #f8fafc;
}

.brand-badge-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.8rem) 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(90px, 12vw, 125px);
}

.brand-badge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 255, 0.25);
}

.brand-badge-card img {
    max-height: clamp(42px, 6vw, 68px);
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-badge-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

/* ==========================================================================
   PREFOOTER SECTION (RESPONSIVE COLUMNS)
   ========================================================================== */
.prefooter {
    background: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.benefit-pill {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: clamp(0.6rem, 1.2vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    margin-bottom: 0.65rem;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.benefit-pill:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.prefooter img {
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #ffffff;
    transition: var(--transition-bounce);
    width: 100%;
    max-width: 500px;
}

.prefooter img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   CONTACT SECTION & FORM (TOUCH-FRIENDLY)
   ========================================================================== */
.contact-section {
    background-color: #f8fafc;
}

.contact-card-info,
.contact-card-form {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.form-control-modern {
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    color: var(--color-text-main);
    transition: var(--transition-fast);
    min-height: 48px;
}

textarea.form-control-modern {
    min-height: 110px;
}

.form-control-modern:focus {
    background-color: #ffffff;
    border-color: var(--color-success) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
    outline: none;
}

/* Botón de envío en sección de contacto (Ancho completo) */
.contact-card-form .btn-send-message,
.contact-card-form input[type="submit"],
.contact-card-form .wpcf7-submit,
.btn-send-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.85rem 1.5rem !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), 0 8px 10px -6px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    letter-spacing: -0.01em;
}

.contact-card-form .btn-send-message:hover,
.contact-card-form input[type="submit"]:hover,
.contact-card-form .wpcf7-submit:hover,
.btn-send-message:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 32px -4px rgba(16, 185, 129, 0.5) !important;
    color: #ffffff !important;
}

.contact-card-form .btn-send-message:active,
.contact-card-form input[type="submit"]:active,
.contact-card-form .wpcf7-submit:active,
.btn-send-message:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Estado deshabilitado general */
.btn-send-message:disabled,
.btn-send-message[disabled],
.contact-card-form input[type="submit"]:disabled,
.contact-card-form input[type="submit"][disabled] {
    background: #64748b !important;
    color: #ffffff !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   BOTONES Y FOOTER EN MODALES (ARCO-P & GENERAL)
   ========================================================================== */
.modal .yartech-cf7-container .modal-footer,
.yartech-cf7-container .modal-footer,
.modal-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.modal .yartech-cf7-container .modal-footer p,
.yartech-cf7-container .modal-footer p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.modal .yartech-cf7-container .modal-footer br,
.yartech-cf7-container .modal-footer br {
    display: none !important;
}

.modal .yartech-cf7-container .modal-footer .btn,
.modal .yartech-cf7-container .modal-footer input[type="submit"],
.yartech-cf7-container .modal-footer input[type="submit"],
.modal .modal-footer .btn {
    width: auto !important;
    min-width: 120px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem !important;
    letter-spacing: normal !important;
}

/* Botón Cancelar en modal */
.modal .yartech-cf7-container .modal-footer .btn-light,
.yartech-cf7-container .modal-footer .btn-light,
.modal .modal-footer .btn-light {
    background-color: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border-radius: 50rem !important;
}

.modal .yartech-cf7-container .modal-footer .btn-light:hover,
.yartech-cf7-container .modal-footer .btn-light:hover,
.modal .modal-footer .btn-light:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Botón Enviar Primario (Azul) en modal */
.modal .yartech-cf7-container .modal-footer .btn-primary,
.modal .yartech-cf7-container .modal-footer input[type="submit"],
.modal .yartech-cf7-container input[type="submit"].btn-primary,
.yartech-cf7-container .modal-footer input[type="submit"] {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50rem !important;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3) !important;
    font-weight: 600 !important;
}

.modal .yartech-cf7-container .modal-footer .btn-primary:hover,
.modal .yartech-cf7-container .modal-footer input[type="submit"]:hover,
.modal .yartech-cf7-container input[type="submit"].btn-primary:hover,
.yartech-cf7-container .modal-footer input[type="submit"]:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.4) !important;
    color: #ffffff !important;
}

.modal .yartech-cf7-container input[type="submit"]:disabled,
.modal .yartech-cf7-container input[type="submit"][disabled] {
    background: #94a3b8 !important;
    color: #ffffff !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Indicador de procesamiento moderno cuando el botón desaparece */
.form-submitting-indicator {
    animation: fadeInFormIndicator 0.3s ease-out forwards;
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.9) 0%, rgba(236, 253, 245, 0.9) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .form-submitting-indicator {
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    width: auto;
}

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

/* ==========================================================================
   CONTACT FORM 7 MODERN INTEGRATION
   ========================================================================== */
.yartech-cf7-container .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.yartech-cf7-container .wpcf7-acceptance label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
    font-size: 0.875rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

.yartech-cf7-container .wpcf7-acceptance input[type="checkbox"] {
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
}

.yartech-cf7-container .wpcf7-not-valid-tip {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

.yartech-cf7-container .wpcf7-response-output {
    margin: 1.25rem 0 0 0 !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Cuando el formulario de CF7 o Nativo se envía con éxito: Ocultar todos los campos para evitar reenvíos */
.yartech-cf7-container form.sent > *:not(.wpcf7-response-output):not(.yartech-cf7-success-card),
.yartech-cf7-container form.sent p,
.yartech-cf7-container form.sent .wpcf7-form-control-wrap,
.yartech-cf7-container form.sent .row,
.yartech-cf7-container form.sent .mb-3,
.yartech-cf7-container form.sent .mb-4,
.yartech-cf7-container form.sent label,
.yartech-cf7-container form.sent input,
.yartech-cf7-container form.sent textarea,
.yartech-cf7-container form.sent button,
.yartech-cf7-container form.sent .form-check,
.yartech-cf7-container form.sent .cf7-submitting-indicator {
    display: none !important;
}

.yartech-cf7-container form.sent .wpcf7-response-output {
    background-color: #ffffff !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15) !important;
    color: #0f172a !important;
    padding: 3rem 1.5rem !important;
    border-radius: 20px !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    line-height: 1.6;
}

.yartech-cf7-container form.sent .wpcf7-response-output::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #d1fae5;
    color: #059669;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.yartech-cf7-success-card,
.yartech-success-locked-card {
    animation: fadeInFormIndicator 0.4s ease-out forwards;
    background: #ffffff !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15) !important;
    border-radius: 20px !important;
}

.yartech-cf7-container form.invalid .wpcf7-response-output,
.yartech-cf7-container form.unaccepted .wpcf7-response-output {
    background-color: #fef2f2 !important;
    border: 1.5px solid #ef4444 !important;
    color: #991b1b !important;
}

.yartech-cf7-container .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}

.yartech-cf7-container .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    cursor: pointer;
}

.yartech-cf7-container .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.yartech-cf7-container .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    cursor: pointer;
    line-height: 1.4;
}

.yartech-cf7-container .wpcf7-acceptance input[type="checkbox"] {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float-wrapper {
    position: fixed;
    bottom: clamp(20px, 3.5vw, 35px);
    right: clamp(20px, 3.5vw, 35px);
    z-index: 9999;
    display: flex;
    align-items: center;
}

.whatsapp-float {
    width: clamp(52px, 6vw, 62px);
    height: clamp(52px, 6vw, 62px);
    background: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(26px, 3.5vw, 34px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    position: relative;
    transition: var(--transition-bounce);
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.6;
    z-index: -1;
    animation: wa-pulse 2.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float::after {
    animation-delay: 1.1s;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.12) rotate(5deg);
    background: #1eb954;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    background: #ffffff;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin-right: 12px;
    white-space: nowrap;
    border: 1px solid rgba(226, 232, 240, 0.9);
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* ==========================================================================
   MODALS (MOBILE OPTIMIZED)
   ========================================================================== */
.modal-dialog {
    margin: 1rem auto;
    max-width: 800px;
    width: calc(100% - 2rem);
}

.modal-content {
    border-radius: 20px !important;
    overflow: hidden;
}

.modal-body {
    padding: clamp(1rem, 2.5vw, 1.5rem) !important;
}

.card-product {
    background: #f8fafc;
    border-radius: 14px;
    transition: var(--transition-base);
}

.card-product:hover {
    transform: translateY(-3px);
    background: #ffffff !important;
    box-shadow: var(--shadow-md) !important;
}

.action-btn {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    transition: var(--transition-fast);
    text-decoration: none;
    min-height: 40px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: #ffffff;
    border-color: currentColor;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
}

/* ==========================================================================
   SCROLL REVEAL UTILITIES
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ==========================================================================
   LEY 21.719 - COOKIE BANNER & PRIVACY STYLING
   ========================================================================== */
.cookie-banner-modern {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.12);
    padding: 1.1rem 0;
    animation: banner-slide-up 0.4s ease-out;
}

@keyframes banner-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.privacy-notice-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: var(--transition-fast);
}

.privacy-notice-box:hover {
    border-color: #cbd5e1 !important;
}

.bg-primary-subtle {
    background-color: rgba(0, 102, 255, 0.12) !important;
}

.bg-info-subtle {
    background-color: rgba(6, 182, 212, 0.12) !important;
}

.footer-legal-links a {
    transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.hover-white:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

@media (max-width: 767.98px) {
    .cookie-banner-modern {
        padding: 0.9rem 0;
    }
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-actions button {
        flex: 1 1 auto;
    }
}

/* ==========================================================================
   FORMAL LEGAL DOCUMENT STYLES (MATERIAL SYMBOLS & CORPORATE THEME)
   ========================================================================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}

.legal-hero-section {
    background: radial-gradient(circle at 20% 30%, #1e293b 0%, #0f172a 60%, #0b132b 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.15);
}

.legal-doc-title {
    font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.5rem);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.legal-badge-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
}

.legal-badge-amber {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.legal-badge-dark {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-family: monospace;
}

.legal-metadata-strip {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legal-sidebar-sticky {
    position: sticky;
    top: 90px;
    z-index: 10;
}

.legal-nav-toc .nav-link {
    border-left: 3px solid transparent;
    transition: var(--transition-fast);
    font-weight: 500;
    color: #475569 !important;
}

.legal-nav-toc .nav-link:hover,
.legal-nav-toc .nav-link.active {
    border-left-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark) !important;
    padding-left: 0.75rem !important;
}

.legal-paper-card {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    line-height: 1.8;
}

.legal-section-title {
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.legal-callout-quote {
    font-size: 0.95rem;
    line-height: 1.7;
}

.letter-spacing-1 {
    letter-spacing: 0.05em;
}

/* Print Stylesheet for Formal Legal Output */
@media print {
    .site-header,
    .legal-actions-box,
    .legal-sidebar-sticky,
    .site-footer,
    .whatsapp-float-wrapper,
    .cookie-banner-modern {
        display: none !important;
    }
    .legal-hero-section {
        background: transparent !important;
        color: #000000 !important;
        padding: 0 !important;
    }
    .legal-hero-section * {
        color: #000000 !important;
    }
    .legal-paper-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* ==========================================================================
   ERROR 404 CORPORATE STYLING
   ========================================================================== */
.min-vh-75 {
    min-height: 75vh;
}

.error-code-gradient {
    font-size: clamp(5.5rem, 14vw, 9.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0, 102, 255, 0.15));
}

.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

.error-shortcut-card {
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    transition: var(--transition-bounce);
}

.error-shortcut-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--color-primary) !important;
}

/* ==========================================================================
   SIDEBAR & SEARCH & POSTS CORPORATE STYLING
   ========================================================================== */
.sidebar-modern .widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-modern .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-modern .widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-modern .widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.92rem;
}

.sidebar-modern .widget ul li:last-child {
    border-bottom: none;
}

.sidebar-modern .widget ul li a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

.sidebar-modern .widget ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.search-form-modern .form-control:focus {
    box-shadow: none;
    outline: none;
}

.card-post-preview {
    transition: var(--transition-bounce);
}

.card-post-preview:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.card-search-result {
    transition: var(--transition-bounce);
}

.card-search-result:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.hover-primary:hover {
    color: var(--color-primary) !important;
}

/* Pagination */
.pagination-modern .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pagination-modern .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 50rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.pagination-modern .page-numbers:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

.pagination-modern .page-numbers.current {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow-blue);
}

/* Post Navigation (Single) */
.post-navigation-modern .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.post-navigation-modern .nav-previous a,
.post-navigation-modern .nav-next a {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.post-navigation-modern .nav-previous a:hover,
.post-navigation-modern .nav-next a:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Comments Styling */
.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .comment-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 16px;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    background-color: #ffffff;
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.comment-form input[type="submit"] {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 50rem;
    padding: 0.75rem 1.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow-blue);
    cursor: pointer;
    transition: var(--transition-bounce);
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    background: var(--color-primary-dark);
}




