/*
Theme Name:   Arte Paula
Theme URI:    https://artepaula.com
Description:  Child theme de Blocksy para Arte Paula — invitaciones y partes de matrimonio. Maquetado a CSS, trabajado en Classic. Los tokens de diseño viven en assets/css/tokens.css.
Author:       DelaMaza Media
Author URI:   https://delamazamedia.com
Template:     blocksy
Version:      0.2.0
Text Domain:  arte-paula
Tags:         wedding, minimal
*/

/* =============================================================================
   LAYOUT DE PÁGINA
   Los tokens (variables, tipografía base y las piezas .ap-card / .ap-grid /
   .ap-btn) viven en assets/css/tokens.css, que se encola antes de este archivo.
   Acá va solo lo que compone las páginas.

   Reglas que este archivo respeta:
     · El verde es SOLO para botones. Nada más lo usa.
     · Fondo blanco en todo el sitio (ALT 1, decisión de Fabricio 01-nov): las
       secciones ya no alternan color, se separan con el filete --ap-line
       (--ap-ink y más grueso en el CTA de contacto) y aire.
     · Las fotos van 1:1 con object-fit: contain.
   ============================================================================= */

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.ap-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-12);
  align-items: center;
}
.ap-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-6);
}
.ap-hero__title {
  margin: 0;
  font-size: var(--ap-text-4xl);
}
.ap-hero__lead {
  margin: 0;
  font-size: var(--ap-text-lg);
  max-width: 60ch;
}
.ap-hero__media { width: 100%; }

@media (min-width: 900px) {
  .ap-hero__inner { flex-direction: row; gap: var(--ap-space-16); }
  .ap-hero__copy  { flex: 1 1 54%; }
  .ap-hero__media { flex: 1 1 46%; }
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ap-space-4);
  padding-top: var(--ap-space-2);
}

/* ── CABECERA DE SECCIÓN ───────────────────────────────────────────────────── */
.ap-sectionhead {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
  margin-bottom: var(--ap-space-12);
}
.ap-sectionhead > div {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
}
.ap-sectionhead__title {
  margin: 0;
  font-size: var(--ap-text-3xl);
}
@media (min-width: 720px) {
  .ap-sectionhead:not(.ap-sectionhead--stacked) {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ap-space-8);
  }
}

/* Enlace de texto destacado: en tinta, el verde solo al pasar el mouse */
.ap-link {
  font-size: var(--ap-text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* ── TARJETA DEL CATÁLOGO ──────────────────────────────────────────────────── */
/* Toda la tarjeta es un enlace, así que el área táctil es la pieza completa.
   Hereda el color y quita el subrayado: el subrayado se reserva para enlaces
   dentro de texto corrido, donde hace falta distinguirlos. */
.ap-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.ap-card__link:hover { color: inherit; }
.ap-card__link:hover .ap-card__title { color: var(--ap-accent-hover); }
.ap-card__note {
  margin: 0;
  font-size: var(--ap-text-sm);
  color: var(--ap-ink-soft);
}
.ap-card__cue {
  margin-top: var(--ap-space-3);
  font-size: var(--ap-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-caps);
  color: var(--ap-ink-soft);
}

/* ── PLACEHOLDER DE FOTO ───────────────────────────────────────────────────── */
/* Provisional, hasta la sesión de fotos. Ocupa el mismo 1:1 que ocupará la
   imagen real, para que el layout no se mueva al reemplazarlo. */
.ap-ph {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ap-space-2);
  padding: var(--ap-space-4);
  box-sizing: border-box;
  background-color: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-card);
  text-align: center;
}
.ap-ph__label {
  font-size: var(--ap-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-caps);
  color: var(--ap-ink-soft);
}
.ap-ph__hint {
  font-size: var(--ap-text-xs);
  color: var(--ap-ink-soft);
  max-width: 30ch;
  line-height: 1.6;
}
.ap-card__media .ap-ph {
  border: 0;
  border-bottom: 1px solid var(--ap-line);
  border-radius: 0;
  background-color: var(--ap-surface);
}

