/* ============================================================
   SVEN FORT – Hero Website (Resend.com inspired)
   ============================================================ */

/* =============== DESIGN TOKENS =============== */
:root {
    --color-bg: #000000;
    --color-bg-elevated: #0a0a0a;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-accent: #27bbb1;
    --color-accent-dim: rgba(39, 187, 177, 0.15);
    --color-accent-glow: rgba(39, 187, 177, 0.4);
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.5);
    --color-text-tertiary: rgba(255, 255, 255, 0.3);
    --font-primary: 'Lexend Deca', sans-serif;
    --font-display: 'Aldrich', sans-serif;
    --gradient-title: linear-gradient(90deg, #ffffff 0%, var(--color-accent) 100%);
    --radius-card: 24px;
    --radius-button: 12px;
    --spacing-section: clamp(80px, 10vw, 140px);
    --max-width: 1200px;

    /* Emil Kowalski easing curves — stronger than built-in CSS */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-out-smooth: cubic-bezier(0.16, 1, 0.3, 1);

    /* Duration tokens */
    --duration-press: 160ms;
    --duration-fast: 150ms;
    --duration-normal: 200ms;
    --duration-smooth: 300ms;
}

/* Allow gradient title variable to adapt in light mode */
body.theme-light {
    --gradient-title: linear-gradient(90deg, #111111 0%, var(--color-accent) 100%);
}

/* =============== RESET & BASE =============== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.theme-light,
/* ensure primary font is on light theme too */
body.theme-dark {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-light {
    --color-bg: #f8fafc;
    --color-text: #0f172a;
    --color-text-secondary: rgba(15, 23, 42, 0.7);
    --color-border: rgba(15, 23, 42, 0.1);
    --color-border-hover: rgba(15, 23, 42, 0.2);
    --color-bg-elevated: #ffffff;
    --color-bg-card: #ffffff;
    /* Adjusted turquoise for contrast on white */
    --color-accent: #0b8c82;
    --color-accent-dim: rgba(11, 140, 130, 0.15);
    --color-accent-glow: rgba(11, 140, 130, 0.4);
}

/* Graceful overrides for hardcoded dark elements in light mode */
body.theme-light .text-white {
    color: var(--color-text) !important;
}

body.theme-light .text-light {
    color: var(--color-text-secondary) !important;
}

body.theme-light a.text-light,
body.theme-light a.text-white,
body.theme-light .footer-links a {
    color: var(--color-text-secondary) !important;
}

body.theme-light a.text-light:hover,
body.theme-light a.text-white:hover,
body.theme-light .footer-links a:hover {
    color: var(--color-accent) !important;
}

/* Invert Logos in light mode */
body.theme-light .navbar-brand img,
body.theme-light .footer img,
body.theme-light .hero-logo-glow,
body.theme-light .social-icons a {
    filter: invert(1);
}

body.theme-light .social-icons a:hover {
    filter: none;
    color: #fff !important;
}

/* Revert on hover as it gains background */

/* Soften Shadows in Light Mode (No black shadows) */
body.theme-light .hero-agent-img {
    filter: drop-shadow(0 20px 40px rgba(11, 140, 130, 0.2)) drop-shadow(0 0 80px rgba(11, 140, 130, 0.15));
}

body.theme-light .feature-glass-icon {
    box-shadow: 0 20px 60px rgba(11, 140, 130, 0.15);
}

body.theme-light .tactic-card:hover,
body.theme-light .service-overview-card:hover,
body.theme-light .value-card:hover,
body.theme-light .service-main-card:hover,
body.theme-light .service-grid-card:hover,
body.theme-light .blog-card:hover {
    box-shadow: 0 20px 60px rgba(11, 140, 130, 0.15);
}

body.theme-light .metallic-ring-container {
    box-shadow: 0 20px 60px rgba(11, 140, 130, 0.15);
}

body.theme-light .glass-panel {
    box-shadow: 0 30px 60px rgba(11, 140, 130, 0.2);
}

body.theme-light .entornos-icon {
    filter: drop-shadow(0 0 10px rgba(11, 140, 130, 0.3));
}

/* Tactical toggle button style */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    /* Military rugged look */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all var(--duration-fast) var(--ease-out);
}

.theme-toggle-btn .theme-text {
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    background: var(--color-accent-dim);
    color: var(--color-accent) !important;
    border-color: var(--color-accent);
}

body.theme-light .bg-dark-transparent {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid var(--color-border);
}

body.theme-light .dropdown-menu-dark {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--color-border) !important;
}

