/* ===========================
   REMOTETECH — Global Styles
   =========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0e1a;
    --bg-card: #0f1420;
    --bg-card-hover: #161c2e;
    --surface: #131929;
    --border: rgba(100, 180, 255, 0.1);
    --border-hover: rgba(64, 224, 208, 0.4);

    --tech-blue: #4169e1;
    --tech-cyan: #40e0d0;
    --tech-green: #00ff88;
    --tech-purple: #8b5cf6;
    --white: #ffffff;
    --text: #e8edf5;
    --text-muted: #7891b3;
    --text-dim: #3d4f6b;

    --grad-main: linear-gradient(135deg, var(--tech-blue) 0%, var(--tech-cyan) 100%);
    --grad-accent: linear-gradient(135deg, var(--tech-green) 0%, var(--tech-cyan) 100%);
    --grad-card: linear-gradient(160deg, #0f1420 0%, #0a0e1a 100%);

    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;

    --shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(64, 224, 208, 0.15);
    --shadow-tech: 0 0 40px rgba(65, 105, 225, 0.2);

    --font: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.1rem;
}

.overline {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tech-cyan);
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-main);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(64, 224, 208, 0.45);
    filter: brightness(1.1);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-ghost:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
    background: rgba(64, 224, 208, 0.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.45);
    background: linear-gradient(135deg, #357ae8 0%, #2a63c8 100%);
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   NAVBAR
   =========================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1004;
    padding: 1.25rem 0;
    overflow: visible;
    transition: var(--transition), transform 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

.nav-inner {
    width: min(1200px, 90%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--tech-cyan);
}

.cart-nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.cart-nav-btn:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
    background: rgba(64, 224, 208, 0.05);
}

.cart-nav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--tech-green);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    font-family: var(--font-mono);
}

.cart-nav-count.hidden {
    display: none;
}

.cart-nav-count.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.cta-nav {
    margin-left: 1rem;
    padding: 0.6rem 1.4rem;
    background: var(--grad-main);
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.cta-nav:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
    background-image: url('imagenes/fondo hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(64, 224, 208, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 224, 208, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.4) 0%, transparent 70%);
}

.glow-2 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: -100px;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.4) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-sub {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero CTA used in sobre-nosotros pages */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--tech-cyan), transparent);
    animation: scroll-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-anim {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.4);
        opacity: 0.3;
    }
}

/* ===========================
   MARQUEE
   =========================== */

.marquee-wrapper {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ===========================
   STATS
   =========================== */

.stats-section {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--border);
}

.stat-item {
    background: var(--bg-card);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-card-hover);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tech-cyan);
}

.stat-item p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===========================
   SECTION HEADER
   =========================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===========================
   PRODUCTOS/SERVICIOS
   =========================== */

.productos-section {
    padding: 6rem 0;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow), var(--shadow-glow);
}

.product-card.featured {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.2);
}

.product-card.featured:hover {
    border-color: var(--tech-purple);
    box-shadow: 0 12px 50px rgba(139, 92, 246, 0.3);
}

.product-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-card-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.07);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(64, 224, 208, 0.15);
    border: 1px solid rgba(64, 224, 208, 0.4);
    color: var(--tech-cyan);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.product-tag-featured {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--tech-purple);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    z-index: 3;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-add-cart {
    background: var(--grad-main);
    border: none;
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    transform: translateY(10px);
    transition: var(--transition);
}

.product-card:hover .btn-add-cart {
    transform: translateY(0);
}

.btn-add-cart:hover {
    filter: brightness(1.1);
}

