/* ============================================
   4Tony — Landing v2
   Paleta: cream #FAF7F2 · dark #2A2520 · wood #8B6F47
   ============================================ */

:root {
  --cream: #FAF7F2;
  --cream-darker: #F5F1EA;
  --dark: #2A2520;
  --wood: #8B6F47;
  --wood-dark: #6B5237;
  --stone: #6B6359;
  --moss: #7A8B5A;
  --line: rgba(42, 37, 32, 0.1);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1200px;
  --container-narrow: 720px;

  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
}

/* ===== Tipografía ===== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--dark);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 600; }

p { margin-bottom: 1.25rem; }

a {
  color: var(--wood);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--wood-dark); text-decoration: underline; }

strong { font-weight: 600; color: var(--dark); }
em { font-style: italic; color: var(--wood-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: var(--wood-dark);
  border-left: 3px solid var(--wood);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  line-height: 1.3;
  font-weight: 400;
}

ul li { margin-bottom: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }

.section-lead {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.section-lead.text-center { margin-left: auto; margin-right: auto; }

.section-lead:not(:last-of-type) { margin-bottom: 0.6rem; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow { max-width: var(--container-narrow); }

section {
  padding: 5.5rem 0;
}

.section-cream-darker { background: var(--cream-darker); }

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
}

/* ===== Header sticky nav ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-wordmark {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}

.logo-wordmark:hover {
  text-decoration: none;
  color: var(--dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--dark);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
}

.site-nav a:hover {
  color: var(--wood);
  text-decoration: none;
}

.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--wood);
  transition: width 0.25s ease;
}

.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--dark);
  color: var(--cream) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--wood);
  text-decoration: none;
}

@media (max-width: 780px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav { gap: 0; }
  .logo-wordmark { font-size: 1.4rem; }
}

/* ===== Hero ===== */
.hero { padding: 4rem 0 6rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 540px; }

.hero-title { margin-bottom: 1.25rem; }

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--stone);
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

.hero-subtitle + .hero-subtitle { margin-bottom: 2rem; }

.hero-microtext {
  font-size: 0.9rem;
  color: var(--stone);
  margin-top: 1rem;
  margin-bottom: 0;
}

.hero-image img {
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(42, 37, 32, 0.12);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 900px) {
  .hero { padding: 2rem 0 4rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content { max-width: 100%; order: 1; }
  .hero-image { order: 0; }
}

/* ===== Botón ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--dark);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--wood);
  color: var(--cream);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== Producto ===== */
.producto h2 { margin-bottom: 1.5rem; }

.producto-image {
  max-width: 380px;
  margin: 0 auto 3.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.producto-image img {
  width: 100%;
  height: auto;
  display: block;
}

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

.feature {
  padding: 2.25rem;
  background: var(--cream-darker);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.feature h3 {
  color: var(--wood-dark);
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
}

.feature p { margin-bottom: 0.6rem; color: var(--stone); }
.feature p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .producto-image { max-width: 280px; margin-bottom: 2.5rem; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 1.75rem; }
}

/* ===== Proceso ===== */
.proceso h2 { margin-bottom: 1.5rem; }

.proceso-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.proceso-item:last-child { border-bottom: none; }

.proceso-item h3 {
  color: var(--wood-dark);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.proceso-item p { margin-bottom: 0.6rem; color: var(--stone); }
.proceso-item p:last-child { margin-bottom: 0; }

/* ===== Encaja (dark) ===== */
.encaja {
  background: var(--dark);
  color: var(--cream);
}

.encaja h2 { color: var(--cream); }

.encaja .lead {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: rgba(250, 247, 242, 0.82);
  font-size: 1.1rem;
}

.encaja-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.encaja figure {
  overflow: hidden;
  border-radius: 6px;
}

.encaja figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.encaja figure:hover img { transform: scale(1.03); }

.encaja figcaption {
  padding: 1.25rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(250, 247, 242, 0.75);
  text-align: center;
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .encaja-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Diferencial tabla ===== */
.diferencial h2 { margin-bottom: 1.5rem; }

.table-wrapper {
  overflow-x: auto;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.comparison th,
.comparison td {
  padding: 1rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison thead th {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--dark);
  color: var(--dark);
}

.comparison th.highlight,
.comparison td.highlight {
  background: rgba(139, 111, 71, 0.08);
  font-weight: 500;
}

.comparison thead th.highlight { color: var(--wood-dark); }

.comparison .small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--stone);
  margin-top: 0.2rem;
}

/* ===== Historia ===== */
.historia h2 { margin-bottom: 2rem; }
.historia p { font-size: 1.05rem; line-height: 1.7; }

/* ===== Problema ===== */
.problema h2 { margin-bottom: 2rem; }
.problema p { font-size: 1.1rem; line-height: 1.7; margin-bottom: 0.8rem; }
.problema p:last-child { margin-bottom: 0; }

/* ===== Reserva ===== */
.reserva h2 { margin-bottom: 1rem; }

.reserva .price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--wood-dark);
  margin-bottom: 2.25rem;
  font-style: italic;
}

.reserva .price strong { color: var(--dark); font-style: normal; }

.reserva-list {
  list-style: none;
  max-width: 500px;
  margin: 1rem auto 1.5rem;
  padding: 0;
}

.reserva-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  padding-left: 1.5rem;
  position: relative;
}

