/* Fonts loaded in HTML for Better Performance */

:root {
    /* Colors */
    --primary-color: #84cc16;
    /* Vibrant Lime Green */
    --primary-hover: #65a30d;
    --secondary-color: #ffffff;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    --bg-card: #1f2937;
    --bg-glass: rgba(31, 41, 55, 0.7);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(132, 204, 22, 0.3);

    /* Typography */
    --font-header: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;

    /* Spacing & Geometry */
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(132, 204, 22, 0.15);
}

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

html,
body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Critical for preventing side scroll */
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    /* Better text readability */
}

/* Hard reset for potentially overflowing elements */
img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* SEO Powerful Link Style */
.seo-link {
    color: #FF5F1F !important;
    /* Neon Orange */
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-link:hover {
    color: #39FF14 !important;
    /* Neon Green */
    background-color: rgba(17, 24, 39, 0.8);
    border-radius: 4px;
    padding: 0 4px;
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Padding Utilities */
.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.p-5 {
    padding: 3rem;
}

.px-1 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-2 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-3 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-4 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.py-1 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-3 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.2rem);
    font-weight: 600;
    color: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-header);
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(132, 204, 22, 0.25);
}

/* Mobile Touch Optimization */
@media (max-width: 768px) {

    .btn,
    a,
    button {
        min-height: 44px;
        /* Apple Human Interface Guidelines */
        min-width: 44px;
        touch-action: manipulation;
        /* Improves touch response */
    }

    .btn {
        padding: 0.8rem 1.5rem;
        /* Better safe area */
    }
}

.btn-outline {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

/* Top Bar */
.top-bar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    margin-right: 1.5rem;
    color: var(--text-muted);
}

