@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

:root {
  --blue:        #1B4FD8;
  --blue-dark:   #1340B0;
  --blue-deeper: #0D2D7A;
  --blue-light:  #EEF3FF;
  --gold:        #F5A623;
  --gold-dark:   #D48F18;
  --dark:        #0F1B2D;
  --dark2:       #162235;
  --gray:        #F4F6FA;
  --gray2:       #E2E8F0;
  --text:        #0F1B2D;
  --text-muted:  #64748B;
  --white:       #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

.topbar { background: var(--blue-deeper); color: rgba(255,255,255,0.75); font-size: 12.5px; padding: 7px 0; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-left span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-follow { white-space: nowrap; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color .2s; }
.topbar-social a:hover { color: var(--gold); }

nav { background: var(--white); border-bottom: 1px solid var(--gray2); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(27,79,216,0.08); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--blue-deeper); letter-spacing: 1.5px; }
.logo-text span { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 14px; font-weight: 600; transition: color .2s; position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--blue); border-radius: 2px; transition: width .25s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--blue); }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); font-size: 15px; }
.btn-nav { background: var(--blue); color: white; border: none; border-radius: 6px; padding: 10px 22px; font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s; display: inline-block; white-space: nowrap; }
.btn-nav:hover { background: var(--blue-dark); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; position: fixed; top: 74px; left: 0; right: 0; background: var(--white); border-top: 3px solid var(--blue); padding: 20px 24px; z-index: 99; box-shadow: 0 8px 32px rgba(0,0,0,0.12); flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text); font-size: 16px; font-weight: 600; padding: 13px 0; border-bottom: 1px solid var(--gray2); display: flex; align-items: center; justify-content: space-between; transition: color .2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu a::after { content: '→'; opacity: .4; }
.mobile-cta { background: var(--blue); color: white !important; border-radius: 6px; padding: 13px 24px !important; margin-top: 10px; text-align: center; border-bottom: none !important; justify-content: center !important; }
.mobile-cta::after { display: none !important; }

