* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050507;
  color: #f3f4f6;
  scroll-behavior: smooth;
}

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

body {
  overflow-x: hidden;
  background: linear-gradient(180deg, #060608 0%, #040405 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.header, .footer, .section-card, .admin-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,10,12,0.9);
  backdrop-filter: blur(18px);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(4,4,6,0.94);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  position: relative;
}

.menu-toggle {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f3f4f6;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: rgba(5, 5, 7, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1rem;
  min-width: 16rem;
  max-height: min(75vh, 42rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 20;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.menu-dropdown a,
.submenu > a,
.submenu-toggle {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: left;
}

.menu-dropdown a:hover,
.submenu > a:hover,
.submenu-toggle:hover {
  color: #f97316;
}

.submenu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.submenu-toggle::after {
  content: '▾';
  float: right;
  color: #f97316;
}

.submenu {
  position: relative;
}

.submenu-content {
  display: none;
  position: absolute;
  top: 0;
  right: calc(100% - 0.25rem);
  background: rgba(5, 5, 7, 0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 0.75rem 0;
  min-width: 14rem;
  z-index: 30;
}

.submenu:hover .submenu-content,
.submenu:focus-within .submenu-content,
.submenu.submenu-open .submenu-content {
  display: block;
}

.menu-dropdown a:not(:first-child) {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.menu-dropdown a,
.submenu-content a {
  white-space: nowrap;
}

.menu-open .menu-dropdown {
  display: block;
}

.nav-links a:hover {
  color: #f97316;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(12rem, 25vw, 20rem);
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.hero {
  min-height: 85vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 35%), url('/static/uploads/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  opacity: 0.08;
  pointer-events: none;
  filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  text-align: center;
}

.hero-logo {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55));
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #050505;
}

.btn-whatsapp:hover {
  background: #22c35b;
}

.icon-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.intro-label {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: #f97316;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
}

.hero p {
  max-width: 42rem;
  color: #cbd5e1;
  line-height: 1.9;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  margin: 0;
}

.hero-copy p {
  max-width: 42rem;
  color: #cbd5e1;
  line-height: 1.9;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ff4b52;
  outline-offset: 3px;
}

.btn {
  background: #d01017;
  color: white;
  border-color: #d01017;
}

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #1ebc58;
}

.btn:hover {
  transform: translateY(-1px);
  background: #ff2d2d;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.hero {
  min-height: 85vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255,255,255,0.02), transparent 34%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 36%), url('/static/uploads/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  opacity: 0.08;
  pointer-events: none;
  filter: blur(0.8px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  text-align: center;
}

.hero-logo {
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.5));
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.section {
  padding: 6rem 0;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading small {
  text-transform: uppercase;
  color: #f97316;
  letter-spacing: 0.35em;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 3rem);
}

.cards {
  display: grid;
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card p {
  color: #cbd5e1;
  line-height: 1.8;
}

.card-link {
  display: inline-flex;
  margin-top: 1rem;
  color: #f97316;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-link:hover {
  color: #ffb347;
}

.card small {
  display: inline-block;
  margin-top: 1.5rem;
  text-transform: uppercase;
  color: #f97316;
  letter-spacing: 0.2em;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.gallery-item {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 12rem;
  background: #111317;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer-column {
  display: grid;
  gap: 1rem;
}

.footer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-list li {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer a {
  color: #cbd5e1;
}

.footer a:hover {
  color: #f97316;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
}

.social-ig {
  background: linear-gradient(135deg, #d21d75, #ff8b46);
}

.social-wa {
  background: #25d366;
  color: #ffffff;
}

.social-wa:hover {
  background: #1ebc58;
}

.whatsapp-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: grid;
  justify-items: end;
  gap: 0.9rem;
}

.whatsapp-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2bdd71, #16a34a);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.35), 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(22, 163, 74, 0.45), 0 5px 14px rgba(0, 0, 0, 0.35);
}

.whatsapp-fab .icon-wa {
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
}

.whatsapp-panel {
  width: min(22rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  background: rgba(12, 12, 15, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.whatsapp-widget.open .whatsapp-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.whatsapp-panel-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(22, 163, 74, 0.08));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-panel-header div,
.whatsapp-panel a > span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
}

.whatsapp-panel small {
  color: #a7b0bd;
  font-size: 0.78rem;
}

.whatsapp-status-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 0.3rem rgba(37, 211, 102, 0.15);
}

.whatsapp-panel > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 160ms ease, color 160ms ease;
}

.whatsapp-panel > a:last-child {
  border-bottom: 0;
}

.whatsapp-panel > a:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #67e89a;
}

.whatsapp-contact-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(37, 211, 102, 0.14);
  color: #4ade80;
  font-weight: 900;
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

.footer small {
  color: #94a3b8;
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-field small {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-field small.is-error {
  color: #fecaca;
}

input[type='text'], input[type='email'], textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fafc;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #d01017;
}

textarea {
  min-height: 12rem;
  resize: vertical;
}

.admin-layout {
  display: grid;
  gap: 1.5rem;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: 1.5rem;
  overflow: hidden;
}

.table th, .table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  color: #e2e8f0;
}

.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #94a3b8;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.badge-active {
  background: rgba(16, 209, 23, 0.15);
  color: #8efb9a;
}

.badge-inactive {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    align-items: center;
  }

  .brand {
    width: min(14rem, calc(100vw - 7rem));
  }

  .hero {
    padding: 3rem 0;
  }

  .whatsapp-widget {
    right: 1rem;
    bottom: 1rem;
  }

  .whatsapp-fab {
    min-width: 3.75rem;
    padding: 0 1rem;
  }

  .menu-dropdown {
    position: fixed;
    top: 4.75rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    min-width: 0;
    max-height: calc(100dvh - 5.5rem);
    padding: 0.65rem;
  }

  .menu-dropdown > a,
  .submenu > a,
  .submenu-toggle,
  .submenu-content a {
    white-space: normal;
  }

  .submenu-content {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 0.35rem 0.5rem;
    padding: 0.15rem 0 0.35rem 0.65rem;
    border: 0;
    border-left: 2px solid rgba(208, 16, 23, 0.72);
    border-radius: 0;
    background: transparent;
  }

  .submenu:hover .submenu-content,
  .submenu:focus-within .submenu-content {
    display: none;
  }

  .submenu.submenu-open .submenu-content {
    display: grid;
  }

  .submenu-content a {
    padding: 0.7rem 0.75rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }
}

/* Inicio inspirado en la web original */
.home-carousel {
  position: relative;
  min-height: clamp(35rem, 72vh, 48rem);
  overflow: hidden;
  background: #050507;
}

.home-carousel-track,
.home-slide {
  position: absolute;
  inset: 0;
}

.home-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 650ms ease, transform 1.2s ease, visibility 650ms ease;
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.home-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 5, 0.94) 0%, rgba(3, 3, 5, 0.68) 48%, rgba(3, 3, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 3, 5, 0.62), transparent 50%);
}