/* ── PASOS DEL OFICIO ──────────────────────────────────────────────────────── */
.ap-steps {
  display: grid;
  gap: var(--ap-space-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.ap-step {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-3);
  padding-top: var(--ap-space-6);
  /* Filete en gris, no en el acento: el color se reserva para los botones */
  border-top: 2px solid var(--ap-line-strong);
}
.ap-step__title { margin: 0; font-size: var(--ap-text-lg); }
.ap-step p { margin: 0; }

/* ── CITAS ─────────────────────────────────────────────────────────────────── */
.ap-quotes {
  display: grid;
  gap: var(--ap-space-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.ap-quote {
  margin: 0;
  padding: var(--ap-space-8);
  /* ALT 1 (01-nov): la sección ya no tiene color propio, así que la tarjeta de
     cita necesita su propio fondo + filete para separarse del blanco general. */
  background-color: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius-card);
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-4);
}
.ap-quote__text {
  margin: 0;
  font-family: var(--ap-font-display);
  font-style: italic;
  font-size: var(--ap-text-lg);
  line-height: 1.5;
}
.ap-quote__author {
  font-size: var(--ap-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ap-tracking-caps);
  color: var(--ap-ink);
}
.ap-note {
  margin: var(--ap-space-8) 0 0;
  font-size: var(--ap-text-xs);
  color: var(--ap-ink);
}

/* ── CTA ───────────────────────────────────────────────────────────────────── */
.ap-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-12);
}
.ap-cta__copy {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-6);
}
.ap-cta__title { margin: 0; font-size: var(--ap-text-3xl); }
.ap-cta__lead  { margin: 0; font-size: var(--ap-text-lg); max-width: 52ch; }
.ap-cta__whatsapp {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
}
.ap-cta__phone {
  font-family: var(--ap-font-display);
  font-size: var(--ap-text-xl);
  text-decoration: none;
}
.ap-cta__phone--vacio { color: var(--ap-ink-soft); }

@media (min-width: 900px) {
  .ap-cta__inner { flex-direction: row; align-items: flex-start; gap: var(--ap-space-16); }
  .ap-cta__copy  { flex: 1 1 48%; }
  .ap-cta__inner .ap-form { flex: 1 1 52%; }
}

/* ── FORMULARIO ────────────────────────────────────────────────────────────── */
.ap-form { display: flex; flex-direction: column; gap: var(--ap-space-6); }
.ap-field { display: flex; flex-direction: column; gap: var(--ap-space-2); }
.ap-field label {
  font-size: var(--ap-text-sm);
  font-weight: 600;
}
.ap-field input,
.ap-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: var(--ap-space-3) var(--ap-space-4);
  background-color: var(--ap-surface);
  /* Borde FUNCIONAL: un campo hay que poder verlo para usarlo */
  border: 1px solid var(--ap-line-strong);
  border-radius: var(--ap-radius);
  font-family: var(--ap-font-body);
  font-size: 1rem;          /* 16px: menos que eso y iOS hace zoom al enfocar */
  line-height: var(--ap-leading-body);
  color: var(--ap-ink);
}
.ap-field textarea { min-height: 120px; resize: vertical; }
.ap-field input:focus-visible,
.ap-field textarea:focus-visible {
  outline: 2px solid var(--ap-ink);
  outline-offset: 2px;
  border-color: var(--ap-ink);
}
.ap-field-row { display: flex; flex-direction: column; gap: var(--ap-space-6); }
@media (min-width: 560px) {
  .ap-field-row { flex-direction: row; }
  .ap-field-row .ap-field { flex: 1 1 0; }
}
.ap-form__nota {
  margin: 0;
  font-size: var(--ap-text-xs);
  color: var(--ap-ink-soft);
  line-height: 1.6;
}

/* ── PÁGINAS DE TEXTO ──────────────────────────────────────────────────────── */
.ap-page__title {
  margin: var(--ap-space-4) 0 var(--ap-space-6);
  font-size: var(--ap-text-3xl);
}
.ap-prose { display: flex; flex-direction: column; gap: var(--ap-space-6); }
.ap-prose h2 { margin: var(--ap-space-6) 0 0; font-size: var(--ap-text-2xl); }
.ap-prose p  { margin: 0; font-size: var(--ap-text-lg); }
.ap-prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--ap-space-2); }

/* ── AIRE DEL HERO ─────────────────────────────────────────────────────────── */
/* Pedido de Fabricio (26-sep): el hero necesitaba separarse del header y de la
   sección siguiente. Va en margin y no en padding para que el fondo crema de la
   sección no se estire: el margen deja ver el fondo del sitio y el hero se lee
   como una pieza apoyada sobre él. */