.product-card-info {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.product-category {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stars {
    color: #f5c518;
    font-size: 0.85rem;
}

.rating-count {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.product-card-info h3 {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
}

.product-card-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-contact {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-contact:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
    background: rgba(64, 224, 208, 0.05);
}

.btn-detail {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    color: var(--tech-cyan);
}

/* ===========================
   FEATURES
   =========================== */

.features-section {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.features-left h2 {
    margin-bottom: 1.25rem;
}

.features-left p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.features-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    border-bottom-color: var(--border-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(64, 224, 208, 0.08);
    border: 1px solid rgba(64, 224, 208, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: rgba(64, 224, 208, 0.15);
    transform: scale(1.06);
}

.feature-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===========================
   GALERÍA
   =========================== */

.galeria-section {
    padding: 7rem 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.galeria-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}

.galeria-item.main {
    grid-row: 1 / 3;
}

.galeria-item:not(.main) {
    aspect-ratio: 16/10;
}

.galeria-item.main {
    aspect-ratio: auto;
}

.galeria-item img {
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.9), transparent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transform: translateY(100%);
    transition: var(--transition);
}

.galeria-item:hover .galeria-caption {
    transform: translateY(0);
}

/* ===========================
   CTA BANNER
   =========================== */

.cta-banner {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.cta-banner-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(64, 224, 208, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner-inner h2 {
    margin-bottom: 1rem;
}

.cta-banner-inner p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* ===========================
   TESTIMONIOS CARRUSEL
   =========================== */

.testimonials-section {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    width: 100%;
    will-change: transform;
    align-items: stretch;
}

.testimonial-card {
    min-width: calc(33.333% - 1rem);
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* Deshabilitar hover en dispositivos táctiles */
@media (hover: none) {
    .testimonial-card:hover {
        transform: none;
        border-color: var(--border);
    }
}

.testimonial-stars {
    color: #f5c518;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    min-height: 100px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: none;
}

/* Indicadores de puntos */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--text-dim);
}

.carousel-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.5);
}

/* ===========================
   CONTACTO
   =========================== */

.contacto-section {
    padding: 7rem 0;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contacto-left h2 {
    margin-bottom: 1.25rem;
}

.contacto-left p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contacto-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contacto-info-item svg {
    color: var(--tech-cyan);
    flex-shrink: 0;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tech-cyan);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--tech-cyan);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
    background: rgba(64, 224, 208, 0.05);
}

/* ===========================
   CART FLOATING BUTTON (WHATSAPP)
   =========================== */

.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
    animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-fab::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: whatsappPulse 2s ease-out infinite;
}

.whatsapp-fab::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: whatsappPulse 2s ease-out 1s infinite;
}

.whatsapp-fab:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
    animation: none;
}

.whatsapp-fab:hover::before,
.whatsapp-fab:hover::after {
    animation: none;
}

/* Badge de notificación */
.whatsapp-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff3b30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    border: 3px solid var(--bg);
    animation: notificationPulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.5);
}

/* Mensaje emergente */
.whatsapp-message {
    position: absolute;
    left: 75px;
    bottom: 50%;
    transform: translateY(50%);
    background: white;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    animation: messageSlide 4s ease-in-out 2s infinite;
    pointer-events: none;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid white;
}

/* Animaciones */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes whatsappBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 59, 48, 0.7);
    }
}

@keyframes messageSlide {
    0%, 15% {
        opacity: 0;
        transform: translateY(50%) translateX(-10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(50%) translateX(0);
    }
    85%, 100% {
        opacity: 0;
        transform: translateY(50%) translateX(-10px);
    }
}

.cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--grad-main);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(65, 105, 225, 0.4);
    z-index: 999;
    transition: var(--transition);
    color: var(--white);
}

.cart-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(64, 224, 208, 0.5);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--tech-green);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
    font-family: var(--font-mono);
}

/* ===========================
   CART DRAWER
   =========================== */

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.cart-drawer.open {
    pointer-events: all;
}

.cart-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-drawer.open .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 90vw);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer.open .cart-drawer-content {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cart-drawer-count-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-close:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    text-align: center;
}

.cart-empty svg {
    color: var(--text-dim);
    opacity: 0.3;
}