.home-slide-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 1.2rem;
  max-width: 78rem;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.home-slide-content h1,
.home-slide-content h2 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-slide-content p {
  max-width: 43rem;
  margin: 0;
  color: #d7dce3;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.home-slide-kicker,
.home-eyebrow {
  color: #e31b23;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.46);
  color: #ffffff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease;
}

.home-carousel-arrow:hover {
  border-color: #e31b23;
  background: #e31b23;
}

.home-carousel-prev {
  left: max(1rem, calc((100vw - 78rem) / 2));
}

.home-carousel-next {
  right: max(1rem, calc((100vw - 78rem) / 2));
}

.home-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  z-index: 4;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.home-carousel-dots button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.home-carousel-dots button.is-active {
  width: 2.25rem;
  border-color: #e31b23;
  background: #e31b23;
}

.home-carousel.is-single .home-carousel-arrow,
.home-carousel.is-single .home-carousel-dots {
  display: none;
}

.home-intro {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  background: #f4f4f2;
  color: #151518;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.home-intro-photo {
  position: relative;
}

.home-intro-photo::before {
  content: '';
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border-radius: 1.5rem;
  background: #d01017;
  transform: rotate(-2deg);
}

.home-intro-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 27rem;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.24);
}

.home-intro-photo span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.88);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-intro-copy {
  display: grid;
  gap: 1.25rem;
}

