/*
Theme Name: Paltamaster
Theme URI: https://paltamaster.cl/
Author: Paltamaster SpA
Description: Tema corporativo para la venta y abastecimiento B2B de paltas en Chile.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: paltamaster
Tags: one-column, custom-logo, custom-menu, featured-images, accessibility-ready
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --forest: #0f3929;
  --forest-dark: #08261d;
  --forest-soft: #1b4b38;
  --lime: #99c62b;
  --lime-bright: #b7dc39;
  --cream: #f4f0e5;
  --paper: #fbfaf6;
  --terracotta: #b86b43;
  --ink: #17231e;
  --muted: #5c665f;
  --line: #d9ddd4;
  --white: #fff;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
.container { width: var(--container); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px;
  background: var(--white); color: var(--forest-dark); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.utility-bar {
  background: var(--forest-dark); color: #d9e6de; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
}
.utility-inner {
  min-height: 34px; display: flex; align-items: center; justify-content: space-between;
}
.site-header {
  position: sticky; z-index: 50; top: 0; background: rgba(251,250,246,.96);
  border-bottom: 1px solid rgba(15,57,41,.1); backdrop-filter: blur(12px);
}
.header-inner { min-height: 134px; display: flex; align-items: center; gap: 36px; }
.brand { display: block; width: 230px; height: 122px; overflow: hidden; flex: 0 0 auto; }
.brand-image {
  display: block; width: 230px; height: 230px; margin-top: -44px;
  background: url("assets/images/paltamaster-logo.png") center / contain no-repeat;
}
.main-nav {
  display: flex; align-items: center; gap: 30px; margin-left: auto;
  color: #31453b; font-size: 14px; font-weight: 650;
}
.main-nav ul {
  display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none;
}
.main-nav a { position: relative; }
.main-nav a::after {
  content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px;
  background: var(--lime); transform: scaleX(0); transition: transform 180ms ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  padding: 13px 24px; border: 1px solid var(--lime-bright); border-radius: 3px;
  background: var(--lime-bright); color: var(--forest-dark); font-size: 14px;
  font-weight: 800; letter-spacing: .015em; cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover, .button:focus-visible {
  background: #c9e65a; box-shadow: 0 12px 28px rgba(5,34,24,.18);
  transform: translateY(-2px);
}
.button-small { min-height: 44px; padding: 10px 18px; }

.hero {
  position: relative; min-height: 690px; display: flex; align-items: center; overflow: hidden;
  background-color: var(--forest-dark);
  background-image: url("assets/images/paltamaster-hero.png"), radial-gradient(circle at 82% 42%, #396b3a 0, transparent 38%);
  background-position: center; background-size: cover; color: var(--white);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,28,20,.96) 0%, rgba(5,28,20,.8) 43%, rgba(5,28,20,.15) 72%, rgba(5,28,20,.05) 100%);
}
.hero-grid { position: relative; z-index: 1; width: var(--container); padding-block: 92px; }
.hero-copy { max-width: 650px; }
.eyebrow {
  margin-bottom: 18px; color: var(--forest-soft); font-size: 12px; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase;
}
.eyebrow.light { color: var(--lime-bright); }
.hero h1 {
  max-width: 620px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6.1vw, 86px); font-weight: 500; letter-spacing: -.048em; line-height: .98;
}
.hero-lead {
  max-width: 600px; margin-bottom: 34px; color: #e3eae5;
  font-size: clamp(18px, 2vw, 21px); line-height: 1.62;
}
.hero-actions { display: flex; align-items: center; gap: 28px; }
.text-link { font-size: 14px; font-weight: 750; }
.light-link { color: var(--white); }
.text-link span { display: inline-block; margin-left: 6px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-checks {
  display: flex; flex-wrap: wrap; gap: 22px; margin: 38px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.2); color: #dbe8df; font-size: 13px; list-style: none;
}
.hero-checks li::before { content: "✓"; margin-right: 8px; color: var(--lime-bright); font-weight: 900; }

.proof-bar { background: var(--lime-bright); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div {
  min-height: 116px; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 28px; border-right: 1px solid rgba(8,38,29,.2);
}
.proof-grid > div:first-child { border-left: 1px solid rgba(8,38,29,.2); }
.proof-grid strong {
  margin-bottom: 5px; color: var(--forest-dark); font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 600;
}
.proof-grid span {
  color: #294333; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}

.section { padding-block: 112px; }
.section-heading { margin-bottom: 56px; }
.split-heading {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 80px;
}
.section-heading h2, .process-intro h2, .quality-copy h2, .coverage h2, .quote-intro h2 {
  margin-bottom: 0; color: var(--forest-dark); font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.2vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.07;
}
.split-heading > p {
  margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.7;
}
.audiences { background: var(--paper); }
.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.audience-card {
  min-height: 330px; display: flex; flex-direction: column; padding: 30px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white); transition: background 180ms ease, transform 180ms ease;
}
.audience-card:hover { position: relative; z-index: 1; background: #f0f5e6; transform: translateY(-5px); }
.card-number {
  margin-bottom: 60px; color: var(--terracotta); font-size: 12px;
  font-weight: 850; letter-spacing: .12em;
}
.audience-card h3 {
  margin-bottom: 14px; color: var(--forest-dark); font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 600; line-height: 1.16;
}
.audience-card p { margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.audience-card a { margin-top: auto; color: var(--forest); font-size: 13px; font-weight: 800; }

.process-section { background: var(--forest); color: var(--white); }
.process-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.process-intro h2 { margin-bottom: 26px; color: var(--white); }
.process-intro > p:not(.eyebrow) {
  max-width: 500px; margin-bottom: 32px; color: #cbdacf; font-size: 17px; line-height: 1.7;
}
.button-cream { border-color: var(--cream); background: var(--cream); }
.process-list { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.process-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.process-list > li > span { color: var(--lime-bright); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.process-list h3 { margin-bottom: 8px; font-size: 21px; }
.process-list p { margin-bottom: 0; color: #cbdacf; font-size: 15px; line-height: 1.65; }

.quality { background: var(--cream); }
.quality-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; gap: 76px;
}
.quality-image {
  position: relative; min-height: 660px; background-color: #876847;
  background-image: url("assets/images/paltamaster-quality.png"), linear-gradient(135deg, #896f4d, #243f2d);
  background-position: center; background-size: cover;
}
.quality-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,29,20,.68));
}
.quality-image span {
  position: absolute; z-index: 1; right: 28px; bottom: 28px; left: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.55); color: var(--white); font-size: 12px;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.quality-copy { align-self: center; padding-block: 30px; }
.quality-copy h2 { margin-bottom: 24px; }
.quality-copy .lead { margin-bottom: 34px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.feature-list { margin: 0; padding: 0; border-top: 1px solid #cbd1c4; list-style: none; }
.feature-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0;
  border-bottom: 1px solid #cbd1c4;
}
.feature-list > li > span { color: var(--terracotta); font-size: 12px; font-weight: 850; }
.feature-list strong { display: block; margin-bottom: 5px; color: var(--forest-dark); font-size: 16px; }
.feature-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.coverage { padding-block: 70px; background: var(--terracotta); color: var(--white); }
.coverage-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; }
.coverage h2 { color: var(--white); font-size: clamp(34px, 4vw, 50px); }
.coverage .eyebrow { color: #ffe8d8; }
.coverage-inner > p { margin-bottom: 0; color: #ffe9dd; font-size: 17px; line-height: 1.65; }

.quote-section { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; }
.quote-intro h2 { margin-bottom: 24px; }
.quote-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.72; }
.company-note {
  display: flex; flex-direction: column; gap: 7px; margin-top: 42px; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--forest); font-size: 13px; font-weight: 800; letter-spacing: .04em;
}
.quote-form {
  padding: 38px; border-top: 5px solid var(--lime-bright); background: var(--white);
  box-shadow: 0 25px 60px rgba(15,57,41,.09);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-bottom: 22px; }
.quote-form label {
  display: flex; flex-direction: column; gap: 8px; color: var(--forest-dark);
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; border: 1px solid #cdd4ca; border-radius: 2px; outline: none;
  background: #fdfdfb; color: var(--ink); font: inherit; font-size: 15px; font-weight: 450;
}
.quote-form input, .quote-form select { height: 50px; padding: 0 14px; }
.quote-form textarea { min-height: 120px; padding: 13px 14px; resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  border-color: var(--forest); box-shadow: 0 0 0 3px rgba(153,198,43,.18);
}
.button-submit { width: 100%; margin-top: 24px; border-color: var(--forest-dark); background: var(--forest-dark); color: var(--white); }
.button-submit:hover, .button-submit:focus-visible { background: var(--forest); }
.form-note { margin: 14px 0 0; color: #778078; font-size: 12px; line-height: 1.5; text-align: center; }

.site-footer { padding-top: 72px; background: #071d16; color: #c9d5cd; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 70px; padding-bottom: 60px; }
.footer-brand { color: var(--white); font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 600; }
.footer-grid p { margin-top: 14px; color: #98aa9f; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; font-size: 13px; line-height: 1.5; }
.footer-grid strong { margin-bottom: 8px; color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a:not(.footer-brand) { color: var(--lime-bright); font-weight: 750; }
.footer-bottom {
  display: flex; justify-content: space-between; padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.11); color: #82958a; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase;
}
.visitor-count strong { color: var(--lime-bright); font-size: 13px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { min-height: 640px; background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,28,20,.96), rgba(5,28,20,.72) 70%, rgba(5,28,20,.45)); }
  .proof-grid, .audience-grid { grid-template-columns: 1fr 1fr; }
  .split-heading, .process-layout, .quality-grid, .coverage-inner, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .quality-image { min-height: 550px; }
  .quote-grid { max-width: 760px; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1180px); }
  .utility-inner { min-height: 30px; justify-content: center; }
  .utility-inner span:last-child { display: none; }
  .header-inner { min-height: 108px; gap: 10px; }
  .brand { width: 178px; height: 96px; }
  .brand-image { width: 178px; height: 178px; margin-top: -34px; }
  .button-small { min-height: 40px; padding: 9px 12px; font-size: 11px; }
  .hero { min-height: 660px; background-position: 63% center; }
  .hero-grid { padding-block: 70px; }
  .hero h1 { font-size: 51px; }
  .hero-lead { font-size: 17px; }
  .hero-actions, .hero-checks { align-items: flex-start; flex-direction: column; }
  .hero-actions { gap: 20px; }
  .hero-checks { gap: 10px; }
  .proof-grid, .audience-grid, .field-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid > div, .proof-grid > div:first-child {
    min-height: 88px; border-right: 1px solid rgba(8,38,29,.2);
    border-bottom: 1px solid rgba(8,38,29,.2); border-left: 1px solid rgba(8,38,29,.2);
  }
  .section { padding-block: 82px; }
  .split-heading { gap: 24px; }
  .audience-card { min-height: 285px; }
  .card-number { margin-bottom: 40px; }
  .process-layout { gap: 58px; }
  .quality-grid { gap: 36px; }
  .quality-image { min-height: 440px; }
  .coverage { padding-block: 58px; }
  .quote-form { padding: 28px 20px; }
  .footer-grid { gap: 38px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* WordPress integration */
.admin-bar .site-header { top: 32px; }
.custom-logo-link {
  display: flex;
  width: 230px;
  height: 122px;
  align-items: center;
}
.custom-logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 122px;
}
.quote-status {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--lime);
  background: #eef6dd;
  color: var(--forest-dark);
  font-size: 14px;
  line-height: 1.55;
}
.quote-status.error {
  border-color: var(--terracotta);
  background: #fff1ea;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
}
.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  box-shadow: 0 14px 35px rgba(5, 34, 24, .28);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}
.whatsapp-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #17834a;
  font-size: 19px;
  line-height: 1;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #157c42;
  transform: translateY(-2px);
}
.site-content {
  min-height: 50vh;
  padding-block: 80px;
}
.site-content h1 {
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
}
.site-content p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 640px) {
  .custom-logo-link { width: 178px; height: 96px; }
  .custom-logo { max-width: 178px; max-height: 96px; }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 9px 14px 9px 9px;
  }
  .whatsapp-icon { width: 32px; height: 32px; }
}