.cart-empty p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.cart-empty small {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cart-item-img {
    grid-row: 1 / 3;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-unit-price {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.cart-item-price {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--tech-cyan);
}

.cart-item-qty-row {
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover:not(:disabled) {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    font-family: var(--font-mono);
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}

.cart-item-remove:hover {
    color: #ff4757;
}

.cart-drawer-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.promo-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.promo-section input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.promo-section input:focus {
    outline: none;
    border-color: var(--tech-cyan);
}

.promo-section button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.promo-section button:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
}

.promo-msg {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.promo-msg.success {
    color: var(--tech-green);
}

.promo-msg.error {
    color: #ff4757;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.summary-row span:first-child {
    color: var(--text-muted);
}

.summary-row span:last-child {
    font-family: var(--font-mono);
    font-weight: 600;
}

.summary-discount span:last-child {
    color: var(--tech-green);
}

.summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.summary-total span {
    font-size: 1.1rem !important;
    color: var(--text) !important;
}

/* ===========================
   TOAST
   =========================== */

.cart-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.cart-toast.show {
    transform: translateX(-50%) translateY(0);
}

.cart-toast svg {
    color: var(--tech-green);
}

.cart-toast span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===========================
   MODAL
   =========================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.modal-close:hover {
    border-color: var(--tech-cyan);
    color: var(--tech-cyan);
}

.modal-body {
    padding: 2rem;
}

.modal-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.modal-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tech-cyan);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.modal-info h2 {
    margin-bottom: 1rem;
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-specs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.modal-specs li {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-specs li::before {
    content: '✓';
    color: var(--tech-green);
    font-weight: 700;
    flex-shrink: 0;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions > * {
    flex: 1;
    min-width: 200px;
}

.modal-price {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-add-btn {
    flex: 1;
    max-width: 240px;
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (min-width: 1400px) {
    .testimonials-carousel {
        max-width: 1400px;
    }

    .testimonial-card {
        max-width: 450px;
    }
}

@media (max-width: 1000px) {
    .hero {
        padding-top: 6rem;
        background-attachment: scroll;
    }

    .features-layout,
    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Carrusel responsive tablet */
    .testimonial-card {
        min-width: calc(50% - 0.75rem);
    }

    .testimonials-carousel {
        padding: 0 55px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        min-height: 110px;
    }

    .testimonials-section {
        padding: 5rem 0;
    }
}

@media (max-width: 600px) {
    /* Transición tablet a móvil */
    .testimonials-carousel {
        padding: 0 52px;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
    }

    .carousel-track {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    /* Overlay/Backdrop para el menú móvil */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Panel lateral derecho */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 85vw);
        background: #0a0e1a;
        border-left: 1px solid rgba(255,255,255,0.08);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.35s ease;
        visibility: hidden;
        z-index: 1005;
        list-style: none;
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
    }

    /* Cabecera del panel con logo y botón cerrar */
    .nav-links::before {
        content: 'DIGITAL HYPE';
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
        height: 64px;
        min-height: 64px;
        font-family: var(--font-mono);
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        background: linear-gradient(90deg, #00ccff, #8a2be2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-shrink: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
        opacity: 0;
        transform: translateX(12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open li:nth-child(1) { transition-delay: 0.08s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.13s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.18s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.23s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.28s; }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255,255,255,0.85);
        transition: background 0.2s ease, color 0.2s ease;
        gap: 0.75rem;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.04);
        color: #00ccff;
    }

    .nav-links a::before {
        display: none;
    }

    /* Botón cerrar dentro del panel */
    .nav-close-btn {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 50%;
        cursor: pointer;
        color: rgba(255,255,255,0.7);
        font-size: 1.2rem;
        line-height: 1;
        transition: background 0.2s ease, color 0.2s ease;
        z-index: 1006;
    }

    .nav-close-btn:hover {
        background: rgba(255,255,255,0.12);
        color: #fff;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1006;
    }

    .cta-nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos-grid {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-item.main {
        grid-row: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .modal-specs {
        grid-template-columns: 1fr;
    }

    /* Carrusel responsive mobile */
    .testimonials-section {
        padding: 3rem 0;
    }

    .testimonials-section .container {
        width: 100%;
        padding: 0;
    }

    .testimonials-carousel {
        padding: 0 50px;
    }

    .carousel-track {
        gap: 1rem;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.75rem 1.25rem;
        margin: 0;
    }

    .carousel-btn {
        width: 42px;
        height: 42px;
    }

    .carousel-btn svg {
        width: 22px;
        height: 22px;
    }

    .carousel-btn-prev {
        left: 4px;
    }

    .carousel-btn-next {
        right: 4px;
    }

    .testimonial-stars {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .testimonial-text {
        min-height: auto;
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .testimonial-author {
        gap: 0.35rem;
    }

    .testimonial-author strong {
        font-size: 1rem;
    }

    .testimonial-author span {
        font-size: 0.875rem;
    }

    .carousel-dots {
        margin-top: 1.75rem;
        gap: 0.5rem;
    }

    .carousel-dot {
        width: 9px;
        height: 9px;
    }

    .carousel-dot.active {
        width: 26px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1.1rem;
    }

    .hero-cta .btn {
        min-width: 210px;
        justify-content: center;
    }

    .cart-fab {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }

    /* WhatsApp en móvil */
    .whatsapp-fab {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 56px;
        height: 56px;
    }

    .whatsapp-notification {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }

    .whatsapp-message {
        display: none;
    }

    /* Menú móvil en pantallas pequeñas */
    .nav-links {
        width: min(300px, 90vw);
        padding: 4.5rem 0 2rem;
    }

    .nav-links a {
        padding: 1.15rem 1.5rem;
        font-size: 0.95rem;
    }

    .nav-links a:hover {
        padding-left: 2rem;
    }

    /* Optimización carrusel móvil pequeño */
    .testimonials-section {
        padding: 2.5rem 0;
    }

    .testimonials-section .container {
        width: 100%;
        padding: 0;
    }

    .testimonials-carousel {
        padding: 0 44px;
        max-width: 100%;
    }

    .carousel-track {
        gap: 0.75rem;
    }

    .testimonial-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem 1rem;
        border-radius: var(--radius-md);
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .carousel-btn-prev {
        left: 3px;
    }

    .carousel-btn-next {
        right: 3px;
    }

    .testimonial-stars {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }

    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .testimonial-author {
        gap: 0.3rem;
    }

    .testimonial-author strong {
        font-size: 0.95rem;
    }

    .testimonial-author span {
        font-size: 0.825rem;
    }

    .carousel-dots {
        margin-top: 1.5rem;
        gap: 0.45rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 22px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header .overline {
        font-size: 0.75rem;
    }

    /* WhatsApp ajuste móvil pequeño */
    .whatsapp-fab {
        width: 54px;
        height: 54px;
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 380px) {
    /* Carrusel móvil extra pequeño (iPhone SE, etc.) */
    .testimonials-section .container {
        width: 100%;
        padding: 0;
    }

    /* Menú móvil extra pequeño */
    .nav-links {
        width: min(280px, 92vw);
        padding: 4rem 0 2rem;
    }

    .nav-links a {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .nav-links a:hover {
        padding-left: 1.75rem;
    }

    .hamburger {
        padding: 6px;
    }

    .hamburger span {
        width: 22px;
    }

    .logo {
        font-size: 1.15rem;
    }

    /* WhatsApp en pantallas muy pequeñas */
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        left: 1rem;
    }

    .whatsapp-fab svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-notification {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
    }

    .testimonials-carousel {
        padding: 0 40px;
    }

    .carousel-btn {
        width: 34px;
        height: 34px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .carousel-btn-prev {
        left: 2px;
    }

    .carousel-btn-next {
        right: 2px;
    }

    .testimonial-card {
        padding: 1.25rem 0.875rem;
    }

    .testimonial-stars {
        font-size: 0.9rem;
    }

    .testimonial-text {
        font-size: 0.875rem;
        line-height: 1.55;
    }

    .testimonial-author strong {
        font-size: 0.9rem;
    }

    .testimonial-author span {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.35rem;
    }

    .carousel-dots {
        margin-top: 1.25rem;
    }
}

/* ===========================
   SERVICIOS COMPLETOS PAGE
   =========================== */

.servicios-completos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servicio-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.servicio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(64,224,208,0.05) 0%, rgba(65,105,225,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.servicio-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--tech-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.2);
}

.servicio-item:hover::before {
    opacity: 1;
}

.servicio-icon {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(64,224,208,0.1) 0%, rgba(65,105,225,0.1) 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.servicio-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-item:hover .servicio-icon img {
    transform: scale(1.08);
}

.servicio-item h4 {
    font-size: 1.25rem;
    color: var(--tech-cyan);
    margin-bottom: 0.75rem;
    font-weight: 600;
    padding: 1.5rem 1.5rem 0;
    position: relative;
    z-index: 1;
}

.servicio-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* Feature icon images */
.feature-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* ===========================
   ENHANCED ANIMATIONS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Hover animation for feature cards */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    animation: pulse 2s ease-in-out infinite;
}

/* Coverage items animation */
.coverage-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coverage-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(64, 224, 208, 0.25);
}

/* Navbar active link */
.nav-links a.active {
    color: var(--tech-cyan);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

/* Enhanced button animations */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(65, 105, 225, 0.4);
}

.btn-primary:hover {
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-ghost:hover {
    background: rgba(64, 224, 208, 0.1);
}

/* Loading animation for images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(64, 224, 208, 0.1) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
}

/* Responsive grid improvements for servicios */
@media (max-width: 768px) {
    .servicios-completos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicio-icon {
        height: 180px;
    }
    
    .servicio-item h4 {
        font-size: 1.15rem;
        padding: 1.25rem 1.25rem 0;
    }
    
    .servicio-item p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1200px) {
    .servicios-completos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   FEATURES GRID — sobre-nosotros
   =========================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.features-grid .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.features-grid .feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.features-grid .feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(64, 224, 208, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

.features-grid .feature-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.features-grid .feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.features-grid .feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;
    }

    .features-grid .feature-card {
        padding: 1.25rem 0.875rem;
    }

    .features-grid .feature-icon {
        width: 44px;
        height: 44px;
    }

    .features-grid .feature-icon img {
        width: 24px;
        height: 24px;
    }

    .features-grid .feature-card h3 {
        font-size: 0.9rem;
    }

    .features-grid .feature-card p {
        font-size: 0.82rem;
    }
}

/* ===========================
   QUIÉNES SOMOS — sobre-nosotros
   =========================== */

.quienes-somos-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0a0e1a 0%, #0f1420 100%);
}

.quienes-somos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quienes-somos-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.quienes-somos-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #b4bcd0;
    margin-bottom: 1.25rem;
}

.quienes-somos-text p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    color: #40e0d0;
}

.quienes-img-wrapper {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(64,224,208,0.1) 0%, rgba(65,105,225,0.1) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(64,224,208,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quienes-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .quienes-somos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quienes-somos-text h2 {
        font-size: 1.9rem;
    }

    .quienes-somos-text p {
        font-size: 1rem;
    }

    /* Imagen va primero en mobile */
    .quienes-somos-img {
        order: -1;
    }

    .quienes-img-wrapper {
        aspect-ratio: 16/9;
        border-radius: 0.75rem;
    }
}