body.theme-light .dropdown-menu-dark .dropdown-item {
    color: var(--color-text) !important;
}

body.theme-light .dropdown-menu-dark .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--color-accent) !important;
}

body.theme-light .navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

body.theme-light .btn-hero-primary {
    color: #ffffff !important;
}

body.theme-light .bento-card h4,
body.theme-light .feature-text h2,
body.theme-light .service-overview-card h3,
body.theme-light .cta-banner h3,
body.theme-light .trust-item {
    color: var(--color-text) !important;
}

body.theme-light .faq-btn:not(.collapsed) {
    color: var(--color-accent) !important;
}

body.theme-light .footer p.text-white,
body.theme-light .footer h5.text-white {
    color: var(--color-text) !important;
}

body.theme-light .services-list li:hover {
    color: var(--color-text) !important;
}

body.theme-light .form-floating>.form-control-glass {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text);
}

body.theme-light .form-floating>.form-control-glass:focus {
    background: #ffffff;
}

/* =============== TACTICAL GRID BACKGROUND =============== */
.tactical-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    position: absolute;
    inset: 0;
    background-image:
        /* Minor grid */
        repeating-linear-gradient(0deg, rgba(39, 187, 177, 0.03) 0px, rgba(39, 187, 177, 0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(39, 187, 177, 0.03) 0px, rgba(39, 187, 177, 0.03) 1px, transparent 1px, transparent 40px),
        /* Major grid (every 4 cells = 160px) */
        repeating-linear-gradient(0deg, rgba(39, 187, 177, 0.06) 0px, rgba(39, 187, 177, 0.06) 1px, transparent 1px, transparent 160px),
        repeating-linear-gradient(90deg, rgba(39, 187, 177, 0.06) 0px, rgba(39, 187, 177, 0.06) 1px, transparent 1px, transparent 160px);
    background-size: 100% 100%;
}

/* Horizontal scan line (cursor-following) */
.tactical-grid .scan-h {
    position: fixed;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent calc(var(--scan-x, 50vw) - 400px),
            rgba(39, 187, 177, 0.0) calc(var(--scan-x, 50vw) - 200px),
            rgba(39, 187, 177, 0.2) calc(var(--scan-x, 50vw) - 80px),
            rgba(39, 187, 177, 0.9) var(--scan-x, 50vw),
            rgba(39, 187, 177, 0.2) calc(var(--scan-x, 50vw) + 80px),
            rgba(39, 187, 177, 0.0) calc(var(--scan-x, 50vw) + 200px),
            transparent calc(var(--scan-x, 50vw) + 400px));
    box-shadow: 0 0 15px 2px rgba(39, 187, 177, 0.1),
        0 0 40px 6px rgba(39, 187, 177, 0.04);
    pointer-events: none;
    will-change: top, background;
    z-index: 1;
}

/* Vertical scan line (cursor-following) */
.tactical-grid .scan-v {
    position: fixed;
    top: 0;
    left: 50%;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg,
            transparent calc(var(--scan-y, 50vh) - 400px),
            rgba(39, 187, 177, 0.0) calc(var(--scan-y, 50vh) - 200px),
            rgba(39, 187, 177, 0.2) calc(var(--scan-y, 50vh) - 80px),
            rgba(39, 187, 177, 0.8) var(--scan-y, 50vh),
            rgba(39, 187, 177, 0.2) calc(var(--scan-y, 50vh) + 80px),
            rgba(39, 187, 177, 0.0) calc(var(--scan-y, 50vh) + 200px),
            transparent calc(var(--scan-y, 50vh) + 400px));
    box-shadow: 0 0 12px 2px rgba(39, 187, 177, 0.08),
        0 0 30px 5px rgba(39, 187, 177, 0.03);
    pointer-events: none;
    will-change: left, background;
    z-index: 1;
}

