/* =========================================================
   Train and Eat ? Base Styles (updated)
   - Palette aligned with logo (blue + green)
   - Brand logo sizing for header
   - Better accessibility focus styles
   - Responsive header wrap fixes
   ========================================================= */

/* -------------------------
   CSS Reset (light)
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* -------------------------
   Theme variables
-------------------------- */
:root{
  /* Brand palette (Branding.pdf) */
  --bg: #ffffff;
  --text: #0D2A44;       /* Dark Blue as main text */
  --muted: #4b5563;      /* Gray for secondary text */

  --accent: #1E88E5;     /* Primary Blue */
  --accent-dark: #0D2A44;/* Dark Blue for hover / emphasis */
  --accent-soft: #E3F2FD;/* Light Blue background */

  --secondary: #4CAF50;  /* Green */
  --secondary-2: #8BC34A;/* Light Green */

  --border: #e5e7eb;

  --surface: #ffffff;
  --surface-2: #f8fafc;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

/* -------------------------
   Accessibility
-------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #ffffff;
  z-index: 1000;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* -------------------------
   Layout Helpers
-------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-lead {
  max-width: 720px;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: #374151;
}

.section-alt{
  padding: 4rem 0;
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt .feature{
  background: #f8fafc;
}

/* -------------------------
   Header
-------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  flex-wrap: wrap; /* prevents overflow when nav/logo is wide */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.brand-name{
  white-space: nowrap;
}

/* If you keep brand-mark anywhere */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
}

/* Logo in header */
.brand-logo{
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav,
.lang-switch {
  display: flex;
  gap: 1rem;
}

.site-nav a,
.lang-switch a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #374151;
}

.site-nav a:hover,
.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .is-active {
  font-weight: 600;
  color: var(--accent);
}

/* -------------------------
   Hero Section
-------------------------- */
.hero {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1{
  font-size: clamp(2.4rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0;              /* clave: elimina separación extra */
}

.tagline{
  margin: 0.25rem 0 0;    /* muy cerca del nombre */
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

.subtagline{
  margin: 0.15rem 0 1rem; /* pequeño respiro antes del texto */
  font-size: 0.95rem;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: #374151;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent-soft);
}

.microcopy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero cards */
.hero-card {
  display: grid;
  gap: 1rem;
}

.hero-copy{
  text-align: left;
  max-width: 560px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  background-color: var(--surface);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card-text {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* -------------------------
   About / Features
-------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature{
  background: #ffffff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.feature h3 {
  margin-top: 0;
}

/* -------------------------
   Audience
-------------------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.audience-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  background: var(--surface);
}

.audience-item ul {
  padding-left: 1.2rem;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* -------------------------
   Partners
-------------------------- */
.callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  background-color: var(--accent-soft);
  border-radius: 12px;
}

.callout-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.callout-text {
  margin: 0;
}

/* -------------------------
   Contact
-------------------------- */
.contact-card{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 820px){
  .contact-card{
    grid-template-columns: 1fr;
  }
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.contact-link:hover {
  text-decoration: underline;
}

/* -------------------------
   Footer
-------------------------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  background: #0b1220;   /* oscuro neutro, menos violeta */
  color: #e5e7eb;
  margin-top: 4rem;
}

.site-footer a{
  color: #cbd5e1;
}

.site-footer a:hover{
  color: #38bdf8;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #cbd5e1;   /* claro para fondo oscuro */
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-meta {
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-meta-right {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.footer-copy {
  font-size: 0.8rem;
  color: #9ca3af; /* mismo tono que footer-tagline */
}

.footer-credit {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.footer-credit a {
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.footer-credit a:hover {
  color: #38bdf8;
  text-decoration-thickness: 2px;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .audience,
  .contact-card {
    grid-template-columns: 1fr;
  }

  /* Keep nav simple on mobile: hide primary links (language switch stays) */
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* -------------------------
   Legal pages
-------------------------- */
.legal-page{
  background: var(--bg);
  color: var(--text);
}

.legal-content{
  padding: 3.5rem 0;
  max-width: 860px;
}

.legal-content h1{
  margin: 0 0 1rem;
  line-height: 1.15;
}

.legal-content h2{
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content p{
  margin: 0.75rem 0;
  color: #374151;
}

.legal-content ul{
  margin: 0.75rem 0 0.75rem 1.25rem;
}

.legal-content li{
  margin: 0.35rem 0;
}

.legal-content strong{
  color: var(--text);
}

/* Contact section spacing tweaks */
#contact.section {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem; /* antes ~4rem */
}

#contact .section-lead {
  margin-bottom: 1.5rem;
}

#contact .callout {
  margin-top: 0; /* elimina el extra vertical */
}