.panic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.panic-card {
    background: rgba(220, 38, 38, 0.1);
    /* Red tint */
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.panic-card i {
    color: #dc2626;
}

.panic-card:hover {
    transform: translateY(-5px);
    background: rgba(220, 38, 38, 0.15);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.highlight-link {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
}

/* Header & Nav */
.main-header {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .logo-img { maxHeight: 60px; } Removed */

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-brand {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav .btn-nav {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    /* Dark text on green background */
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    /* Bolder text for visibility */
    transition: all 0.3s ease;
}

.main-nav .btn-nav:hover {
    background-color: #a3e635;
    /* Lighter green on hover */
    color: #000000;
}

/* Fix for active state on button link - prevent green on green */
.main-nav .btn-nav.active {
    color: var(--bg-darker) !important;
    background-color: var(--primary-color);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.dropdown li {
    margin-bottom: 0.5rem;
}

.dropdown a {
    text-transform: none;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb-section {
    background-color: var(--bg-darker);
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb-section span {
    color: var(--primary-color);
}

/* Hero Section */
/* Hero Section (WPO Optimized) */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
    /* Padding controlado por flexbox */
}

/* Contenedor de la Imagen (Absolute para fondo) */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Clave: actúa como background-size: cover */
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(17, 24, 39, 1) 100%);
    z-index: 2;
}

/* Contenido del Hero (Texto) */
.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 4rem;
    display: flex;
    justify-content: center;
}

.hero-text-box {
    text-align: center;
    max-width: 800px;
}

.badge-hero {
    display: inline-block;
    background-color: rgba(132, 204, 22, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.2);
    animation: pulse-green 2s infinite;
}

.hero-text-box h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(to right, #84cc16, #39FF14);
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(132, 204, 22, 0.3);
}

.hero-text-box .lead {
    font-size: 1.25rem;
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(132, 204, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(132, 204, 22, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(132, 204, 22, 0);
    }
}

/* Servicios Links (Badges debajo del texto) */
.hero-services-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.service-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(132, 204, 22, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsividad */
@media (max-width: 768px) {
    .hero-text-box h1 {
        font-size: 2.5rem;
    }

    .hero-text-box .lead {
        font-size: 1.1rem;
    }

    .min-height {
        min-height: 70vh;
    }
}

/* CTA Banner Styles - kept consistent */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    padding: 3.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--primary-color);
    margin: 4rem auto;
    box-shadow: var(--shadow-soft);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.phone-big {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    letter-spacing: -1px;
}

/* Value Points */
.value-points-section {
    padding: var(--spacing-lg) 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.fancy-list li {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.fancy-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 0.3rem;
}

.points-images {
    position: relative;
}

.img-main {
    width: 90%;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.img-secondary {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 50%;
    border-radius: 8px;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Detailed Services */
.bg-darker {
    background-color: var(--bg-darker);
}

.services-detailed-section {
    padding: var(--spacing-lg) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Safer for mobile */
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft), var(--shadow-neon);
}

.service-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Economic Section */
.economic-section {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.9)), url('../assets/cerrajero-en-fuenlabrada.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.economic-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Summary 24h */
.summary-24h-section {
    padding: var(--spacing-lg) 0;
}

.check-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.3rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.summary-images {
    position: relative;
}

.overlay-img {
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 60%;
    border: 3px solid var(--bg-dark);
}

/* Footer */
.main-footer {
    background-color: var(--bg-darker);
    border-top: 4px solid var(--primary-color);
    padding-top: 4rem;
    font-size: 0.9rem;
    color: #ffffff;
}

.main-footer p,
.main-footer a {
    color: #ffffff;
}

.main-footer a:hover {
    color: var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 1rem;
    background: transparent;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #ffffff;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--primary-color);
}

.footer-menu li {
    margin-bottom: 0.7rem;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* SEO Footer */
.seo-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.seo-group h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.seo-group ul li {
    margin-bottom: 0.3rem;
}

.legal-bar {
    background-color: #000;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links a {
    margin: 0 10px;
}

/* Communities Section */
.mobile-reverse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-wrapper-9-16 {
    position: relative;
    width: 100%;
    max-width: 350px;
    /* Limit width for vertical video */
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--bg-card);
}

.video-wrapper-9-16 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .mobile-reverse-grid {
        grid-template-columns: 1fr;
    }

    /* Order change: Text first, then video? or Video first? 
       Usually video is engaging, let's keep normal order (Video first in DOM) or specific.
       If we want reverse:
    */
    /* .mobile-reverse-grid .text-col { order: -1; } */
}

/* FAB Call Button (Reemplaza Sticky Bar) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: none;
    /* Desktop hidden */
}

@media (max-width: 900px) {
    .mobile-sticky-bar {
        display: block;
        width: auto;
        left: auto;
    }
}

/* FAB Call Button Fix */
.sticky-btn.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 55px;
    background: #dc2626;
    color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.5);
    font-size: 1.1rem;
    /* Reduced font size to fit */
    font-weight: 800;
    position: relative;
    animation: pulse-ring 3s infinite;
    padding: 0 1.2rem;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    /* Prevent text wrapping */
    max-width: 90vw;
    /* Safety limit */
}

/* H1 Layout Fix */
.hero-text-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Ensure padding on mobile */
    overflow-wrap: break-word;
    /* Prevent long words form overflowing */
}

.text-gradient {
    display: inline-block;
    /* Helps with gradient text rendering */
}

.sticky-btn.call-btn i {
    font-size: 1.4rem;
}

.sticky-btn.call-btn:hover,
.sticky-btn.call-btn:active {
    transform: scale(1.05);
    /* Sutil agrandamiento */
    background: #b91c1c;
}

.contact-btn {
    display: none;
    /* Hide Contact Button */
}

/* Vibración ocasional */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    10% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    20% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    z-index: 9999;
}

.cookie-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}


/* Redesign Enhancements */
/* Real-time Pulse Anchor */
.live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(132, 204, 22, 0.1);
    border: 1px solid var(--border-bright);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: var(--font-header);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--primary-color);
}