/* Crosshair intersection dot (Eliminada a petición) */
/*
.tactical-grid .scan-h::after {
    content: '';
    ...
}
*/

/* Corner markers (tactical HUD feel) */
.tactical-grid .corner-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: rgba(39, 187, 177, 0.12);
    border-style: solid;
    border-width: 0;
}

.tactical-grid .corner-marker.tl {
    top: 20px;
    left: 20px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.tactical-grid .corner-marker.tr {
    top: 20px;
    right: 20px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.tactical-grid .corner-marker.bl {
    bottom: 20px;
    left: 20px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.tactical-grid .corner-marker.br {
    bottom: 20px;
    right: 20px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

@media (prefers-reduced-motion: reduce) {

    .tactical-grid .scan-h,
    .tactical-grid .scan-v {
        animation: none;
        display: none;
    }
}

::selection {
    background: var(--color-accent);
    color: #000;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.section-headline,
.hero-headline {
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-display) !important;
    text-transform: uppercase !important;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: #fff;
}

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

/* =============== UTILITY CLASSES =============== */
.text-cyber {
    color: var(--color-accent) !important;
}

.text-secondary-custom {
    color: var(--color-text-secondary) !important;
}

.font-display {
    font-family: var(--font-display);
}

.mw-800 {
    max-width: 800px;
}

.mw-600 {
    max-width: 600px;
}

.z-10 {
    z-index: 10;
}

.section-spacing {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

/* =============== BUTTONS =============== */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-accent);
    color: #000;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: transform var(--duration-press) var(--ease-out),
        background var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-primary:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.btn-hero-primary:active {
    transform: scale(0.97);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--color-text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: transform var(--duration-press) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-secondary:hover {
    color: #fff;
    border-color: var(--color-border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-hero-secondary:active {
    transform: scale(0.97);
}

/* Keep legacy buttons for inner pages */
.btn-cyber-solid {
    background: linear-gradient(90deg, #1f2b38, #182d36);
    color: #fff;
    border: 1px solid var(--color-accent);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(39, 187, 177, 0.2);
    border-radius: var(--radius-button);
}

.btn-cyber-solid:hover {
    background: var(--color-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(39, 187, 177, 0.6);
}

.btn-outline-cyber {
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    background: transparent;
    transition: all 0.3s ease;
    border-radius: var(--radius-button);
}

.btn-outline-cyber:hover,
.btn-outline-cyber.active {
    background-color: var(--color-accent);
    color: #000;
    box-shadow: 0 0 15px var(--color-accent-glow);
}

/* =============== HEADER & NAV =============== */
.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.navbar-nav .nav-link {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 0.88rem;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out);
}

/* Navbar horizontal (xl+): compactar para que entren todos los idiomas en una sola linea */
@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }

    .navbar .theme-toggle-btn {
        padding: 8px 10px;
        font-size: 0.72rem;
    }

    .navbar .btn-outline-cyber {
        padding: 0.4rem 0.8rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
}

.dropdown-menu-dark {
    background-color: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-button);
    backdrop-filter: blur(20px);
    padding: 8px;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    transition: background var(--duration-fast) var(--ease-out);
}

.dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* =============== HERO SECTION =============== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px !important;
    padding-bottom: 60px !important;
    overflow: hidden;
    background: var(--color-bg);
}

/* =============== CURSOR GLOW (mouse-following) =============== */
.cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 187, 177, 0.18) 0%, rgba(39, 187, 177, 0.06) 25%, rgba(39, 187, 177, 0.02) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    filter: blur(8px);
}

/* =============== CARD GLOW OVERLAY (proximity reflection) =============== */
.card-glow-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* =============== AMBIENT BACKGROUND ORBS =============== */
.ambient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 187, 177, 0.06) 0%, rgba(39, 187, 177, 0.02) 40%, transparent 70%);
    filter: blur(60px);
    animation: orbDrift linear infinite;
    will-change: transform, opacity;
}

