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

:root {
    --primary-color: #ffffff;
    --secondary-color: #a3a3a3;
    --accent-color: #4f46e5;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #065f46 0%, #064e3b 30%, #1f2937 70%, #000000 100%);
    --gradient-green-white: linear-gradient(135deg, #bdcea9 0%, #76b68f 30%, #064e3b 70%, #018a63 100%);
    --bg-color: #0a0a0a;
    --bg-alt: #111111;
    --bg-dark: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-light: #6b7280;
    --border-color: #262626;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section con Partículas */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    position: relative;
    overflow: hidden;
}

/* Canvas del universo de partículas */
.universe-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 4;
}

.gradient-text {
    background: var(--gradient-green-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-description {
    position: relative;
    z-index: 3;
}

.hero-description p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    font-size: 1rem;
    position: relative;
    z-index: 3;
}

.btn-primary:hover {
    background: #3730a3;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Mejoras visuales para el hero con universo de partículas */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
            rgba(6, 95, 70, 0.05) 0%,
            rgba(10, 10, 10, 0.4) 50%,
            rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Blog Carousel Section - Infinito de ancho completo */
.blog-carousel {
    padding: 6rem 0 4rem 0;
    background: var(--bg-color);
    overflow: hidden;
}

.blog-carousel .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.infinite-carousel-container {
    position: relative;
    width: 100vw;
    height: 450px;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

/* En tu style.css, reemplaza esta regla: */
.infinite-carousel-track {
    display: flex;
    gap: 2rem;
    position: absolute;
    height: 100%;
    will-change: transform;
    touch-action: pan-y;
}

.infinite-carousel-track:hover {
    animation-play-state: paused;
}

/* Gradientes de desvanecimiento */
.carousel-fade-left,
.carousel-fade-right {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%);
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%);
}

.blog-card {
    flex: 0 0 350px;
    height: 400px;
    background: var(--bg-alt);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    touch-action: manipulation;
    /* Optimiza para touch */
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: #374151;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background: var(--gradient-green);
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-content {
    padding: 1.5rem;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title {
    color: #065f46;
    font-style: oblique;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 20;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.by-awarefractal {
    font-family: 'Ubuntu mono';
    font-size: medium;
    color: #bdcea9;
}

.awarefractal-green {
    font-family: 'Ubuntu mono';
    color: #064e3b;
    font-size: xx-large;
}

.awarefractal-text {
    font-family: 'Ubuntu mono';
    color: #94a3b8;
    font-style: italic;
}

/* Inspirational Section - Arreglado sin position fixed */
.inspiration-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('images/city-night.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    /* Mantener parallax en todas las pantallas */
    background-repeat: no-repeat;
    /* Añadir blur */
    backdrop-filter: blur(1px);
}

/* Overlay mejorado con más blur */
.inspiration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.5px);
    /* Blur adicional */
    z-index: 1;
}

/* Eliminamos .inspiration-bg ya que ya no lo necesitamos */

.inspiration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 4rem 2rem;
}

.inspiration-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.inspiration-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.service-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}

.service-card.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: #374151;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    position: relative;
}

