/* System Design & Variable Definitions */
:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0a0c10;
    --bg-card-dark: #12151c;
    --primary-red: #e51a24;
    --primary-red-hover: #c4121a;
    --accent-green: #25d366;
    --accent-green-hover: #1ebd54;
    --accent-gold: #f5a623;
    
    /* Typography Colors */
    --text-main: #1f2226;
    --text-light: #5a626a;
    --text-white: #ffffff;
    
    /* Fonts */
    --font-headers: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-neon-red: 0 0 15px rgba(229, 26, 36, 0.35);
    --shadow-neon-green: 0 0 15px rgba(37, 211, 102, 0.45);
    
    /* Grid Spacings */
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* CSS Reset & Global Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
    font-weight: 700;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Scroll reveal initial states */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Buttons Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headers);
    font-weight: 600;
    border-radius: 50px;
    padding: 14px 28px;
    min-height: 48px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: var(--shadow-neon-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(229, 26, 36, 0.6);
}

.btn-secondary {
    background-color: var(--bg-dark);
    color: var(--text-white);
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--bg-dark);
    border-color: var(--bg-dark);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Header & Navigation Bar (Glassmorphism) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

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

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.nav {
    display: none; /* Hidden on mobile by default */
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headers);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-smooth);
}

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

.nav-link:hover {
    color: var(--primary-red);
}

.cta-nav {
    display: none; /* Hidden on mobile, shown on desktop */
    font-family: var(--font-headers);
    font-weight: 700;
    background-color: var(--primary-red);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-neon-red);
}

.cta-nav:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(229, 26, 36, 0.5);
}

/* Mobile Navigation Links when Open */
#main-nav.open .nav-link {
    color: var(--text-white);
}

#main-nav.open .nav-link:hover,
#main-nav.open .nav-link.active {
    color: var(--primary-red);
}

/* Nav Hamburger Menu (Mobile Only) */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger state when navigation is open */
.nav-toggle.open .hamburger {
    background-color: transparent;
}

.nav-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section (Premium Dark Theme) */
.hero {
    position: relative;
    background-color: var(--bg-dark);
    padding: 160px 0 100px;
    color: var(--text-white);
    overflow: hidden;
    z-index: 1;
}

/* Grid lines overlay for urban tech vibe */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(229, 26, 36, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(229, 26, 36, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    z-index: -1;
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(229, 26, 36, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.hero-content .badge {
    display: inline-block;
    background-color: rgba(229, 26, 36, 0.15);
    border: 1px solid rgba(229, 26, 36, 0.4);
    color: var(--primary-red);
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Floating Van Image Card */
.hero-image {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.van-card-wrapper {
    position: relative;
    background: var(--bg-card-dark);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.van-hero-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.van-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-red);
    color: var(--text-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-neon-red);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-green);
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse-glow 2s infinite;
}

/* Marquee / Brand Ticker */
.brand-ticker {
    margin-top: 64px;
    background-color: rgba(229, 26, 36, 0.1);
    border-top: 1px solid rgba(229, 26, 36, 0.2);
    border-bottom: 1px solid rgba(229, 26, 36, 0.2);
    padding: 16px 0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.ticker-content {
    display: inline-flex;
    animation: ticker 25s linear infinite;
    gap: 40px;
    padding-right: 40px;
}

.ticker-content span {
    font-family: var(--font-headers);
    font-weight: 800;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Diferenciadores (Benefits Section) */
.benefits {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

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

.section-subtitle {
    display: block;
    color: var(--primary-red);
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

.benefits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.benefits-visual {
    max-width: 280px;
    position: relative;
}

.benefits-char-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
}

.benefit-card {
    background-color: var(--bg-secondary);
    padding: 40px 32px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(229, 26, 36, 0.2);
    background-color: var(--bg-primary);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(229, 26, 36, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-red);
    transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--primary-red);
    color: var(--text-white);
}

.svg-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.benefit-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Servicios Section (Grid Catalog) */
.services {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

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

.service-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(229, 26, 36, 0.15);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.service-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary-red);
    color: var(--text-white);
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.service-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-body h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-sublist {
    margin-bottom: 24px;
    padding-left: 0;
}

.service-sublist li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
}

.service-sublist li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-highlight {
    font-size: 0.9rem;
    color: var(--text-light);
    border-left: 3px solid var(--primary-red);
    padding-left: 16px;
    margin-bottom: 24px;
    font-style: italic;
}

.service-footer {
    margin-top: auto;
}

/* Headlight Interactive Before/After Slider Widget */
.slider-container {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

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

.before-img .slider-image-content {
    /* Make the before image look oxidized and yellow using filter */
    filter: sepia(0.7) saturate(2.2) hue-rotate(-10deg) contrast(0.85) blur(1.5px);
}

.after-img {
    z-index: 20;
    width: 100%; /* Keep 100% width to prevent squishing! */
    clip-path: inset(0 50% 0 0); /* Default clip-path: show left 50% */
}

.slider-label {
    position: absolute;
    bottom: 16px;
    background-color: rgba(10, 12, 16, 0.75);
    color: var(--text-white);
    font-family: var(--font-headers);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 30;
    letter-spacing: 1px;
}

.label-before {
    left: 16px;
}

.label-after {
    right: 16px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS changes this left */
    width: 40px;
    height: 40px;
    background-color: var(--primary-red);
    border: 3px solid var(--text-white);
    border-radius: 50%;
    z-index: 40;
    transform: translate(-50%, 100px); /* Center vertically roughly */
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: -500px;
    bottom: -500px;
    left: 50%;
    width: 2px;
    background-color: var(--primary-red);
    transform: translateX(-50%);
    z-index: -1;
}

.slider-handle:active {
    background-color: var(--primary-red-hover);
    transform: translate(-50%, 100px) scale(1.1);
}

.slider-arrow {
    width: 0;
    height: 0;
    border-style: solid;
}

.left-arrow {
    border-width: 5px 6px 5px 0;
    border-color: transparent var(--text-white) transparent transparent;
    margin-right: 3px;
}

.right-arrow {
    border-width: 5px 0 5px 6px;
    border-color: transparent transparent transparent var(--text-white);
    margin-left: 3px;
}

.interactive-tag {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}

/* Gallery Section (Trust Building & Carousel) */
.gallery {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.carousel {
    display: flex;
    width: 100%;
    height: 320px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    background-color: var(--bg-dark);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: var(--text-white);
    padding: 30px 24px;
    z-index: 10;
}

.carousel-caption h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.carousel-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 12, 16, 0.7);
    color: var(--text-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--primary-red);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--primary-red);
    width: 24px;
    border-radius: 10px;
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-cta-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top, rgba(229, 26, 36, 0.15) 0%, transparent 60%);
}

.footer-cta-section h2 {
    color: var(--text-white);
    font-size: 2.2rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.footer-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.footer-main {
    padding: 80px 0 40px;
}

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

.footer-info .footer-logo {
    height: 60px;
    margin-bottom: 24px;
}

.footer-info p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-white);
    font-family: var(--font-headers);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    padding-left: 6px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.contact-icon {
    font-size: 1.1rem;
}

.footer-contact ul li a:hover {
    color: var(--primary-red);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-socials a {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-headers);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #050608;
    padding: 24px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom a {
    color: var(--primary-red);
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* WhatsApp Agent Widget Layout */
.wa-agent-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

/* Trigger Button */
.wa-agent-trigger {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--accent-green);
    border: 4px solid var(--text-white);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* To allow badge display */
    transition: var(--transition-smooth);
}

.wa-agent-trigger:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

.wa-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin-top: -6px; /* Offset to center character head visually */
}

/* Notification badge */
.wa-notification-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--text-white);
    animation: pulse-glow 2s infinite;
}

