:root {
  --bg: #120b08;
  --bg-alt: #1a120e;
  --bg-soft: #211510;
  --card: #291912;
  --accent: #d08c4b;
  --accent-soft: rgba(208, 140, 75, 0.18);
  --accent-strong: #f1b477;
  --text-main: #f6efe7;
  --text-soft: #d4c9bc;
  --text-muted: #a09385;
  --border-subtle: rgba(246, 239, 231, 0.12);
  --danger: #f16a5b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 12px 28px rgba(0, 0, 0, 0.45);
  --spacing: 16px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.24s ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

*, 
*::before, 
*::after {
  box-sizing: border-box;
}

html, 
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, #523021 0, #1a100c 38%, #0b0503 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout global */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(10, 5, 3, 0.96),
    rgba(10, 5, 3, 0.86)
  );
  border-bottom: 1px solid rgba(246, 239, 231, 0.06);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(
    circle at 30% 20%,
    #f1d3a4 0,
    #b86a33 40%,
    #754025 100%
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.logo-mark.small {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.logo-sub {
  font-size: 11px;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  gap: 6px;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 11px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.nav-link:hover,
.nav-link:active {
  background: rgba(208, 140, 75, 0.14);
  border-color: rgba(208, 140, 75, 0.7);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 8px;
  }
  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .main-nav::-webkit-scrollbar {
    height: 3px;
  }
  .main-nav::-webkit-scrollbar-thumb {
    background: rgba(246, 239, 231, 0.22);
    border-radius: 99px;
  }
}

/* Página */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 80px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height: 1.2;
}

.hero-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-btn,
.ghost-btn {
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.primary-btn {
  background: radial-gradient(
    circle at 30% 0,
    #ffe9cf 0,
    #f0b480 40%,
    #c07134 100%
  );
  color: #2e1309;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 247, 235, 0.5);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7);
}

.ghost-btn {
  background: transparent;
  color: var(--accent-strong);
  border-color: rgba(208, 140, 75, 0.6);
}

.ghost-btn:hover {
  background: rgba(208, 140, 75, 0.12);
}

.ghost-btn.small-btn {
  padding: 5px 10px;
  font-size: 11px;
}

.hero-badges {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.badge {
  border-radius: var(--radius-md);
  background: rgba(12, 7, 5, 0.7);
  border: 1px solid rgba(246, 239, 231, 0.08);
  padding: 8px 9px;
}

.badge-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.badge-desc {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at top, #4f2f20, #1c100b);
  border: 1px solid rgba(246, 239, 231, 0.12);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.hero-image figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 10px 8px;
  background: rgba(5, 2, 1, 0.86);
}

/* Secciones genéricas */

.section {
  margin-bottom: 40px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #25160f, #0e0704);
  border: 1px solid rgba(246, 239, 231, 0.08);
  box-shadow: var(--shadow-subtle);
}

.section-alt {
  background: radial-gradient(circle at top, #1e130f, #080403);
}

.section-header {
  max-width: 640px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

/* Distribuciones */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.text-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.text-block p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.image-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.image-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.image-card figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 9px 8px;
  background: rgba(5, 2, 1, 0.9);
}

.image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.image-main img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.image-main figcaption {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 9px 8px;
  background: rgba(5, 2, 1, 0.9);
}

/* Tarjetas de información */

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.info-card {
  border-radius: var(--radius-md);
  background: rgba(12, 7, 5, 0.9);
  border: 1px solid rgba(246, 239, 231, 0.08);
  padding: 10px 11px;
}

.info-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.info-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Misión y visión */

.mv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.mv-card {
  border-radius: var(--radius-md);
  background: rgba(12, 7, 5, 0.94);
  border: 1px solid rgba(246, 239, 231, 0.08);
  padding: 12px;
}

.mv-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.mv-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Sucursal virtual / formulario */

.virtual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.contact-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-size: 12px;
  color: var(--text-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 239, 231, 0.18);
  background: rgba(4, 2, 1, 0.9);
  color: var(--text-main);
  padding: 7px 9px;
  font-size: 13px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(212, 201, 188, 0.5);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(208, 140, 75, 0.9);
  box-shadow: 0 0 0 1px rgba(208, 140, 75, 0.4);
  background: rgba(8, 4, 3, 0.95);
}

.full-width {
  width: 100%;
  justify-content: center;
}

.form-status {
  margin: 4px 2px 0;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
}

.form-status.ok {
  color: #8ad58a;
}

.form-status.error {
  color: var(--danger);
}

.tall {
  height: 100%;
}

.tall img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* Personas sucursal virtual */

.persona-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.persona-card {
  border-radius: var(--radius-md);
  background: rgba(12, 7, 5, 0.96);
  border: 1px solid rgba(246, 239, 231, 0.1);
  padding: 10px 11px 11px;
  box-shadow: var(--shadow-subtle);
}

.persona-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.persona-card p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.persona-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(246, 239, 231, 0.07);
  background: radial-gradient(circle at top, #140b08, #050202);
  padding: 10px 16px 14px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsivo */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image img {
    max-height: 220px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-card img {
    height: 110px;
  }

  .image-main img {
    height: 190px;
  }

  .mv-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .virtual-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding: 14px;
  }

  .persona-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .image-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 16px 13px;
  }

  .section-header h2 {
    font-size: 17px;
  }

  .text-block p {
    font-size: 12px;
  }
}