@keyframes orbDrift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(80px, -60px) scale(1.15);
        opacity: 0.6;
    }

    50% {
        transform: translate(-40px, -120px) scale(0.9);
        opacity: 0.35;
    }

    75% {
        transform: translate(-100px, 30px) scale(1.1);
        opacity: 0.55;
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }

    .card-glow-overlay {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-orb {
        animation: none;
        opacity: 0.2;
    }

    .cursor-glow {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-security-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-headline {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-headline .accent {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-agent-img {
    position: relative;
    z-index: 2;
    max-height: 80vh;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 80px rgba(39, 187, 177, 0.15));
    animation: floatImage 6s ease-in-out infinite;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(39, 187, 177, 0.35) 0%, rgba(39, 187, 177, 0.1) 30%, transparent 65%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    z-index: 3;
    pointer-events: none;
}

/* =============== TRUST STRIP =============== */
.trust-strip {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--color-border);
}

.trust-strip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-tertiary);
    margin-bottom: 32px;
    font-weight: 400;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(30px, 5vw, 70px);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color var(--duration-fast) var(--ease-out);
}

.trust-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

.trust-item i {
    font-size: 1.4rem;
}

/* =============== CENTERED SECTION (ABOUT/ENTORNOS) =============== */
.centered-feature {
    text-align: center;
    position: relative;
}

.centered-feature-icon {
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(39, 187, 177, 0.1), rgba(39, 187, 177, 0.02));
    border: 1px solid rgba(39, 187, 177, 0.15);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 40px;
    position: relative;
}

.centered-feature-icon::after {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-dim), transparent 70%);
    z-index: -1;
    opacity: 0.5;
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.section-description {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* =============== BENTO GRID =============== */
.bento-grid {
    display: grid;
    gap: 20px;
}

.bento-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bento-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: clamp(28px, 3vw, 44px);
    transition: transform var(--duration-smooth) var(--ease-out),
        border-color var(--duration-smooth) var(--ease-out),
        background var(--duration-smooth) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-dim), transparent);
    opacity: 0;
    transition: opacity var(--duration-smooth) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .bento-card:hover {
        border-color: var(--color-border-hover);
        background: rgba(255, 255, 255, 0.04);
        transform: translateY(-3px);
    }

    .bento-card:hover::before {
        opacity: 1;
    }
}

.bento-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(39, 187, 177, 0.08);
    border: 1px solid rgba(39, 187, 177, 0.12);
    color: var(--color-accent);
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.bento-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.bento-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 0;
}

/* =============== FEATURE ROWS =============== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row+.feature-row {
    margin-top: var(--spacing-section);
    padding-top: var(--spacing-section);
    border-top: 1px solid var(--color-border);
}

.feature-row.reverse .feature-visual {
    order: -1;
}

.feature-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.feature-text h3 {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-text p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-glass-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--color-accent);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform var(--duration-smooth) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .feature-glass-icon:hover {
        transform: scale(1.04) rotate(1.5deg);
    }
}

.feature-glass-icon::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 187, 177, 0.06), transparent 60%);
    z-index: -1;
}

/* =============== SERVICES LIST =============== */
.services-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.services-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 12px;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li:hover {
    color: #fff;
    padding-left: 8px;
}

.services-list li i {
    color: var(--color-accent);
    font-size: 0.7rem;
    transition: transform var(--duration-fast) var(--ease-out);
}

.services-list li:hover i {
    transform: rotate(90deg);
}