.home-intro-copy h2,
.home-section-heading h2 {
  margin: 0;
  color: #151518;
  font-size: clamp(2.3rem, 4.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.home-lead,
.home-section-heading p {
  margin: 0;
  color: #62626b;
  font-size: 1.08rem;
  line-height: 1.7;
}

.home-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: #2f3036;
  font-weight: 650;
}

.home-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #d01017;
  font-weight: 950;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.home-intro .btn-secondary {
  color: #17171a;
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

.home-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  background: #ffffff;
  color: #17171a;
}

.home-section-heading {
  display: grid;
  max-width: 48rem;
  gap: 0.85rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.home-service-card {
  overflow: hidden;
  border: 1px solid #e5e5e8;
  border-radius: 1.25rem;
  background: #ffffff;
  color: #17171a;
  box-shadow: 0 18px 50px rgba(17, 17, 20, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.home-service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 28px 65px rgba(17, 17, 20, 0.15);
}

.home-service-card img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-service-card:hover img {
  transform: scale(1.045);
}

.home-service-card > div {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
}

.home-service-card span {
  color: #d01017;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.home-service-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.home-service-card p {
  margin: 0;
  color: #686872;
  line-height: 1.65;
}

.home-service-card strong {
  margin-top: 0.35rem;
  color: #d01017;
}

.home-ecu {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(208, 16, 23, 0.25), transparent 30%),
    linear-gradient(135deg, #08080a, #171116 58%, #09090b);
}

.home-section-heading-light h2,
.home-section-heading-light p {
  color: #ffffff;
}

.home-section-heading-light p {
  color: #b8bec8;
}

.home-ecu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.home-ecu-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-ecu-gallery img {
  display: block;
  width: 100%;
  height: 31rem;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.home-ecu-gallery img:last-child {
  margin-top: 2.5rem;
}

.home-ecu-copy {
  display: grid;
  gap: 1.5rem;
}

.home-ecu-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.home-ecu-copy ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-ecu-copy li {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-ecu-copy li::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  margin: 0.45rem 0 0 -1.5rem;
  border-radius: 50%;
  background: #e31b23;
  grid-row: 1 / span 2;
}

.home-ecu-copy strong {
  grid-column: 2;
  color: #ffffff;
}

.home-ecu-copy span {
  grid-column: 2;
  color: #aeb4bf;
  line-height: 1.5;
}

.home-ecu-copy .btn {
  justify-self: start;
}

.home-product-card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 1rem;
}

.home-testimonials {
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #17171a;
  background: #f4f4f2;
}

.home-testimonial-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  max-width: 58rem;
  min-height: 18rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border: 1px solid #e2e2e5;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(17, 17, 20, 0.08);
}

.home-testimonial {
  display: none;
  grid-column: 2;
  gap: 0.7rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  text-align: center;
}

.home-testimonial.is-active {
  display: grid;
}

.home-testimonial p {
  margin: 0 0 1rem;
  color: #303039;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.6;
}

.home-testimonial strong {
  color: #d01017;
}

.home-testimonial span {
  color: #777781;
  font-size: 0.85rem;
}

.home-testimonial-shell > button {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #dddde1;
  border-radius: 50%;
  background: #ffffff;
  color: #17171a;
  cursor: pointer;
  font-size: 1.7rem;
  transition: color 160ms ease, border-color 160ms ease;
}

.home-testimonial-shell > button:hover {
  border-color: #d01017;
  color: #d01017;
}

@media (max-width: 900px) {
  .home-intro-grid,
  .home-ecu-grid {
    grid-template-columns: 1fr;
  }

  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    display: grid;
    grid-template-columns: minmax(14rem, 0.85fr) 1.15fr;
  }

  .home-service-card img {
    height: 100%;
    min-height: 17rem;
  }
}

@media (max-width: 640px) {
  .home-carousel {
    min-height: 39rem;
  }

  .home-slide-shade {
    background: linear-gradient(0deg, rgba(3, 3, 5, 0.96), rgba(3, 3, 5, 0.38) 85%);
  }

  .home-slide {
    align-items: end;
  }

  .home-slide-content {
    gap: 1rem;
    padding-right: 2rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
  }

  .home-slide-content h1,
  .home-slide-content h2 {
    font-size: clamp(2.75rem, 15vw, 4rem);
  }

  .home-carousel-arrow {
    top: auto;
    bottom: 1.1rem;
    width: 2.65rem;
    height: 2.65rem;
    transform: none;
  }

  .home-carousel-prev {
    left: 1rem;
  }

  .home-carousel-next {
    right: 1rem;
  }

  .home-carousel-dots {
    bottom: 2rem;
  }

  .home-check-list {
    grid-template-columns: 1fr;
  }

  .home-actions {
    display: grid;
    width: 100%;
  }

  .home-actions .btn,
  .home-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .home-intro-photo img {
    min-height: 21rem;
  }

  .home-service-card {
    display: block;
  }

  .home-service-card img {
    height: 13rem;
    min-height: 0;
  }

  .home-ecu-gallery img {
    height: 22rem;
  }

  .home-testimonial-shell {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
  }

  .home-testimonial {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 1rem 0 2rem;
  }

  .home-testimonial-shell > button {
    grid-row: 2;
    justify-self: start;
  }

  .home-testimonial-shell > button:last-child {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide,
  .home-service-card,
  .home-service-card img {
    transition: none;
  }
}

/* Acabado mecánico, cabecera centrada e iconos oficiales */
body {
  background-color: #050506;
  background-image:
    linear-gradient(rgba(4, 4, 6, 0.72), rgba(4, 4, 6, 0.82)),
    url('/static/uploads/mechanical-background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

.header {
  padding: 0.35rem 0;
  border-width: 0 0 2px;
  border-color: rgba(208, 16, 23, 0.82);
  background: rgba(3, 3, 5, 0.88);
}

.navbar {
  display: grid;
  grid-template-columns: minmax(3.5rem, 1fr) auto minmax(3.5rem, 1fr);
  align-items: center;
}

.navbar .brand {
  grid-column: 2;
  justify-self: center;
  width: clamp(19rem, 34vw, 26rem);
}

.navbar .nav-menu {
  grid-column: 3;
  justify-self: end;
}

.brand-logo {
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.62));
}

.home-intro,
.home-section,
.home-testimonials {
  color: #f4f4f5;
  background: rgba(6, 6, 8, 0.84);
  backdrop-filter: blur(2px);
}

.home-section {
  background: rgba(10, 10, 12, 0.82);
}

.home-testimonials {
  background: rgba(6, 6, 8, 0.88);
}

.home-intro-copy h2,
.home-section-heading h2 {
  color: #ffffff;
}

.home-lead,
.home-section-heading p {
  color: #b7bdc7;
}

.home-check-list li {
  color: #e4e7ec;
}

.home-intro .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.home-intro-photo {
  isolation: isolate;
}

.home-intro-photo img,
.home-service-card img,
.home-ecu-gallery img,
.home-product-card img {
  background: #08080a;
}

.home-service-card {
  color: #f7f7f8;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 17, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

.home-service-card:hover {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

.home-service-card p {
  color: #aeb4bf;
}

.home-ecu {
  background:
    radial-gradient(circle at 85% 20%, rgba(208, 16, 23, 0.18), transparent 30%),
    rgba(5, 5, 7, 0.9);
  backdrop-filter: blur(2px);
}

.home-ecu-gallery {
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: #050506;
}

.home-ecu-gallery img,
.home-ecu-gallery img:last-child {
  width: 100%;
  height: clamp(27rem, 48vw, 38rem);
  margin-top: 0;
  border-radius: 1.25rem;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.15) contrast(1.08);
}

.home-testimonial-shell {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 17, 0.95);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.42);
}

.home-testimonial p {
  color: #e4e7ec;
}

.home-testimonial span {
  color: #9da4b0;
}

.home-testimonial-shell > button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.social-button {
  width: 3.15rem;
  height: 3.15rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.95rem;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.social-button svg {
  width: 1.55rem;
  height: 1.55rem;
}

.social-ig {
  background: radial-gradient(circle at 32% 105%, #ffd600 0 12%, #ff7a00 28%, #ff0169 52%, #d300c5 72%, #7638fa 100%);
}

.social-ig svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-wa {
  background: #25d366;
}

.social-wa svg {
  fill: currentColor;
}

.instagram-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 6.2rem;
  z-index: 99;
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 105%, #ffd600 0 12%, #ff7a00 28%, #ff0169 52%, #d300c5 72%, #7638fa 100%);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(211, 0, 197, 0.28), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.instagram-fab:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 42px rgba(211, 0, 197, 0.38), 0 5px 14px rgba(0, 0, 0, 0.35);
}

.instagram-fab svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
    background-size: auto 100vh;
  }

  .navbar {
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    width: min(100% - 1rem, 1200px);
  }

  .navbar .brand {
    width: min(19rem, calc(100vw - 7rem));
  }

  .navbar .nav-menu {
    grid-column: 3;
  }

  .menu-toggle {
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    padding: 0;
    font-size: 0;
  }

  .menu-toggle::before {
    content: '☰';
    font-size: 1.35rem;
    letter-spacing: 0;
  }

  .home-ecu-gallery img,
  .home-ecu-gallery img:last-child {
    height: 24rem;
  }

  .instagram-fab {
    right: 1rem;
    bottom: 5.8rem;
  }
}

