

:root {
    --bg-color: #F5F5F7;
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --primary-blue: #0066CC;
    --primary-blue-hover: #0055AA;
    --secondary-red: #E3000F;
    --secondary-red-hover: #CC000D;
    --white: #FFFFFF;

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --glass-blur: blur(20px);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Premium Typography Wrapping */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
p, li {
    text-wrap: pretty;
}

/* Ambient Glow Background */
.ambient-glow {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-blue {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 80%);
    top: -15%;
    left: -15%;
    animation-duration: 25s;
}

.orb-red {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-red) 0%, transparent 80%);
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-blue-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 80%);
    top: 45%;
    right: 15%;
    animation-duration: 22s;
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.08); }
    100% { transform: translate(-20px, -50px) scale(0.92); }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
}

/* Glassmorphism Navbar */
header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1100;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2.25rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header nav.desktop-nav a {
    color: rgba(255, 255, 255, 0.85);
}

header .logo-img {
    filter: brightness(0) invert(1);
}

header .hamburger-inner,
header .hamburger-inner::before,
header .hamburger-inner::after {
    background-color: var(--white);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--glass-shadow);
    width: 95%;
    max-width: 1240px;
    border-radius: 24px;
    top: 0.75rem;
}

header.scrolled nav.desktop-nav a {
    color: var(--text-main);
}

header.scrolled .logo-img {
    filter: none;
}

header.scrolled .hamburger-inner,
header.scrolled .hamburger-inner::before,
header.scrolled .hamburger-inner::after {
    background-color: var(--text-main);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 59px;
    width: auto;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

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

nav.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

nav.desktop-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

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

nav.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
    transform-origin: center;
    animation: navActiveLine 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes navActiveLine {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

.nav-cta {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.55rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: var(--secondary-red);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(227, 0, 15, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    max-width: none;
    width: 100%;
}

/* Hero background and overlay */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(6, 15, 54, 0.86) 0%,
        rgba(11, 27, 88, 0.75) 50%,
        rgba(245, 245, 247, 1.0) 100%
    );
}

.hero-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 2rem 1rem;
    max-width: 1350px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 5;
    box-shadow: none;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
}

.hero-badge span {
    width: 8px;
    height: 8px;
    background: var(--secondary-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--secondary-red);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.6; }
    to { transform: scale(1.35); opacity: 1; }
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Sections General */
section {
    padding: 3.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    font-size: 1.15rem;
}

/* Features/Services Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.07);
    border-color: rgba(0, 102, 204, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px) scale(1.05);
}

.card:hover .card-icon svg {
    stroke: var(--white);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
    stroke-width: 1.75;
    transition: stroke 0.3s ease;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

/* Image blocks */
.image-block {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.75rem;
    position: relative;
    height: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

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

.card:hover .image-block img {
    transform: scale(1.08);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(29, 29, 31, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    text-transform: uppercase;
}

/* Product Features List */
.product-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.product-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
}

.product-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stats Section Removed */

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3.5rem auto 0;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(0, 102, 204, 0.12);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3.5rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3.5rem;
}

.timeline-badge {
    position: absolute;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -7px;
}

.timeline-item:hover .timeline-badge {
    background: var(--primary-blue);
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.12);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 204, 0.15);
}

.timeline-step {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Contact Section */
.contact-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 5rem 4.5rem;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5rem;
    box-shadow: var(--glass-shadow);
}

.contact-info h3 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-main);
}

input.form-control {
    height: 52px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12);
}

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

/* Form Validation */
.field-error {
    display: none;
    font-size: 0.8rem;
    color: var(--secondary-red);
    margin-top: 0.35rem;
}
.field-invalid {
    border-color: var(--secondary-red) !important;
    background: rgba(227, 0, 15, 0.03) !important;
}
.field-valid {
    border-color: #22c55e !important;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    position: relative;
}

/* Contact Details */
.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-detail-label {
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-detail-value {
    margin-top: 0.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Honeypot */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.honeypot input {
    position: absolute !important;
    left: -9999px !important;
}

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}
.form-success.is-visible {
    display: block;
}
.form-success-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 2rem;
}
.form-success-text {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Button Full Width */
.btn-full {
    width: 100%;
}

/* Service Badge Variants */
.badge-red {
    background: rgba(227, 0, 15, 0.85);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Footer */
footer {
    background: #0B0D17;
    color: var(--text-muted);
    padding: 3.5rem 2rem 0;
    position: relative;
    z-index: 5;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Línea de Acento Superior */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-red) 100%);
    z-index: 10;
}

/* Orbes Ambientales del Footer (Desactivados en Light Theme) */
.footer-orb {
    display: none !important;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    align-self: flex-start;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.03);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    opacity: 1;
}