.pulse-dot::after {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.text-highlight-turquoise {
    color: #22d3ee;
    /* Cyan-400 - distinct from primary green but vibrant */
    font-weight: bold;
}

.damage-highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-grid,
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-image {
        order: -1;
    }

    /* Mobile Menu Logic */
    .mobile-menu-toggle {
        display: block;
        padding: 10px;
        font-size: 1.8rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav a {
        display: block;
        padding: 1rem;
    }

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

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

    .mobile-sticky-bar {
        display: block;
        width: 100%;
        /* Ensure full width container if needed, but button is fixed */
        left: 0;
        bottom: 0;
        padding: 1rem;
        pointer-events: none;
        /* Allow clicking through container */
    }

    .sticky-btn.call-btn {
        pointer-events: auto;
        /* Re-enable click on button */
        margin-left: auto;
        /* Position to right */
        max-width: 100%;
        width: auto;
    }
}

/* FINAL SAFEGUARDS FOR RESPONSIVENESS */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
        /* Prevent huge headers breaking layout */
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-text-box .lead {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* =========================================
   BLOG RESPONSIVE OVERRIDES (FORCE FIX)
   ========================================= */
@media (max-width: 768px) {

    /* Override inline padding: 4rem -> 1.5rem */
    .article-content {
        padding: 1.5rem !important;
        margin-top: -2rem !important;
        /* Adjust negative margin overlap if needed */
        width: 92% !important;
        /* Ensure it doesn't touch edges */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fix Hero Padding */
    .blog-hero {
        padding: 6rem 0 3rem !important;
        /* Reduce huge top padding */
    }

    .blog-hero h1 {
        font-size: 2rem !important;
    }

    /* Fix Card Components (Dato Importante, etc.) */
    .component-card,
    .signal-card,
    .alert-box,
    .expert-tip {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure content inside doesn't overflow */
    .component-card p,
    .signal-card p {
        width: 100% !important;
        font-size: 1rem !important;
    }

    /* Fix Images and Visual Boxes */
    .visual-box {
        margin: 2rem 0 !important;
        width: 100% !important;
    }

    .visual-box img {
        width: 100% !important;
        height: auto !important;
    }

    /* Table Auto-Scroll */
    .comparison-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    /* Blockquotes */
    blockquote {
        margin: 2rem 0 !important;
        padding-left: 1rem !important;
        font-size: 1.1rem !important;
    }

    /* Fix Lists (Cutoff Numbers) */
    .article-content ol,
    .article-content ul {
        padding-left: 1.8rem !important;
        margin-left: 0 !important;
    }


    .article-content li {
        padding-left: 0.5rem !important;
    }
}

/* Mobile Dropdown Logic and Animation */
@media (max-width: 900px) {
    .has-dropdown.active-dropdown .dropdown {
        display: flex;
        position: relative;
        background: rgba(255, 255, 255, 0.05);
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .has-dropdown.active-dropdown>a i {
        transform: rotate(180deg);
    }

    /* Ensure rotation transition */
    .has-dropdown>a i {
        transition: transform 0.3s ease;
    }
}

/* Definitive Mobile Menu Fix - GENUINE */
@media (max-width: 900px) {

    /* 1. Ensure Toggle Icon is VISIBLE */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        right: 1.5rem;
        top: 2rem;
        /* Adjust top based on header height, usually header is flex so align-items center might handle it, 
           but absolute positioning is safer for overlay */
        top: 50%;
        transform: translateY(-50%);
        z-index: 101;
        font-size: 1.5rem;
        color: white;
    }

    /* 2. Ensure Menu is HIDDEN by default */
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        /* Dark Slate 900 */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
        padding: 1rem 0;
    }

    /* 3. Ensure Menu is VISIBLE when active class added by JS */
    .main-nav.active {
        display: flex !important;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .main-nav li {
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* High ROI CTA Banner in Menu - GREEN VERSION */
.main-nav .btn-cta-pulse {
    background: linear-gradient(135deg, var(--primary-color) 0%, #39FF14 100%);
    color: #000 !important;
    /* Force black text for contrast */
    font-weight: 800;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(132, 204, 22, 0.5);
    animation: pulse-green 2s infinite;
    text-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.main-nav .btn-cta-pulse:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(132, 204, 22, 0.8);
    background: linear-gradient(135deg, #39FF14 0%, var(--primary-color) 100%);
    color: #000 !important;
}

@media (max-width: 1100px) {

    /* Adjust navigation for tighter space if needed */
    .main-nav a {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

@media (max-width: 900px) {
    .main-nav .btn-cta-pulse {
        margin: 1rem auto;
        text-align: center;
        justify-content: center;
        width: calc(100% - 2rem);
        box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
    }
}