/* teguio.co — estilos globales. Vanilla CSS, mobile-first. Ver reglas-tecnicas.md */

:root {
  --orange: #d9540c;
  --orange-dark: #b8430a;
  --orange-soft: #fbe9db;
  --orange-line: #ecc9a8;
  --navy: #182236;
  --navy-soft: #566178;
  --bg: #faf6f0;
  --surface: #ffffff;
  --border: #e7ddcd;
  --good: #2f7a4d;
  --good-soft: #e3f0e7;
  --shadow: 0 1px 2px rgba(24, 34, 54, 0.05), 0 8px 24px rgba(24, 34, 54, 0.07);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 12px;
}
p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(217, 84, 12, 0.28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn-whatsapp {
  background: #ffffff;
  border: 1.5px solid var(--good);
  color: var(--good);
  font-size: 0.85rem;
  padding: 8px 14px;
}
.btn-whatsapp:hover { background: var(--good-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.logo .pin {
  width: 15px; height: 15px;
  border-radius: 50% 50% 50% 0;
  background: var(--orange);
  transform: rotate(-45deg);
  flex: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--navy);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--orange); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 20px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-cta { display: none; }
  .nav-links.open ~ .nav-cta,
  .nav-links.open .nav-cta-mobile { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(600px 260px at 85% -10%, var(--orange-soft), transparent);
}
.hero .container { display: grid; gap: 20px; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-wrap: balance; }
.hero p.lede { color: var(--navy-soft); font-size: 1.08rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.search-bar {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.search-bar select,
.search-bar input[type="text"] {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  color: var(--navy);
  flex: 1;
  min-width: 140px;
}
.search-bar select:focus,
.search-bar input:focus { outline: 2px solid var(--orange-line); border-radius: var(--radius-sm); }

/* ---------- section headings ---------- */
.section { padding: 52px 0; }
.section-head { max-width: 620px; margin-bottom: 28px; }
.section-head p { color: var(--navy-soft); }

/* ---------- category chips / grid ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .chip-grid { grid-template-columns: repeat(4, 1fr); } }
.chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chip-card:hover { transform: translateY(-2px); border-color: var(--orange-line); }
.chip-card .icon { font-size: 1.6rem; }
.chip-card span.name { font-weight: 600; font-size: 0.92rem; }

/* ---------- filter bar (directorio) ---------- */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filter-bar select,
.filter-bar input[type="text"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--navy);
}
.filter-bar input[type="text"] { flex: 1; min-width: 180px; }

/* ---------- empresa card ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.emp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease;
}
.emp-card:hover { transform: translateY(-3px); }
.emp-card.is-hidden { display: none; }

.emp-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--orange-soft), #fff);
}
.emp-card-tour-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--navy-soft);
  font-weight: 600;
}
.emp-card-destacado-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--orange);
  color: #fff;
  border-radius: 100px;
  padding: 4px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-favorito {
  display: none; /* fuera de alcance del MVP — ver reglas-tecnicas.md seccion 0 */
}

.emp-card-body { padding: 16px 16px 6px; flex: 1; }
.emp-card-body .cat { font-size: 0.72rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.emp-card-body h3 { font-size: 1.05rem; margin: 6px 0 6px; }
.emp-card-body p { font-size: 0.87rem; color: var(--navy-soft); margin: 0; }

.emp-operador-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.emp-operador-row .precio { font-size: 0.8rem; color: var(--navy-soft); }
.emp-operador-row .precio b { color: var(--navy); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfd6e4;
  padding: 44px 0 26px;
  margin-top: 40px;
}
.site-footer .container {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .site-footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; }
.site-footer a { color: #cfd6e4; font-size: 0.88rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer .logo { color: #fff; }
.site-footer .logo .pin { background: var(--orange); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  color: #9aa4b8;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfd6e4;
  font-weight: 500;
}
.footer-credit:hover { color: var(--orange); }
.footer-credit img { height: 20px; width: auto; }

/* ---------- alerts / forms ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.alert-error { background: #fbe6e0; border: 1px solid #e4a892; color: #8a2f11; }
.alert-success { background: var(--good-soft); border: 1px solid #b6dcc1; color: var(--good); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--navy);
}
.field textarea { resize: vertical; }

/* ---------- utility ---------- */
.badge-estado {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-estado.prueba { background: var(--orange-soft); color: var(--orange-dark); }
.badge-estado.activa { background: var(--good-soft); color: var(--good); }

/* ---------- modales: solo formularios (glassmorphism reservado a modales sobre foto, ver reglas-tecnicas.md) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(24, 34, 54, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(24,34,54,0.25);
}
