:root {
  --cyan: #00b7b7;
  --gold: #c9921c;
  --dark: #111111;
  --bg: #f5f3ef;
  --text: #1b1b1b;
  --muted: #666666;
  --white: #ffffff;
  --border: #e8e4dc;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { text-decoration: none; color: inherit; }

.container {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,243,239,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}

.logo-wrap img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: .5px;
}

.brand-copy span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  transition: .2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-outline {
  border-color: #d8d1c7;
  background: transparent;
  color: var(--dark);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #eb6a00);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-danger {
  background: #b91c1c;
  color: #fff;
}

.btn-small {
  min-height: 38px;
  font-size: 14px;
  padding: 0 14px;
}

.btn:hover { transform: translateY(-1px); }

.hero {
  padding: 42px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-media {
  background: #f4f1ec;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  min-height: 690px;
  position: relative;
}

.hero-copy {
  padding: 90px 58px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b0aaa2;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #eb6a00, var(--gold));
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 102px);
  line-height: .94;
  letter-spacing: -2.5px;
  font-weight: 900;
}

.accent { color: #eb6a00; }

.lead {
  margin: 32px 0 0;
  max-width: 680px;
  color: #5d5d5d;
  font-size: 21px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.hero-media {
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.15)),
    url('../../img/impresion_autopiezas.png') center/cover no-repeat;
  border-top-left-radius: 0;
}

.media-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(255,255,255,.96);
  padding: 18px 22px 22px;
  border-top-right-radius: 26px;
  min-width: 210px;
  box-shadow: var(--shadow);
}

.media-badge small {
  display: block;
  color: #9d9890;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.media-badge strong {
  font-size: 52px;
  line-height: .9;
  color: #eb6a00;
}

.section {
  padding: 34px 0 80px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid #ece7dd;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.section-title {
  font-size: 42px;
  margin: 0 0 26px;
  letter-spacing: -1px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 22px;
}

.highlight-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #ece7dd;
}

.highlight-box ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

.footer {
  padding: 32px 0 56px;
  color: #666;
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  color: var(--dark);
}

/* FORMULARIOS */
.input-form {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}

textarea.input-form {
  resize: vertical;
}

.label-form {
  display: block;
  font-weight: 700;
  margin-top: 16px;
}

.alert {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

/* ADMIN */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.admin-sidebar {
  background: #fff;
  border: 1px solid #ece7dd;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.admin-sidebar a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: #555;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #f5f3ef;
  color: #eb6a00;
}

.admin-content {
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #ece7dd;
}

.table-admin {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.table-admin th,
.table-admin td {
  padding: 14px 16px;
  border-bottom: 1px solid #eee8de;
  text-align: left;
  font-size: 15px;
}

.table-admin th {
  background: #f4f1ec;
  color: #222;
}

.table-admin tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .header-inner {
    min-height: 82px;
  }

  .nav {
    gap: 22px;
  }

  .nav a {
    font-size: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    min-height: auto;
  }

  .hero-copy {
    padding: 60px 32px 42px;
  }

  .hero-media {
    min-height: 520px;
  }

  .cards,
  .highlight-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .menu {
    width: 100%;
    display: none;
  }

  .menu.active {
    display: block;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 0;
    margin: 14px 0 0;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid #e9e2d8;
  }

  .header-actions {
    width: 100%;
    margin-top: 14px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-copy {
    padding: 48px 24px 34px;
  }

  .lead {
    font-size: 18px;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 34px;
  }
}