/* Variables y Configuración Global */
:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #fad149;
    --accent-glow: rgba(250, 209, 73, 0.4);
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(16px);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
}

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

/* Utilidades */
.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Efectos de Glow de Fondo */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 10s infinite alternate linear;
}

.glow-top-left {
    top: -200px;
    left: -200px;
}

.glow-bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    50% { transform: scale(1.1) translate(20px, 30px); opacity: 0.8; }
    100% { transform: scale(0.9) translate(-20px, -10px); opacity: 0.5; }
}

/* 1. Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    transition: background 0.3s;
}

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

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: -15px 0; /* Para compensar la altura en el navbar y no empujar demasiado */
}

.logo-img-footer {
    height: 80px; /* Reducido a la mitad para desktop */
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.5rem; /* Centrado absoluto */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-neon {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(250, 209, 73, 0.2), inset 0 0 10px rgba(250, 209, 73, 0.1);
    transition: all 0.3s ease;
}

.btn-neon:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(250, 209, 73, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(250, 209, 73, 0.2);
}

.flag-icon {
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.lang-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.lang-selector:hover .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    list-style: none;
    padding: 0.5rem 0;
    width: 160px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

/* Botones principales y secundarios */
.btn-primary-neon {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(250, 209, 73, 0.4);
    cursor: pointer;
}

.btn-primary-neon:hover {
    box-shadow: 0 0 30px rgba(250, 209, 73, 0.8);
    transform: translateY(-2px);
}

.btn-secondary-glass {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 2. Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metrics-row {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric i {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
}

.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 320px;
    height: 480px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.mockup-glass:hover {
    transform: rotate(0deg) scale(1.02);
}

.chat-header {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.avatar {
    background: var(--accent-color);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info strong {
    display: block;
    font-size: 0.9rem;
}

.chat-info span {
    font-size: 0.8rem;
    color: #4ade80;
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
}

.message.received {
    background: rgba(255,255,255,0.1);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.message.sent {
    background: var(--accent-glow);
    align-self: flex-end;
    border-bottom-right-radius: 0;
    color: #fff;
    border: 1px solid rgba(250, 209, 73, 0.3);
}

.typing-demo .dot {
    animation: typing 1.5s infinite;
    font-weight: bold;
}
.typing-demo .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-demo .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* 3. Trust Section */
.trust-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.trust-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.trust-logos:hover {
    opacity: 0.8;
}

.logo-placeholder {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Headers Generales de Sección */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* 4. Servicios Grid */
.services-section, .process-section, .cases-section, .faq-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

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

.service-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(250, 209, 73, 0.1);
    border-color: rgba(250, 209, 73, 0.3);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-small-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover .service-small-img {
    transform: scale(1.1) rotate(3deg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 6. Metodología */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.step {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    right: 10px;
}

.step h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 7. Casos */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
}

.case-icon {
    background: var(--accent-glow);
    padding: 1rem;
    border-radius: 12px;
    color: var(--accent-color);
}

.case-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 8. Opiniones (Reviews) */
.reviews-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.star-filled {
    color: #fbbc04;
    fill: #fbbc04;
    width: 20px;
    height: 20px;
}

.review-stars {
    display: flex;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

.review-stars .star-filled {
    width: 16px;
    height: 16px;
}

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

.review-card {
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ea4335;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
}

.bg-blue { background: #4285f4; }
.bg-purple { background: #9c27b0; }
.bg-green { background: #34a853; }

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-info strong {
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.google-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #fff;
    color: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: sans-serif;
    font-size: 14px;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* 9. Ubicación */
.location-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.location-content {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(100%);
    display: block;
}

/* 9. FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 10. Blog */
.blog-section {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(250, 209, 73, 0.1);
    border-color: rgba(250, 209, 73, 0.3);
}

.blog-icon {
    width: 50px;
    height: 50px;
    background: rgba(250, 209, 73, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.blog-content h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.read-more i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* 11. Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 2rem 2rem;
    background: rgba(0,0,0,0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
    margin-top: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact h4, .footer-links h4 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* 10. WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.wa-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.wa-floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wa-panel {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
}

.wa-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.wa-header {
    background: #128C7E;
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.wa-avatar {
    width: 45px;
    height: 45px;
    background: white;
    color: #128C7E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-info strong {
    display: block;
    font-size: 1.1rem;
}

.wa-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.wa-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.wa-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    background: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    position: relative;
}

.wa-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 0;
}

.wa-message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 90%;
    z-index: 1;
    line-height: 1.4;
    color: #fff;
}

.wa-message.received {
    background: #202C33;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-message.sent {
    background: #005C4B;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-input-area {
    padding: 1rem;
    background: #202C33;
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.wa-input-area input {
    flex: 1;
    background: #2A3942;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    color: white;
    outline: none;
}

.wa-input-area button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .metrics-row {
        justify-content: center;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* A menu hamburger could be added later */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 1rem;
    }

    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
        z-index: 999999;
    }

    .wa-floating-btn {
        width: 60px;
        height: 60px;
    }

    .wa-panel {
        width: calc(100vw - 40px);
        bottom: 75px;
        right: 0;
    }
}

/* ============================================================
   Estilos adicionales — Fixes de UX y accesibilidad
   ============================================================ */

/* Botones de confirmación inline en el chat de WhatsApp
   (mejora UX: el usuario confirma antes de que se abra wa.me) */
.wa-confirm-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.wa-confirm-buttons .wa-confirm-yes {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.wa-confirm-buttons .wa-confirm-no {
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    background: transparent;
    color: var(--text-color, #f0ece0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wa-confirm-buttons .wa-confirm-no:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* El input de teléfono: mejor cursor y comportamiento al focus */
#wa-input {
    cursor: text;
}

#wa-input:focus {
    outline: 2px solid var(--accent-color, #00d4ff);
    outline-offset: -1px;
}

/* H1: el span con gradiente respeta accesibilidad
   (aria-hidden="false" ya está en el HTML; este CSS refuerza
   que el gradiente sea solo decorativo y no afecte la lectura) */
.hero-title .gradient-text {
    /* Mantener el gradiente visual, pero asegurar contraste suficiente */
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* En navegadores que no soportan background-clip: text, usar color sólido de respaldo */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title .gradient-text {
        color: var(--accent-color);
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* Reducir movimiento: respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================================================= */
/* AJUSTES DE LOGOS PARA MÓVIL (Estándares de la industria) */
/* ========================================================================= */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
        margin: 0;
    }
    
    .logo-img-footer {
        height: 50px;
    }
    
    .mockup-glass {
        width: 100%;
        height: auto;
        max-width: 320px; /* Para que tampoco se haga gigante en tablets pequeñas */
        transform: rotate(0deg);
        aspect-ratio: 9/16;
        margin: 0 auto;
    }
}

/* ============================================================
   HERO SCROLL-SCRUB (añadido) — el scroll controla el video
   de fondo del hero. Solo clases nuevas; no modifica reglas
   existentes.
   ============================================================ */
.hero-scrub-wrap {
    position: relative;
    height: 280vh; /* más alto = scrub más lento y cinemático */
}

.hero-scrub-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-scrub-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-scrub-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(0,0,0,.62) 0%,
        rgba(0,0,0,.38) 40%,
        rgba(0,0,0,.45) 75%,
        rgba(0,0,0,.78) 100%);
}

.hero-scrub-pin .hero {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto; /* dentro del pin ya no necesita el margen vertical original */
}

.hero-scrub-hint {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    animation: heroScrubHint 2.4s ease-in-out infinite;
}
@keyframes heroScrubHint {
    0%, 100% { opacity: .35; }
    50% { opacity: 1; }
}

/* El mockup vertical no cabe en el pin de 100vh cuando el hero pasa a
   columna (≤992px); en pantallas chicas el protagonista es el video de fondo */
@media (max-width: 992px) {
    .hero-scrub-pin .hero-mockup { display: none; }
}

/* Accesibilidad: sin animaciones, el hero queda estático con el poster */
@media (prefers-reduced-motion: reduce) {
    .hero-scrub-wrap { height: auto; }
    .hero-scrub-pin { position: relative; height: auto; min-height: 100vh; }
    .hero-scrub-hint { display: none; }
}

/* Pantallas bajas (teléfonos chicos apaisados/cortos): compactar para
   que todo el contenido del hero quepa dentro del pin de 100vh */
@media (max-width: 992px) and (max-height: 740px) {
    .hero-scrub-pin .hero-title { font-size: 2rem; }
    .hero-scrub-pin .hero-subtitle { margin-bottom: 1.5rem; }
    .hero-scrub-pin .hero-actions { margin-bottom: 1.5rem; }
    .hero-scrub-pin .metrics-row { gap: .5rem; }
}

/* FIX sticky: html/body con overflow-x:hidden rompen position:sticky
   (el pin del hero se desprende y deja un hueco vacío). overflow-x:clip
   evita el scroll horizontal igual, pero SIN crear scroll-container,
   así el sticky funciona. Navegadores viejos ignoran esta línea y
   conservan el hidden original. */
html, body {
    overflow-x: clip;
}

/* ============================================================
   MAPA ESTÁTICO (añadido) — reemplaza el iframe de Google Maps
   que quedaba en blanco con bloqueadores de anuncios/privacidad.
   El mismo filtro dark del iframe original se aplica a la imagen.
   ============================================================ */
.map-container a { display: block; }
.map-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(100%);
    transition: filter .3s ease;
}
.map-container a:hover img {
    filter: invert(90%) hue-rotate(180deg) brightness(110%) contrast(100%);
}
.map-attribution {
    font-size: .7rem;
    color: rgba(240,236,224,.4);
    text-align: right;
    padding: 4px 8px 0 0;
    margin: 0;
}

/* ============================================================
   VER VIDEO (añadido) — el video promo del hero ya no se
   autoreproduce: en escritorio se muestra un enlace "Ver video"
   con el estilo glass del sitio, y al clic aparece el video en
   el mismo lugar. En móvil y tablet no se muestra nada (el video
   de restauración vive en su página de servicio).
   ============================================================ */
.hero-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.15));
    color: #fff;
    padding: 1.1rem 2.2rem;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.hero-video-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}
.hero-video-play {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-color);
    position: relative;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.hero-video-play::after {
    content: "";
    position: absolute;
    top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent #0a0a0f;
}
.hero-video-link:hover .hero-video-play {
    transform: scale(1.08);
}

/* Móvil y tablet: sin video promo ni enlace en el home */
@media (max-width: 1199px) {
    .hero-scrub-pin .hero-mockup { display: none; }
}

/* El atributo hidden debe ganar al display del botón/video */
.hero-video-link[hidden],
#hero-promo-video[hidden] {
    display: none !important;
}

/* Marco del video promo con botón de cerrar */
.hero-video-frame {
    position: relative;
    display: inline-block;
}
.hero-video-frame[hidden] {
    display: none !important;
}
.hero-video-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.2));
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    z-index: 3;
}
.hero-video-close:hover {
    background: rgba(20, 20, 28, 0.95);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.08);
}

/* Logo del navbar reducido 15% y luego 10% más (80px → 61px escritorio, 50px → 38px móvil) */
.logo-img {
    height: 61px;
}
@media (max-width: 768px) {
    .logo-img {
        height: 38px;
    }
}