.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(13,45,122,0.95) 40%, rgba(27,79,216,0.3) 100%), url('/assets/images/hero.webp') center/cover no-repeat; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 32px 32px; }
.hero-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 60px 24px 160px; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px; }
.hero-tag::before, .hero-tag::after { content: ''; display: block; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { font-family: 'Oswald', sans-serif; font-size: clamp(38px, 6vw, 84px); font-weight: 700; color: white; line-height: 1.05; text-transform: uppercase; max-width: 720px; margin-bottom: 24px; }
.hero h1 span { color: var(--gold); }
.hero-desc { color: rgba(255,255,255,0.72); font-size: 17px; max-width: 480px; line-height: 1.7; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { background: var(--blue); color: white; text-decoration: none; border-radius: 6px; padding: 15px 32px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, transform .1s; border: 2px solid var(--blue); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--dark); text-decoration: none; border-radius: 6px; padding: 15px 32px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, transform .1s; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-outline-w { border: 2px solid rgba(255,255,255,0.4); color: white; text-decoration: none; border-radius: 6px; padding: 13px 28px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, background .2s; }
.btn-outline-w:hover { border-color: white; background: rgba(255,255,255,0.08); }
.hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: var(--blue); padding: 22px 0; }
.hero-stats-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 700; color: white; line-height: 1; }
.stat-label { color: rgba(255,255,255,0.8); font-size: 11px; margin-top: 4px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

section { padding: 96px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Oswald', sans-serif; font-size: clamp(34px, 4vw, 52px); font-weight: 700; color: var(--dark); line-height: 1.1; margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 580px; }

#servicios { background: var(--gray); }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header .section-sub { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--gray2); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(27,79,216,0.12); }
.service-img { height: 210px; position: relative; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dde4f0, #c5cfe0); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.service-img-placeholder span { font-size: 12px; color: #8899aa; letter-spacing: 1px; }
.service-icon-badge { position: absolute; bottom: 14px; left: 20px; width: 46px; height: 46px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(27,79,216,0.45); z-index: 2; }
.service-body { padding: 22px 22px 26px; }
.service-body h3 { font-family: 'Oswald', sans-serif; font-size: 21px; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.service-body p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

#nosotros { background: var(--white); padding: 0; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.about-img { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 500px; background: var(--gray2); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-placeholder { width: 100%; min-height: 500px; background: linear-gradient(160deg, #c5cfe0, #a0b0cc); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
.about-content { background: var(--blue); padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.about-content .section-label { color: rgba(255,255,255,0.6); }
.about-content .section-title { color: white; font-size: clamp(30px, 3.5vw, 46px); margin-bottom: 20px; }
.about-content p { color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.about-content p strong { color: white; font-weight: 700; }
.about-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 36px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: white; font-weight: 600; }
.check-icon { width: 20px; height: 20px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

#proyectos { background: var(--gray); }
.gallery-header { text-align: center; margin-bottom: 52px; }
.gallery-header .section-sub { margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery-item { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16/10; background: var(--gray2); cursor: pointer; transition: transform .2s; }
.gallery-item:hover { transform: scale(1.01); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dde4f0, #c5cfe0); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; }
.gallery-placeholder span { font-size: 12px; color: #8899aa; letter-spacing: 1px; }
.gallery-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 20px 16px; background: linear-gradient(0deg, rgba(13,45,122,0.92) 0%, transparent 100%); color: white; font-weight: 700; font-size: 15px; }

.cta-band { position: relative; min-height: 360px; display: flex; align-items: center; overflow: hidden; }
.cta-band-bg { position: absolute; inset: 0; background: linear-gradient(rgba(13,45,122,0.85), rgba(13,45,122,0.85)), url('https://images.pexels.com/photos/2219024/pexels-photo-2219024.jpeg?auto=compress&cs=tinysrgb&w=1400') center/cover no-repeat; }
.cta-band-content { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; text-align: center; }
.cta-band-content .section-label { color: var(--gold); margin-bottom: 16px; }
.cta-band-content h2 { font-family: 'Oswald', sans-serif; font-size: clamp(32px, 4.5vw, 58px); font-weight: 700; color: white; line-height: 1.1; margin-bottom: 32px; }
.cta-phone { display: flex; align-items: center; justify-content: center; gap: 12px; color: white; font-size: 26px; font-weight: 700; margin-bottom: 32px; }

#contacto { background: var(--dark2); }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info .section-label { color: var(--gold); }
.contact-info .section-title { color: white; margin-bottom: 20px; }
.contact-info p { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 16px; }
.contact-detail-icon { width: 44px; height: 44px; background: rgba(27,79,216,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-icon svg { stroke: #6B9BF5; }
.form-card { background: var(--white); border-radius: 14px; padding: 38px; }
.form-card h3 { font-family: 'Oswald', sans-serif; font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: flex; align-items: center; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .8px; text-transform: uppercase; }
.form-group label span { color: var(--blue); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--gray2); border-radius: 8px; padding: 11px 14px; font-family: 'Nunito Sans', sans-serif; font-size: 14px; color: var(--text); background: var(--gray); outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); background: white; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-whatsapp { width: 100%; background: #25D366; color: white; border: none; border-radius: 8px; padding: 15px 32px; font-family: 'Nunito Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, transform .1s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; }
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-1px); }
.form-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.footer-main { background: var(--dark); padding: 64px 24px 44px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 18px; }
.footer-logo-text { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: white; letter-spacing: 1.5px; }
.footer-logo-text span { color: var(--gold); }
.footer-desc { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.75; margin-bottom: 26px; max-width: 300px; }
.footer-social-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 10px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; transition: all .2s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: white; }
.footer-col h4 { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 600; color: white; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 14px; display: flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-links a::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .5; flex-shrink: 0; transition: opacity .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links a:hover::before { opacity: 1; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(27,79,216,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.footer-contact-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 2px; }
.footer-contact-value { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.footer-contact-value a { color: rgba(255,255,255,0.72); text-decoration: none; }
.footer-contact-value a:hover { color: var(--gold); }
.footer-bottom { background: var(--dark); padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 12.5px; }
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.divider { height: 4px; background: linear-gradient(90deg, var(--blue-deeper), var(--blue), var(--gold)); }

.whatsapp-float { position: fixed; bottom: 28px; right: 24px; z-index: 999; }
.whatsapp-btn { width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.45); text-decoration: none; transition: transform .2s; animation: pulse-wa 2.5s ease-in-out infinite; }
.whatsapp-btn:hover { transform: scale(1.1); }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); } 50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } .about-split { grid-template-columns: 1fr; } .about-content { padding: 48px 32px; } .contact-split { grid-template-columns: 1fr; gap: 40px; } .hero-stats-inner { grid-template-columns: repeat(2, 1fr); } .nav-links { display: none; } .nav-phone { display: none; } nav .btn-nav { display: none; } .hamburger { display: flex; } }
@media (max-width: 600px) { .topbar-inner { flex-direction: column; align-items: center; gap: 6px; text-align: center; } .topbar-left { justify-content: center; gap: 14px; } .topbar-right { justify-content: center; } .hero-content { text-align: center; padding: 48px 16px 160px; overflow: hidden; } .hero-tag { justify-content: center; } .hero h1 { font-size: clamp(34px, 10vw, 52px); max-width: 100%; } .hero-desc { max-width: 100%; font-size: 15px; } .hero-actions { flex-direction: column; align-items: center; } .btn-primary, .btn-gold, .btn-outline-w { width: 100%; justify-content: center; } .services-grid { grid-template-columns: 1fr; } .gallery-grid { grid-template-columns: 1fr; } .hero-stats-inner { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: 1fr; margin-bottom: 0; } .about-checks { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 36px; } .whatsapp-float { bottom: 18px; right: 14px; } .whatsapp-btn { width: 50px; height: 50px; } }
