/* =============================================
   PALADARIA – LANDING PAGE STYLES
   Paleta: cálida, gastronómica, mediterránea
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --cream:       #f7d596;
  --warm-white:  #FFF9F2;
  --terracotta:  #C4622D;
  --terracotta-dark: #A34E22;
  --terracotta-light: #E8896A;
  --olive:       #6B7A3E;
  --olive-light: #8C9E52;
  --brown:       #3E2A1A;
  --brown-mid:   #6B4A2E;
  --sand:        #D4B896;
  --sand-light:  #EDD9C0;
  --text-main:   #2C1A0E;
  --text-mid:    #5C4033;
  --text-light:  #9C7B65;
  --border:      rgba(196,98,45,0.15);

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'roboto', Sans;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-card: 0 4px 32px rgba(62,42,26,0.10);
  --shadow-btn:  0 4px 20px rgba(196,98,45,0.30);
}

/* RESET Y BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.page-template-page-landing {
  background: var(--cream);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ocultar header/footer del tema padre en la landing */
body.page-template-page-landing .wp-block-template-part,
body.page-template-page-landing header.wp-block-template-part,
body.page-template-page-landing footer.wp-block-template-part {
  display: none !important;
}

/* ── UTILIDADES ─────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,98,45,0.40);
}

.tag-pill {
  display: inline-block;
  background: var(--sand-light);
  color: var(--brown-mid);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
}

/* ── NAVBAR ─────────────────────────────────── */
.pal-nav {
  position: fixed;
  top: 10; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250,246,239,0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
.pal-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pal-nav__logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.pal-nav__logo span { color: var(--terracotta); }
.pal-nav__cta { font-size: 15px; padding: 12px 28px; }

/* ── HERO ────────────────────────────────────── */
.pal-hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 70%, var(--sand-light) 100%);
}

.pal-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.pal-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pal-hero__content { position: relative; z-index: 2; }

.pal-hero__tag { margin-bottom: 24px; }

.pal-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 24px;
}
.pal-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.pal-hero__subtitle {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.pal-hero__img {
  position: relative;
}
.pal-hero__img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 6/5;
  display: block;
}
.pal-hero__img-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--brown);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
}
.pal-hero__img-badge strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--terracotta-light);
}

/* ── PROBLEMA ────────────────────────────────── */
.pal-problem {
  padding: 100px 0;
  background: var(--brown);
  position: relative;
  overflow: hidden;
}
.pal-problem::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.pal-problem .container { position: relative; z-index: 1; }

.pal-problem__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 20px;
}
.pal-problem__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.3;
  max-width: 700px;
  margin-bottom: 24px;
}
.pal-problem__title em { font-style: italic; color: var(--sand-light); }
.pal-problem__text {
  font-size: 17px;
  color: var(--sand);
  max-width: 640px;
  line-height: 1.8;
}

/* ── SOLUCIÓN ────────────────────────────────── */
.pal-solution {
  padding: 100px 0;
  background: var(--cream);
}
.pal-solution .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pal-solution__img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  aspect-ratio: 6/5;
}
.pal-solution__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.pal-solution__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 20px;
}
.pal-solution__title em { font-style: italic; color: var(--terracotta); }
.pal-solution__text {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── BENEFICIOS ──────────────────────────────── */
.pal-benefits {
  padding: 100px 0;
  background: var(--warm-white);
}
.pal-benefits__header { text-align: center; margin-bottom: 64px; }
.pal-benefits__label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.pal-benefits__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 50px);
  font-weight: 300;
  color: var(--brown);
  line-height: 1.2;
}
.pal-benefits__title em { font-style: italic; color: var(--terracotta); }

.pal-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pal-benefit-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.pal-benefit-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.pal-benefit-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.pal-benefit-card:hover::before { transform: scaleX(1); }

.pal-benefit-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.pal-benefit-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 10px;
}
.pal-benefit-card__text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── PILOTO ──────────────────────────────────── */
.pal-pilot {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  position: relative;
  overflow: hidden;
}
.pal-pilot::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.pal-pilot .container { position: relative; z-index: 1; }

.pal-pilot__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.pal-pilot__label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.pal-pilot__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 300;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
.pal-pilot__title em { font-style: italic; color: var(--sand-light); }
.pal-pilot__text {
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 40px;
}
.pal-pilot .btn-primary {
  background: #fff;
  color: var(--terracotta-dark);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.pal-pilot .btn-primary:hover {
  background: var(--cream);
  color: var(--terracotta-dark);
  box-shadow: 0 8px 32px rgba(0,0,0,0.20);
}

/* ── FOOTER ──────────────────────────────────── */
.pal-footer {
  background: var(--brown);
  color: var(--sand);
  padding: 48px 0;
  text-align: center;
}
.pal-footer__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}
.pal-footer__logo span { color: var(--terracotta-light); }
.pal-footer__copy {
  font-size: 14px;
  color: var(--text-light);
}

/* ── MODAL / ENCUESTA ────────────────────────── */
.pal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,26,14,0.65);
  backdrop-filter: blur(6px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pal-modal-overlay.is-open {
  display: flex;
}

.pal-modal {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(44,26,14,0.30);
  animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pal-modal__header {
  position: sticky;
  top: 0;
  background: var(--warm-white);
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}
.pal-modal__header-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 6px;
}
.pal-modal__header-text p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 480px;
  line-height: 1.5;
}
.pal-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.pal-modal__close:hover { color: var(--brown); }

.pal-modal__body { padding: 32px 40px 40px; }

/* Progreso */
.pal-survey-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}
.pal-survey-progress__bar {
  flex: 1;
  height: 4px;
  background: var(--sand-light);
  border-radius: 4px;
  overflow: hidden;
}
.pal-survey-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}
.pal-survey-progress__text {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

/* Pasos */
.pal-survey-step { display: none; }
.pal-survey-step.is-active { display: block; }

.pal-survey-step__q {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.35;
  margin-bottom: 22px;
}
.pal-survey-step__hint {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 18px;
  font-style: italic;
}

/* Opciones radio / checkbox */
.pal-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.4;
}
.pal-option:hover {
  border-color: var(--terracotta-light);
  background: rgba(196,98,45,0.04);
}
.pal-option input[type="radio"],
.pal-option input[type="checkbox"] {
  accent-color: var(--terracotta);
  width: 17px; height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pal-option.is-selected {
  border-color: var(--terracotta);
  background: rgba(196,98,45,0.06);
}

/* Campo "Otro" */
.pal-option__other-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--sand);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  padding: 4px 0;
  outline: none;
  margin-top: 6px;
}

/* Campo email */
.pal-email-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  margin-top: 8px;
}
.pal-email-input:focus { border-color: var(--terracotta); }

/* Navegación pasos */
.pal-survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.pal-survey-nav .btn-back {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pal-survey-nav .btn-back:hover {
  border-color: var(--terracotta-light);
  background: rgba(196,98,45,0.04);
}

/* Pantalla de gracias */
.pal-thanks {
  text-align: center;
  padding: 20px 0;
}
.pal-thanks__icon { font-size: 64px; margin-bottom: 24px; }
.pal-thanks__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--brown);
  margin-bottom: 16px;
}
.pal-thanks__text {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── IMÁGENES PLACEHOLDER (SVG inline) ───────── */
.pal-img-placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .pal-hero .container,
  .pal-solution .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pal-hero__img { order: -1; }
  .pal-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pal-benefits__grid { grid-template-columns: 1fr; }
  .pal-modal__header,
  .pal-modal__body { padding-left: 24px; padding-right: 24px; }
  .pal-nav__cta { display: none; }
}