.icon-fractal {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini Triángulos con Variación Random Extrema */
.mini-triangle {
    position: absolute;
    width: 0;
    height: 0;
    animation: ultraRandomTriangle 7s ease-in-out infinite;
}

.mini-triangle:nth-child(1) {
    border-left: calc(8px * var(--size-factor, 1)) solid transparent;
    border-right: calc(8px * var(--size-factor, 1)) solid transparent;
    border-bottom: calc(14px * var(--size-factor, 1)) solid;
    border-bottom-color: hsl(var(--hue-shift, 162), var(--saturation, 94%), var(--lightness, 18%));
    top: 10px;
    left: 26px;
    animation-delay: 0s;
    animation-duration: calc(5.7s + var(--time-variance, 0) * 2s);
    --chaos-x: 0.31;
    --chaos-y: 0.73;
    --chaos-r: 0.42;
    --chaos-s: 0.89;
    --orbit-radius: 1.2;
}

.mini-triangle:nth-child(2) {
    border-left: calc(6px * var(--size-factor, 1)) solid transparent;
    border-right: calc(6px * var(--size-factor, 1)) solid transparent;
    border-bottom: calc(10px * var(--size-factor, 1)) solid;
    border-bottom-color: hsl(var(--hue-shift, 158), var(--saturation, 88%), var(--lightness, 15%));
    top: 30px;
    left: 15px;
    animation-delay: calc(1.2s + var(--time-variance, 0) * 0.8s);
    animation-duration: calc(6.4s + var(--time-variance, 0) * 1.5s);
    --chaos-x: 0.67;
    --chaos-y: 0.42;
    --chaos-r: 0.78;
    --chaos-s: 0.55;
    --orbit-radius: 0.8;
}

.mini-triangle:nth-child(3) {
    border-left: calc(6px * var(--size-factor, 1)) solid transparent;
    border-right: calc(6px * var(--size-factor, 1)) solid transparent;
    border-bottom: calc(10px * var(--size-factor, 1)) solid;
    border-bottom-color: hsl(var(--hue-shift, 215), var(--saturation, 28%), var(--lightness, 17%));
    top: 30px;
    right: 15px;
    animation-delay: calc(2.3s + var(--time-variance, 0) * 1.2s);
    animation-duration: calc(4.9s + var(--time-variance, 0) * 2.1s);
    --chaos-x: 0.89;
    --chaos-y: 0.18;
    --chaos-r: 0.95;
    --chaos-s: 0.33;
    --orbit-radius: 1.5;
}

/* Cada tarjeta tiene variaciones extremas y únicas */
.service-card:nth-child(1) .mini-triangle {
    --unique-seed: 0.23;
    --drift-chaos: 0.41;
    --size-factor: 0.9;
    --hue-shift: 162;
    --saturation: 94%;
    --lightness: 18%;
    --time-variance: 0.3;
}

.service-card:nth-child(2) .mini-triangle {
    --unique-seed: 0.67;
    --drift-chaos: 0.73;
    --size-factor: 1.3;
    --hue-shift: 140;
    --saturation: 85%;
    --lightness: 22%;
    --time-variance: -0.5;
}

.service-card:nth-child(3) .mini-triangle {
    --unique-seed: 0.91;
    --drift-chaos: 0.29;
    --size-factor: 0.7;
    --hue-shift: 185;
    --saturation: 75%;
    --lightness: 25%;
    --time-variance: 0.8;
}

.service-card:nth-child(4) .mini-triangle {
    --unique-seed: 0.44;
    --drift-chaos: 0.86;
    --size-factor: 1.1;
    --hue-shift: 200;
    --saturation: 65%;
    --lightness: 20%;
    --time-variance: -0.2;
}

.service-card:nth-child(5) .mini-triangle {
    --unique-seed: 0.78;
    --drift-chaos: 0.52;
    --size-factor: 1.4;
    --hue-shift: 155;
    --saturation: 90%;
    --lightness: 16%;
    --time-variance: 0.6;
}

.service-card:nth-child(6) .mini-triangle {
    --unique-seed: 0.35;
    --drift-chaos: 0.94;
    --size-factor: 0.8;
    --hue-shift: 175;
    --saturation: 80%;
    --lightness: 24%;
    --time-variance: -0.7;
}

@keyframes ultraRandomTriangle {
    0% {
        transform:
            rotate(calc(var(--unique-seed) * 360deg)) scale(calc(0.8 + var(--chaos-s) * 0.4)) translateX(calc(var(--drift-chaos) * 20px - 10px)) translateY(calc(var(--unique-seed) * 15px - 7px)) skew(calc(var(--chaos-x) * 10deg - 5deg), calc(var(--chaos-y) * 8deg - 4deg));
        opacity: calc(0.7 + var(--chaos-s) * 0.3);
        border-bottom-color: hsl(calc(var(--hue-shift) + var(--drift-chaos) * 20), var(--saturation), var(--lightness));
    }

    25% {
        transform:
            rotate(calc(120deg + var(--unique-seed) * 45deg + var(--drift-chaos) * 60deg)) scale(calc(1.1 + var(--chaos-s) * 0.5)) translateX(calc(var(--chaos-x) * 25px - 12px)) translateY(calc(var(--drift-chaos) * 18px - 9px)) skew(calc(var(--chaos-y) * 12deg - 6deg), calc(var(--chaos-x) * -10deg + 5deg));
        opacity: calc(0.9 + var(--chaos-s) * 0.1);
        border-bottom-color: hsl(calc(var(--hue-shift) + var(--chaos-x) * 30), calc(var(--saturation) + 5%), calc(var(--lightness) + 3%));
    }

    50% {
        transform:
            rotate(calc(240deg + var(--unique-seed) * 120deg + var(--drift-chaos) * 75deg)) scale(calc(0.75 + var(--chaos-s) * 0.6)) translateX(calc(var(--chaos-r) * 35px - 17px)) translateY(calc(var(--unique-seed) * 25px - 12px)) skew(calc(var(--drift-chaos) * 14deg - 7deg), calc(var(--chaos-r) * -12deg + 6deg));
        opacity: calc(0.5 + var(--chaos-s) * 0.4);
        border-bottom-color: hsl(calc(var(--hue-shift) + var(--chaos-r) * -15), calc(var(--saturation) + 10%), var(--lightness));
    }

    75% {
        transform:
            rotate(calc(290deg + var(--unique-seed) * 150deg + var(--chaos-x) * 110deg)) scale(calc(1.25 + var(--chaos-s) * 0.45)) translateX(calc(var(--drift-chaos) * 28px - 14px)) translateY(calc(var(--chaos-r) * 20px - 10px)) skew(calc(var(--unique-seed) * 16deg - 8deg), calc(var(--chaos-x) * -14deg + 7deg));
        opacity: calc(0.95 + var(--chaos-s) * 0.05);
        border-bottom-color: hsl(calc(var(--hue-shift) + var(--unique-seed) * 25), calc(var(--saturation) + 8%), calc(var(--lightness) + 7%));
    }

    100% {
        transform:
            rotate(calc(540deg + var(--unique-seed) * 360deg)) scale(calc(0.8 + var(--chaos-s) * 0.4)) translateX(calc(var(--drift-chaos) * 20px - 10px)) translateY(calc(var(--unique-seed) * 15px - 7px)) skew(calc(var(--chaos-x) * 10deg - 5deg), calc(var(--chaos-y) * 8deg - 4deg));
        opacity: calc(0.7 + var(--chaos-s) * 0.3);
        border-bottom-color: hsl(calc(var(--hue-shift) + var(--drift-chaos) * 20), var(--saturation), var(--lightness));
    }
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Products Section - Mejorado */
.products {
    padding: 6rem 0;
    background: var(--bg-color);
}

.products-showcase {
    display: grid;
    gap: 2rem;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
    border-radius: 12px;
    z-index: 2;
    /* Por encima de la animación fallback */
}

.product-visual:hover .product-image,
.product-visual-2:hover .product-image {
    opacity: 1;
    transform: scale(1.02);
}

/* Ocultar animación fallback cuando hay imagen */
.product-visual .product-image+.product-animation,
.product-visual-2 .product-image+.product-animation-2 {
    opacity: 0;
    pointer-events: none;
}

/* JavaScript para manejar errores de carga */
.product-image[data-error="true"] {
    display: none;
}

.product-image[data-error="true"]+.product-animation,
.product-image[data-error="true"]+.product-animation-2 {
    opacity: 1;
}

.product-card.featured {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    align-items: center;
    border: 1px solid var(--border-color);
}

.product-visual {
    position: relative;
    height: 300px;
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-visual-2 {
    position: relative;
    height: 300px;
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Placeholder para imágenes reales de productos */
.product-visual img,
.product-visual-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
}

.product-visual:hover img,
.product-visual-2:hover img {
    opacity: 1;
    transform: scale(1.02);
}

/* Fallback animation si no hay imagen */
.product-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: productPulse 3s ease-in-out infinite;
}

.triangle-shape {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid rgba(6, 95, 70, 0.6);
    filter: drop-shadow(0 0 8px rgba(6, 95, 70, 0.3));
}

.product-animation-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(79, 70, 229, 0.6);
    border-radius: 50%;
    animation: productPulse 3s ease-in-out infinite;
}

@keyframes productPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.product-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.product-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Etiquetas de productos más sutiles */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: rgba(6, 95, 70, 0.1);
    color: #10b981;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(6, 95, 70, 0.2);
    backdrop-filter: blur(10px);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0f0f0f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right,
            rgba(6, 95, 70, 0.1) 0%,
            transparent 50%);
    pointer-events: none;
}

