* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: #333; background: #0a0a0a; overflow-x: hidden; }

.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 5%; 
    background: rgba(0,0,0,0.95); 
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    backdrop-filter: blur(10px); 
}
.logo { 
    height: 80px; 
    width: auto; 
    filter: drop-shadow(0 4px 8px rgba(255,107,53,0.5)); 
}
.nav a { 
    color: #ff6b35; 
    text-decoration: none; 
    margin-left: 2rem; 
    font-weight: 600; 
    font-size: 1.1rem; 
    transition: all 0.3s; 
}
.nav a:hover { 
    color: #fff; 
    text-shadow: 0 0 10px #ff6b35; 
}

.hero { 
    padding: 140px 5% 80px; 
    background: linear-gradient(135deg, #000 0%, #ff6b35 100%); 
    text-align: center; 
    color: white; 
    position: relative; 
}
.hero-content h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    font-weight: 700; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}
.hero-content p { 
    font-size: 1.3rem; 
    margin-bottom: 2rem; 
}
.hero-image { 
    max-width: 700px; 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: 0 30px 60px rgba(255,107,53,0.4); 
}

.section { 
    padding: 100px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.section-title { 
    font-size: 3rem; 
    text-align: center; 
    margin-bottom: 3rem; 
    background: linear-gradient(45deg, #fff, #ff6b35); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
    font-weight: 700;
}
.section p { 
    font-size: 1.3rem; 
    text-align: center; 
    color: #fff; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); 
    margin-bottom: 3rem; 
}

.services-list, .values-list { 
    list-style: none; 
    max-width: 700px; 
    margin: 0 auto; 
    display: grid; 
    gap: 1rem; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}
.services-list li, .values-list li { 
    background: rgba(255,255,255,0.15); 
    padding: 1.5rem; 
    border-radius: 15px; 
    backdrop-filter: blur(15px); 
    color: #fff; 
    font-size: 1.1rem; 
    border-left: 4px solid #ff6b35; 
}

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
}
.project-card { 
    background: rgba(255,255,255,0.08); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s; 
    position: relative; 
}
.project-card:nth-child(9) { 
    background: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.15));
}
.project-card:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 30px 60px rgba(255,107,53,0.3); 
}
.project-card img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}
.project-card h3 { 
    padding: 1.5rem; 
    color: #fff; 
    text-align: center; 
    font-weight: 600; 
    font-size: 1.3rem; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9); 
}
.project-card a { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

/* Parallax hover tarjetas */
.project-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    background: radial-gradient(circle 30% at var(--mouse-x) var(--mouse-y), rgba(255,107,53,0.2), transparent);
}

.contact-form { 
    max-width: 700px; 
    margin: 0 auto 3rem; 
    display: grid; 
    gap: 1.5rem; 
}
.contact-form input, .contact-form textarea { 
    padding: 1.2rem; 
    border: none; 
    border-radius: 12px; 
    background: rgba(255,255,255,0.15); 
    color: #fff; 
    font-family: inherit; 
    font-size: 1.1rem; 
}
.contact-form input::placeholder, .contact-form textarea::placeholder { 
    color: #ccc; 
}
.contact-form button { 
    padding: 1.2rem; 
    background: linear-gradient(45deg, #ff6b35, #ff8c42); 
    border: none; 
    border-radius: 12px; 
    color: white; 
    font-weight: 600; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: all 0.3s; 
}
.contact-form button:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 30px rgba(255,107,53,0.4); 
}
.contact-info { 
    text-align: center; 
    color: #fff; 
    font-size: 1.2rem; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8); 
    padding-bottom: 120px; /* Espacio para WhatsApp móvil */
}

/* CHAT BUBBLES OPTIMIZADOS */
.chat-bubble { 
    position: fixed; 
    width: 300px; 
    background: rgba(255,255,255,0.95); 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    padding: 1rem; 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    z-index: 2000; 
    backdrop-filter: blur(15px); 
    border: 2px solid rgba(255,255,255,0.2);
}
.chat-bubble.whatsapp { 
    bottom: 90px; 
    right: 20px; 
    border-color: #25D366; 
}
.chat-bubble.instagram { 
    bottom: 20px; 
    right: 20px; 
    border-color: #E4405F; 
}
.chat-logo img { 
    height: 45px; 
    margin-right: 0.8rem; 
    border-radius: 50%; 
}
.chat-message { 
    flex: 1; 
}
.chat-message span { 
    font-weight: 600; 
    color: #222; 
    font-size: 1rem; 
}
.close-btn { 
    background: rgba(0,0,0,0.2); 
    border: none; 
    border-radius: 50%; 
    width: 28px; 
    height: 28px; 
    font-size: 1.3rem; 
    cursor: pointer; 
    margin-left: 0.8rem; 
    color: #666;
}
.close-btn:hover { 
    background: rgba(255,0,0,0.3); 
    color: #fff; 
}
.whatsapp-icon, .instagram-icon { 
    font-size: 1.6rem; 
    margin-left: 0.8rem; 
    font-weight: bold;
}

/* RESPONSIVE */

/* Tabletas */
@media (min-width: 481px) and (max-width: 768px) {
    .chat-bubble.whatsapp { bottom: 100px; }
    .chat-bubble.instagram { bottom: 20px; }
}

/* Móviles */
@media (max-width: 480px) {
    .header { flex-direction: column; align-items: flex-start; padding: 0.8rem 1.2rem; }
    .logo { height: 60px; margin-bottom: 0.5rem; }
    .nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }
    .nav a { margin-left: 0; font-size: 0.95rem; }
    
    .hero { padding: 120px 1.5rem 60px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-image { max-width: 100%; }
    
    .section { padding: 60px 1.5rem; }
    .section-title { font-size: 2rem; margin-bottom: 1.5rem; }
    .section p { font-size: 1.05rem; margin-bottom: 2rem; }
    
    .services-list, .values-list { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card img { height: 200px; }
    
    .contact-form { width: 100%; }
    .contact-info p { font-size: 1rem; padding: 0.2rem 0; margin: 0.1rem 0; }
    
    .chat-bubble { 
        width: 260px; 
        padding: 0.8rem; 
        right: 16px !important; 
    }
    .chat-bubble.whatsapp { bottom: 85px; }
    .chat-bubble.instagram { bottom: 16px; display: flex; } /* IG visible en móvil pequeño */
    
    .back-to-top { bottom: 80px; right: 16px; }
}

/* Back to top */
.back-to-top:hover { transform: scale(1.1) rotate(360deg); }
