/* PURASAL — Estilo inspirado en SPL Latam */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue-dark: #00244b;
  --blue-mid: #003d7a;
  --blue-light: #e8f0f8;
  --blue-accent: #0066cc;
  --white: #ffffff;
  --offwhite: #f5f8fb;
  --text: #3a4553;
  --text-light: #6b7a8d;
  --border: #dce4ed;
  --font: 'Montserrat', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; font-family: var(--font); color: var(--text); }
body { overflow-x: hidden; line-height: 1.6; background: var(--white); }

h1,h2,h3,h4 { font-weight: 800; color: var(--blue-dark); line-height: 1.2; }
h2 strong, h2 span { color: var(--blue-accent); font-weight: 800; }
p { color: var(--text); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

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

/* ==================== HEADER ==================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.logo { color: var(--blue-dark); font-weight: 900; font-size: 1.65rem; text-decoration: none; letter-spacing: -0.02em; }
.logo em { font-style: normal; color: var(--blue-accent); }
.logo-text { color: var(--blue-dark); font-weight: 900; font-size: 1.55rem; text-decoration: none; letter-spacing: -0.02em; }
.logo-text em { font-style: normal; color: var(--blue-accent); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--blue-dark); font-weight: 600; font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.2s;
}
.nav a:hover { color: var(--blue-accent); }
.nav-btn {
  background: none; border: 2px solid var(--blue-accent); color: var(--blue-accent);
  padding: 0.5rem 1.25rem; font-family: var(--font); font-weight: 700;
  font-size: 0.85rem; cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em;
  transition: all 0.2s;
}
.nav-btn:hover { background: var(--blue-accent); color: var(--white); }

.menu-toggle { display: none; background: none; border: none; color: var(--blue-dark); cursor: pointer; }

/* ==================== SECTION TAG INLINE ==================== */
.section-tag-inline {
  display: inline-block;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.85rem;
  border-left: 3px solid var(--blue-accent);
  padding-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--blue-dark);
  overflow: hidden;
  padding-top: 72px;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,36,75,0.82) 0%, rgba(0,61,122,0.65) 100%);
}
.hero-tag {
  background: var(--blue-accent);
  color: white;
  border: none;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-text {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 2rem 0;
}
.hero-text h1 {
  font-size: 3.2rem; font-weight: 900; color: var(--white);
  margin-bottom: 1rem; line-height: 1.15;
}
.hero-text h1 strong {
  display: block; font-weight: 900; color: var(--white);
}
.hero-text p {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  margin-bottom: 2rem; line-height: 1.7; max-width: 550px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-accent); color: var(--white);
  padding: 0.9rem 2.25rem; font-weight: 700; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.25s;
}
.hero-cta:hover { background: #0055aa; }

/* ==================== SECCIONES CON DIAGONAL ==================== */
.section-block {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.bg-diagonal {
  background: var(--blue-light);
}
.bg-diagonal::before {
  content: '';
  position: absolute;
  top: -60px; left: 0;
  width: 100%; height: 120px;
  background: var(--white);
  transform: skewY(-2deg);
  z-index: 1;
}
.bg-diagonal::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 0;
  width: 100%; height: 120px;
  background: var(--white);
  transform: skewY(-2deg);
  z-index: 1;
}
.bg-diagonal .container { position: relative; z-index: 2; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
}
.section-header p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.section-img-skew {
  overflow: hidden;
  transform: perspective(600px) rotateY(-2deg);
  box-shadow: 8px 8px 30px rgba(0,36,75,0.15);
}
.section-img-skew img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.section-img-skew:hover img { transform: scale(1.04); }

/* ==================== TARJETAS CON IMAGEN ==================== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card-img {
  display: block; text-decoration: none;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card-img:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.card-img__img {
  width: 100%; aspect-ratio: 1; overflow: hidden;
}
.card-img__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.card-img:hover .card-img__img img { transform: scale(1.08); }

.card-img__body {
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}
.card-img__icon {
  font-size: 1.5rem; color: var(--blue-accent);
  margin-bottom: 0.5rem; display: block;
}
.card-img__title {
  font-size: 0.92rem; font-weight: 700; color: var(--blue-dark);
}

/* ==================== SECCIÓN OSCURA (DISTRIBUCIÓN / MAPA) ==================== */
.section-dark {
  background: linear-gradient(rgba(0,36,75,0.92), rgba(0,36,75,0.92)), url('assets/distribution.png');
  background-size: cover; background-position: center;
  color: var(--white);
  padding: 5rem 0;
}
.section-dark h2 { color: var(--white); }
.section-dark h2 strong { color: var(--blue-accent); }
.section-dark p { color: rgba(255,255,255,0.7); }

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.dark-grid .info-list { list-style: none; margin-top: 2rem; }
.dark-grid .info-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 1rem;
  font-weight: 600; font-size: 1rem;
  color: rgba(255,255,255,0.85);
}
.dark-grid .info-list li svg { color: var(--blue-accent); flex-shrink: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.75rem; font-weight: 900; color: var(--white); margin-bottom: 0.25rem; }
.stat-item p { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ==================== QUIÉNES SOMOS / QUÉ HACEMOS ==================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1rem; line-height: 1.7; }

