:root {
  --bg:      #ffffff;
  --bg2:     #f0f4fb;
  --border:  #c8d6eb;
  --accent:  #219ebc;
  --accent2: #2563eb;
  --accent3: #059669;
  --accent4: #10b981;
  --text:    #0f1c2e;
  --muted:   #4a5a72;
  --light:   #8096b2;
  --sans:    'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo-text { font-size: 1rem; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.nav-logo-text span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.85rem; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  font-size: 0.85rem; color: #fff;
  text-decoration: none; background: var(--accent);
  padding: 0.4rem 1.1rem; border-radius: 5px; transition: all 0.2s;
  border: 1px solid var(--accent);
}
.nav-cta:hover { background: var(--accent2); border-color: var(--accent2); }

/* ── HERO ── */
#inicio {
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  background-size: cover;
  background-position: center;
}
#inicio::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(12, 35, 64, 0.75);
}
#inicio .container { position: relative; z-index: 1; }
.hero-inner { max-width: 620px; }
.hero-logo { height: 56px; width: auto; margin-bottom: 2rem; display: block; filter: brightness(0) invert(1); }
h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700; color: #ffffff;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem; max-width: 500px; line-height: 1.75;
}
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff;
  text-decoration: none; padding: 0.7rem 1.6rem;
  border-radius: 5px; font-size: 0.88rem;
  font-weight: 600; transition: background 0.2s;
  border: 1px solid transparent;
}
.btn-primary:hover { background: var(--accent2); }
.btn-ghost {
  background: transparent; color: #ffffff;
  text-decoration: none; padding: 0.7rem 1.6rem;
  border-radius: 5px; font-size: 0.88rem;
  font-weight: 600; border: 1px solid rgba(255,255,255,0.45); transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); }

/* ── LAYOUT ── */
section { padding: 5rem 2rem; }
.container { max-width: 1000px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; color: var(--accent3); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: 0.6rem;
}
h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.section-sub { color: var(--muted); max-width: 480px; font-size: 0.95rem; }

/* ── SERVICES ── */
#servicios { background: var(--bg2); }
.services-header { margin-bottom: 3rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.svc-card {
  background: #fff; padding: 2rem 1.75rem;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.svc-card:hover {
  border-left-color: var(--accent3);
}
.svc-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  background: var(--bg2);
  display: block;
}
.svc-num {
  font-size: 0.72rem; color: var(--accent3); letter-spacing: 0.08em;
  text-transform: uppercase; display: block; margin-bottom: 1rem; font-weight: 700;
}
.svc-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 0.6rem; font-weight: 700; }
.svc-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.1rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.72rem; color: var(--accent);
  border: 1px solid #b3c8f0; padding: 0.2rem 0.55rem;
  border-radius: 3px; background: #e8f0fd;
}

/* ── PRODUCTOS ── */
#productos { background: var(--bg); }
.products-header { margin-bottom: 3rem; }
.products-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.prod-card {
  background: #fff;
  display: grid; grid-template-columns: 340px 1fr;
  gap: 0;
}
.prod-screenshot {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 15px;
  min-height: 180px;
}
.prod-screenshot img {
  width: 100%; height: auto;
  max-height: 220px;
  object-fit: contain; display: block;
}
.prod-body {
  padding: 2rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.6rem;
}
.prod-tag {
  font-size: 0.72rem; color: var(--accent3); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.prod-body h3 { font-size: 1rem; color: var(--text); font-weight: 700; line-height: 1.4; }
.prod-body p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }
.prod-link {
  font-size: 0.84rem; color: var(--accent2); font-weight: 600;
  text-decoration: none; margin-top: 0.4rem; display: inline-block;
}
.prod-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .prod-card { grid-template-columns: 1fr; }
  .prod-screenshot { border-right: none; border-bottom: 1px solid var(--border); min-height: unset; }
  .prod-screenshot img { max-height: 180px; }
  .prod-body { padding: 1.5rem 1.25rem; }
}

/* ── URBAN ── */
#urban { background: var(--bg); }
.urban-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.urban-img img {
  width: 100%; border-radius: 8px;
  border: 1px solid var(--border);
}
.urban-text p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; line-height: 1.75; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0; }
.chip {
  font-size: 0.77rem; color: var(--accent3); background: #d1fae5;
  border: 1px solid #6ee7b7; padding: 0.3rem 0.75rem; border-radius: 20px;
  font-weight: 600;
}

