:root {
  --blue: #084b82;
  --blue-dark: #05345d;
  --red: #ed3727;
  --yellow: #ffc32b;
  --text: #172033;
  --muted: #647083;
  --bg: #ffffff;
  --soft: #f5f8fb;
  --border: #e6edf4;
  --shadow: 0 20px 50px rgba(8, 75, 130, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.navbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 210px; height: 62px; object-fit: contain; }
.nav-links { display: flex; gap: 28px; list-style: none; font-weight: 600; color: var(--blue); }
.nav-links a:hover { color: var(--red); }
.menu-toggle { display: none; border: 0; background: var(--blue); color: white; border-radius: 10px; padding: 8px 12px; font-size: 22px; }
.hero { padding: 90px 0; background: radial-gradient(circle at top left, rgba(255,195,43,.32), transparent 34%), linear-gradient(135deg, #fff 0%, #eef6ff 100%); overflow: hidden; }
.hero-grid, .two-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow, .section-label { display: inline-block; color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 14px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -0.05em; color: var(--blue-dark); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.04em; color: var(--blue-dark); margin-bottom: 18px; }
h3 { color: var(--blue-dark); margin-bottom: 10px; }
p { color: var(--muted); font-size: 1.03rem; }
.hero p { max-width: 650px; font-size: 1.14rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 800; transition: .25s ease; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--red); color: white; box-shadow: 0 14px 26px rgba(237,55,39,.24); }
.btn.primary:hover { transform: translateY(-2px); background: #d72e20; }
.btn.secondary { border-color: var(--blue); color: var(--blue); background: white; }
.btn.secondary:hover { background: var(--blue); color: white; }
.hero-card { background: white; border-radius: 32px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.hero-card img { width: 100%; border-radius: 24px; display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stats div { background: var(--soft); border-radius: 18px; padding: 16px; text-align: center; }
.stats strong { display: block; color: var(--blue); }
.stats span { font-size: .85rem; color: var(--muted); }
.section { padding: 90px 0; }
.light, .mission-section { background: var(--soft); }
.mission-section { padding: 70px 0; }
.centered { text-align: center; max-width: 760px; }
.cards-grid { display: grid; gap: 22px; margin-top: 36px; }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.cards-grid.services { grid-template-columns: repeat(3, 1fr); }
.info-card, .service-card, .process-step { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: 0 14px 34px rgba(8,75,130,.08); }
.service-card { transition: .25s ease; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(237,55,39,.32); }
.benefit-list { list-style: none; display: grid; gap: 14px; }
.benefit-list li { background: var(--soft); border-left: 5px solid var(--yellow); padding: 16px 18px; border-radius: 16px; font-weight: 700; color: var(--blue-dark); }
.blue-section { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: white; }
.blue-section h2, .blue-section p { color: white; }
.yellow { color: var(--yellow); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.process-step span { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--yellow); color: var(--blue-dark); border-radius: 14px; font-weight: 900; margin-bottom: 16px; }
.cta { padding: 80px 0; background: linear-gradient(135deg, rgba(255,195,43,.26), rgba(237,55,39,.08)); }
.cta-box { background: white; border-radius: 34px; padding: 50px; box-shadow: var(--shadow); text-align: center; }
.cta-box p { margin-bottom: 26px; }
.contact-form { display: grid; gap: 14px; background: white; padding: 28px; border-radius: 26px; box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; font: inherit; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-note { margin-top: 22px; background: #fff7db; border-left: 5px solid var(--yellow); border-radius: 14px; padding: 16px; color: var(--blue-dark); }
.footer { padding: 32px 0; background: var(--blue-dark); color: white; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer img { width: 180px; height: 58px; object-fit: contain; background: white; border-radius: 14px; padding: 6px; }
.footer p { color: rgba(255,255,255,.82); }
.reveal { opacity: 0; transform: translateY(24px); transition: .75s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 82px; left: 0; right: 0; background: white; flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); display: none; }
  .nav-links.open { display: flex; }
  .hero-grid, .two-columns { grid-template-columns: 1fr; gap: 34px; }
  .cards-grid.services, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand img { width: 160px; }
  .hero, .section { padding: 60px 0; }
  .hero-actions, .footer-content { flex-direction: column; align-items: flex-start; }
  .stats, .cards-grid.services, .process-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 30px 20px; }
}

.hero-illustration { background: linear-gradient(135deg, #ffffff, #eef6ff); }
.with-visual { grid-template-columns: .9fr 1.1fr; }
.visual-card, .process-visual { background: white; border: 1px solid var(--border); border-radius: 30px; padding: 18px; box-shadow: var(--shadow); }
.visual-card img, .process-visual img { width: 100%; display: block; border-radius: 22px; }
.process-visual { max-width: 820px; margin-top: 34px; }
@media (max-width: 900px) { .with-visual { grid-template-columns: 1fr; } }


/* Imágenes profesionales por sección */
.service-visual { max-width: 860px; margin-top: 34px; }
.service-visual img, .benefits-visual img, .cta-image { width: 100%; display: block; border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); background: white; }
.benefits-visual { margin: 8px 0 22px; }
#beneficios .two-columns { grid-template-columns: .85fr .95fr; }
#beneficios .benefit-list { grid-column: 2; }
.cta-image { max-width: 760px; margin: 0 auto 32px; }
@media (max-width: 900px) {
  #beneficios .two-columns { grid-template-columns: 1fr; }
  #beneficios .benefit-list { grid-column: auto; }
}


/* Fotografías corporativas recomendadas para COMERTEC */
.hero-card img, .visual-card img, .service-visual img, .benefits-visual img, .process-visual img, .cta-image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.hero-card, .visual-card, .service-visual, .benefits-visual, .process-visual {
  overflow: hidden;
}
.hero-card img { min-height: 340px; }
.visual-card img { min-height: 360px; }
.service-visual img, .process-visual img, .cta-image { max-height: 430px; }
@media (max-width: 560px) {
  .hero-card img, .visual-card img, .service-visual img, .benefits-visual img, .process-visual img, .cta-image {
    min-height: 230px;
    aspect-ratio: 4 / 3;
  }
}

/* Sección de ubicación */
.location-section { background: var(--soft); }
.location-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; margin-top: 38px; }
.location-card, .map-card { background: white; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.location-card { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.location-card p { margin: 0; }
.location-card .btn { align-self: flex-start; margin-top: 12px; }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; }
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map-card iframe { height: 360px; }
}
@media (max-width: 560px) {
  .location-card { padding: 24px; }
  .map-card iframe { height: 300px; }
}
