/* =========================================================
   Exportadora Santa Claudia - Static Site Styles
   Design tokens use HSL values to mirror the original system
   ========================================================= */

:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 15%;
  --primary: 160 30% 20%;
  --primary-foreground: 0 0% 98%;
  --secondary: 40 10% 95%;
  --muted-foreground: 220 10% 45%;
  --accent: 38 85% 55%;
  --border: 40 15% 88%;
  --hero-overlay: 220 30% 15%;
  --timeline-line: 40 10% 80%;
  --radius: 0.5rem;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.4);
}

.nav-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  font: inherit;
}

.lang-btn:hover { color: hsl(var(--foreground)); }
.lang-btn.is-active {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.lang-sep { color: hsl(var(--muted-foreground) / 0.5); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    hsl(var(--hero-overlay) / 0.7) 0%,
    hsl(var(--hero-overlay) / 0.5) 50%,
    hsl(var(--hero-overlay) / 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  padding: 5rem 1.5rem;
  animation: fadeIn 0.8s ease-out both;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-content p {
  color: #fff;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 48rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.btn-hero {
  background: hsl(var(--accent));
  color: hsl(220 20% 15%);
  box-shadow: 0 10px 30px -10px hsl(var(--accent) / 0.5);
}

.btn-hero:hover {
  transform: translateY(-2px);
  background: hsl(38 85% 50%);
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
  background: hsl(var(--background));
}

.section-gray { background: hsl(var(--secondary)); }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: hsl(var(--foreground));
  margin-bottom: 3rem;
}

.two-col {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.col-image .image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}

@media (min-width: 1024px) {
  .col-image { position: sticky; top: 2rem; }
}

/* ---------- Producto cards ---------- */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background: hsl(var(--secondary) / 0.6);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.info-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ---------- Proceso steps ---------- */
.process-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: hsl(var(--secondary) / 0.6);
  border-left: 4px solid hsl(var(--timeline-line));
  transition: border-color 0.2s;
}

.process-card:hover { border-left-color: hsl(var(--accent)); }

.process-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
}

.process-icon svg { width: 1.5rem; height: 1.5rem; }

.process-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.process-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ---------- Timeline (desktop) ---------- */
.timeline-desktop {
  display: none;
  position: relative;
  padding: 8rem 0;
}

@media (min-width: 768px) {
  .timeline-desktop { display: block; }
  .timeline-mobile { display: none; }
}

.timeline-line-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-line-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: hsl(var(--timeline-line));
  transform: translateY(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.timeline-dot {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  border: 4px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: hsl(var(--foreground));
  z-index: 2;
}

.timeline-stem {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: hsl(var(--timeline-line));
  transform: translateX(-50%);
}

.timeline-stem.up   { bottom: 100%; }
.timeline-stem.down { top: 100%; }

.timeline-content {
  position: absolute;
  width: 18rem;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-content.top    { bottom: calc(100% + 2rem); }
.timeline-content.bottom { top: calc(100% + 2rem); }

.timeline-content .year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.timeline-content .desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- Timeline (mobile) ---------- */
.timeline-mobile {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-mobile-item {
  display: flex;
  gap: 1rem;
}

.timeline-mobile-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-mobile-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  border: 4px solid hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.timeline-mobile-line {
  width: 2px;
  flex: 1;
  background: hsl(var(--timeline-line));
  margin-top: 0.5rem;
}

.timeline-mobile-body { padding-bottom: 2rem; }
.timeline-mobile-body .year {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-mobile-body .desc {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* ---------- Contacto ---------- */
.contact-section { background: hsl(var(--background)); }

.contact-grid {
  display: grid;
  min-height: 600px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-image {
  position: relative;
  height: 16rem;
}

@media (min-width: 1024px) {
  .contact-image { height: auto; }
}

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

.contact-info {
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

@media (min-width: 1024px) {
  .contact-info { padding: 5rem 4rem; }
}

.contact-info-inner { width: 100%; }

.contact-grid-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .contact-grid-items { grid-template-columns: repeat(4, 1fr); }
}

.contact-item .icon {
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.contact-item .icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke-width: 1.5;
}

.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}

.contact-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.65;
  min-height: 1em;
}

/* ---------- Footer ---------- */
.footer {
  background: hsl(var(--primary));
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: hsl(var(--primary-foreground) / 0.8);
  font-size: 0.875rem;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
