:root {
  --color-primary: #5f8c4d;
  --color-primary-dark: #4c703e;
  --color-accent: #d2b48c;
  --color-background: #f6f3ed;
  --color-sand: #ede3d3;
  --color-text: #2f2a25;
  --color-text-light: #5f564d;

  --font-base: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 1.02rem;
}

.admin-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #f7f4ef, #e7dfd3 60%, #d5c8bb);
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.admin-shell {
  width: min(1080px, 100%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.admin-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid rgba(47, 42, 37, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(47, 42, 37, 0.15);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.admin-brand img {
  width: 72px;
  height: auto;
}

.admin-brand span {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.admin-panel {
  max-width: 860px;
  width: 100%;
}

.admin-panel h2 {
  margin-top: 0;
}

.history-entry {
  padding: 1rem;
  border: 1px solid rgba(47, 42, 37, 0.1);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.history-entry button {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .admin-card {
    padding: 1.75rem;
  }

  .admin-shell {
    gap: 1.5rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(95, 140, 77, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: rgba(95, 140, 77, 0.1);
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  min-height: 700px;
  background: var(--color-background);
  overflow: hidden;
}

.hero.internal {
  min-height: 650px;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  position: relative;
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  align-content: center;
  padding: 3.5rem 0;
}

.hero-overlay {
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 242, 0.4);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
  max-width: min(52ch, 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--color-text);
}

.hero-overlay--wide {
  width: 100%;
  max-width: none;
}

.hero-overlay p {
  color: inherit;
}

.contact-hero .contact-hero-title,
.contact-hero .contact-hero-subtitle {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.importaciones-hero .hero-content,
.importaciones-hero .hero-content * {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero .eyebrow {
  color: var(--color-accent);
}

.hero:not(.internal) .eyebrow {
  color: #f5f2eb;
  letter-spacing: 0.08em;
}

.hero:not(.internal) h1,
.hero:not(.internal) .subtitle {
  color: #fff;
}

.hero:not(.internal) .btn {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero:not(.internal) .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: transparent;
}

.hero:not(.internal) .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}


.hero.internal.centered .hero-content {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
  max-width: 18ch;
  word-break: break-word;
}

.subtitle {
  max-width: 520px;
  color: var(--color-text-light);
  font-size: 1.15rem;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-primary-dark);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section.light {
  background: var(--color-sand);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-divider {
  width: 120px;
  height: 3px;
  border: none;
  border-radius: 999px;
  background: var(--color-accent);
  margin: 2rem auto 0;
}

.identity-text {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(47, 42, 37, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.identity-text p {
  margin-bottom: 1rem;
}

.identity-intro {
  max-width: 900px;
  margin: 2rem auto 0;
}

.identity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.identity-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: 0 22px 40px rgba(95, 140, 77, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.identity-card h3 {
  margin: 0;
  font-size: 1.4rem;
  text-align: center;
}

.identity-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.identity-card.centered {
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.identity-text:hover,
.identity-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.16);
}

.grid.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.section-media {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.products-grid-full {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.product-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  perspective: 1200px;
  background: #f6f3ed;
}

.product-media .media-inner {
  position: relative;
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
}

.product-card:hover .product-media .media-inner {
  transform: rotateY(180deg);
}

.product-media .media-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
}

.product-media .media-face img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.product-media .media-face.back {
  background: #fff;
  transform: rotateY(180deg);
}

.product-card h3 {
  margin: 0.5rem 0;
}

.product-card p {
  color: var(--color-text-light);
}

.product-card .card-actions {
  margin-top: auto;
}

.product-card .card-actions .btn,
.product-card .card-actions .btn-outline {
  width: 100%;
  justify-content: center;
}

.product-more-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-self: center;
  justify-self: center;
  margin-top: -0.1rem;
  margin-left: -1.2rem;
}

.product-more-link .circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-more-link .label {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}

.product-more-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.export-step {
  border: 1px solid rgba(95, 140, 77, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  background: #fff;
}

.social-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.07);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.contact-card svg {
  width: 32px;
  height: 32px;
  fill: var(--color-primary);
}

.contact-card small {
  color: var(--color-text-light);
}

.whatsapp-highlight {
  background: linear-gradient(135deg, #5f8c4d, #7fb161);
  color: #fff;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.whatsapp-highlight h3 {
  margin: 0;
  font-size: 1.4rem;
}

.whatsapp-highlight p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.whatsapp-highlight .btn {
  background: #fff;
  color: var(--color-primary);
}

.whatsapp-highlight .btn:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-form label {
  font-weight: 600;
  display: grid;
  gap: 0.4rem;
  color: var(--color-text-light);
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.9rem 1rem;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(95, 140, 77, 0.2);
}

.form-feedback {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

.site-footer {
  background: #1f1a16;
  color: #f1ece2;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-accent);
}

.footer-brand img {
  width: 72px;
  margin-bottom: 0.8rem;
}

.footer-logo-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-logo-button img {
  display: block;
}

.footer-logo-button:hover,
.footer-logo-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.footer-logo-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .site-header .container {
    flex-wrap: wrap;
    align-items: center;
  }
  .site-nav {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    left: auto;
    height: calc(100vh - 80px);
    width: min(260px, 80vw);
    flex-direction: column;
    padding: 2rem;
    background: #fff;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .site-nav.open {
    display: flex;
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 520px;
  }

  .hero-content {
    padding: 2.5rem 0;
  }

  .grid.two-columns {
    grid-template-columns: 1fr;
  }

  .social-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-form {
    padding: 1.75rem;
  }
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 480px;
    padding-top: 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .product-grid,
  .products-grid-full,
  .export-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
