/* ============================================================
   CORPORACIÓN EURO AMÉRICA — Sistema de diseño compartido
   Paleta: oro / tinta / crema  ·  Serif editorial institucional
   ============================================================ */

:root {
  /* Color */
  --ink:        #1A1A1A;
  --ink-soft:   #4A4640;
  --ink-faint:  #7A746A;
  --gold:       #C9A227;
  --gold-deep:  #A07C15;
  --gold-light: #E3D2A0;
  --gold-wash:  #F4EAD0;
  --cream:      #F7F4EC;
  --cream-deep: #EFE9DA;
  --paper:      #FFFFFF;
  --charcoal:   #17130C;   /* footer / franjas oscuras */
  --line:       #E3DCCB;

  /* Tipografía */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 3px;

  /* Sombra editorial (muy sutil) */
  --shadow-sm: 0 1px 2px rgba(26,19,8,.05);
  --shadow-md: 0 12px 34px -18px rgba(26,19,8,.28);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Utilidades tipográficas ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }

.h-display { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -.5px; }
.h-section { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.3px; }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-paper { background: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }

/* Rule / hairline dorado bajo títulos (evoca el trazo de la pluma) */
.rule-gold { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 22px 0 0; }
.rule-gold.center { margin-inline: auto; }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h-section { margin-top: 14px; }
.section-head p { margin-top: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: .02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; transform: translateY(-2px); }
.btn--ink { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.btn--ink:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn--light { background: transparent; color: var(--cream); border-color: rgba(227,210,160,.4); }
.btn--light:hover { border-color: var(--gold); color: #fff; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--charcoal);
  color: var(--gold-light);
  font-size: 13px; letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar a { color: var(--gold-light); text-decoration: none; opacity: .85; transition: opacity .2s; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar__meta { display: flex; gap: 22px; align-items: center; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px){ .topbar__meta { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,236,.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; }
@media (max-width:520px){ .brand img { height: 42px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
  padding: 9px 15px; border-radius: var(--radius);
  position: relative; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-deep); }
.nav .btn { margin-left: 10px; padding: 10px 20px; }

.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px var(--gutter) 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 12px 0 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--ink-faint); }

/* Panel del emblema: marco tipo "diploma" con doble filete dorado */
.hero__crest {
  position: relative; aspect-ratio: 1/1;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 120% at 50% 20%, #fff 0%, var(--cream) 70%);
  border: 1px solid var(--gold-light);
  border-radius: var(--radius);
  padding: 8%;
}
.hero__crest::before {
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold-light);
  border-radius: 2px; pointer-events: none;
}
.hero__crest img { width: 86%; height: auto; filter: drop-shadow(0 18px 30px rgba(26,19,8,.12)); }

@media (max-width: 860px){
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__crest { max-width: 380px; margin: 8px auto 0; width: 100%; }
}

/* ============================================================
   TRUST BAR (barra de autoridad bajo el hero)
   ============================================================ */
.trustbar { background: var(--charcoal); color: var(--cream); }
.trustbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(227,210,160,.16);
}
.trust {
  background: var(--charcoal); padding: 30px 24px; text-align: center;
}
.trust .num { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--gold-light); line-height: 1; }
.trust .lbl { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #ccbf9f; margin-top: 10px; }
@media (max-width: 720px){ .trustbar .wrap { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CARDS DE DIPLOMADOS
   ============================================================ */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.card__media { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__kicker { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.card h3 { font-size: 1.42rem; margin: 10px 0 12px; line-height: 1.15; }
.card p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.card__meta { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__price { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); font-weight: 600; }
.card__price small { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.card__actions { display: flex; flex-direction: column; gap: 10px; }

/* Tag / franja institucional */
.ribbon {
  position: absolute; top: 14px; left: 0; background: var(--gold); color: var(--charcoal);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px 5px 12px;
}

/* ============================================================
   BLOQUES DE CONTENIDO
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }

.feature-list { list-style: none; margin-top: 26px; }
.feature-list li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before {
  content: ""; position: absolute; left: 6px; top: 22px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--gold); background:
    radial-gradient(circle at 50% 50%, var(--gold) 0 4px, transparent 5px);
}
.feature-list strong { display: block; font-size: 16px; color: var(--ink); }
.feature-list span { font-size: 15px; color: var(--ink-soft); }

/* Pilares / por qué nosotros */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--paper); padding: 34px 28px; }
.pillar__no { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-deep); }
.pillar h3 { font-size: 1.28rem; margin: 10px 0 10px; }
.pillar p { font-size: 15px; color: var(--ink-soft); }

/* Aliados / respaldos */
.allies { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.ally {
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft);
  padding: 14px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); letter-spacing: .01em;
}
.ally strong { color: var(--gold-deep); font-weight: 600; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 30px 28px; }
.quote p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.quote footer { margin-top: 18px; font-size: 14px; }
.quote footer strong { display: block; color: var(--ink); font-family: var(--sans); }
.quote footer span { color: var(--ink-faint); }

/* Franja CTA */
.cta-band { background: var(--charcoal); color: var(--cream); text-align: center; }
.cta-band .h-section { color: #fff; }
.cta-band p { color: #d8cfb8; max-width: 54ch; margin: 18px auto 0; }
.cta-band .hero__cta { justify-content: center; }

/* ============================================================
   FICHA TÉCNICA (tabla)
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table.tech { width: 100%; min-width: 540px; border-collapse: collapse; background: var(--paper); }
table.tech th, table.tech td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
table.tech th { background: var(--charcoal); color: var(--gold-light); font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
table.tech td:first-child { font-weight: 700; width: 34%; color: var(--ink); }
table.tech tr:last-child td { border-bottom: 0; }
table.tech tbody tr:nth-child(even) { background: var(--cream); }

/* ============================================================
   DETALLES DE DIPLOMADO (acordeón / secciones)
   ============================================================ */
.dip-detail { scroll-margin-top: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); margin-bottom: 20px; overflow: hidden; }
.dip-detail > summary {
  list-style: none; cursor: pointer; padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.dip-detail > summary::-webkit-details-marker { display: none; }
.dip-detail summary h3 { font-size: 1.5rem; }
.dip-detail summary .plus { flex: none; width: 34px; height: 34px; border: 1.5px solid var(--gold); border-radius: 50%; position: relative; transition: background .2s; }
.dip-detail summary .plus::before, .dip-detail summary .plus::after { content:""; position:absolute; background: var(--gold-deep); left:50%; top:50%; transform: translate(-50%,-50%); }
.dip-detail summary .plus::before { width: 14px; height: 2px; }
.dip-detail summary .plus::after { width: 2px; height: 14px; transition: transform .25s; }
.dip-detail[open] summary .plus::after { transform: translate(-50%,-50%) scaleY(0); }
.dip-detail[open] summary .plus { background: var(--gold-wash); }
.dip-detail__inner { padding: 0 28px 30px; }
.dip-detail h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 22px 0 12px; }
.dip-detail ul { list-style: none; }
.dip-detail ul li { padding: 9px 0 9px 22px; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-soft); position: relative; }
.dip-detail ul li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.dip-detail ul li strong { color: var(--ink); }
.dip-detail .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.alliance {
  background: var(--gold-wash); border-left: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 2px; font-size: 14.5px; color: #7a5b12; margin: 4px 0 8px;
}
.alliance strong { color: var(--gold-deep); }

/* ============================================================
   FORMULARIO / CONTACTO
   ============================================================ */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-wash); display: grid; place-items: center; color: var(--gold-deep); }