/* =============== SERVICES OVERVIEW CARDS =============== */
.service-overview-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: clamp(32px, 3vw, 48px);
    text-align: center;
    transition: transform var(--duration-smooth) var(--ease-out),
        border-color var(--duration-smooth) var(--ease-out),
        box-shadow var(--duration-smooth) var(--ease-out);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (hover: hover) and (pointer: fine) {
    .service-overview-card:hover {
        border-color: var(--color-border-hover);
        transform: translateY(-3px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

.service-overview-card .card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 28px;
}

.service-overview-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.service-overview-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 28px;
    flex-grow: 1;
}

/* =============== STATS SECTION =============== */
.stats-section {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 12px;
    font-family: var(--font-display);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

/* =============== CTA BANNER =============== */
.cta-banner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: clamp(40px, 5vw, 70px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--color-accent-dim), transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.cta-banner h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-banner p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    font-weight: 300;
}

.cta-banner .btn-hero-primary {
    position: relative;
    z-index: 2;
}

/* =============== FOOTER =============== */
.bg-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-links a {
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links a:hover {
    color: #fff !important;
    padding-left: 4px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    transition: all var(--duration-fast) var(--ease-out);
    color: var(--color-text-secondary);
}

.social-icons a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000 !important;
    transform: translateY(-2px);
}

/* =============== PAGE HERO (SUB PAGES) =============== */
.page-hero {
    background: radial-gradient(ellipse at center, rgba(39, 187, 177, 0.04) 0%, transparent 70%);
    padding-top: 140px !important;
}

/* =============== LEGACY SUPPORT (Sub-pages) =============== */
.tactic-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: all var(--duration-smooth) var(--ease-out);
    height: 100%;
}

.tactic-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tactic-card-active {
    border-color: rgba(39, 187, 177, 0.25);
}

.tactic-icon {
    font-size: 3rem;
}

.metallic-ring-container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.value-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(39, 187, 177, 0.1);
    border-radius: var(--radius-card);
    transition: all var(--duration-smooth) var(--ease-out);
}

.value-card:hover {
    border-color: rgba(39, 187, 177, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.service-main-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(39, 187, 177, 0.08);
    border-radius: var(--radius-card);
    transition: all var(--duration-smooth) var(--ease-out);
}

.service-main-card:hover {
    border-color: rgba(39, 187, 177, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px);
}

.service-grid-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: all var(--duration-smooth) var(--ease-out);
}

.service-grid-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-grid-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 187, 177, 0.04), rgba(0, 0, 0, 0.3));
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* FAQ
   NOTE: .accordion-header is an <h3>, so it inherits the global heading rule
   (-webkit-text-fill-color: transparent + gradient background-clip:text). The
   inner <button> text inherited that transparent fill and became INVISIBLE.
   We reset the fill on the header/button and give questions a readable color
   that turns turquoise on hover / when expanded. */
.accordion-header {
    background: none !important;
    margin: 0;
}

.faq-btn {
    background: transparent !important;
    color: var(--color-text) !important;
    -webkit-text-fill-color: var(--color-text);
    text-fill-color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 1.2rem 0;
    border: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: none !important;
    font-family: var(--font-primary);
    transition: color var(--duration-fast) var(--ease-out);
}

.faq-btn:hover,
.faq-btn:not(.collapsed) {
    color: var(--color-accent) !important;
    -webkit-text-fill-color: var(--color-accent);
    text-fill-color: var(--color-accent);
}

.faq-btn::after {
    filter: brightness(0) invert(0.6);
    opacity: 0.75;
}

.faq-btn:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(67%) sepia(47%) saturate(520%) hue-rotate(130deg);
    opacity: 1;
}

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

/* Contact form */
.contact-highlight-bar {
    background-color: var(--color-accent);
    color: #000;
    padding: 0.75rem 1.25rem;
    display: inline-block;
    border-radius: 8px;
}

/* ================= PREMIUM GLASS FORM ================= */
.glass-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.form-floating>.form-control-glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-primary);
    transition: border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out),
        background var(--duration-fast) var(--ease-out);
}

.form-floating>.form-control-glass:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(39, 187, 177, 0.15);
    color: #fff;
}