/* Páginas interiores completas */
body {
  background-image:
    linear-gradient(rgba(4, 4, 6, 0.48), rgba(4, 4, 6, 0.62)),
    url('/static/uploads/mechanical-background.png');
}

.home-intro,
.home-section,
.home-testimonials {
  background: rgba(6, 6, 8, 0.76);
}

.home-section {
  background: rgba(10, 10, 12, 0.72);
}

.home-testimonials {
  background: rgba(6, 6, 8, 0.8);
}

.page-hero {
  --page-hero-image: url('/static/uploads/mechanical-background.png');
  position: relative;
  display: grid;
  min-height: clamp(27rem, 56vh, 40rem);
  align-items: end;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(3, 3, 5, 0.93) 0%, rgba(3, 3, 5, 0.58) 55%, rgba(3, 3, 5, 0.2) 100%),
    linear-gradient(0deg, rgba(3, 3, 5, 0.9), transparent 70%),
    var(--page-hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero-about,
.page-hero-contact {
  --page-hero-image: url('/static/uploads/legacy/domicilio.jpeg');
}

.page-hero-services,
.page-hero-accessories {
  --page-hero-image: url('/static/uploads/legacy/repuestos.jpg');
}

.page-hero-products {
  --page-hero-image: url('/static/uploads/legacy/productos/aceite-motor-10w40.jpg');
  background-position: center 46%;
}

.page-hero-gallery {
  --page-hero-image: url('/static/uploads/legacy/competicion.jpeg');
}

.page-hero-projects {
  --page-hero-image: url('/static/uploads/legacy/trabajos-competicion.jpg');
}

.page-hero-location {
  --page-hero-image: url('/static/uploads/legacy/domicilio.jpeg');
}

.page-hero-protection {
  --page-hero-image: url('/static/uploads/mechanical-background.png');
}

.page-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-top: 5rem;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.page-hero-content h1 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-hero-content p {
  max-width: 45rem;
  margin: 0;
  color: #d6d9df;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.page-section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  color: #f6f7f9;
  background: rgba(6, 6, 8, 0.74);
  backdrop-filter: blur(2px);
}

.page-section-strong {
  background: rgba(14, 14, 17, 0.84);
}

.page-section-heading {
  display: grid;
  max-width: 48rem;
  gap: 0.75rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.page-section-heading h2,
.page-copy h2,
.service-detail-copy h2,
.location-card h2,
.page-cta-inline h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.page-split,
.service-detail-grid,
.location-grid,
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.page-split > img,
.service-detail-grid > img {
  display: block;
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.page-copy,
.service-detail-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.page-copy p,
.service-detail-copy p,
.location-card p {
  margin: 0;
  color: #b9bfc9;
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-feature-grid,
.page-card-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-feature-grid article {
  min-height: 15rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.25rem;
  background: rgba(14, 14, 17, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.page-feature-grid article > strong {
  color: #d01017;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

.page-feature-grid h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.65rem;
}

.page-feature-grid p {
  margin: 0;
  color: #aeb4bf;
  line-height: 1.65;
}

.page-card {
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(13, 13, 16, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
  transition: transform 220ms ease, border-color 220ms ease;
}

.page-card:hover {
  border-color: rgba(208, 16, 23, 0.72);
  transform: translateY(-0.45rem);
}

.page-card img {
  display: block;
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

.page-card > div {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
}

.page-card span,
.product-card-copy > span,
.product-coming span {
  color: #e31b23;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-card h3,
.product-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.page-card p,
.product-card p {
  margin: 0;
  color: #aeb4bf;
  line-height: 1.65;
}

.page-card strong,
.card-link {
  color: #f04b51;
}

.page-cta,
.page-cta-inline {
  color: #ffffff;
  background: rgba(15, 7, 9, 0.88);
}

.page-cta > .container,
.page-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-cta h2,
.page-cta-inline h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.service-detail-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.service-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-feature-list li {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e1e4e9;
}

.service-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0.85rem;
  color: #e31b23;
  font-weight: 900;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 3.5rem;
}

.category-pills a {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c6cbd3;
  font-size: 0.82rem;
}

.category-pills a:hover,
.category-pills a.is-active {
  border-color: #d01017;
  background: #d01017;
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(13, 13, 16, 0.95);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.product-image-shell,
.product-detail-image {
  display: grid;
  min-height: 18rem;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #6d727d, #25272c 55%, #101114 100%);
}

.product-image-shell img,
.product-detail-image img {
  display: block;
  width: 100%;
  height: 19rem;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: brightness(1.35) contrast(1.08) saturate(1.1);
}

.product-card-copy,
.product-coming > div {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem;
}

.product-card-copy > strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.product-coming {
  display: grid;
  min-height: 20rem;
  align-items: end;
  background:
    linear-gradient(0deg, rgba(8, 8, 10, 0.97), rgba(8, 8, 10, 0.28)),
    url('/static/uploads/mechanical-background.png') center / cover;
}

.product-suggestions-heading {
  margin-top: clamp(4rem, 8vw, 7rem);
}

.product-image-placeholder {
  position: relative;
  align-content: center;
  gap: 0.7rem;
  min-height: 19rem;
  background:
    linear-gradient(rgba(8, 8, 10, 0.42), rgba(8, 8, 10, 0.86)),
    url('/static/uploads/mechanical-background.png') center / cover;
  text-align: center;
}

.product-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
}

.product-image-placeholder > span,
.product-image-placeholder > strong {
  position: relative;
  z-index: 1;
}

.product-image-placeholder > span {
  color: #ec4b51;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-image-placeholder > strong {
  color: #ffffff;
  font-size: 1.8rem;
  font-style: italic;
  line-height: 0.9;
  text-transform: uppercase;
}

.product-status {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.1);
  color: #72e79e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-section {
  padding-top: 3rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
  color: #969da8;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: #e8ebef;
}

.product-detail-image {
  min-height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
}

.product-detail-image img {
  height: 36rem;
}

.product-detail-copy {
  display: grid;
  justify-items: start;
  gap: 1.2rem;
}

.product-detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.product-detail-copy > p {
  margin: 0;
  color: #b8bec8;
  line-height: 1.7;
}

.product-detail-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-detail-copy dl div {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-detail-copy dt {
  color: #8f96a1;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.product-detail-copy dd {
  margin: 0.25rem 0 0;
  color: #ffffff;
}

.masonry-gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 16rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.masonry-gallery figure,
.project-gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: #09090b;
}

.masonry-gallery figure.is-wide {
  grid-column: span 2;
}

.masonry-gallery img,
.project-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.masonry-gallery figure:hover img,
.project-gallery figure:hover img {
  transform: scale(1.04);
}

.masonry-gallery figcaption,
.project-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.2rem;
  padding: 2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.masonry-gallery figcaption span {
  color: #ed383f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.project-gallery figure {
  min-height: 26rem;
}

.location-grid {
  margin-bottom: 4rem;
}

.location-card {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(12, 12, 15, 0.96), rgba(30, 8, 10, 0.9)),
    url('/static/uploads/mechanical-background.png') center / cover;
}

.location-steps {
  display: grid;
  gap: 1rem;
}

.location-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(14, 14, 17, 0.92);
}

.location-steps article > strong {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: #d01017;
}

.location-steps h3,
.location-steps p {
  margin: 0;
}

.location-steps p {
  margin-top: 0.35rem;
  color: #aeb4bf;
  line-height: 1.55;
}

.compact-product-grid {
  grid-template-columns: minmax(18rem, 28rem);
}

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

.contact-card {
  display: grid;
  gap: 0.65rem;
  min-height: 15rem;
  align-content: end;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(14, 14, 17, 0.93);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-card:hover {
  border-color: #d01017;
  transform: translateY(-0.3rem);
}

.contact-card > span {
  color: #e31b23;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card h2,
.contact-card p {
  margin: 0;
}

.contact-card h2 {
  font-size: 2rem;
}

.contact-card p {
  color: #b3bac5;
}

.contact-card strong {
  margin-top: 0.5rem;
  color: #f04b51;
}

.contact-whatsapp {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.28), rgba(14, 14, 17, 0.95));
}

.page-cta-inline {
  margin-top: 4rem;
  padding-right: clamp(1.5rem, 4vw, 3rem);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
}

@media (max-width: 900px) {
  .page-split,
  .service-detail-grid,
  .location-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .page-feature-grid {
    grid-template-columns: 1fr;
  }

  .project-intro > img {
    max-height: 32rem;
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 31rem;
    background-image:
      linear-gradient(0deg, rgba(3, 3, 5, 0.96), rgba(3, 3, 5, 0.25)),
      var(--page-hero-image);
  }

  .page-hero-content h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .page-card-grid,
  .product-grid,
  .contact-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .service-feature-list {
    grid-template-columns: 1fr;
  }

  .page-cta > .container,
  .page-cta-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-cta .btn,
  .page-cta-inline .btn,
  .page-copy .btn,
  .service-detail-copy .btn,
  .product-detail-copy .btn {
    width: 100%;
    text-align: center;
  }

  .masonry-gallery {
    grid-auto-rows: 15rem;
    grid-template-columns: 1fr;
  }

  .masonry-gallery figure.is-wide {
    grid-column: auto;
  }

  .product-detail-image {
    min-height: 28rem;
  }

  .product-detail-image img {
    height: 27rem;
  }

  .category-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-right: -1rem;
    margin-left: -1rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-pills a {
    flex: 0 0 auto;
  }
}

/* Intro cinematográfica */
body.intro-active {
  overflow: hidden;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #030304;
  color: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.site-intro[hidden] {
  display: none;
}

.site-intro.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-intro-bg {
  position: absolute;
  inset: -5%;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 48%, rgba(208, 16, 23, 0.2), transparent 32%),
    linear-gradient(rgba(2, 2, 3, 0.54), rgba(2, 2, 3, 0.88)),
    url('/static/uploads/mechanical-background.png') center / cover;
  filter: contrast(1.08) saturate(0.85);
  transform: scale(1.12);
}

.site-intro::before {
  content: '';
  position: absolute;
  inset: -20%;
  z-index: -1;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(230, 20, 28, 0.22), rgba(255, 255, 255, 0.18), transparent);
  filter: blur(1.5rem);
  opacity: 0;
  transform: skewX(-18deg) translateX(-220%);
}

.site-intro.is-playing::before {
  animation: intro-scan 1.1s 0.8s cubic-bezier(0.3, 0, 0.2, 1) forwards;
}

.site-intro-speed-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.025) 8.1%, transparent 8.25% 16%);
  opacity: 0;
  transform: perspective(35rem) rotateX(62deg) scale(1.6);
  transform-origin: center bottom;
}

.site-intro.is-playing .site-intro-speed-lines {
  animation: intro-grid 2.2s 0.2s ease-out forwards;
}

.site-intro-content {
  display: grid;
  justify-items: center;
  width: min(70rem, calc(100% - 2rem));
  gap: 1rem;
  text-align: center;
}

.site-intro-content img {
  width: min(58rem, 92vw);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 26px rgba(208, 16, 23, 0.18));
  transform: translateY(2rem) scale(0.82);
}