.contact-info .row strong { display: block; font-size: 14px; letter-spacing: .04em; }
.contact-info .row span, .contact-info .row a { color: var(--ink-soft); text-decoration: none; }
.contact-info .row a:hover { color: var(--gold-deep); }

/* Page header (subpáginas) */
.pagehead { background: var(--charcoal); color: var(--cream); }
.pagehead .wrap { padding-block: clamp(52px, 7vw, 88px); }
.pagehead .eyebrow { color: var(--gold-light); }
.pagehead .eyebrow::before { background: var(--gold); }
.pagehead h1 { color: #fff; margin-top: 16px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.pagehead p { color: #d8cfb8; margin-top: 18px; max-width: 60ch; }
.crumbs { font-size: 13px; letter-spacing: .04em; color: #b9ad8f; margin-bottom: 6px; }
.crumbs a { color: var(--gold-light); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: #c9bfa6; font-size: 15px; }
.site-footer .wrap { padding-block: clamp(52px, 7vw, 80px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand__mark .globe { width: 40px; height: 40px; }
.footer-brand__mark .name { font-family: var(--serif); font-size: 1.5rem; color: #fff; line-height: 1; }
.footer-brand__mark .name small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; color: var(--gold-light); text-transform: uppercase; margin-bottom: 3px; }
.site-footer p { color: #b3a888; line-height: 1.6; }
.footer-col h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-col a { display: block; color: #c9bfa6; text-decoration: none; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: clamp(40px, 5vw, 60px); border-top: 1px solid rgba(227,210,160,.16); padding-block: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #948a6f; }

/* ============================================================
   WhatsApp flotante
   ============================================================ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); text-decoration: none;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ============================================================
   REVEAL (scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--charcoal); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