.form-floating>label {
    color: var(--color-text-secondary);
    padding: 1rem 1.2rem;
    transition: color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.form-floating>.form-control-glass:focus~label,
.form-floating>.form-control-glass:not(:placeholder-shown)~label {
    color: var(--color-accent);
    transform: scale(0.85) translateY(-0.8rem) translateX(0.15rem);
}

.form-floating>.form-control-glass:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: white !important;
}

/* Blog */
.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: all var(--duration-smooth) var(--ease-out);
}

.blog-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 187, 177, 0.05), rgba(0, 0, 0, 0.3));
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.blog-card-placeholder {
    border-style: dashed;
    opacity: 0.4;
}

/* =============== SCROLL REVEAL (Emil Kowalski: scale(0.96) + translateY(8px), not 30px) =============== */
.reveal {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity var(--duration-smooth) var(--ease-out),
        transform var(--duration-smooth) var(--ease-out);
}

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

/* Stagger children (50ms gaps — short enough to feel fast, long enough to cascade) */
.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 50ms;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 100ms;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 150ms;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-content {
    animation: slideUp 0.6s var(--ease-out) forwards;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding-top: 120px !important;
        padding-bottom: 80px !important;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 5vw, 3.0rem);
    }

    .hero-agent-img {
        max-height: 50vh;
        margin-top: 2rem;
    }

    .hero-image-glow {
        width: 100%;
        height: 100%;
    }

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

    .feature-row.reverse .feature-visual {
        order: 0;
    }

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

    .bento-grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .metallic-ring-container,
    .feature-glass-icon {
        width: 140px;
        height: 140px;
        border-radius: 32px;
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        max-height: 36px !important;
        width: auto;
    }

    .trust-logos {
        gap: 15px;
        flex-direction: column;
    }

    .trust-item strong,
    .trust-item span {
        font-size: 0.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn-hero-primary,
    .hero-cta-group .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .display-5 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 100px !important;
    }

    .cta-banner {
        padding: 32px 20px;
    }

    .bento-card {
        padding: 1.5rem !important;
    }
}

/* =============== MISC =============== */
.custom-font-sm {
    font-size: 0.9rem;
}

