/*
 Theme Name:   Sosta Child
 Theme URI:    https://sosta.com
 Description:  Child theme de GeneratePress para Sosta — Arte hecho con calma
 Author:       Sosta
 Author URI:   https://sosta.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  sosta-child
*/

/* ============================================================
   SOSTA DESIGN SYSTEM — Child Theme
   Arte hecho con calma
   ============================================================ */

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

/* ─────────────────────────────────────────
   1. TOKENS DE COLOR
   Para cambiar colores, edita solo esta sección
───────────────────────────────────────── */
:root {
  --bg-primary:       #FAF7F2;   /* fondo principal — lino cálido */
  --bg-secondary:     #F2EDE5;   /* fondo secundario — lino más profundo */
  --bg-dark:          #3D3530;   /* fondo oscuro — hero, secciones destacadas */
  --brand-clay:       #C4A99A;   /* rosa arcilla — acento de marca */
  --brand-green:      #4E7D5B;   /* verde Sosta — color CTA principal */
  --accent-soft:      #D6E8D8;   /* verde suave — tags, highlights */
  --neutral-sand:     #D4C4B5;   /* arena — bordes, divisores */
  --text-primary:     #6B5244;   /* café mocha — texto principal */
  --text-light:       #9C7B6E;   /* mocha claro — captions, metadata */
  --text-on-dark:     #FAF7F2;   /* texto sobre fondos oscuros */
  --text-on-dark-muted: #C4A99A; /* texto secundario sobre oscuro */
  --border:           #D4C4B5;
  --border-light:     #EAE2D8;
  --footer-bg:        #6B5244;   /* café mocha — footer */
}

/* ─────────────────────────────────────────
   2. TOKENS DE TIPOGRAFÍA
   Para cambiar fuentes, edita --font-display y --font-body
───────────────────────────────────────── */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
}

/* ─────────────────────────────────────────
   3. TOKENS DE ESPACIADO
───────────────────────────────────────── */
:root {
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   52px;
  --space-xl:   80px;
  --space-2xl:  104px;
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-pill: 999px;
  --shadow-card:  0 2px 18px rgba(107,82,68,0.06);
  --shadow-hover: 0 8px 32px rgba(107,82,68,0.12);
  --shadow-modal: 0 20px 60px rgba(61,43,31,0.15);
}

/* ─────────────────────────────────────────
   3b. OCULTAR ELEMENTOS DE GENERATEPRESS
   que el child theme reemplaza
───────────────────────────────────────── */

/* Ocultar nav por defecto de GeneratePress */
.main-navigation,
.gen-sidebar-nav,
#generate-mobile-menu,
.menu-toggle,
.main-nav-search {
  display: none !important;
}

/* Ocultar site-title/tagline de GP (usamos el nuestro en header.php) */
.site-header .site-branding,
.site-header .site-description {
  display: none;
}

/* Eliminar padding/margin del inside-header de GP */
.inside-header {
  padding: 0 52px !important;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─────────────────────────────────────────
   4. RESET Y BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Override GeneratePress defaults */
.inside-article,
.entry-content {
  padding: 0;
}

/* ─────────────────────────────────────────
   5. TIPOGRAFÍA GLOBAL
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 24px; }
h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
h3 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 16px; }
h4 { font-size: clamp(18px, 2vw, 24px); margin-bottom: 12px; }

p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 15px;
  line-height: 1.82;
  color: var(--text-primary);
  margin-bottom: 1.2em;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.75; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: clamp(22px, 2.5vw, 30px);
  color: var(--text-primary);
  border-left: 3px solid var(--brand-green);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  line-height: 1.3;
}

/* ─────────────────────────────────────────
   6. NAVEGACIÓN
───────────────────────────────────────── */
.site-header,
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,247,242,0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
  height: 68px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  border-color: var(--border-light);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 24px rgba(107,82,68,0.06);
}

.inside-header {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo a,
.site-title a {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 30px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* Nav links */
.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li a {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 11px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  opacity: 1;
}

.main-nav ul li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--brand-green);
}

/* ─────────────────────────────────────────
   7. HERO
───────────────────────────────────────── */
.sosta-hero {
  background: var(--bg-dark);
  padding: var(--space-2xl) var(--space-lg) 0;
  position: relative;
  overflow: hidden;
  min-height: 580px;
}

.sosta-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.sosta-hero__eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-clay);
  margin-bottom: 32px;
  opacity: 0.75;
}

.sosta-hero__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: clamp(60px, 8.5vw, 108px);
  line-height: 1.02;
  color: var(--text-on-dark);
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.sosta-hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: clamp(17px, 2vw, 22px);
  color: var(--brand-clay);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 44px;
}

/* ─────────────────────────────────────────
   8. BOTONES
───────────────────────────────────────── */
.sosta-btn,
.wp-block-button__link,
button[type="submit"] {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* Primary */
.sosta-btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--brand-green);
  color: white;
}
.sosta-btn--primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: #3d6448;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(78,125,91,0.28);
  color: white;
}

/* Ghost */
.sosta-btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(250,247,242,0.3);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.sosta-btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-green);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  border-radius: inherit;
}
.sosta-btn--ghost:hover {
  border-color: rgba(78,125,91,0.6);
  color: var(--text-on-dark);
}
.sosta-btn--ghost:hover::before {
  opacity: 0.22;
}

