:root {
  --yellow: #FFC244;       /* amarillo Glovo: energía, CTA principal */
  --yellow-dark: #F2A900;
  --green: #00A082;        /* verde Glovo: confianza/acento secundario */
  --black: #1A1A1A;        /* negro suavizado, como el rebrand de Glovo */
  --black-soft: #2B2B2B;
  --text-dark: #1A1A1A;
  --text-light: #666560;
  --bg: #ffffff;
  --bg-alt: #F7F6F2;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(26, 26, 26, .08);
  --shadow-hover: 0 16px 40px rgba(26, 26, 26, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--black); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--black); line-height: 1.15; font-weight: 700; margin-top: 0; }
h1 { font-size: 2.7rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

.chip {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .78rem;
  padding: 7px 16px; border-radius: 999px; background: #FBEAC7; color: var(--black); margin-bottom: 14px;
}
.chip-brand { background: var(--bg-alt); color: var(--green); border: 1px solid rgba(0,160,130,.25); }
.chip-yellow { background: var(--yellow); color: var(--black); }
.chip.center { display: table; margin-left: auto; margin-right: auto; }

/* Top bar */
.topbar { background: var(--black); color: #fff; font-size: .82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 7px 24px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; opacity: .9; }
.topbar a:hover { color: var(--yellow); opacity: 1; text-decoration: none; }

/* Header */
.site-header { background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--black); }
.brand-tagline { font-size: .72rem; color: var(--text-light); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--black); display: block; }

.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav .nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link, .dropdown-toggle {
  display: inline-block; padding: 10px 16px; color: var(--text-dark); font-weight: 700; font-size: .92rem;
  background: none; border: none; cursor: pointer; font-family: var(--font-heading); border-radius: 999px;
}
.nav-link.active, .nav-link:hover, .dropdown-toggle:hover { color: var(--black); background: var(--yellow); text-decoration: none; }
.has-dropdown .dropdown-menu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0;
  background: var(--white); min-width: 250px; box-shadow: var(--shadow-hover); border-radius: var(--radius-sm);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 9px 18px; font-size: .9rem; color: var(--text-dark); font-weight: 500; }
.dropdown-menu li a:hover { background: var(--bg-alt); color: var(--black); text-decoration: none; }
.btn-nav-cta { padding: 10px 20px; font-size: .85rem; white-space: nowrap; margin-top: 0; }

/* Breadcrumb */
.breadcrumb { background: var(--bg-alt); font-size: .85rem; color: var(--text-light); padding: 12px 0; }
.breadcrumb a { color: var(--text-light); }

/* Hero (estilo Glovo: bloque amarillo plano, foto flotante sin marco, ola inferior) */
.hero-glovo { background: var(--yellow); padding: 50px 0 0; overflow: hidden; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; position: relative; z-index: 2; padding-bottom: 60px; }
.hero-kicker { font-family: var(--font-heading); font-weight: 700; font-size: .95rem; margin: 0 0 10px; }
.hero-kicker-highlight { background: var(--black); color: var(--yellow); padding: 2px 10px; border-radius: 6px; }
.hero-copy h1 { color: var(--black); margin-bottom: 18px; }
.hero-copy .hero-sub { font-size: 1.05rem; max-width: 460px; color: var(--black-soft); font-weight: 500; }
.hero-cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-visual { position: relative; align-self: end; }
.hero-slider {
  position: relative; overflow: hidden; height: 380px; border-radius: var(--radius);
  box-shadow: 0 24px 40px rgba(0,0,0,.18);
}
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); border: none;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; z-index: 5; color: var(--black);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.slider-prev { left: 16px; } .slider-next { right: 16px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.slider-dots .dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slider-dots .dot.active { background: var(--white); width: 22px; border-radius: 5px; transition: all .3s ease; }
.hero-wave { display: block; width: 100%; height: 70px; position: relative; z-index: 1; margin-bottom: -1px; }

/* Sections */
.page-content { padding: 50px 24px; max-width: 880px; }
body.home main.page-content { max-width: none; padding: 0; }
body.home .breadcrumb { display: none; }
.page-content h1 { margin-bottom: 18px; }
.content-img { margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-content ul { padding-left: 20px; }
.page-content li { margin-bottom: 8px; }
.section { padding: 70px 24px; }
.options-section { background: var(--bg-alt); }
.options-section h2 { margin-bottom: 34px; }
.options-grid { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 0 0 28px; }
.option-card {
  width: 280px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--text-dark); transition: transform .2s ease, box-shadow .2s ease; border: 2px solid transparent;
}
.option-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); text-decoration: none; border-color: var(--yellow); }
.option-card img { height: 180px; object-fit: cover; }
.option-card-body { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.option-card-body h5 { margin: 0; font-size: 1.05rem; font-family: var(--font-heading); }
.option-link { font-size: .82rem; font-weight: 700; color: var(--green); white-space: nowrap; }

.split-section { display: flex; align-items: center; gap: 48px; max-width: var(--max-width); margin: 0 auto; }
.split-section img { flex: 1 1 42%; border-radius: var(--radius); max-height: 360px; object-fit: cover; box-shadow: var(--shadow); }
.split-section .split-text { flex: 1 1 52%; }
.split-section.reverse { flex-direction: row-reverse; }

.cta-section { text-align: center; background: var(--black); color: var(--white); }
.cta-section h2 { color: var(--white); }
.cta-section p { color: #d9d9d9; }
.cta-section blockquote { max-width: 600px; margin: 30px auto 0; font-style: italic; color: #d9d9d9; font-size: 1.05rem; }
.cta-section cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--yellow); }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--yellow); color: var(--black); font-size: 1.2rem; margin-top: 18px; font-weight: 700;
}
.btn-arrow:hover { background: var(--yellow-dark); text-decoration: none; }