.font-sm {
    font-size: 0.88rem;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.border-dark {
    border-color: var(--color-border) !important;
}

.shadow-cyber {
    box-shadow: 0 0 30px rgba(39, 187, 177, 0.1);
}

.hover-white:hover {
    color: #fff !important;
}

.entornos-icon {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.entornos-icon:hover {
    transform: scale(1.05);
}

.glow-bg-radial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.services-accordion li {
    font-size: 1rem;
    transition: color 0.3s;
    cursor: pointer;
}

.services-accordion li:hover {
    color: #fff !important;
}

.contact-form .form-label {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

/* ========================================= 
   SERVICES REDESIGN MODULES 
   ========================================= */

/* Page-level spacing and visual differentiation (services only) */
.services-page .services-block {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(4.5rem, 8vw, 7rem) !important;
    padding-bottom: clamp(4.5rem, 8vw, 7rem) !important;
}

.services-page .services-block+.services-block {
    margin-top: clamp(1.5rem, 3vw, 2.75rem);
}

.services-page .services-block .container {
    position: relative;
    z-index: 2;
}

.services-page .services-block::before,
.services-page .services-block::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.services-page .services-block::before {
    inset: 0;
    z-index: 1;
}

.services-page .services-block::after {
    top: 0;
    left: 50%;
    width: min(92%, 1160px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(39, 187, 177, 0.34), transparent);
    opacity: 0.65;
    z-index: 1;
}

.services-page .services-block-categories::after {
    opacity: 0;
}

.services-page .services-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
    margin-bottom: 0.85rem !important;
    padding: 0.42rem 0.95rem;
    border: 1px solid rgba(39, 187, 177, 0.25);
    border-radius: 999px;
    background: rgba(39, 187, 177, 0.1);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    line-height: 1;
}

.services-page .services-block-categories::before {
    background:
        radial-gradient(circle at 16% 22%, rgba(39, 187, 177, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 72%);
}

.services-page .services-block-presencial::before {
    background:
        radial-gradient(circle at 12% 28%, rgba(39, 187, 177, 0.18), transparent 48%),
        linear-gradient(120deg, rgba(39, 187, 177, 0.08) 0%, rgba(255, 255, 255, 0.01) 42%, transparent 100%);
}

.services-page .services-block-panoramica::before {
    background:
        radial-gradient(circle at 88% 20%, rgba(39, 187, 177, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(10, 20, 24, 0.62), rgba(0, 0, 0, 0.15));
}

.services-page .services-block-digital::before {
    background:
        linear-gradient(145deg, rgba(5, 14, 14, 0.85), rgba(0, 0, 0, 0.35)),
        repeating-linear-gradient(90deg, rgba(39, 187, 177, 0.06) 0 1px, transparent 1px 30px);
}

.services-page .services-block-cta::before {
    background:
        radial-gradient(circle at 50% 0%, rgba(39, 187, 177, 0.14), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 75%);
}

.services-page .services-categories-grid {
    row-gap: 2rem;
}

.services-page .services-block-categories .bento-card {
    height: 100%;
    padding-block: clamp(2.2rem, 3vw, 2.8rem);
}

.services-page .services-block-categories .col-lg-4:nth-child(1) .bento-card {
    border-top: 2px solid rgba(39, 187, 177, 0.45);
}

.services-page .services-block-categories .col-lg-4:nth-child(2) .bento-card {
    border-top: 2px solid rgba(39, 187, 177, 0.28);
}

.services-page .services-block-categories .col-lg-4:nth-child(3) .bento-card {
    border-top: 2px solid rgba(39, 187, 177, 0.16);
}

/* Service category cards with cover photo */
.services-page .services-block-categories .service-cat-card {
    padding: 0;
    overflow: hidden;
}

.service-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.service-cover img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.service-cat-card:hover .service-cover img {
    transform: scale(1.06);
}

.service-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 10, 0) 35%, rgba(5, 8, 10, 0.55) 70%, rgba(5, 8, 10, 0.96) 100%);
    pointer-events: none;
}

.service-cat-body {
    position: relative;
    z-index: 2;
    margin-top: -2.6rem;
    padding: 0 clamp(1.4rem, 2.4vw, 2.2rem) clamp(1.8rem, 2.6vw, 2.4rem);
}

body.theme-light .service-cover::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.6) 75%, rgba(255, 255, 255, 0.96) 100%);
}

.services-page .services-block-presencial .tactical-list {
    background: rgba(4, 13, 13, 0.65);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: clamp(0.7rem, 1.2vw, 1.1rem) clamp(1.1rem, 2vw, 1.7rem);
}

.services-page .services-block-presencial .tactical-list-item {
    padding: 1.35rem 0;
}

.services-page .services-block-panoramica .monitor-module-card {
    min-height: 100%;
    border-radius: 12px;
}

.services-page .services-block-panoramica .monitor-content-zone {
    padding: 1.7rem 1.45rem;
}

.services-page .services-block-digital .cyber-widget {
    height: 100%;
    border-radius: 14px;
    padding: 1.7rem;
}

.services-page .services-block-cta .row {
    margin-top: 0.8rem;
}

body.theme-light.services-page .services-kicker {
    color: rgba(15, 23, 42, 0.78);
    border-color: rgba(11, 140, 130, 0.3);
    background: rgba(11, 140, 130, 0.14);
}

body.theme-light.services-page .services-block::after {
    background: linear-gradient(90deg, transparent, rgba(11, 140, 130, 0.36), transparent);
}

body.theme-light.services-page .services-block-categories::before {
    background:
        radial-gradient(circle at 16% 22%, rgba(11, 140, 130, 0.1), transparent 45%),
        linear-gradient(180deg, rgba(11, 140, 130, 0.05), rgba(255, 255, 255, 0.5));
}