.empresa-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-accent);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}
.pillar-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateX(4px); }
.pillar-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.pillar-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.pillar-card h4 { font-size: 1rem; margin-bottom: 0.35rem; color: var(--blue-dark); }
.pillar-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ==================== PRODUCTOS ==================== */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}
.section-intro p { margin-top: 1rem; font-size: 1.05rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 10px 32px rgba(0,36,75,0.12); transform: translateY(-4px); }
.product-card--featured {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 20px rgba(0,102,204,0.15);
}
.product-card--featured:hover { box-shadow: 0 12px 36px rgba(0,102,204,0.25); }

.product-card__top {
  background: var(--blue-light);
  padding: 2.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.product-card--featured .product-card__top {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}

/* Photo variant */
.product-card__top--photo {
  padding: 0;
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--blue-dark);
  align-items: flex-end;
  justify-content: flex-start;
}
.product-card__top--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,24,60,0.55) 0%, transparent 60%);
  z-index: 1;
}
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-photo { transform: scale(1.05); }
.product-photo--1kg {
  object-fit: contain;
  object-position: center;
  background: #f5f8fb;
  padding: 1rem;
}
.product-card__top--photo .product-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  margin: 0;
}

.product-card__icon-wrap {
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,36,75,0.12);
}
.product-card__icon-wrap svg { width: 40px; height: 40px; stroke: var(--blue-accent); }
.product-card__icon-wrap--featured { background: rgba(255,255,255,0.15); box-shadow: none; }
.product-card__icon-wrap--featured svg { stroke: var(--white); }

.product-badge {
  background: var(--blue-accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
}
.product-badge--featured { background: rgba(255,255,255,0.2); color: var(--white); }

.product-card__body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__body h3 {
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin-bottom: 0.25rem;
}
.product-size {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue-accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.product-size--featured { color: var(--blue-dark); }
.product-card__body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.product-features li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.product-features li:last-child { border-bottom: none; }
.check { color: var(--blue-accent); font-weight: 900; font-size: 1rem; }

.product-cta {
  display: block;
  text-align: center;
  background: transparent;
  border: 2px solid var(--blue-accent);
  color: var(--blue-accent);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.25s;
  margin-top: auto;
}
.product-cta:hover { background: var(--blue-accent); color: var(--white); }
.product-cta--featured {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}
.product-cta--featured:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* ==================== DIST CALLOUT ==================== */
.dist-callout {
  margin-top: 3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
  border-left: 4px solid var(--blue-accent);
}
.dist-callout p { color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.7; }
.dist-callout-link {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.dist-callout-link:hover { color: var(--white); }

/* ==================== FOOTER LOGO TEXT ==================== */
.footer-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-logo-text span { color: var(--blue-accent); }

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--blue-accent);
  transition: box-shadow 0.3s;
}
.process-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.process-card__icon {
  width: 44px; height: 44px;
  background: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.process-card__icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.process-card h4 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.process-card p { font-size: 0.9rem; color: var(--text-light); }

/* ==================== CONTACTO ==================== */
.contact-section {
  padding: 5rem 0;
  background: var(--offwhite);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-item {
  display: flex; gap: 1rem; margin-bottom: 1.75rem;
}
.contact-item__icon {
  width: 42px; height: 42px;
  background: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.contact-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-item p { font-size: 0.9rem; color: var(--text-light); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.82rem; color: var(--blue-dark); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
  font-family: var(--font); font-size: 0.92rem; color: var(--text);
  background: var(--offwhite); transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue-accent); }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7a8d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.5rem;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit {
  width: 100%; padding: 0.9rem; background: var(--blue-accent); color: var(--white);
  font-family: var(--font); font-weight: 700; font-size: 0.92rem; border: none;
  cursor: pointer; text-transform: uppercase; letter-spacing: 0.04em;
  transition: background 0.25s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--blue-dark); }
.form-note { text-align: center; font-size: 0.75rem; color: var(--text-light); margin-top: 1rem; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer .logo { font-size: 1.5rem; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer-phone { margin-top: 1rem; font-weight: 700; font-size: 1.1rem; color: var(--white); }

.footer-col h5 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.footer-bottom a { color: rgba(255,255,255,0.4); margin-left: 1.25rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ==================== ANIMACIONES ==================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .section-header, .about-grid, .dark-grid, .contact-grid, .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .process-cards { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-text h1 { font-size: 2.4rem; }
  .section-header h2, .about-text h2, .section-dark h2, .contact-info h2 { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