/* Outline */
.sosta-btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.sosta-btn--outline:hover {
  border-color: var(--text-primary);
}

/* ─────────────────────────────────────────
   9. CARDS DE CONTENIDO
───────────────────────────────────────── */
.sosta-card {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s cubic-bezier(0,0,0.2,1), box-shadow 0.22s;
}
.sosta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.sosta-card__thumb {
  height: 170px;
  background: var(--bg-secondary);
}

.sosta-card__body {
  padding: 22px 24px 26px;
}

.sosta-card__meta {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.sosta-card__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.22;
  margin-bottom: 10px;
}

.sosta-card__excerpt {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.72;
  margin-bottom: 14px;
}

/* ─────────────────────────────────────────
   10. TAGS / ETIQUETAS
───────────────────────────────────────── */
.sosta-tag,
.wp-block-post-terms a {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--brand-green);
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 11px;
  text-decoration: none;
}

/* ─────────────────────────────────────────
   11. GRIDS DE CONTENIDO
───────────────────────────────────────── */
.sosta-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sosta-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sosta-grid-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ─────────────────────────────────────────
   12. SECCIONES
───────────────────────────────────────── */
.sosta-section {
  padding: 96px 52px;
  max-width: 100%;
}

.sosta-section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.sosta-section--linen  { background: var(--bg-primary); }
.sosta-section--sand   { background: var(--bg-secondary); }
.sosta-section--dark   { background: var(--bg-dark); }
.sosta-section--green  { background: var(--brand-green); }

.sosta-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 52px;
}

.sosta-section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: clamp(34px, 4vw, 52px);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sosta-section__title--light { color: var(--text-on-dark); }

.sosta-section__link {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 11px;
  color: var(--brand-green);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--brand-green);
  padding-bottom: 2px;
}

/* ─────────────────────────────────────────
   13. TICKER ANIMADO
───────────────────────────────────────── */
.sosta-ticker {
  background: var(--brand-green);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes sosta-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sosta-ticker__track {
  display: inline-flex;
  align-items: center;
  animation: sosta-ticker 24s linear infinite;
}

.sosta-ticker__kw {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  color: rgba(250,247,242,0.88);
  letter-spacing: 0.07em;
  padding: 0 30px;
}

.sosta-ticker__dot {
  color: var(--accent-soft);
  opacity: 0.4;
  font-size: 10px;
}

/* ─────────────────────────────────────────
   14. FORMULARIO / NEWSLETTER
───────────────────────────────────────── */
.sosta-nl-card {
  background: var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sosta-nl__eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(214,232,216,0.75);
  margin-bottom: 22px;
}

.sosta-nl__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: clamp(30px, 3.5vw, 44px);
  color: var(--text-on-dark);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

input[type="email"],
input[type="text"],
textarea {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--brand-green);
}

input::placeholder,
textarea::placeholder {
  color: var(--brand-clay);
}

/* ─────────────────────────────────────────
   15. FOOTER
───────────────────────────────────────── */
.site-footer,
#site-footer {
  background: var(--footer-bg);
  padding: 80px 52px 44px;
  color: var(--text-on-dark);
}

.site-footer .inside-footer {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-widgets-container {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 52px;
  border-bottom: 1px solid rgba(212,196,181,0.14);
  padding-bottom: 56px;
  margin-bottom: 30px;
}

.footer-widget-title,
.site-footer .widget-title {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-clay);
  margin-bottom: 18px;
}

.site-footer .widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.site-footer .widget ul li a {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  color: rgba(250,247,242,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .widget ul li a:hover {
  color: rgba(250,247,242,0.9);
}

.footer-logo-area {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: 36px;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: 15px;
  color: var(--brand-clay);
  line-height: 1.55;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 11px;
  color: rgba(250,247,242,0.3);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
   16. ANIMACIONES
───────────────────────────────────────── */
@keyframes sosta-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sosta-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0,0,0.2,1),
              transform 0.7s cubic-bezier(0,0,0.2,1);
}
.sosta-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   17. RESPONSIVE — TABLET (≤1024px)
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .inside-header { padding: 0 32px; }
  .sosta-section { padding: 72px 32px; }
  .site-footer, #site-footer { padding: 64px 32px 36px; }
  .sosta-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sosta-grid-featured { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sosta-nl-card { padding: 44px; gap: 40px; }
  .footer-widgets-container { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-widgets-container > div:last-child { display: none; }
}

/* ─────────────────────────────────────────
   18. RESPONSIVE — MÓVIL (≤640px)
───────────────────────────────────────── */
@media (max-width: 640px) {
  .inside-header { padding: 0 20px; }
  .sosta-section { padding: 56px 20px; }
  .sosta-hero { padding: 56px 20px 0; }
  .site-footer, #site-footer { padding: 52px 20px 28px; }
  .sosta-grid-3,
  .sosta-grid-2,
  .sosta-grid-featured { grid-template-columns: 1fr; }
  .sosta-nl-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 28px;
  }
  .sosta-section__head { flex-direction: column; gap: 12px; }
  .footer-widgets-container {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-widgets-container > div:last-child { display: block; }
  .main-nav { display: none; } /* handled by GeneratePress mobile nav */
}