.footer-brand h3 {
    color: #FFFFFF;
    font-size: 1.35rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #86868B;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Badges SEC / NFPA */
.footer-badges {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.footer-badge-sec {
    background: rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.25);
    color: #3399FF;
}

.footer-badge-nfpa {
    background: rgba(227, 0, 15, 0.12);
    border-color: rgba(227, 0, 15, 0.25);
    color: #FF453A;
}

.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
    color: #FFFFFF;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.footer-nav ul,
.footer-services ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav a:hover {
    color: var(--primary-blue);
    transform: translateX(6px);
}

.footer-services li {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    padding-left: 1.25rem;
    transition: all 0.3s ease;
    cursor: default;
}

.footer-services li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    opacity: 0.7;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-services li:hover {
    color: #FFFFFF;
    padding-left: 1.45rem;
}

.footer-services li:hover::before {
    color: var(--secondary-red);
    transform: translateX(3px);
}

/* Pills de Contacto Glassmorphic / Sombras Suaves */
.footer-contact ul {
    gap: 0.9rem !important;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    color: #3399FF;
    transform: scale(1.1);
}

.footer-contact-text {
    color: #E3E3E8;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s ease;
    word-break: break-all;
}

.footer-contact-item:hover .footer-contact-text {
    color: #FFFFFF;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Hamburger Button */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1100;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-box {
    width: 24px;
    height: 16px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    border-radius: 4px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -6px;
}

.hamburger-inner::after {
    bottom: -6px;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
    background-color: var(--text-main) !important;
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    background-color: var(--text-main) !important;
}

.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    background-color: var(--text-main) !important;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 7rem 2rem 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.mobile-nav-link.btn {
    text-align: center;
    color: var(--white) !important;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
}

.mobile-nav-link.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 1040;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* Focus Visible (WCAG 2.2) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--primary-blue) !important;
    border-radius: inherit;
}

/* Scroll margin for fixed header offset */
section[id] {
    scroll-margin-top: 6rem;
}

/* Media Queries */
@media (max-width: 992px) {
        /* Stats Section Responsive Removed */
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-badge {
        left: 13px !important;
        right: auto !important;
    }
    .contact-section {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 0.75rem 1.5rem;
    }
    .logo-img {
        height: 50px !important;
    }
    .desktop-nav {
        display: none !important;
    }
    .nav-cta {
        display: none !important;
    }
    .hamburger {
        display: block !important;
    }
    .hero-content {
        padding: 3.5rem 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    .footer-nav,
    .footer-services,
    .footer-contact {
        text-align: center;
    }
    .footer-logo {
        align-self: center;
    }
    .footer-badges {
        justify-content: center;
    }
    .footer-contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 2.5rem 1.25rem;
    }
    .hero-content h1 {
        font-size: 1.75rem;
    }
        /* Stats Section Mobile Responsive Removed */
    .contact-section {
        padding: 2rem 1.25rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ── GPU Hardware Acceleration on Hover ──────────────────────── */

/* GPU Hardware Acceleration on Hover */
.card:hover,
.card:hover .card-icon,
.card:hover .image-block img,
.whatsapp-float:hover,
.btn-primary:hover,
.btn-secondary:hover,
.nav-cta:hover {
    will-change: transform;
}

/* ── Native Scroll-Driven Animations ─────────────────────────── */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes header-shrink {
        to {
            background: var(--glass-bg);
            backdrop-filter: var(--glass-blur) saturate(180%);
            -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: var(--glass-shadow);
            width: 95%;
            max-width: 1240px;
            border-radius: 24px;
            top: 0.75rem;
        }
    }

    @keyframes logo-shrink {
        to {
            height: 46px;
        }
    }

    @keyframes logo-filter {
        to {
            filter: none;
        }
    }

    @keyframes nav-text-color {
        to {
            color: var(--text-main);
        }
    }

    @keyframes hamburger-color {
        to {
            background-color: var(--text-main);
        }
    }

    @media (min-width: 769px) {
        header {
            animation: header-shrink auto linear both;
            animation-timeline: scroll(block root);
            animation-range: 0px 80px;
        }

        .logo-img {
            animation: logo-shrink auto linear both, logo-filter auto linear both;
            animation-timeline: scroll(block root), scroll(block root);
            animation-range: 0px 80px, 0px 80px;
        }

        header nav.desktop-nav a {
            animation: nav-text-color auto linear both;
            animation-timeline: scroll(block root);
            animation-range: 0px 80px;
        }

        header .hamburger-inner,
        header .hamburger-inner::before,
        header .hamburger-inner::after {
            animation: hamburger-color auto linear both;
            animation-timeline: scroll(block root);
            animation-range: 0px 80px;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
        transform: none !important;
    }
    .orb {
        animation: none !important;
        display: none;
    }
}
