* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyan: #00d4ff;
    --blue: #0066ff;
    --purple: #8b00ff;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(15, 25, 60, 0.8);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy Loading - Transición suave */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(50px, 50px, 0); }
}

.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    border-radius: 50%;
    animation: particleFloat 10s infinite;
    box-shadow: 0 0 20px var(--cyan);
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate3d(0, -150px, 0) scale(2); opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.95), transparent);
}

.nav-logo {
    height: 55px;
    transition: all 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--cyan));
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--cyan);
    text-shadow: 0 0 25px var(--cyan);
}

/* Navigation Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--cyan);
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: left center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    background: radial-gradient(ellipse at center, rgba(0, 100, 255, 0.15) 0%, transparent 70%);
}

.hero-logo {
    width: 450px;
    max-width: 90%;
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.6));
    will-change: transform;
}

@keyframes logoFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -25px, 0) rotate(2deg); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--cyan), var(--purple), var(--cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 45px;
    letter-spacing: 8px;
    font-weight: 500;
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--cyan);
    margin-bottom: 55px;
    text-shadow: 0 0 30px var(--cyan);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    padding: 22px 55px;
    border-radius: 55px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.7);
}

/* Section Styles */
.section {
    padding: clamp(60px, 8vw, 100px) 5vw;
    position: relative;
    z-index: 1;
}

.services-section,
.about-section,
.budget-section,
.inspirational,
.software-section,
.portfolio-section,
.location-section,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, transparent, rgba(0, 50, 100, 0.2), transparent);
    padding: clamp(60px, 9vw, 90px) 5vw;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(22px, 3vw, 35px);
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    padding: clamp(28px, 3vw, 45px);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.4), 0 0 50px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 25px;
    display: block;
}

.service-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--cyan);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.service-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: clamp(1rem, 1.4vw, 1.05rem);
}

/* Budget Section - NEW */
.budget-section {
    background: linear-gradient(180deg, rgba(0, 30, 80, 0.6), rgba(0, 15, 40, 0.9), rgba(0, 5, 20, 0.95));
    text-align: center;
}

.budget-container {
    background: linear-gradient(145deg, rgba(0, 80, 160, 0.5), rgba(0, 40, 100, 0.7));
    border: 3px solid rgba(0, 212, 255, 0.6);
    border-radius: 35px;
    padding: 70px 50px;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.budget-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 50%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.budget-icon {
    font-size: 6rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.budget-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--cyan);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    font-family: 'Orbitron', sans-serif;
}

.budget-text {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.9;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.budget-highlight {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 20px 50px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
    animation: pulseHighlight 2s infinite;
}

@keyframes pulseHighlight {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 20px 70px rgba(0, 212, 255, 0.7); }
}

.budget-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.budget-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 212, 255, 0.15);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.budget-feature:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

.budget-feature-icon {
    font-size: 1.5rem;
}

.budget-feature-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, transparent, rgba(0, 50, 100, 0.25), transparent);
}

.about-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.35rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    margin-top: 55px;
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    transition: all 0.4s;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--cyan);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    color: var(--cyan);
    text-shadow: 0 0 35px var(--cyan);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Inspirational Section */
.inspirational {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(139, 0, 255, 0.15), transparent);
    padding: 80px 50px;
}

.quote-icon {
    font-size: 6rem;
    color: var(--cyan);
    margin-bottom: 35px;
    text-shadow: 0 0 40px var(--cyan);
}

.inspirational-text {
    font-size: 2.2rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto 35px;
    line-height: 1.7;
    color: white;
}

.inspirational-author {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--purple);
    text-shadow: 0 0 20px var(--purple);
}

/* Software Development Section */
.software-section {
    background: var(--card-bg);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.software-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    max-width: 1250px;
    margin: 0 auto;
    align-items: center;
}

.software-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 25px;
    text-shadow: 0 0 25px var(--cyan);
}

.software-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-item {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--cyan);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.tech-item:hover {
    background: var(--cyan);
    color: white;
    transform: scale(1.05);
}

.software-image {
    text-align: center;
}

.software-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 212, 255, 0.4), 0 0 60px rgba(0, 212, 255, 0.2);
    border: 3px solid rgba(0, 212, 255, 0.3);
}

/* Portfolio Section */
.portfolio-section {
    background: linear-gradient(180deg, transparent, rgba(0, 30, 80, 0.5), transparent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s;
    border: 2px solid rgba(0, 212, 255, 0.25);
}

.portfolio-card:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.35);
    border-color: var(--cyan);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.portfolio-content {
    padding: 35px;
}

.portfolio-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--cyan);
    margin-bottom: 12px;
}

.portfolio-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

/* Location Section */
.location-section {
    background: var(--card-bg);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    max-width: 1250px;
    margin: 0 auto;
}

.location-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--cyan);
    margin-bottom: 25px;
}

