/*
Theme Name: Hello Elementor Child
Theme URI: https://elcaminosoyyo.com
Description: Tema hijo de Hello Elementor — Sistema de diseño Terracota v1
Author: El Camino Soy Yo
Author URI: https://elcaminosoyyo.com
Template: hello-elementor
Version: 1.0.0
*/

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

/* ============================================
   VARIABLES — SISTEMA DE DISEÑO TERRACOTA v1
   ============================================ */
:root {
  /* Colores principales */
  --terracota: #8B5E3C;
  --dorado: #C9A96E;
  --marron: #2C1810;
  --blanco: #FDFAF6;
  --terracota-light: #B07A54;
  --gris: rgba(44,24,16,0.65);
  --crema-dark: #F5EDE0;

  /* Tipografías */
  --font-titulo: 'Cormorant Garamond', serif;
  --font-cuerpo: 'DM Sans', sans-serif;

  /* Espaciado */
  --max-width: 1200px;
  --section-padding: 80px 40px;
  --section-padding-mobile: 60px 20px;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  font-weight: 300;
  color: var(--marron);
  background-color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* ============================================
   TIPOGRAFÍA — JERARQUÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulo);
  font-weight: 300;
  color: var(--marron);
  line-height: 1.15;
  margin-top: 0;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 30px); }

p {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--marron);
  font-weight: 300;
}

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

a:hover {
  color: var(--dorado);
}

/* ============================================
   EYEBROW / LABELS
   ============================================ */
.eyebrow,
.sec-eyebrow,
.block-ey,
.cta-eyebrow {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
}

/* ============================================
   BOTONES
   ============================================ */
.btn-p,
.btn-primary {
  display: inline-block;
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  background-color: var(--terracota);
  color: var(--blanco);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-p:hover,
.btn-primary:hover {
  background-color: var(--marron);
  color: var(--blanco);
  transform: translateY(-1px);
}

.btn-s,
.btn-secondary {
  display: inline-block;
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 13px 31px;
  background-color: transparent;
  color: var(--marron);
  border: 1px solid var(--marron);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-s:hover,
.btn-secondary:hover {
  background-color: var(--marron);
  color: var(--blanco);
}

/* Botones sobre fondo oscuro */
.btn-light {
  background-color: var(--blanco);
  color: var(--marron);
}

.btn-light:hover {
  background-color: var(--dorado);
  color: var(--marron);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--blanco);
  border: 1px solid var(--blanco);
}

.btn-outline-light:hover {
  background-color: var(--blanco);
  color: var(--marron);
}

/* ============================================
   LAYOUT — CONTENEDORES
   ============================================ */
.container,
.sec-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding);
}

/* ============================================
   CARDS DE SERVICIOS Y TALLERES
   ============================================ */
.srv-card {
  background: var(--crema-dark);
  border-top: 2px solid var(--dorado);
  padding: 32px 28px;
}

.srv-title {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--marron);
  margin-bottom: 16px;
}

.srv-desc,
.card-body {
  font-family: var(--font-cuerpo);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gris);
  margin-bottom: 20px;
}

/* PRECIO — tamaño grande para legibilidad */
.srv-price {
  font-family: var(--font-titulo);
  font-size: 2.375rem;
  font-weight: 400;
  color: var(--terracota);
  margin-bottom: 18px;
  display: block;
}

.srv-price-sub {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: var(--gris);
  font-weight: 400;
  margin-left: 4px;
}

.srv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.srv-list li {
  font-family: var(--font-cuerpo);
  font-size: 0.8125rem;
  color: var(--marron);
  padding: 6px 0;
  border-bottom: 1px solid rgba(44,24,16,0.08);
}

.srv-list li::before {
  content: "·";
  color: var(--dorado);
  margin-right: 8px;
}

/* ============================================
   TAGS / PILLS
   ============================================ */
.tag,
.coach-tag,
.coming-badge {
  display: inline-block;
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--terracota);
  color: var(--marron);
  background: transparent;
}

/* ============================================
   PRECIO — PÁGINAS INTERIORES
   ============================================ */
.price-main {
  font-family: var(--font-titulo);
  font-size: 2.375rem;
  font-weight: 400;
  color: var(--terracota);
}

.price-sub {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: var(--gris);
  font-weight: 400;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.test-quote {
  font-family: var(--font-titulo);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--marron);
}

.test-name {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marron);
}

.test-svc {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: var(--terracota);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.test-date {
  font-family: var(--font-titulo);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--gris);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* ============================================
   FAQ ACORDEÓN
   ============================================ */
.faq-q {
  font-family: var(--font-cuerpo);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--marron);
  cursor: pointer;
}

.faq-a {
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gris);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-col-title {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 20px;
}

.footer-col a {
  font-family: var(--font-cuerpo);
  font-size: 0.8rem;
  color: rgba(253,250,246,0.7);
  display: block;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--dorado);
}

.footer-copy {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: rgba(253,250,246,0.4);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  :root {
    --section-padding: 60px 20px;
  }

  .container,
  .sec-inner {
    padding: 0 20px;
  }

  h1 { font-size: clamp(28px, 7vw, 42px); }
  h2 { font-size: clamp(22px, 5vw, 32px); }

  .srv-card {
    padding: 24px 20px;
  }

  .srv-price {
    font-size: 1.875rem;
  }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(24px, 8vw, 36px); }
}

/* ============================================
   ECSJ STATIC PAGES — Ocultar elementos del tema
   SCOPE: solo páginas con plantilla ECSJ Static HTML
   ============================================ */