.newsletter-section { text-align: center; background: var(--bg-alt); }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700; border: none; cursor: pointer;
  margin-top: 14px; font-family: var(--font-heading); font-size: .95rem; transition: all .15s ease;
}
.btn-pill-dark { background: var(--black); color: var(--white); }
.btn-pill-dark:hover { background: var(--black-soft); text-decoration: none; transform: translateY(-1px); }
.btn-pill-outline { background: transparent; border: 2px solid var(--black); color: var(--black); padding: 11px 24px; }
.btn-pill-outline:hover { background: var(--black); color: var(--white); text-decoration: none; }
.btn-pill-yellow { background: var(--yellow); color: var(--black); }
.btn-pill-yellow:hover { background: var(--yellow-dark); text-decoration: none; }
.btn-pill-green { background: var(--green); color: var(--white); }
.btn-pill-green:hover { background: #008a70; text-decoration: none; transform: translateY(-1px); }

/* Formulario tipo barra de búsqueda de Glovo: input + boton anidados en una sola pill */
.nested-pill {
  display: flex; align-items: center; background: var(--white); border-radius: 999px;
  box-shadow: var(--shadow); padding: 6px 6px 6px 22px; max-width: 480px; margin: 20px auto 0; gap: 10px;
}
.nested-pill input { flex: 1; border: none; padding: 10px 0; font-family: inherit; font-size: .95rem; background: transparent; }
.nested-pill input:focus { outline: none; }
.nested-pill .btn { margin-top: 0; white-space: nowrap; padding: 11px 22px; }

/* Forms */
.contact-form, .newsletter-form { max-width: 560px; }
.contact-form { margin: 0 auto 40px; display: flex; flex-direction: column; gap: 16px; background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid var(--bg-alt); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--black); font-family: var(--font-heading); }
.contact-form input, .contact-form textarea { padding: 11px 14px; border: 2px solid var(--bg-alt); border-radius: var(--radius-sm); font-family: var(--font-body); background: var(--bg-alt); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--yellow); background: var(--white); }
.contact-info { text-align: center; }
.contact-info a { display: inline-flex; align-items: center; font-weight: 600; }