.ap-hero {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ── MENÚ DESPLEGABLE DE BLOCKSY ───────────────────────────────────────────── */
/* Pedido de Fabricio (26-sep): el enlace activo del submenú casi no se veía
   sobre el fondo oscuro del desplegable. Se fuerza el beige claro, que sobre
   oscuro es la única opción legible de la paleta — el acento oliva sobre negro
   quedaría en 2,4:1 y la tinta desaparecería.
   Va con !important porque Blocksy pinta estos estados desde su CSS inline, que
   se inyecta después de esta hoja y gana por orden de cascada. */
.ct-header [class*="ct-"] .sub-menu .current-menu-item > a,
.ct-header [class*="ct-"] .sub-menu .current-menu-ancestor > a,
.ct-header [class*="ct-"] .sub-menu .current_page_item > a,
.ct-header .sub-menu .current-menu-item > a,
.ct-header .sub-menu .current-menu-ancestor > a,
.ct-header .sub-menu .current_page_item > a,
.sub-menu .current-menu-item > a,
.sub-menu .current-menu-ancestor > a {
  color: #DED8CC !important;
}
/* Y el hover del submenú, para que no herede un color de bajo contraste */
.ct-header .sub-menu a:hover,
.sub-menu a:hover {
  color: #DED8CC !important;
}

/* ── CABECERA ──────────────────────────────────────────────────────────────── */
/* ALT 1 (01-nov): blanca, como el resto del sitio. La separa el filete de abajo,
   no un cambio de fondo — ya no hay fondo distinto que cambiar. */
.ct-header,
.ct-header [data-row],
.ct-header [data-row="middle"],
.ct-header [data-row="top"],
.ct-header [data-row="bottom"] {
  background-color: var(--ap-surface) !important;
}
/* El sticky, si se activa, mantiene el mismo fondo */
.ct-header [data-sticky] { background-color: var(--ap-surface) !important; }

/* El borde inferior del header: gris decorativo, no una línea dura */
.ct-header [data-row="middle"] { border-bottom: 1px solid var(--ap-line); }

/* ── TIPOGRAFÍA DEL MENÚ ───────────────────────────────────────────────────── */
/* Pedido de Fabricio (26-sep): más elegante. Se queda en Syne, no en Playfair,
   y sube de tamaño bajando de peso.
   Por qué no Playfair acá: es una display con mucho contraste de trazo, y a
   14-16px sus remates finos se empastan — se ve peor, no más elegante. Además
   el sistema ya asigna Playfair a los títulos; el menú es interfaz.
   La elegancia viene del peso bajo y el tracking abierto, no de la serif. */
.ct-header .menu > li > a,
.ct-header [data-id="menu"] > ul > li > a,
.ct-header .ct-header-nav > ul > li > a {
  font-family: var(--ap-font-body);
  font-size: 15px !important;
  font-weight: 400 !important;      /* venía en 600-700: eso era lo que pesaba */
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

/* El submenú acompaña, un punto menor y sin mayúsculas: son nombres largos */
.ct-header .sub-menu > li > a,
.sub-menu > li > a {
  font-family: var(--ap-font-body);
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

/* El nombre del sitio en la cabecera sí va en Playfair: ahí es marca, no interfaz */
.ct-header .site-title,
.ct-header [data-id="logo"] .site-title a {
  font-family: var(--ap-font-display) !important;
  font-weight: 400 !important;
  letter-spacing: var(--ap-tracking-display);
}

/* ── IMAGEN REAL EN LA TARJETA ─────────────────────────────────────────────── */
/* `contain` y no `cover`: hay modelos verticales y horizontales, y la pieza
   tiene que verse entera — es el argumento de precio. El hueco cuadrado se
   rellena con crema, que es el fondo sobre el que se fotografía mejor. */
.ap-card__media {
  aspect-ratio: 1 / 1;
  background-color: var(--ap-surface);
  border-bottom: 1px solid var(--ap-line);
  padding: var(--ap-space-4);
  box-sizing: border-box;
}
.ap-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Sin enlace todavía (no hay ficha de modelo), así que la tarjeta no sugiere
   click: se queda quieta al pasar por encima. */
.ap-card:not(:has(.ap-card__link)):hover { transform: none; }