.contact-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-main h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 500px;
}

.contact-cta {
    margin-top: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #1FA952 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    scale: 1.05;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 95, 70, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-card.highlight {
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.2) 0%, rgba(6, 95, 70, 0.1) 100%);
    border-color: rgba(6, 95, 70, 0.3);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card.highlight .contact-icon {
    color: #10b981;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.4;
}

/* Footer - Mejorado para mobile */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #064e3b;
    font-family: 'Ubuntu Mono', monospace;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-modern {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .contact-main h2 {
        font-size: 3rem;
    }

    .contact-info-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 6rem 0;
    }

    .contact-modern {
        gap: 3rem;
    }

    .contact-main h2 {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1.125rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .whatsapp-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-main h2 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card.featured {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .inspiration-content h2 {
        font-size: 2.5rem;
    }

    .inspiration-content p {
        font-size: 1.25rem;
    }

    .universe-background {
        opacity: 0.8;
    }

    .infinite-carousel-track {
        animation-duration: 40s;
    }

    .blog-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}
    @media (max-width: 768px) {
        .footer-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-brand {
            grid-column: 1;
            grid-row: 1;
        }

        .footer-links {
            display: contents;
            /* Esto hace que los children se comporten como si fueran hijos directos del grid */
        }

        .footer-column:nth-child(3) {
            /* Contacto */
            grid-column: 2;
            grid-row: 1;
        }

        .footer-column:nth-child(2) {
            /* Productos */
            grid-column: 1;
            grid-row: 2;
        }

        .footer-column:nth-child(1) {
            /* Servicios */
            grid-column: 2;
            grid-row: 2;
        }

        .inspiration-content h2 {
            font-size: 2rem;
        }

        .inspiration-content p {
            font-size: 1.125rem;
        }

        /* Arreglar parallax en mobile */
        .inspiration-section {
            background-attachment: fixed;
            /* Cambiar de scroll a fixed */
            min-height: 50vh;
            /* Altura un poco menor */
            /* Más blur en mobile */
            backdrop-filter: blur(1.5px);
        }

        .inspiration-section::before {
            background: rgba(0, 0, 0, 0.6);
            /* Más oscuro en mobile */
            backdrop-filter: blur(0.75px);
            /* Más blur */
        }

        .carousel-btn {
            width: 40px;
            height: 40px;
        }

        .carousel-prev {
            left: 1rem;
        }

        .carousel-next {
            right: 1rem;
        }

        .universe-background {
            opacity: 0.7;
        }

        .infinite-carousel-track {
            animation-duration: 50s;
        }

        .blog-card {
            flex: 0 0 280px;
            height: 380px;
        }

        .carousel-fade-left,
        .carousel-fade-right {
            width: 150px;
        }
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 2rem;
        }

        .section-header h2 {
            font-size: 2rem;
        }

        .service-card,
        .contact-form-container {
            padding: 1.5rem;
        }

        .product-card.featured {
            padding: 2rem;
        }

        .blog-card {
            flex: 0 0 250px;
            height: 360px;
        }

        .blog-title {
            font-style: italic;
        }

        .inspiration-section {
            backdrop-filter: blur(2px);
            /* Aún más blur en pantallas pequeñas */
        }

        .inspiration-content {
            padding: 2rem 1rem;
        }

        .inspiration-content h2 {
            font-size: 1.75rem;
        }

        .inspiration-content p {
            font-size: 1rem;
        }

        .universe-background {
            opacity: 0.6;
        }

        .carousel-fade-left,
        .carousel-fade-right {
            width: 100px;
        }

        .infinite-carousel-track {
            animation-duration: 60s;
        }

        /* Footer mobile compacto */
        .footer-content {
            gap: 1.5rem;
        }

        .footer-brand .logo-text {
            font-size: 1.25rem;
        }

        .footer-brand p {
            font-size: 0.85rem;
        }

        .footer-column h4 {
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
        }

        .footer-column a {
            font-size: 0.8rem;
            margin-bottom: 0.4rem;
        }
    }

    /* Animaciones adicionales para la integración con partículas */
    @keyframes fadeInWithParticles {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

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

    .hero-title {
        animation: fadeInWithParticles 1.2s ease-out 0.3s both;
    }

    .hero-description {
        animation: fadeInWithParticles 1.2s ease-out 0.6s both;
    }

    .hero-actions {
        animation: fadeInWithParticles 1.2s ease-out 0.9s both;
    }