.site-intro.is-playing .site-intro-content img {
  animation: intro-logo 1.1s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.site-intro-kicker,
.site-intro-content p {
  margin: 0;
  opacity: 0;
  text-transform: uppercase;
}

.site-intro-kicker {
  color: #e6464c;
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  font-weight: 900;
  letter-spacing: clamp(0.2em, 1vw, 0.48em);
  transform: translateY(-0.8rem);
}

.site-intro.is-playing .site-intro-kicker {
  animation: intro-copy 650ms 0.85s ease-out forwards;
}

.site-intro-content p {
  color: #d7dbe2;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 750;
  letter-spacing: 0.22em;
  transform: translateY(0.8rem);
}

.site-intro.is-playing .site-intro-content p {
  animation: intro-copy 650ms 1.1s ease-out forwards;
}

.site-intro-rev {
  display: flex;
  align-items: end;
  gap: 0.3rem;
  height: 2rem;
  margin-top: 0.35rem;
  opacity: 0;
}

.site-intro.is-playing .site-intro-rev {
  animation: intro-copy 350ms 1.3s ease-out forwards;
}

.site-intro-rev span {
  width: clamp(1rem, 3vw, 2rem);
  height: 0.2rem;
  border-radius: 999px;
  background: #d01017;
  box-shadow: 0 0 1rem rgba(208, 16, 23, 0.5);
  transform-origin: bottom;
  animation: intro-rev 700ms ease-in-out infinite alternate;
}

.site-intro-rev span:nth-child(2) { animation-delay: 70ms; }
.site-intro-rev span:nth-child(3) { animation-delay: 140ms; }
.site-intro-rev span:nth-child(4) { animation-delay: 210ms; }
.site-intro-rev span:nth-child(5) { animation-delay: 280ms; background: #f04b51; }
.site-intro-rev span:nth-child(6) { animation-delay: 350ms; background: #f04b51; }
.site-intro-rev span:nth-child(7) { animation-delay: 420ms; background: #ffffff; }
.site-intro-rev span:nth-child(8) { animation-delay: 490ms; background: #ffffff; }

.site-intro > button {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  color: #d8dce2;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(0.7rem);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-intro > button:hover {
  border-color: #d01017;
  background: rgba(208, 16, 23, 0.22);
  color: #ffffff;
}

@keyframes intro-logo {
  0% { opacity: 0; transform: translateY(2rem) scale(0.82); filter: blur(0.5rem) drop-shadow(0 22px 55px rgba(0, 0, 0, 0.85)); }
  55% { opacity: 1; transform: translateY(0) scale(1.035); filter: blur(0) drop-shadow(0 22px 55px rgba(0, 0, 0, 0.85)); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 22px 55px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 26px rgba(208, 16, 23, 0.18)); }
}

@keyframes intro-copy {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-scan {
  0% { opacity: 0; transform: skewX(-18deg) translateX(-220%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: skewX(-18deg) translateX(520%); }
}

@keyframes intro-grid {
  0% { opacity: 0; background-position-x: 0; }
  45% { opacity: 1; }
  100% { opacity: 0.35; background-position-x: 20rem; }
}

@keyframes intro-rev {
  from { height: 0.2rem; opacity: 0.45; }
  to { height: 1.85rem; opacity: 1; }
}

@media (max-width: 640px) {
  .site-intro-content {
    gap: 0.75rem;
  }

  .site-intro-content img {
    width: min(31rem, 96vw);
  }

  .site-intro > button {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-intro-content img,
  .site-intro-kicker,
  .site-intro-content p,
  .site-intro-rev {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .site-intro-rev span {
    height: 0.45rem;
    animation: none;
  }
}

/* Banner de inauguración del Dyno */
.home-slide-dyno .home-slide-image {
  object-position: center;
  filter: contrast(1.04) saturate(1.08);
}

.home-slide-dyno .home-slide-shade {
  background:
    radial-gradient(circle at 72% 54%, transparent 0 22%, rgba(3, 3, 5, 0.12) 48%, rgba(3, 3, 5, 0.56) 100%),
    linear-gradient(90deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.82) 34%, rgba(3, 3, 5, 0.18) 68%, rgba(3, 3, 5, 0.3) 100%);
}

.dyno-slide-content {
  gap: 0.9rem;
}

.dyno-side-logo {
  position: absolute;
  top: 2rem;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 3;
  width: clamp(12rem, 19vw, 18rem);
  height: auto;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.75));
}

.dyno-slide-content h1,
.dyno-slide-content h2 {
  max-width: 10ch;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
  line-height: 0.9;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.68);
}

.dyno-slide-content h1 span,
.dyno-slide-content h2 span {
  display: inline;
  color: #ed1c24;
  font-size: 1.08em;
  font-style: italic;
  text-shadow: 0 0 1.2rem rgba(237, 28, 36, 0.38), 0 8px 28px rgba(0, 0, 0, 0.72);
}

.dyno-slide-content > p {
  max-width: 34rem;
}

.dyno-slide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.dyno-slide-actions small {
  color: #c4c9d1;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .home-slide-dyno .home-slide-image {
    object-position: 63% center;
  }

  .home-slide-dyno .home-slide-shade {
    background:
      linear-gradient(0deg, rgba(3, 3, 5, 0.98) 0%, rgba(3, 3, 5, 0.75) 47%, rgba(3, 3, 5, 0.12) 100%),
      linear-gradient(90deg, rgba(3, 3, 5, 0.25), transparent);
  }

  .dyno-side-logo {
    top: 1rem;
    right: 1rem;
    width: min(12rem, 48vw);
  }

  .dyno-slide-content h1,
  .dyno-slide-content h2 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .dyno-slide-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Pesaje por rueda y fichas técnicas de performance */
.home-slide-balance .home-slide-image {
  object-position: center;
  filter: contrast(1.06) saturate(1.05);
}

.home-slide-balance .home-slide-shade {
  background:
    radial-gradient(circle at 72% 54%, transparent 0 24%, rgba(3, 3, 5, 0.16) 50%, rgba(3, 3, 5, 0.58) 100%),
    linear-gradient(90deg, rgba(3, 3, 5, 0.97) 0%, rgba(3, 3, 5, 0.83) 36%, rgba(3, 3, 5, 0.16) 70%, rgba(3, 3, 5, 0.3) 100%);
}

.balance-slide-content h1,
.balance-slide-content h2 {
  max-width: 9ch;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
  line-height: 0.9;
}

.balance-slide-content h1 span,
.balance-slide-content h2 span {
  color: #ed1c24;
  font-style: italic;
  text-shadow: 0 0 1.2rem rgba(237, 28, 36, 0.34);
}

.balance-slide-content > p {
  max-width: 34rem;
}

.service-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-benefit-grid article {
  min-height: 16rem;
  padding: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(18, 18, 22, 0.96), rgba(9, 9, 11, 0.9)),
    url('/static/uploads/mechanical-background.png') center / cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.service-benefit-grid article > span {
  color: #e31b23;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-benefit-grid h3 {
  margin: 2.2rem 0 0.7rem;
  color: #ffffff;
  font-size: 1.4rem;
}

.service-benefit-grid p {
  margin: 0;
  color: #aeb4bf;
  line-height: 1.65;
}

.service-process {
  display: grid;
  max-width: 62rem;
  gap: 0;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-process article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-process article > strong {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(227, 27, 35, 0.45);
  border-radius: 50%;
  background: rgba(227, 27, 35, 0.12);
  color: #f05a60;
}

.service-process h3,
.service-process p {
  margin: 0;
}

.service-process h3 {
  color: #ffffff;
  font-size: 1.25rem;
}

.service-process p {
  margin-top: 0.35rem;
  color: #aeb4bf;
  line-height: 1.65;
}

.service-ideal > .container {
  align-items: flex-end;
}

.service-ideal ul {
  display: flex;
  flex-wrap: wrap;
  max-width: 50rem;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.service-ideal li {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9dde3;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .service-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-slide-balance .home-slide-image {
    object-position: 66% center;
  }

  .home-slide-balance .home-slide-shade {
    background: linear-gradient(0deg, rgba(3, 3, 5, 0.98) 0%, rgba(3, 3, 5, 0.76) 48%, rgba(3, 3, 5, 0.14) 100%);
  }

  .balance-slide-content h1,
  .balance-slide-content h2 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .service-benefit-grid {
    grid-template-columns: 1fr;
  }

  .service-ideal > .container {
    align-items: flex-start;
  }
}

/* Video de Mecánica de Competición */
.service-video-section {
  background:
    linear-gradient(rgba(5, 5, 7, 0.76), rgba(5, 5, 7, 0.9)),
    url('/static/uploads/legacy/trabajos-competicion.jpg') center / cover;
}

.service-video-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.service-video-copy {
  display: grid;
  justify-items: start;
  gap: 1.15rem;
}

.service-video-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.service-video-copy p {
  margin: 0;
  color: #bac0c9;
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(237, 28, 36, 0.5);
  border-radius: 1.25rem;
  background: #030304;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.58), 0 0 2rem rgba(208, 16, 23, 0.1);
}

.service-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 820px) {
  .service-video-grid {
    grid-template-columns: 1fr;
  }

  .service-video-copy {
    max-width: 42rem;
  }
}

/* Admin, cuenta y carrito */
.flash-stack {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.flash {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
}

.flash-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.flash-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.flash-warning {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
}

.admin-top .brand {
  display: block;
  width: auto;
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.04);
}

.admin-nav a,
.table-action,
.link-button {
  color: #f97316;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.admin-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.admin-card-link {
  display: grid;
  gap: 0.2rem;
  min-height: 12rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.admin-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
}

.admin-card-kicker {
  color: #f97316;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 1.5rem;
}

.admin-form-container,
.account-shell,
.cart-layout {
  max-width: 52rem;
}

.admin-form-preview {
  display: block;
  width: 100%;
  max-height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 0.75rem;
}

.form-grid-2,
.form-grid-3,
.account-grid {
  display: grid;
  gap: 1rem;
}

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

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

.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-check input {
  width: 1.1rem;
  height: 1.1rem;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
textarea,
select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fafc;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.muted {
  color: #94a3b8;
}

.muted a {
  color: #f97316;
  font-weight: 800;
}

.account-layout {
  display: grid;
  gap: 2rem;
}

.account-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.account-orders-heading {
  margin-top: 1rem;
  margin-bottom: 0;
}

.product-card-cart {
  margin-top: 1rem;
}

.product-card-cart .btn-secondary {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
}

.product-detail-actions,
.add-cart-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
}

.add-cart-form {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.04);
}

.add-cart-form input {
  width: 6rem;
}

.cart-items,
.checkout-card {
  margin-bottom: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 6rem auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-item small {
  display: block;
  color: #94a3b8;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1.2rem;
}

.link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.empty-state {
  text-align: center;
}

.inline-form select {
  min-width: 11rem;
}

@media (max-width: 720px) {
  .admin-top,
  .product-detail-actions,
  .add-cart-form {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-nav a,
  .product-detail-actions .btn,
  .product-detail-actions .btn-whatsapp,
  .add-cart-form .btn {
    width: 100%;
  }
}
