:root {
  --green: #123d2f;
  --green-2: #1f5c46;
  --green-soft: #eaf3ee;
  --gray-950: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f4f6f5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--gray-950);
  background: var(--gray-100);
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(18, 61, 47, .12);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  font-size: .95rem;
}

.main-nav a:hover {
  background: var(--green-soft);
  color: var(--green);
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 61, 47, .18);
}

.user-silhouette {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.user-silhouette::before,
.user-silhouette::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
}

.user-silhouette::before {
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.user-silhouette::after {
  bottom: 1px;
  width: 14px;
  height: 7px;
  border-radius: 10px 10px 4px 4px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 64px);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 61, 47, .9), rgba(18, 61, 47, .55), rgba(17, 24, 39, .28)),
    url("../media/fondo inicio.jpg") center/cover;
  z-index: -2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(244, 246, 245, .96));
}

.hero-content {
  max-width: 760px;
  padding-bottom: clamp(28px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cbe8dc;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .92;
  font-weight: 800;
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  background: var(--green);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-2);
}

.button-secondary {
  border-color: rgba(255, 255, 255, .62);
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

.hero-video {
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #000;
}

.section,
.about,
.contact,
.locations {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.about-copy h2,
.contact-info h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.product-grid,
.service-grid,
.warning-grid,
.location-grid {
  display: grid;
  gap: 18px;
}

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

.product-card,
.service-card,
.location-card,
.contact-form,
.contact-info {
  border: 1px solid rgba(18, 61, 47, .12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform .25s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card span {
  display: flex;
  min-height: 62px;
  align-items: center;
  padding: 16px;
  color: var(--green);
  font-weight: 800;
}

.price-list-public {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(18, 61, 47, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 243, 238, .92), rgba(255, 255, 255, .96) 44%),
    var(--white);
  box-shadow: 0 18px 50px rgba(17, 24, 39, .09);
}

.price-list-public::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--green);
}

.price-list-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.price-list-heading h3 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  line-height: 1;
}

.price-list-heading p {
  margin: 8px 0 0;
  color: var(--gray-700);
  line-height: 1.5;
}

.price-list-heading span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(18, 61, 47, .16);
  background: var(--white);
  color: var(--green);
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .06);
}

.price-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(18, 61, 47, .1);
  border-radius: 8px;
  background: var(--white);
}

.price-table-wrap table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
}

.price-table-wrap th,
.price-table-wrap td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.price-table-wrap th {
  background: #f7faf8;
  color: var(--green);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.price-table-wrap tr:last-child td {
  border-bottom: 0;
}

.price-table-wrap tbody tr {
  transition: background .18s ease;
}

.price-table-wrap tbody tr:hover {
  background: var(--green-soft);
}

.price-table-wrap th:last-child,
.price-table-wrap td:last-child {
  text-align: right;
}

.price-metal-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-950);
  font-weight: 800;
}

.price-metal-name::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.price-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 132px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.price-list-empty {
  margin: 0;
  color: var(--gray-500);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.about-copy p:not(.eyebrow) {
  color: var(--gray-700);
  font-size: 1.08rem;
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stats span {
  padding: 18px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--gray-700);
}

.stats strong {
  display: block;
  color: var(--green);
  font-size: 1.7rem;
}

.carousel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--gray-200);
  box-shadow: var(--shadow);
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.carousel img.is-active {
  opacity: 1;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--green);
  font-size: 2rem;
  cursor: pointer;
}

.carousel-button.prev {
  left: 16px;
}

.carousel-button.next {
  right: 16px;
}

.services-section {
  background: var(--gray-100);
}

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

.service-card {
  overflow: hidden;
}

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

.service-card div {
  padding: 20px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--green);
}

.service-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.65;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.gallery-strip img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
  padding: 8px;
}

.warning-panel {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(18, 61, 47, .16);
  border-radius: 8px;
  background: var(--white);
}

.warning-panel h3 {
  margin: 0 0 22px;
  color: var(--green);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.warning-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 700;
}

.warning-grid img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 8px;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 22px;
  background: var(--green);
}

.contact .eyebrow,
.contact h2,
.contact a {
  color: var(--white);
}

.contact-info,
.contact-form {
  padding: clamp(22px, 4vw, 38px);
}

.contact-info {
  background: rgba(255, 255, 255, .09);
  color: var(--white);
}

.contact-info ul {
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.contact-info li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .88);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--gray-950);
  resize: vertical;
}

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

.location-card {
  overflow: hidden;
}

.location-card iframe {
  width: 100%;
  height: 330px;
  border: 0;
}

.location-card h3,
.location-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.location-card h3 {
  margin-top: 20px;
  color: var(--green);
}

.location-card p {
  margin-bottom: 20px;
  color: var(--gray-700);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--gray-500);
  background: var(--white);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(18, 61, 47, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
  }

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

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .product-grid,
  .service-grid,
  .warning-grid,
  .gallery-strip,
  .location-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .carousel {
    min-height: 340px;
  }

  .site-footer {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}