.location-details {
    margin-bottom: 35px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.location-icon {
    font-size: 1.6rem;
    color: var(--cyan);
}

.location-text {
    color: rgba(255, 255, 255, 0.9);
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.25);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 850px;
    margin: 0 auto;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    padding: 18px 45px;
    border-radius: 55px;
    font-size: 1.15rem;
    margin-bottom: 45px;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.4);
}

.quality-badge-icon {
    font-size: 1.5rem;
}

.qr-container {
    background: var(--card-bg);
    border: 2px solid var(--cyan);
    border-radius: 35px;
    padding: 50px;
    display: inline-block;
    margin-bottom: 45px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.qr-image {
    width: 280px;
    height: 280px;
    border-radius: 20px;
}

.qr-text {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* WhatsApp Avatar */
.whatsapp-avatar {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 1000;
}

.avatar-btn {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.55);
    transition: all 0.3s;
    animation: avatarPulse 2s infinite;
}

.avatar-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 20px 65px rgba(37, 211, 102, 0.75);
}

@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 15px 50px rgba(37, 211, 102, 0.55); }
    50% { box-shadow: 0 20px 70px rgba(37, 211, 102, 0.85); }
}

.avatar-icon {
    width: 45px;
    height: 45px;
}

.avatar-tooltip {
    position: absolute;
    bottom: 90px;
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--cyan);
    border-radius: 18px;
    padding: 18px 25px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s;
    pointer-events: none;
}

.whatsapp-avatar:hover .avatar-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.avatar-tooltip::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 28px;
    border: 12px solid transparent;
    border-top-color: var(--cyan);
}

.avatar-tooltip-title {
    font-weight: 700;
    color: var(--cyan);
}

/* Audio Controls */
.audio-control {
    position: fixed;
    bottom: 35px;
    left: 35px;
    z-index: 1000;
}

.audio-btn {
    width: 55px;
    height: 55px;
    background: var(--card-bg);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.audio-btn:hover {
    background: var(--cyan);
    transform: scale(1.1);
}

.audio-icon {
    font-size: 1.6rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 40px;
    background: rgba(0, 10, 30, 0.95);
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px var(--cyan));
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    margin-bottom: 8px;
}

/* Scroll Indicator */
.scroll-top {
    position: fixed;
    bottom: 130px;
    right: 35px;
    width: 55px;
    height: 55px;
    background: var(--card-bg);
    border: 2px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-top:hover {
    background: var(--cyan);
    transform: scale(1.1);
}

.scroll-top-icon {
    font-size: 1.6rem;
}

/* Responsivo para moviles */
@media (max-width: 968px) {
    nav {
        padding: 15px 25px;
        background: rgba(10, 10, 26, 0.98);
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-logo {
        height: 45px;
        width: 45px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        border-bottom: 2px solid var(--cyan);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 212, 255, 0.3);
        padding: 25px 20px;
        gap: 15px;
        text-align: center;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        opacity: 0;
        visibility: hidden;
        transform: translate3d(0, -20px, 0);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
        pointer-events: none;
        will-change: transform, opacity;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 12px 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
        letter-spacing: 2px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title,
    .budget-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .software-content,
    .location-content {
        grid-template-columns: 1fr;
    }

    .budget-container,
    .it-container {
        padding: 50px 30px;
    }

    .budget-features {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .inspirational-text {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: clamp(50px, 10vw, 70px) 4vw;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-desc {
        font-size: 0.98rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-image {
        height: 180px;
    }

    .map-container iframe {
        height: 320px;
    }

    .qr-container {
        padding: 35px;
    }

    .qr-image {
        width: 220px;
        height: 220px;
    }

    .whatsapp-avatar {
        bottom: 20px;
        right: 20px;
    }

    .avatar-btn {
        width: 60px;
        height: 60px;
    }

    .avatar-icon {
        width: 36px;
        height: 36px;
    }

    .audio-control {
        bottom: 100px;
        left: 20px;
    }

    .scroll-top {
        bottom: 170px;
        right: 20px;
    }
}

/* Optimización para dispositivos pequeños (<480px) */
@media (max-width: 480px) {
    .hero {
        padding: 90px 15px 50px;
    }

    .hero-logo {
        width: 280px;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
        margin-bottom: 30px;
    }

    .hero-tagline {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }

    .cta-button {
        padding: 16px 35px;
        font-size: 1.05rem;
        width: 90%;
        justify-content: center;
    }

    .budget-container {
        padding: 35px 20px;
        border-radius: 25px;
    }

    .budget-title {
        font-size: 1.6rem;
    }

    .budget-text {
        font-size: 1.1rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: var(--cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: var(--purple);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(60% 0 20% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    80% { clip-path: inset(80% 0 10% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); }
    20% { clip-path: inset(60% 0 20% 0); }
    40% { clip-path: inset(20% 0 60% 0); }
    60% { clip-path: inset(40% 0 40% 0); }
    80% { clip-path: inset(10% 0 80% 0); }
}
