/* RESET GENERAL */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

/* FONDO DINÁMICO */
body {
    background-color: #0b0b0f;
    background-image: 
        radial-gradient(circle at 15% 50px, rgba(110, 142, 251, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(167, 119, 227, 0.1), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(0, 243, 255, 0.05), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(110, 142, 251, 0.08), transparent 30%);
    background-attachment: fixed;
    color: #ffffff; overflow-x: hidden;
}

/* NAVBAR Y LOGO DE TEXTO */
.navbar {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 10px 5%; /* Padding delgado para que no ocupe pantalla */
    background: rgba(11, 11, 15, 0.85); backdrop-filter: blur(15px);
    position: fixed; width: 100%; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.navbar-top { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.logo { font-size: 28px; font-weight: 800; letter-spacing: 1px; flex-shrink: 0; cursor: pointer; }
.logo span { color: #6e8efb; text-shadow: 0 0 10px rgba(110, 142, 251, 0.4); }

.nav-links { display: flex; gap: 40px; margin-bottom: 5px; }
.nav-links a {
    color: #aaa; text-decoration: none; font-weight: 600; font-size: 16px; transition: 0.3s ease; position: relative; cursor: pointer;
}
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(110, 142, 251, 0.5); }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: #6e8efb; transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* HERO SECTION */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; padding-top: 100px;
}
.hero-content { max-width: 600px; animation: slideInLeft 1s ease forwards; }

.badge {
    display: inline-block; background: rgba(110, 142, 251, 0.1); color: #6e8efb;
    padding: 8px 18px; border-radius: 20px; font-size: 14px; font-weight: 600;
    margin-bottom: 25px; border: 1px solid rgba(110, 142, 251, 0.2);
}

.hero h1 { font-size: 58px; line-height: 1.1; margin-bottom: 25px; }

.gradient-text {
    background: linear-gradient(135deg, #6e8efb, #a777e3, #6e8efb); background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 4s linear infinite;
}
@keyframes shineText { to { background-position: 200% center; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }

.hero p { color: #a0a0b0; font-size: 19px; margin-bottom: 45px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 20px; align-items: center; }

/* BOTONES PRINCIPALES */
.btn-3d {
    background: linear-gradient(135deg, #5b7fff, #a777e3); color: white; border: none;
    padding: 16px 32px; font-size: 16px; font-weight: 700; border-radius: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 6px 0 #3a4bbf, 0 15px 25px rgba(110, 142, 251, 0.3);
    transform: translateY(0); transition: transform 0.1s, box-shadow 0.1s;
}
.btn-3d:active { box-shadow: 0 2px 0 #3a4bbf, 0 5px 10px rgba(110, 142, 251, 0.3); transform: translateY(4px); }

.pulse-anim { animation: softPulse 2.5s infinite; }
@keyframes softPulse {
    0%, 100% { box-shadow: 0 6px 0 #3a4bbf, 0 0 0 0 rgba(110, 142, 251, 0.5); }
    70% { box-shadow: 0 6px 0 #3a4bbf, 0 0 0 15px rgba(110, 142, 251, 0); }
}

.btn-outline {
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.2);
    padding: 14px 28px; border-radius: 12px; text-decoration: none;
    font-weight: 600; transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline:hover { border-color: #6e8efb; color: #6e8efb; background: rgba(110, 142, 251, 0.05); }

/* ANIMACIÓN VISUAL 3D HERO */
.hero-visual { flex: 1; display: flex; justify-content: center; animation: slideInRight 1.5s ease forwards; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

.floating-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px; border-radius: 20px; backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); animation: float 5s ease-in-out infinite;
    transform-style: preserve-3d; perspective: 1000px; transform: rotateY(-15deg) rotateX(10deg);
}
.glow-effect { position: relative; }
.glow-effect::after {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #6e8efb, transparent, #a777e3, transparent);
    z-index: -1; border-radius: 22px; filter: blur(15px); opacity: 0.5; animation: pulseGlow 4s linear infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }

.floating-card i { font-size: 50px; color: #a777e3; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(167, 119, 227, 0.5));}
.skeleton-line { height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; margin-top: 15px; width: 100%; }
.skeleton-line.short { width: 60%; }

@keyframes float { 0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(10deg); } 50% { transform: translateY(-20px) rotateY(-10deg) rotateX(12deg); } }

/* PROYECTOS Y TESTIMONIOS (CARRUSEL COMPARTIDO) */
.projects-section, .testimonials-section { padding: 80px 5% 20px; text-align: center; position: relative; }
.projects-section h2, .testimonials-section h2 { font-size: 42px; margin-bottom: 5px; }
.section-sub { color: #a0a0b0; margin-bottom: 30px; font-size: 18px; }

.carousel-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative; 
    display: flex; 
    align-items: center; 
    overflow: visible; 
}

.carousel-slide {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    padding: 50px calc(50% - 175px);
    scroll-behavior: smooth;
    width: 100%;
}
.carousel-slide::-webkit-scrollbar { display: none; }

/* ESTILOS COMPARTIDOS DE TARJETAS (Ambos Carruseles) */
.testi-card, .project-card {
    flex: 0 0 350px; 
    scroll-snap-align: center;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px; overflow: hidden; text-align: left; transition: all 0.5s ease;
    display: flex; flex-direction: column; position: relative;
    opacity: 0.4;
    filter: blur(4px);
    transform: scale(0.9);
}

.testi-card.focused, .project-card.focused {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 243, 255, 0.15);
}

.testi-img, .project-image { height: 180px; overflow: hidden; background: #13131a; display: flex; align-items: center; justify-content: center;}
.testi-img img, .project-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.testi-card.focused:hover .testi-img img, .project-card.focused:hover .project-image img { transform: scale(1.05); }

/* Detalles específicos de Reseñas */
.testi-body { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.stars { color: #ffc107; font-size: 20px; margin-bottom: 15px; }
.quote { color: #a0a0b0; font-style: italic; font-size: 16px; margin-bottom: 25px; line-height: 1.6; flex-grow: 1; }
.client-profile h4 { font-size: 18px; color: #fff; margin-bottom: 5px; }
.client-profile span { font-size: 14px; color: #6e8efb; }
.testi-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 5px; color: #a777e3; text-decoration: none; font-size: 15px; font-weight: 600; transition: 0.3s; }
.testi-link:hover { color: #fff; text-shadow: 0 0 10px rgba(167, 119, 227, 0.5); }

/* Detalles específicos de Proyectos */
.project-info { padding: 30px; position: relative; z-index: 1; display: flex; flex-direction: column; flex-grow: 1; }
.project-info h3 { margin-bottom: 10px; font-size: 24px; color: #fff;}
.project-info p { color: #a0a0b0; font-size: 16px; margin-bottom: 30px; flex-grow: 1; line-height: 1.5; }
.card-btn { text-align: center; width: 100%; margin-top: auto; }

/* Botones del Carrusel */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(11, 11, 15, 0.9); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 50px; height: 50px; border-radius: 50%;
    font-size: 30px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; z-index: 10;
}
.carousel-btn:hover { border-color: #00f3ff; color: #00f3ff; box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
.prev-btn { left: -30px; }
.next-btn { right: -30px; }

/* SECCIÓN DE PROCESO */
.process-section { padding: 80px 5%; text-align: center; }
.process-section h2 { font-size: 38px; margin-bottom: 60px; }

.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; max-width: 800px; margin: 0 auto 60px; text-align: left; }
.process-step {
    display: flex; align-items: center; gap: 20px; background: rgba(255,255,255,0.02);
    padding: 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s ease; position: relative; overflow: hidden;
}
.hover-glow:hover { background: rgba(255,255,255,0.05); transform: translateY(-5px); border-color: rgba(91, 127, 255, 0.3); box-shadow: 0 10px 25px rgba(91, 127, 255, 0.1); }

.step-number {
    background: #5b7fff; color: white; width: 45px; height: 45px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: 700; flex-shrink: 0; box-shadow: 0 0 15px rgba(91, 127, 255, 0.4);
}
.step-text { font-size: 18px; font-weight: 500; }
.highlight-step { color: #00e676; font-weight: 700; text-shadow: 0 0 10px rgba(0, 230, 118, 0.3); }

.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 40px; }

/* Botón WhatsApp Gigante */
.btn-whatsapp {
    background-color: #cddc39; color: #000; border: none; padding: 18px 40px; font-size: 18px;
    font-weight: 800; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(205, 220, 57, 0.2);
}
.btn-whatsapp i { font-size: 24px; }
.btn-whatsapp:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 10px 25px rgba(205, 220, 57, 0.4); }

.email-link { color: #a0a0b0; text-decoration: underline; font-size: 15px; transition: 0.3s; }
.email-link:hover { color: #fff; }

/* ANIMACIONES Y MODAL */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; overflow-y: auto; padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: #13131a; padding: 40px; border-radius: 20px; width: 100%; max-width: 550px; position: relative;
    transform: translateY(50px) scale(0.95); transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }

.close-modal { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: #fff; font-size: 32px; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: #6e8efb; transform: rotate(90deg); }
.modal-content h2 { margin-bottom: 10px; font-size: 24px; }
.modal-content p { color: #a0a0b0; margin-bottom: 25px; font-size: 14px; }

.input-row { display: flex; gap: 15px; }
.input-row .input-group { flex: 1; }
.input-group { margin-bottom: 18px; text-align: left; transition: 0.3s; }
.input-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #ccc;}
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px; background: #0b0b0f; border: 1px solid #333; border-radius: 8px; color: #fff; font-size: 14px; outline: none; transition: 0.3s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: #6e8efb; box-shadow: 0 0 10px rgba(110, 142, 251, 0.1); }
.hidden { display: none; opacity: 0; }
.show-dynamic { display: block; animation: smoothReveal 0.4s ease forwards; }
@keyframes smoothReveal { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.submit-btn { width: 100%; justify-content: center; margin-top: 10px; }

footer { text-align: center; padding: 40px 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.signature { color: #555; font-size: 15px; font-weight: 500; letter-spacing: 1px; }

/* RESPONSIVE MÓVIL */
@media (max-width: 900px) {
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 5%; } /* Navbar fino en móvil también */
    .logo { font-size: 24px; margin-bottom: 5px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 14px; } 

    .hero { 
        min-height: auto; 
        flex-direction: column; 
        text-align: center; 
        padding-top: 120px; 
        padding-bottom: 20px; 
    }
    .hero-content { animation: slideInUp 1s ease forwards; }
    .hero h1 { font-size: 38px; }
    .hero-visual { display: none; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
    .btn-3d, .btn-outline { width: 100%; justify-content: center; }

    /* Ajustes compartidos Carruseles Móviles */
    .projects-section, .testimonials-section { padding-top: 40px; padding-bottom: 10px;}
    .carousel-container { 
        padding: 0; 
        overflow: hidden; 
    }
    .carousel-slide { 
        padding: 50px calc(50% - 130px); 
        gap: 15px;
    }
    .testi-card, .project-card { flex: 0 0 260px; } 
    
    .carousel-btn { 
        display: flex; 
        width: 35px; height: 35px; 
        font-size: 20px; 
        background: rgba(11, 11, 15, 0.8);
    } 
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
    
    .process-grid { grid-template-columns: 1fr; gap: 20px; text-align: left; }
    .step-text { font-size: 16px; }

    .contact-actions { width: 100%; padding: 0 10px;}
    .btn-whatsapp { width: 100%; font-size: 16px; justify-content: center; }
    
    .modal-content { padding: 30px 20px; border-radius: 15px; }
    .input-row { flex-direction: column; gap: 0; }
    .modal-content h2 { font-size: 20px; }
}

@keyframes slideInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