.reserva-list li::before {
  content: '·';
  color: var(--wood);
  position: absolute;
  left: 0.5rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.reserva-list li:last-child { border-bottom: none; }

.reserva-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 440px;
  margin: 2.25rem auto 0;
}

.reserva-form input {
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--dark);
  transition: border-color 0.2s ease;
}

.reserva-form input:focus {
  outline: none;
  border-color: var(--wood);
}

.reserva-form .microtext {
  font-size: 0.85rem;
  color: var(--stone);
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* ===== FAQ ===== */
.faq h2 { margin-bottom: 2.5rem; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  color: var(--dark);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.7rem;
  color: var(--wood);
  transition: transform 0.2s ease;
  font-weight: 300;
  line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding-top: 1rem;
  color: var(--stone);
  margin-bottom: 0;
}

/* ===== Consent text bajo formulario ===== */
.consent-text {
  font-size: 0.8rem;
  color: var(--stone);
  margin: 0.5rem 0 0;
  text-align: center;
  line-height: 1.5;
}

.consent-text a {
  color: var(--stone);
  text-decoration: underline;
}

.consent-text a:hover { color: var(--wood); }

.form-error {
  font-size: 0.9rem;
  color: #B8443F;
  text-align: center;
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: rgba(184, 68, 63, 0.08);
  border-radius: 4px;
}

.form-error a { color: #B8443F; text-decoration: underline; }

/* ===== Páginas legales ===== */
.legal {
  padding: 4rem 0 5rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal-date {
  font-size: 0.9rem;
  color: var(--stone);
  font-style: italic;
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal p, .legal li {
  color: var(--stone);
  line-height: 1.7;
}

.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal strong { color: var(--dark); }

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ===== Gracias ===== */
.gracias {
  padding: 6rem 0;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

.gracias-title {
  margin-bottom: 2rem;
}

.gracias-text {
  font-size: 1.2rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.gracias-text:last-of-type { margin-bottom: 2.5rem; }

.gracias-signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--wood-dark);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.gracias-back {
  display: inline-block;
}

@media (max-width: 640px) {
  .gracias { padding: 3.5rem 0; }
}

/* ===== Footer ===== */
.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--wood-dark);
  margin: 0;
  font-size: 1.1rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--stone);
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a { color: var(--stone); }
.footer-links a:hover { color: var(--wood); }

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .footer-meta { flex-direction: column; align-items: flex-start; }
}
