/* ═══════════════════════════════════════
   EL PUNTO — SHARED STYLES
   Centros de Formación · Sevilla
═══════════════════════════════════════ */

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

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

:root {
  --cream:      #F5F0E8;
  --ivory:      #FAF7F2;
  --charcoal:   #1C1C1A;
  --warm-dark:  #1A1814;
  --gold:       #B8954A;
  --gold-light: #D4AF6E;
  --muted:      #7A7570;
  --border:     rgba(28,28,26,0.12);
}

html { scroll-behavior: smooth; overflow-x: hidden; margin-top: 0 !important; }
body { background: var(--ivory); color: var(--charcoal); font-family: 'Karla', sans-serif; font-weight: 300; overflow-x: hidden; max-width: 100vw; margin-top: 0 !important; }

/* ── NAV ── */
nav {
  position: fixed; top: 0 !important; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 3rem;
  background: rgba(250,247,242,0.94); backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  max-width: 100vw; box-sizing: border-box;
  margin: 0 !important;
}
/* Compatibilidad con Admin Bar de WordPress */
body.admin-bar nav { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar nav { top: 46px !important; }
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 300; letter-spacing: 0.12em; color: var(--charcoal); text-decoration: none; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.76rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--charcoal); }
.nav-links a.active { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav-cta { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none; border: 0.5px solid var(--gold); padding: 0.6rem 1.4rem; transition: all 0.3s; }
.nav-cta:hover { background: var(--gold); color: var(--ivory); }
.nav-mobile-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-mobile-btn span { display: block; width: 22px; height: 1px; background: var(--charcoal); transition: all 0.3s; }
.nav-mobile-menu { display: none; position: fixed; inset: 0; background: var(--ivory); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; color: var(--charcoal); text-decoration: none; letter-spacing: 0.05em; }
.nav-mobile-menu a:hover { color: var(--gold); }
.nav-mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }

/* ── FOOTER ── */
.site-footer {
  background: var(--warm-dark);
  padding: 4rem 3rem 2.5rem;
  max-width: 100vw; box-sizing: border-box; overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 0.5px solid rgba(250,247,242,0.08); }
.footer-brand {}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; letter-spacing: 0.12em; color: rgba(250,247,242,0.7); margin-bottom: 1rem; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.82rem; color: rgba(250,247,242,0.35); line-height: 1.75; max-width: 28ch; }
.footer-col-title { font-size: 0.65rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.82rem; color: rgba(250,247,242,0.4); text-decoration: none; transition: color 0.3s; }
.footer-col ul a:hover { color: rgba(250,247,242,0.8); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.7rem; color: rgba(250,247,242,0.2); letter-spacing: 0.06em; }
.footer-legal { display: flex; gap: 2rem; list-style: none; }
.footer-legal a { font-size: 0.7rem; color: rgba(250,247,242,0.2); text-decoration: none; letter-spacing: 0.08em; transition: color 0.3s; }
.footer-legal a:hover { color: rgba(250,247,242,0.5); }

/* ── MARQUEE ── */
.marquee-wrap { overflow: hidden; border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border); padding: 0.9rem 0; background: var(--cream); max-width: 100vw; }
.marquee-track { display: flex; animation: marquee 30s linear infinite; white-space: nowrap; }
.marquee-track span { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; color: var(--muted); padding: 0 2.2rem; }
.marquee-track .dot { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem 3rem 4rem;
  position: relative; overflow: hidden;
  background: var(--charcoal);
  max-width: 100vw; box-sizing: border-box;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4) saturate(0.7); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,24,20,0.85) 0%, rgba(28,24,20,0.3) 60%, transparent 100%); }
.page-hero-content { position: relative; z-index: 1; }
.page-eyebrow { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.page-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; line-height: 0.95; color: var(--ivory); }
.page-title em { font-style: italic; color: var(--gold); }
.page-subtitle { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 300; color: rgba(250,247,242,0.5); margin-top: 1rem; max-width: 55ch; line-height: 1.5; }
.breadcrumb { display: flex; gap: 0.6rem; align-items: center; margin-bottom: 2rem; }
.breadcrumb a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,247,242,0.4); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: rgba(250,247,242,0.8); }
.breadcrumb span { font-size: 0.72rem; color: rgba(250,247,242,0.25); }
.breadcrumb .current { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ── SECTION COMMONS ── */
.section-eyebrow { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: block; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; color: var(--charcoal); }
.section-title em { font-style: italic; color: var(--gold); }
.section-title.light { color: var(--ivory); }

/* ── BUTTONS ── */
.btn-primary { display: inline-block; background: var(--charcoal); color: var(--ivory); font-family: 'Karla', sans-serif; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 1rem 2.2rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--gold); }
.btn-gold { display: inline-block; background: var(--gold); color: var(--ivory); font-family: 'Karla', sans-serif; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 1rem 2.2rem; transition: all 0.3s; border: none; cursor: pointer; }
.btn-gold:hover { background: var(--charcoal); }
.btn-outline { display: inline-block; background: transparent; color: var(--charcoal); font-family: 'Karla', sans-serif; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 1rem 2.2rem; border: 0.5px solid var(--border); transition: all 0.3s; cursor: pointer; }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-outline.light { color: rgba(250,247,242,0.6); border-color: rgba(250,247,242,0.2); }
.btn-outline.light:hover { color: var(--ivory); border-color: rgba(250,247,242,0.6); }
.btn-ghost { font-size: 0.78rem; color: var(--muted); text-decoration: none; border-bottom: 0.5px solid var(--border); padding-bottom: 2px; transition: all 0.3s; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; }
.btn-ghost:hover { color: var(--charcoal); border-color: var(--charcoal); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ── FORM ELEMENTS ── */
.form-field { display: flex; flex-direction: column; border-bottom: 0.5px solid var(--border); padding: 1.2rem 0; }
.form-label { font-size: 0.63rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.form-input { background: transparent; border: none; outline: none; font-family: 'Karla', sans-serif; font-size: 0.95rem; font-weight: 300; color: var(--charcoal); padding: 0; width: 100%; }
.form-input::placeholder { color: rgba(122,117,112,0.4); }
.form-select { background: transparent; border: none; outline: none; font-family: 'Karla', sans-serif; font-size: 0.95rem; font-weight: 300; color: var(--charcoal); padding: 0; width: 100%; cursor: pointer; -webkit-appearance: none; }
.form-textarea { background: transparent; border: none; outline: none; font-family: 'Karla', sans-serif; font-size: 0.95rem; font-weight: 300; color: var(--charcoal); padding: 0; width: 100%; resize: none; line-height: 1.7; }
.form-textarea::placeholder { color: rgba(122,117,112,0.4); }

/* ── RESPONSIVE BASE ── */
@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}