:root {
    --bg-dark: #0B0F19;
    --card-bg: #111827;
    --card-bg-light: #1F2937;
    --neon-green: #10B981;
    --neon-cyan: #06B6D4;
    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.4);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade { animation: fadeIn 1s ease-in forwards; }

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo .dot { color: var(--neon-green); }

nav a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.nav-phone {
    color: var(--neon-green);
    font-weight: 600;
}

nav a:hover { color: var(--neon-cyan); }

.nav-btn {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 8px 16px;
    border-radius: 20px;
    margin-left: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.btn-nav-contact {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.btn-nav-contact:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: var(--glow-green);
}

/* HERO SECTION */
.hero {
    padding: 160px 8% 80px;
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-neon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.glow-text {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFF, #94A3B8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.image-frame-neon {
    position: relative;
    border-radius: 16px;
    padding: 4px;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    box-shadow: var(--glow-green), var(--glow-cyan);
    transition: transform 0.4s ease;
    width: 100%;
}

.image-frame-neon:hover { transform: translateY(-5px); }

.hero-img {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* BOTONES GENERALES */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-neon { background: var(--neon-green); color: var(--bg-dark); }
.btn-neon:hover { box-shadow: var(--glow-green); transform: translateY(-2px); }

.btn-outline-cyan { background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
.btn-outline-cyan:hover { background: rgba(6, 182, 212, 0.1); box-shadow: var(--glow-cyan); }

.btn-full { width: 100%; }

.pulse { animation: pulseAnim 2s infinite; }

@keyframes pulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.social-proof-bar { font-size: 0.9rem; color: var(--text-muted); }

/* MÉTRICAS */
.hero-stats-wrapper {
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item { text-align: center; }
.glow-cyan { color: var(--neon-cyan); font-size: 2rem; font-weight: bold; }

/* SECCIÓN DE SERVICIOS */
.container { padding: 80px 8%; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto;}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #ffffff;
    color: #1e293b;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.3);
}

.card .icon { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    background: #f1f5f9;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #0f172a; font-weight: bold; }
.card p { color: #64748b; font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1;}

.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-add {
    background: #0284c7;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    flex-grow: 1;
    transition: all 0.3s;
}

.btn-add.selected {
    background: #10b981;
    color: white;
}

.btn-details {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-details:hover { background: #e2e8f0; }

/* BARRA FLOTANTE DEL CARRITO */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.95);
    border-top: 2px solid var(--neon-green);
    backdrop-filter: blur(10px);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.cart-bar.hidden { transform: translateY(100%); }

.cart-info {
    display: flex;
    gap: 25px;
    font-size: 1rem;
}

.total-text {
    color: var(--neon-cyan);
    font-size: 1.2rem;
}

/* RESUMEN EN EL MODAL */
.resumen-cotizacion {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.resumen-cotizacion ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 150px;
    overflow-y: auto;
}

.resumen-cotizacion li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.total-resumen {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neon-green);
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--card-bg);
    max-width: 600px;
    margin: 5vh auto;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalScale 0.3s ease-out forwards;
}

.modal-large { max-width: 800px; }

.modal-img-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
    z-index: 10;
}
.close-btn:hover { color: var(--text-light); }

/* ESTILOS DE LA INFORMACIÓN DETALLADA DENTRO DEL MODAL DE SERVICIOS */
.service-visual-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.visual-icon { font-size: 3.5rem; margin-bottom: 10px; display: block; }
.visual-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.visual-price { font-size: 1.3rem; color: var(--neon-cyan); font-weight: 700; }

.visual-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.visual-block {
    background: var(--card-bg-light);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.visual-block h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.visual-block p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

.process-list { list-style: none; }
.process-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.process-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: bold;
}

.discount-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed var(--neon-green);
    grid-column: 1 / -1;
    text-align: center;
}
.discount-text { font-size: 1rem; font-weight: 700; color: var(--neon-green); margin-bottom: 4px; }

/* FORMULARIOS */
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 8px; color: var(--text-light); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.08);
    color: white;
    border-radius: 8px;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 30px;}
    .hero-buttons { justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .cart-bar { flex-direction: column; gap: 15px; text-align: center; }
    .visual-info-grid { grid-template-columns: 1fr; }
    .cards-grid-modal { grid-template-columns: 1fr !important; }
}