*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{font-family:Montserrat,sans-serif;background:#0f1115;color:#fff;line-height:1.5}
img{max-width:100%;display:block}
a{color:#ffd400}
a:hover{color:#fff}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp{display:none}

/* NAVBAR */
.navbar{position:fixed;top:0;left:0;width:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 5%;background:rgba(0,0,0,.55);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:1000;transition:padding .3s,background .3s,box-shadow .3s}
.navbar.scrolled{padding:6px 5%;background:rgba(10,11,14,.95);box-shadow:0 4px 20px rgba(0,0,0,.5)}
.logo{height:70px;width:auto;transition:height .3s}
.navbar.scrolled .logo{height:52px}
.navbar ul{display:flex;gap:8px;list-style:none;margin-left:auto}
.navbar ul a{position:relative;display:block;padding:8px 14px;text-decoration:none;color:#fff;font-weight:600;font-size:.95rem;transition:color .2s}
.navbar ul a::after{content:"";position:absolute;left:14px;right:14px;bottom:2px;height:2px;background:#ffd400;transform:scaleX(0);transition:transform .25s}
.navbar ul a:hover,.navbar ul a.activo{color:#ffd400}
.navbar ul a:hover::after,.navbar ul a.activo::after{transform:scaleX(1)}
.menu-toggle{display:none;width:auto;background:none;border:0;color:#fff;font-size:26px;padding:8px;cursor:pointer}
.menu-toggle:hover{background:none;color:#ffd400}
.btn-nav,.btn-main{display:inline-block;background:#ffd400;color:#000;padding:12px 24px;border-radius:8px;font-weight:700;text-decoration:none;transition:.2s}
.btn-nav:hover,.btn-main:hover{background:#fff;color:#000}

/* HERO */
.hero{min-height:100vh;padding:120px 20px 60px;background:linear-gradient(rgba(0,0,0,.65),rgba(0,0,0,.65)),url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop') center/cover;display:flex;align-items:center;justify-content:center;text-align:center}
.hero-content{max-width:900px}
.hero h1{font-size:clamp(2rem,6vw,4rem);line-height:1.15;color:#ffd400;margin-bottom:20px;text-wrap:balance}
.hero p{margin-bottom:40px;line-height:1.6;font-size:1.1rem}

/* PROBLEMAS */
.problemas{padding:70px 24px;background:#101114;text-align:center}
.problemas-container{max-width:1100px;margin:0 auto}
.problemas-etiqueta{color:#ffd400;font-size:14px;font-weight:700;letter-spacing:2px;margin-bottom:12px}
.problemas h2{font-size:clamp(28px,4vw,42px);line-height:1.2;margin:0 0 20px}
.problemas-intro{max-width:700px;margin:0 auto 40px;color:#c8c8cc;line-height:1.7}
.problemas-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.problema-card{background:#191a1f;border:1px solid #303137;border-radius:14px;padding:28px;text-align:left}
.problema-icono{font-size:28px;color:#ffd400;margin-bottom:14px}
.problema-card h3{font-size:20px;line-height:1.35;margin:0 0 12px}
.problema-card p{color:#c8c8cc;line-height:1.6}

/* SERVICIOS */
.services,.contact{padding:80px 8%}
.services h2,.contact h2,.clientes h2,.proyectos h2{text-align:center;margin-bottom:20px;font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2}
.services-subtitle{text-align:center;color:#ccc;margin-bottom:50px;font-size:1.1rem}
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:30px;max-width:1200px;margin:0 auto}
.service-card{background:#161a22;border-radius:15px;overflow:hidden;transition:.3s}
.service-card:hover{transform:translateY(-8px);box-shadow:0 10px 30px rgba(255,212,0,.2)}
.service-card img{width:100%;height:200px;object-fit:cover}
.service-content{padding:20px}
.service-content h3{margin-bottom:10px}
.service-content p{color:#c8c8cc;line-height:1.6}

/* STATS */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;padding:70px 8%;text-align:center;background:#101114}
.counter{font-size:clamp(3rem,7vw,4rem);color:#ffd400;font-weight:800}

/* CLIENTES */
.clientes{padding:80px 8%}
.clientes-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px;margin-top:40px}
.cliente-card{background:#1a1f28;border:1px solid transparent;border-radius:15px;padding:30px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:180px;transition:.3s}
.cliente-card:hover{transform:translateY(-5px);border-color:#ffd400}
.cliente-card img{max-width:180px;max-height:100px;object-fit:contain}
.cliente-card h3{margin-top:15px;font-size:1rem;font-weight:600;text-align:center}

/* COMENTARIOS */
.comentarios{padding:80px 8%;background:#101114;text-align:center}
.comentarios h2{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;margin-bottom:40px}
.comentarios-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;max-width:1200px;margin:0 auto}
.comentario-card{background:#191a1f;border:1px solid #303137;border-radius:14px;padding:28px;text-align:left;display:flex;flex-direction:column;gap:16px;transition:.3s}
.comentario-card:hover{border-color:#ffd400;transform:translateY(-4px)}
.estrellas{color:#ffd400;display:flex;gap:3px;font-size:15px}
.comentario-card blockquote{color:#c8c8cc;line-height:1.65;flex:1;text-wrap:pretty}
.comentario-card figcaption{display:flex;align-items:center;gap:12px;padding-top:16px;border-top:1px solid #303137}
.comentario-card figcaption>span:last-child{display:flex;flex-direction:column;font-size:.85rem;color:#9a9aa2}
.comentario-card strong{color:#fff;font-size:1rem}
.avatar{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:#ffd400;color:#000;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:.9rem}
@media (max-width:768px){.comentarios{padding:50px 20px}.comentarios-grid{grid-template-columns:minmax(0,1fr)}}

/* TRABAJOS */
.proyectos{padding:70px 20px;background:#111;text-align:center}
.proyectos h2{color:#ffd400;margin-bottom:30px}
.galeria-grid{display:flex;overflow-x:auto;gap:15px;padding-bottom:10px;scroll-snap-type:x mandatory;justify-content:safe center}
.galeria-grid img{width:240px;height:240px;object-fit:cover;flex-shrink:0;border-radius:10px;scroll-snap-align:start}

/* CONTACTO */
.contact form{max-width:700px;margin:auto}
input,select,textarea{width:100%;padding:14px;margin-bottom:12px;border-radius:8px;border:1px solid #333;background:#161a22;color:#fff;font:inherit}
input:focus,select:focus,textarea:focus{outline:2px solid #ffd400;border-color:#ffd400}
textarea{resize:vertical}
button{width:100%;padding:14px;background:#ffd400;border:none;border-radius:8px;font:inherit;font-weight:700;cursor:pointer;transition:.2s}
button:hover{background:#fff}

/* MODAL COTIZAR */
.modal{width:min(560px,92vw);max-height:90vh;overflow-y:auto;margin:auto;padding:36px 32px 28px;background:#0f1115;color:#fff;border:1px solid #303137;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.modal::backdrop{background:rgba(0,0,0,.75);backdrop-filter:blur(3px)}
.modal[open]{animation:modal-in .25s ease}
@keyframes modal-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.modal h2{color:#ffd400;font-size:1.6rem;margin-bottom:6px}
.modal-sub{color:#c8c8cc;margin-bottom:22px}
.modal-cerrar{position:absolute;top:12px;right:12px;width:40px;height:40px;padding:0;background:none;color:#c8c8cc;font-size:22px;border-radius:50%}
.modal-cerrar:hover{background:#1a1f28;color:#ffd400}
body.modal-abierto{overflow:hidden}

/* WHATSAPP */
.whatsapp{position:fixed;right:25px;bottom:25px;width:64px;height:64px;border-radius:50%;background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;text-decoration:none;box-shadow:0 6px 20px rgba(0,0,0,.4);z-index:999}
.whatsapp:hover{color:#fff;transform:scale(1.06)}
.wsp-badge{position:absolute;top:-2px;right:-2px;width:22px;height:22px;border-radius:50%;background:#e53935;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #0f1115}
.whatsapp.visto .wsp-badge{display:none}
.whatsapp:not(.visto){animation:wsp-pulso 2.4s infinite}
@keyframes wsp-pulso{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}
.wsp-burbuja{position:fixed;right:25px;bottom:100px;max-width:260px;padding:14px 34px 14px 16px;background:#fff;color:#111;border-radius:14px 14px 4px 14px;box-shadow:0 10px 30px rgba(0,0,0,.4);z-index:999;display:flex;flex-direction:column;gap:4px;font-size:.9rem;line-height:1.4;cursor:pointer;animation:modal-in .3s ease}
.wsp-burbuja[hidden]{display:none}
.wsp-burbuja strong{font-size:.95rem}
.wsp-burbuja-cerrar{position:absolute;top:6px;right:6px;width:24px;height:24px;padding:0;background:none;color:#666;font-size:18px;line-height:1;border-radius:50%}
.wsp-burbuja-cerrar:hover{background:#eee;color:#111}
.wsp-panel{position:fixed;right:25px;bottom:100px;width:min(340px,calc(100vw - 30px));background:#fff;color:#111;border-radius:16px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.5);z-index:1001;animation:modal-in .25s ease}
.wsp-panel[hidden]{display:none}
.wsp-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#075E54;color:#fff}
.wsp-head>i{font-size:30px}
.wsp-head div{display:flex;flex-direction:column;flex:1;line-height:1.3}
.wsp-head span{font-size:.8rem;opacity:.85}
.wsp-panel-cerrar{width:34px;height:34px;padding:0;background:none;color:#fff;font-size:18px;border-radius:50%}
.wsp-panel-cerrar:hover{background:rgba(255,255,255,.15)}
.wsp-form{padding:16px;background:#ECE5DD}
.wsp-saludo{background:#fff;padding:10px 12px;border-radius:0 10px 10px 10px;margin-bottom:14px;font-size:.9rem;line-height:1.45;box-shadow:0 1px 2px rgba(0,0,0,.1)}
.wsp-form input,.wsp-form select{background:#fff;color:#111;border:1px solid #ccc;padding:11px 12px;margin-bottom:10px}
.wsp-form input:focus,.wsp-form select:focus{outline:2px solid #25D366;border-color:#25D366}
.wsp-form button{display:flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff}
.wsp-form button:hover{background:#1ebe5b}
@media (max-width:480px){.wsp-panel,.wsp-burbuja{right:15px}.whatsapp{right:15px;bottom:15px}.wsp-panel,.wsp-burbuja{bottom:90px}}

/* FOOTER */
footer{text-align:center;padding:50px 20px 100px;background:#000}
.footer-logo{height:100px;width:auto;margin:0 auto 15px}
.footer-datos{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:10px;color:#c8c8cc}
.footer-datos a{color:#c8c8cc;text-decoration:none}
.footer-datos a:hover{color:#ffd400}
.footer-mapa{max-width:900px;margin:30px auto 0;border-radius:14px;overflow:hidden;border:1px solid #303137;aspect-ratio:16/7}
.footer-mapa iframe{display:block;width:100%;height:100%;border:0;filter:grayscale(.3) contrast(1.05)}
.footer-como-llegar{display:inline-flex;align-items:center;gap:8px;margin-top:16px;font-weight:600;text-decoration:none}
@media (max-width:768px){.footer-mapa{aspect-ratio:4/3}}

/* RESPONSIVE */
@media (max-width:900px){
  .clientes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  .logo{height:56px}
  .navbar.scrolled .logo{height:48px}
  .menu-toggle{display:block;order:3}
  .btn-nav{margin-left:auto;padding:10px 16px;font-size:.9rem}
  .navbar ul{position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;margin:0;background:rgba(10,11,14,.97);max-height:0;overflow:hidden;transition:max-height .35s ease}
  .navbar ul.open{max-height:400px}
  .navbar ul a{padding:16px 5%;border-top:1px solid #222}
  .navbar ul a::after{display:none}
  .hero{min-height:80vh;padding:100px 20px 50px}
  .hero p{font-size:16px}
  .problemas,.services,.clientes,.contact{padding:50px 20px}
  .problemas-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .problema-card{padding:22px}
  .services-grid{grid-template-columns:minmax(0,1fr)}
  .service-card img{height:220px}
}
@media (max-width:480px){
  .clientes-grid{grid-template-columns:minmax(0,1fr)}
}