/* Chat Bubble Container */
.wa-chat-bubble {
    position: absolute;
    bottom: 84px;
    right: 0;
    width: 320px;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: var(--transition-smooth);
}

.wa-chat-bubble.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Bubble Header (Venezuelan flag detail at top) */
.wa-bubble-header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Red-Blue-Yellow Venezuelan stripe indicator */
.wa-bubble-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f2c94c 33.3%, #2f80ed 33.3%, #2f80ed 66.6%, #eb5757 66.6%);
}

.wa-header-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #20242b;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wa-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-green);
    border: 2px solid var(--bg-dark);
}

.wa-header-info {
    flex-grow: 1;
    margin-left: 12px;
}

.wa-header-info h5 {
    color: var(--text-white);
    font-size: 0.95rem;
    font-family: var(--font-headers);
}

.wa-header-info span {
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 500;
}

.wa-bubble-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.wa-bubble-close:hover {
    color: var(--text-white);
}

.wa-bubble-body {
    padding: 16px;
    background-color: #efeae2; /* Classic WhatsApp chat background */
    flex-grow: 1;
    max-height: 180px;
    overflow-y: auto;
}

.wa-message {
    background-color: var(--bg-primary);
    padding: 12px 14px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    position: relative;
}

.wa-message p {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.wa-message-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

.wa-bubble-footer {
    padding: 12px 16px;
    background-color: var(--bg-primary);
}

.wa-bubble-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-green);
    color: var(--text-white);
    padding: 10px;
    border-radius: 50px;
    font-family: var(--font-headers);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-neon-green);
}

.wa-bubble-btn:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.55);
}

/* Animations Definitions */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 26, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(229, 26, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 26, 36, 0);
    }
}

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

/* Responsive Media Queries (Mobile First Implementation) */

@media (min-width: 768px) {
    /* Tablet & Desktop sizes */
    
    .header-container {
        padding: 20px 24px;
    }
    
    .nav-toggle {
        display: none; /* Hide hamburger */
    }
    
    .nav {
        display: block; /* Show links */
    }
    
    .cta-nav {
        display: inline-block; /* Show CTA */
    }
    
    /* Hero section layouts */
    .hero {
        padding: 200px 0 140px;
    }
    
    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-content {
        text-align: left;
        flex: 1;
    }
    
    .hero-content p {
        margin: 0 0 36px;
    }
    
    .hero-actions {
        justify-content: flex-start;
    }
    
    .hero-image {
        flex: 1;
        max-width: 500px;
    }
    
    .benefits-container {
        flex-direction: row;
        align-items: center;
        gap: 48px;
    }
    
    .benefits-visual {
        flex: 1;
        max-width: 380px;
    }
    
    .benefits-grid {
        flex: 2;
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pulitura de faros spans full width in 2-col or has dedicated size */
    .services-grid article:nth-child(4) {
        grid-column: span 2;
        flex-direction: row;
    }
    
    .services-grid article:nth-child(4) .slider-container {
        width: 50%;
        height: auto;
        min-height: 300px;
    }
    
    .services-grid article:nth-child(4) .service-body {
        width: 50%;
    }
    
    .service-img-wrapper, .slider-container {
        height: 280px;
    }
    
    .carousel {
        height: 480px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}

@media (min-width: 992px) {
    /* Big screens adjustments */
    .hero h1 {
        font-size: 3.25rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid article:nth-child(4) {
        grid-column: span 2;
    }
}