/* Footer */
.site-footer { background: var(--black); color: #cfcfcf; margin-top: 60px; }
.footer-inner { padding: 50px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { font-size: .88rem; opacity: .85; margin-top: 12px; }
.footer-logo { height: 40px;  }
.footer-menu h6, .footer-contact h6 { color: var(--yellow); font-family: var(--font-heading); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a, .footer-menu span { color: #cfcfcf; font-size: .9rem; }
.footer-menu a:hover { color: var(--yellow); }
.footer-link-button { background: none; border: none; padding: 0; margin: 0; color: #cfcfcf; font-size: .9rem; font-family: inherit; cursor: pointer; text-align: left; }
.footer-link-button:hover { color: var(--yellow); }
.footer-contact p { margin: 0 0 10px; }
.footer-contact a { color: #cfcfcf; display: inline-flex; align-items: center; }
.footer-contact a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--yellow); }
.footer-social a:hover .icon { color: var(--black); }
.footer-social .icon { width: 16px; height: 16px; margin: 0; }
.footer-copy { text-align: center; font-size: .75rem; opacity: .6; margin: 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--black); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
.cookie-banner-inner p { margin: 0; font-size: .88rem; line-height: 1.5; flex: 1 1 320px; }
.cookie-banner-inner a { color: var(--yellow); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-banner .btn-pill-outline { border-color: #fff; color: #fff; }
.cookie-banner .btn-pill-outline:hover { background: #fff; color: var(--black); }

/* Páginas de exámenes (Aptis / Trinity / Cambridge) */
.exam-level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 30px; }
.exam-level-card { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 22px; transition: transform .15s ease, box-shadow .15s ease; }
.exam-level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.exam-level-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--black); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: .9rem; }
.exam-level-card h5 { margin: 14px 0 4px; font-size: 1rem; }
.exam-level-card .exam-official-name { font-size: .78rem; color: var(--green); font-weight: 600; margin: 0 0 10px; }
.exam-level-card p.exam-level-desc { font-size: .82rem; color: #555; margin: 0 0 14px; line-height: 1.5; }

.level-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.level-pill { padding: 8px 16px; border-radius: 999px; font-family: var(--font-heading); font-weight: 700; font-size: .82rem; border: 1px solid rgba(26,26,26,.14); color: #666; }
.level-pill.active { background: var(--yellow); color: var(--black); border-color: transparent; }
.level-pill:hover:not(.active) { background: var(--bg-alt); text-decoration: none; }

.exam-skills { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 26px; }
.exam-skills a.chip { cursor: pointer; transition: background .15s ease, transform .1s ease; }
.exam-skills a.chip:hover { background: var(--green); color: #fff; text-decoration: none; }

.exam-skill-block { margin: 34px 0; scroll-margin-top: 100px; }
.exam-skill-block h2 { font-size: 1.1rem; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid rgba(26,26,26,.1); }

.exam-task-card { background: #fff; border: 1px solid rgba(26,26,26,.12); border-radius: var(--radius); padding: 20px 22px; margin: 16px 0; }
.exam-task-card .exam-task-note { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: .68rem; letter-spacing: .02em; color: #886400; background: #FBEAC7; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.exam-task-card h4 { margin: 0 0 8px; font-size: .98rem; }
.exam-task-card p { margin: 0; font-size: .87rem; color: #555; line-height: 1.6; }

.exam-quiz-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin: 16px 0; }
.exam-quiz-box p.exam-quiz-label { font-family: var(--font-heading); font-weight: 700; font-size: .82rem; margin: 0 0 12px; }
.exam-quiz-question { font-size: .95rem; margin: 0 0 14px; }
.exam-quiz-options { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.exam-quiz-option { background: #fff; border: 1px solid rgba(26,26,26,.14); border-radius: var(--radius-sm); padding: 11px 14px; font-size: .9rem; cursor: pointer; text-align: left; font-family: var(--font-body); }
.exam-quiz-option:hover { border-color: var(--green); }
.exam-quiz-option.is-correct { background: #EAF3DE; border-color: #97C459; color: #27500A; font-weight: 600; }
.exam-quiz-option.is-incorrect { background: #FCEBEB; border-color: #F09595; color: #791F1F; }
.exam-quiz-feedback { margin-top: 12px; font-size: .85rem; font-weight: 600; min-height: 1.2em; }

.exam-cta-band { margin-top: 30px; background: var(--black); border-radius: var(--radius); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.exam-cta-band p { color: #fff; margin: 0; max-width: 340px; font-size: .9rem; }

.level-compare-table-wrap { overflow-x: auto; margin: 28px 0 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.level-compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.level-compare-table th { background: var(--black); color: var(--yellow); font-family: var(--font-heading); font-weight: 700; font-size: .82rem; text-align: left; padding: 14px 18px; }
.level-compare-table td { padding: 13px 18px; border-bottom: 1px solid rgba(26,26,26,.08); font-size: .9rem; }
.level-compare-table tr:last-child td { border-bottom: none; }
.level-compare-table td.level-compare-cefr { font-family: var(--font-heading); font-weight: 800; color: var(--black); }
.level-compare-table td.level-compare-empty { color: #999; font-style: italic; }
.level-compare-note { font-size: .8rem; color: #777; max-width: 640px; line-height: 1.6; margin: 0 0 10px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
  .split-section, .split-section.reverse { flex-direction: column; }
  .nav-toggle { display: flex; }
  .topbar-inner { justify-content: center; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-hover); display: none; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; }
  .main-nav.open { display: flex; }
  .main-nav .nav-list { flex-direction: column; }
  .has-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .hero-slider { height: 320px; }
  h1 { font-size: 2.1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
