:root {
  --blue: #1C4498;
  --blue-dark: #12275E;
  --navy: #0F1B3D;
  --yellow: #FEC901;
  --bg-alt: #F6F7FB;
  --text: #16213D;
  --text-muted: #5B6478;
  --border: #EDEFF5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Poppins', sans-serif; margin: 0; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 140px 40px; }
.section--sm { padding: 110px 40px; }
.center { text-align: center; }
.eyebrow { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; }

/* Buttons */
.btn { display: inline-block; font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600; padding: 17px 32px; border-radius: 4px; border: none; cursor: pointer; transition: transform .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--text); }
.btn-yellow:hover { color: var(--text); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { color: #fff; }
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(28,68,152,0.08); transition: background .3s ease; }
.site-header .container { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.badge { height: 48px; width: 48px; object-fit: contain; }
.brand img.wordmark { height: 20px; object-fit: contain; }
.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-desktop a:not(.btn) { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--blue); display: block; }
.nav-mobile { display: none; background: #fff; border-top: 1px solid rgba(28,68,152,0.08); padding: 24px 40px; flex-direction: column; gap: 20px; }
.nav-mobile.open { display: flex; }
.nav-mobile a:not(.btn) { font-size: 16px; color: var(--text); }
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}

/* WhatsApp float */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 1000; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.4); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .dots { display: flex; gap: 4px; }
.wa-float .dots span { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: block; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background-size: cover; background-position: center; background-attachment: fixed; }
.hero--page { min-height: auto; padding-top: 180px; padding-bottom: 100px; background-attachment: scroll; }
.hero .container { padding-top: 180px; padding-bottom: 120px; width: 100%; }
.hero-inner { max-width: 680px; animation: heroFade 1s ease both; }
.hero--page .hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.12; color: #fff; margin: 18px 0 22px; }
.hero--page h1 { font-size: 44px; line-height: 1.25; }
.hero .eyebrow { color: var(--yellow); display: block; margin-bottom: 24px; }
.hero p.lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0 0 44px; max-width: 560px; }
.hero--page p.lead { margin: 0 auto 40px; }
.hero .quote { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 600; color: var(--yellow); margin: 0 0 20px; font-style: italic; }
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }
.hero--page .hero-ctas { justify-content: center; }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Services grid (home) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 32px; }
.service-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 2px 18px rgba(16,32,80,0.05); transition: box-shadow .3s ease, transform .3s ease; }
.service-card:hover { box-shadow: 0 20px 40px rgba(16,32,80,0.12); transform: translateY(-6px); }
.service-card .thumb { height: 180px; background-size: cover; background-position: center; }
.service-card .body { padding: 32px 28px; }
.service-card .num { font-family: 'Poppins', sans-serif; font-size: 28px; font-weight: 700; color: var(--yellow); display: block; margin-bottom: 14px; }
.service-card h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.service-card p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); margin: 0 0 20px; }
.service-card .cta { font-family: 'Montserrat', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--blue); }

/* Clients marquee */
.marquee-wrap { overflow: hidden; width: 100%; }
.marquee-track { display: flex; width: fit-content; animation: marquee 34s linear infinite; gap: 64px; align-items: center; padding-left: 64px; }
.marquee-track img { height: 52px; max-width: 150px; object-fit: contain; filter: grayscale(1) opacity(0.65); transition: filter .3s ease; }
.marquee-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 32px; }
.testimonial { background: var(--bg-alt); border-radius: 8px; padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
.testimonial .stars { color: var(--yellow); font-size: 16px; letter-spacing: 3px; }
.testimonial .quote { font-size: 15px; line-height: 1.8; color: #3A4257; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px solid rgba(28,68,152,0.08); }
.testimonial .who img { height: 34px; max-width: 90px; object-fit: contain; }
.testimonial .name { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; }
.testimonial .role { font-size: 12.5px; color: var(--text-muted); }

/* Nosotros */
.nosotros { background: var(--navy); }
.nosotros .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nosotros h2 { font-size: 34px; color: #fff; margin: 16px 0 24px; line-height: 1.3; }
.nosotros p.lead { font-size: 15.5px; line-height: 1.85; color: rgba(255,255,255,0.75); margin: 0 0 36px; }
.reason { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.reason .check { width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text); }
.reason span.text { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.card-dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 28px; margin-bottom: 20px; }
.card-dark .eyebrow { color: var(--yellow); margin-bottom: 10px; display: block; }
.card-dark p { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; color: #fff; line-height: 1.5; }
.values { display: flex; gap: 10px; flex-wrap: wrap; }
.values span { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--yellow); padding: 10px 18px; border-radius: 20px; }

/* Stats */
.stats { padding: 120px 40px; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.stats h2 { color: #fff; font-size: 32px; }
.stats .eyebrow { color: var(--yellow); }
.stats-grid { max-width: 1180px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 40px; text-align: center; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 44px; font-weight: 700; color: var(--yellow); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 8px; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 28px; }
.benefit-card { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 16px rgba(16,32,80,0.05); }
.benefit-card p { font-size: 14.5px; line-height: 1.7; color: #3A4257; }

/* Sub-services */
.subservices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.subservice-card { border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.subservice-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.subservice-card p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

/* Process */
.process-section { background: var(--navy); }
.process-section h2 { color: #fff; font-size: 30px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; }
.process-step .n { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 700; color: var(--yellow); }
.process-step h3 { font-size: 17px; font-weight: 600; color: #fff; margin: 14px 0 10px; }
.process-step p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.7); }

/* CTA band */
.cta-band { padding: 90px 40px; background: var(--yellow); text-align: center; }
.cta-band .inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: 30px; margin: 0 0 18px; }
.cta-band p { font-size: 15.5px; color: #3A4257; margin: 0 0 32px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form input, .contact-form textarea { padding: 14px 16px; border: 1px solid #DDE1EC; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form .col-2 { grid-column: span 2; }
.form-success { background: #F0F7EE; border: 1px solid #cfe8c8; border-radius: 8px; padding: 24px; font-size: 14.5px; color: #2b6b1f; }
.contact-map iframe { width: 100%; height: 280px; border: 0; border-radius: 8px; }
.contact-info { background: var(--bg-alt); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.contact-info .label { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--blue); }
.contact-info .value { font-size: 14.5px; color: #3A4257; margin-top: 4px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
.faq-item button { width: 100%; text-align: left; padding: 22px 26px; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item .q { font-family: 'Poppins', sans-serif; font-size: 15.5px; font-weight: 600; }
.faq-item .sym { font-size: 18px; color: var(--blue); flex-shrink: 0; }
.faq-item .a { font-size: 14.5px; line-height: 1.75; color: var(--text-muted); margin: 0; padding: 0 26px 24px; display: none; }
.faq-item.open .a { display: block; }

/* Footer */
.site-footer { background: var(--navy); padding: 72px 40px 32px; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid img.wordmark { height: 26px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-grid p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-col .eyebrow { color: var(--yellow); margin-bottom: 18px; display: block; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--yellow); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45); }

@media (max-width: 900px) {
  .stack-grid, .contact-grid, .nosotros .grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  .section { padding: 90px 24px; }
  .section--sm { padding: 70px 24px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .col-2 { grid-column: span 1; }
}