/* ── QUIENES ── */
#quienes { background: var(--bg2); }
.quienes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.quienes-img img {
  width: 100%; border-radius: 8px;
  border: 1px solid var(--border);
  filter: grayscale(20%);
}
.sectors {
  margin-top: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.sector {
  font-size: 0.85rem; color: var(--muted);
  padding: 0.55rem 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.sector::before { content: '·'; color: var(--accent3); font-size: 1.1rem; line-height: 1; }

/* ── CONTACTO ── */
#contacto { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.cinfo-label {
  font-size: 0.72rem; color: var(--accent3); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.25rem;
}
.cinfo-val { font-size: 0.92rem; color: var(--text); }
.cinfo-val a { color: var(--accent2); text-decoration: none; }
.cinfo-val a:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--border); }

/* Form */
.form-group { margin-bottom: 1.1rem; }
label { font-size: 0.8rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); padding: 0.65rem 0.85rem; border-radius: 5px;
  font-family: var(--sans); font-size: 0.88rem; outline: none; transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent2); background: #fff; }
input::placeholder, textarea::placeholder { color: var(--light); }
textarea { resize: vertical; min-height: 100px; }
.captcha-row { display: flex; align-items: center; gap: 0.5rem; }
.captcha-row input { max-width: 60px; text-align: center; }
.captcha-sep { color: var(--muted); font-size: 1rem; }
.btn-reload {
  background: var(--bg2); border: 1px solid var(--border); color: var(--muted);
  padding: 0.5rem 0.75rem; border-radius: 5px; cursor: pointer; transition: all 0.2s;
}
.btn-reload:hover { border-color: #bcc3cd; color: var(--text); }
.btn-submit {
  width: 100%; background: var(--accent); color: #fff;
  border: none; padding: 0.75rem; border-radius: 5px;
  font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s; margin-top: 0.4rem;
}
.btn-submit:hover:not(:disabled) { background: var(--accent2); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.msg-success {
  background: #edf7f1; border: 1px solid #a8d5b8; color: #276744;
  padding: 0.65rem 0.9rem; border-radius: 5px; font-size: 0.85rem;
  margin-bottom: 1rem; display: none;
}
.msg-error {
  background: #fdf2f2; border: 1px solid #f5b8b8; color: #9b2a2a;
  padding: 0.65rem 0.9rem; border-radius: 5px; font-size: 0.85rem;
  margin-bottom: 1rem; display: none;
}

/* ── FOOTER ── */
footer {
  padding: 1.75rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  background: var(--bg2);
}
.footer-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.footer-logo img { height: 20px; }
.footer-logo span { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: var(--light); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .urban-grid, .quienes-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1.2rem; }
  footer { flex-direction: column; align-items: flex-start; }
}


/* ── CUIDAP ── */
.hero-product-label {
  display: inline-block; font-size: 0.78rem; color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.25); padding: 0.3rem 0.85rem;
  border-radius: 20px; margin-bottom: 1.25rem; letter-spacing: 0.04em;
}

.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--border);
  max-width: 820px; margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.materials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.material-card {
  background: #fff; padding: 1.75rem 1.5rem;
  text-decoration: none; display: flex; flex-direction: column; gap: 0.4rem;
  transition: background 0.2s;
}
.material-card:hover { background: var(--bg2); }
.material-type {
  font-size: 0.72rem; color: var(--accent3); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.material-card h4 { font-size: 0.95rem; color: var(--text); font-weight: 700; }
.material-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; flex: 1; }
.material-link {
  font-size: 0.82rem; color: var(--accent2); font-weight: 600; margin-top: 0.5rem;
}

.btn-cta-white {
  display: inline-block; background: #fff; color: var(--accent);
  text-decoration: none; padding: 0.75rem 2rem;
  border-radius: 5px; font-size: 0.9rem; font-weight: 700; transition: opacity 0.2s;
}
.btn-cta-white:hover { opacity: 0.9; }

.btn-more {
  display: inline-block;
  background: transparent; color: var(--accent2);
  text-decoration: none; padding: 0.7rem 1.6rem;
  border-radius: 5px; font-size: 0.88rem; font-weight: 700;
  border: 2px solid var(--accent2); transition: all 0.2s;
  margin-top: 0.25rem;
}
.btn-more:hover { background: var(--accent2); color: #fff; }




.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin: 0;
}

.hero-credit a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.hero-credit a:hover {
  color: rgba(255, 255, 255, 0.9);
}