body.theme-light.services-page .services-block-presencial::before {
    background:
        radial-gradient(circle at 12% 28%, rgba(11, 140, 130, 0.12), transparent 50%),
        linear-gradient(120deg, rgba(11, 140, 130, 0.08), rgba(255, 255, 255, 0.8));
}

body.theme-light.services-page .services-block-panoramica::before {
    background:
        radial-gradient(circle at 88% 20%, rgba(11, 140, 130, 0.12), transparent 52%),
        linear-gradient(180deg, rgba(11, 140, 130, 0.05), rgba(255, 255, 255, 0.75));
}

body.theme-light.services-page .services-block-digital::before {
    background:
        linear-gradient(145deg, rgba(11, 140, 130, 0.06), rgba(255, 255, 255, 0.8)),
        repeating-linear-gradient(90deg, rgba(11, 140, 130, 0.05) 0 1px, transparent 1px 30px);
}

body.theme-light.services-page .services-block-cta::before {
    background:
        radial-gradient(circle at 50% 0%, rgba(11, 140, 130, 0.12), transparent 56%),
        linear-gradient(180deg, rgba(11, 140, 130, 0.05), rgba(255, 255, 255, 0.78));
}

body.theme-light.services-page .services-block-presencial .tactical-list {
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 991.98px) {
    .services-page .services-block {
        padding-top: clamp(3.4rem, 9vw, 4.8rem) !important;
        padding-bottom: clamp(3.4rem, 9vw, 4.8rem) !important;
    }

    .services-page .services-block+.services-block {
        margin-top: 1.2rem;
    }

    .services-page .services-block-presencial .tactical-list {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .services-page .services-kicker {
        padding: 0.4rem 0.72rem;
        font-size: 0.64rem;
        letter-spacing: 0.14em;
    }

    .services-page .services-block-panoramica .monitor-content-zone {
        padding: 1.1rem 1rem;
    }

    .services-page .services-block-digital .cyber-widget {
        padding: 1.25rem;
    }
}

/* 1. Tactical List Item (Seguridad Presencial) */
.tactical-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: transform var(--duration-smooth) var(--ease-out), background var(--duration-smooth);
}

.tactical-list-item:hover {
    transform: translateX(8px);
}

.tactical-list-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: box-shadow var(--duration-fast);
}

.tactical-list-item:hover .tactical-list-icon {
    box-shadow: 0 0 15px var(--color-accent-dim);
}

body.theme-light .tactical-list-icon {
    background: rgba(0, 0, 0, 0.03);
}

/* 2. Monitor Module Card (Seguridad Panoramica) */
.monitor-module-card {
    display: flex;
    align-items: stretch;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.monitor-module-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-dim);
}

.monitor-icon-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: 1.8rem;
}

.monitor-content-zone {
    padding: 1.5rem;
    flex-grow: 1;
}

body.theme-light .monitor-icon-zone {
    background: rgba(0, 0, 0, 0.02);
}

/* 3. Cyber Dashboard Widget (Seguridad Digital) */
.cyber-widget {
    background: #050a0a;
    border: 1px solid rgba(39, 187, 177, 0.1);
    border-top: 3px solid var(--color-accent);
    padding: 1.5rem;
    transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.cyber-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 187, 177, 0.15);
}

.cyber-widget-icon {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

body.theme-light .cyber-widget {
    background: #f0f7f7;
    border-color: rgba(39, 187, 177, 0.2);
}

/* =============== LANGUAGE SWITCHER =============== */
.lang-switch .dropdown-toggle::after {
    margin-left: 6px;
    opacity: 0.6;
}

.lang-switch .lang-current {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dropdown-menu-dark .lang-opt.active {
    background: var(--color-accent-dim);
    color: var(--color-accent) !important;
}

.lang-switch-mobile .lang-opt.active {
    background: var(--color-accent-dim);
    color: var(--color-accent) !important;
    border-color: var(--color-accent);
}