/* Ocultar header del tema Hello Elementor */
.ecsj-static-page .site-header { display: none !important; }

/* Ocultar footer del tema Hello Elementor */
.ecsj-static-page .site-footer { display: none !important; }

/* Ocultar título de página que WordPress inserta */
.ecsj-static-page .page-title,
.ecsj-static-page .entry-title { display: none !important; }

/* ============================================
   ECSJ — Fix FAQ accordion color
   Neutraliza el color rosa/magenta que wp-block-library
   aplica a botones con foco en páginas ECSJ
   SCOPE: páginas con plantilla page-ecsj-static.php
   ============================================ */
.ecsj-static-page .faq-btn,
.ecsj-static-page .faq-btn:focus,
.ecsj-static-page .faq-btn:active,
.ecsj-static-page .faq-btn:focus-visible {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.ecsj-static-page .faq-item.open .faq-btn,
.ecsj-static-page .faq-item.open .faq-btn:focus {
  background: transparent !important;
  color: var(--marron) !important;
}

/* ============================================
   ECSJ — NUCLEAR FIX: eliminar fondo rosa de WordPress
   en TODOS los elementos interactivos de páginas ECSJ.
   El diseño ECSJ nunca usa rosa/magenta. Cualquier
   aparición de ese color viene de wp-block-library,
   Elementor, o estilos por defecto del browser.
   SCOPE: solo páginas con clase body.ecsj-static-page
   ============================================ */
.ecsj-static-page button,
.ecsj-static-page summary,
.ecsj-static-page [onclick],
.ecsj-static-page [role="button"],
.ecsj-static-page details summary,
.ecsj-static-page button:focus,
.ecsj-static-page button:active,
.ecsj-static-page button:focus-visible,
.ecsj-static-page button:hover,
.ecsj-static-page summary:focus,
.ecsj-static-page summary:active,
.ecsj-static-page [onclick]:focus,
.ecsj-static-page [onclick]:active,
.ecsj-static-page [onclick]:focus-visible,
.ecsj-static-page [role="button"]:focus,
.ecsj-static-page [role="button"]:active {
  background-color: transparent !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ============================================
   ECSJ — Footer bottom: ajuste tipográfico
   SCOPE: todas las páginas ECSJ static
   ============================================ */

/* Copyright y tagline — subir de 0.75rem a 0.85rem */
.ecsj-static-page .footer-bottom,
.ecsj-static-page .footer-copy,
.ecsj-static-page .footer-tagline,
.ecsj-static-page .footer-bottom p,
.ecsj-static-page .footer-bottom span {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}

/* Botón "Volver al inicio" — mismo tamaño que el resto del footer-bottom */
.ecsj-static-page .footer-back,
.ecsj-static-page .back-to-top,
.ecsj-static-page [href="#top"],
.ecsj-static-page .footer-bottom a {
  font-size: 0.85rem !important;
}

/* ============================================
   ECSJ — Footer bottom: tamaño + contraste DEFINITIVO
   Reemplaza el fix anterior (que no fue suficiente)
   SCOPE: todas las páginas ECSJ static
   ============================================ */
body.ecsj-static-page .footer-bottom,
body.ecsj-static-page .footer-bottom *,
body.ecsj-static-page .footer-copy,
body.ecsj-static-page .footer-copy *,
body.ecsj-static-page .footer-tagline,
body.ecsj-static-page .footer-back,
body.ecsj-static-page .back-to-top,
body.ecsj-static-page [href="#top"],
body.ecsj-static-page .footer-bottom a,
body.ecsj-static-page .footer-bottom p,
body.ecsj-static-page .footer-bottom span {
  font-size: 0.875rem !important;
  color: rgba(253, 250, 246, 0.75) !important;
  line-height: 1.6 !important;
}

body.ecsj-static-page .footer-bottom a:hover,
body.ecsj-static-page [href="#top"]:hover {
  color: rgba(253, 250, 246, 1) !important;
  text-decoration: none !important;
}

/* ============================================
   ECSJ — Footer mini (páginas interiores): tamaño + contraste
   SCOPE: todas las páginas ECSJ static con footer-mini
   ============================================ */
body.ecsj-static-page .footer-mini,
body.ecsj-static-page .footer-mini *,
body.ecsj-static-page .footer-mini p,
body.ecsj-static-page .footer-mini a,
body.ecsj-static-page .footer-mini .footer-copy,
body.ecsj-static-page .footer-mini .footer-lnk {
  font-size: 0.875rem !important;
  color: rgba(253, 250, 246, 0.75) !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}

body.ecsj-static-page .footer-mini a:hover,
body.ecsj-static-page .footer-mini .footer-lnk:hover {
  color: rgba(253, 250, 246, 1) !important;
  text-decoration: none !important;
}

/* ============================================
   ECSJ — Ecos de Nosotras: corregir encuadre video hero
   El video de Ecos muestra a la persona sentada —
   object-position: center top prioriza la parte superior
   donde está la cabeza del sujeto.
   SCOPE: solo página Ecos de Nosotras
   ============================================ */
}

/* ============================================
   ECSJ — Ecos de Nosotras: encuadre video hero
   Video portrait 9:16 en contenedor landscape.
   Sujeto centrado-derecha → object-position 60% 15%
   mueve el punto de corte hacia donde está la cara.
   SCOPE: solo página con ID 35 (Ecos de Nosotras)
   ============================================ */
.page-id-35 .hero-video {
  object-position: center 35% !important;
}
