/* ── global.css ─────────────────────────────────────────────────────────────
   Estilos compartidos por TODAS las páginas del sitio.
   Cargado via partials/head.php
──────────────────────────────────────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --primary:   #275a84;
  --secondary: #54595f;
  --green:     #00c761;
  --f7:        #f7f7f7;
  --f2:        #f2f2f1;
  --white:     #ffffff;
  --dark:      #303438;
  --border:    #c9c9c9;
  --border2:   #c9d6e0;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', Sans-serif; font-size: 16px; font-weight: 400; color: var(--secondary); line-height: 1.4; background: #fff; }
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p   { margin-bottom: 1rem; }
h1,h2,h3,h4,h5,h6 { font-family: 'Quicksand', Sans-serif; font-weight: 700; color: var(--primary); line-height: 1.3; }
h2 { font-size: 1.8rem; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 50px 0; }
@media (max-width: 767px) { .section { padding: 36px 0; } }

/* ── Botones compartidos ── */
.btn-filled {
  display: inline-block; font-family: 'Quicksand', Sans-serif; font-weight: 700;
  text-transform: uppercase; cursor: pointer;
  background: var(--primary); color: var(--white);
  border: 1px solid var(--primary); border-radius: 27px;
  padding: 9px 22px; font-size: 18px;
  transition: background .2s, border-color .2s;
}
.btn-filled:hover { background: var(--secondary); border-color: var(--secondary); color: var(--white); }
.btn-sm { font-size: 13px !important; padding: 7px 16px !important; border-radius: 15px !important; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 72px; }
.header-logo img { height: 44px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li:not(.nav-cta) > a { display: block; padding: 8px 12px; border-radius: 6px; font-family: 'Exo', Sans-serif; font-size: 15px; font-weight: 500; color: var(--primary); transition: background .15s; white-space: nowrap; }
.nav-list > li:not(.nav-cta) > a:hover { background: var(--f7); }
.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: 10px; min-width: 220px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 8px 0; z-index: 200; }
.nav-list > li:hover .sub-menu { display: block; }
.sub-menu a { display: block; padding: 10px 18px; font-family: 'Exo', Sans-serif; font-size: 14px; font-weight: 500; color: var(--primary); transition: background .15s; }
.sub-menu a:hover { background: #275a84; color: #fff; }
.nav-cta { margin-left: 10px; }
.nav-cta a { color: #fff; }
.nav-search { position: relative; display: flex; align-items: center; }
.search-toggle { background: none; border: none; cursor: pointer; color: var(--primary); font-size: 17px; padding: 6px 8px; display: flex; align-items: center; border-radius: 6px; transition: background .15s; }
.search-toggle:hover { background: var(--f7); }
.search-box { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: var(--white); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 10px; width: 280px; z-index: 300; }
.search-box.open { display: block; }
.search-box form { display: flex; gap: 6px; }
.search-box input { flex: 1; border: 1px solid var(--border2); border-radius: 20px; padding: 8px 14px; font-family: 'Quicksand', Sans-serif; font-size: 14px; font-weight: 500; color: var(--dark); outline: none; }
.search-box input:focus { border-color: var(--primary); }
.search-box button[type="submit"] { background: var(--primary); color: #fff; border: none; cursor: pointer; border-radius: 50%; width: 36px; height: 36px; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.search-box button[type="submit"]:hover { background: var(--secondary); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }
@media (max-width: 980px) {
  .nav-list .nav-item-desktop, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-list.open { display: flex; flex-direction: column; align-items: flex-start; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--white); padding: 20px 24px; overflow-y: auto; box-shadow: 0 8px 20px rgba(0,0,0,.1); z-index: 999; }
  .nav-list.open .nav-item-desktop { display: block; width: 100%; }
  .nav-list.open .nav-cta { display: block; width: 100%; margin: 8px 0 0; }
  .nav-list.open .nav-cta .btn { width: 100%; text-align: center; }
}

/* ── Footer ── */
.site-footer { background: #275a84; color: rgba(255,255,255,.65); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--white); font-family: 'Exo', Sans-serif; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-brand img.footer-logo { height: 66px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 240px; line-height: 1.7; }
.footer-brand .accio-logo { margin-top: 24px; height: auto; max-height: 80px; max-width: 160px; }
.footer-address { padding: 8px 0 18px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-address a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer-address a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.soc-links { display: flex; gap: 10px; }
.soc-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 15px; transition: background .15s, color .15s; }
.soc-links a:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── TOC / Sidebar card ── */
[id] { scroll-margin-top: 90px; }
.sidebar-card { background: #f7f7f7; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.sidebar-card h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #275a84; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #c9d6e0; }
ol.toc-list, ol.toc-list ol { list-style: decimal !important; padding-left: 20px !important; margin: 0; }
ol.toc-list li { margin-bottom: 8px; line-height: 1.5; }
ol.toc-list ol { margin: 4px 0 4px 4px; }
ol.toc-list ol li { margin-bottom: 4px; }
ol.toc-list a { font-size: 15px; color: #54595f; text-decoration: none; transition: color .15s; }
ol.toc-list a:hover { color: #275a84; }
ol.toc-list li::marker { font-weight: 500; color: #54595f; font-family: 'Quicksand', Sans-serif; font-size: 15px; }

/* ── Hero (compartido por todas las páginas excepto blog) ── */
.hero { position: relative; background-color: var(--primary); background-position: center center; background-repeat: no-repeat; background-size: cover; padding: 120px 0 100px; min-height: 450px; display: flex; align-items: center; }
.hero::before { content: none; }
@media (max-width: 767px) { .hero { padding: 70px 0 60px; } }
.hero-content { position: relative; z-index: 1; padding: 0 40px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: var(--white); font-family: 'Exo', Sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border-radius: 20px; padding: 5px 16px; margin-bottom: 20px; }
.hero h1 { font-family: 'Quicksand', Sans-serif; font-size: 44px; font-weight: 300; color: var(--white); line-height: 1.3; margin-bottom: 24px; }
.hero h1 strong { font-weight: 700; }
.hero-sub { color: rgba(255,255,255,.85); margin-bottom: 36px; line-height: 1.5; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.btn-hero { display: inline-block; font-family: 'Quicksand', Sans-serif; font-weight: 700; text-transform: uppercase; cursor: pointer; background: var(--white); color: var(--primary); border: 1px solid var(--white); border-radius: 27px; padding: 12px 50px; font-size: 18px; transition: background .2s, color .2s; }
.btn-hero:hover { background: transparent; color: var(--white); }
.btn-ghost { display: inline-block; font-family: 'Quicksand', Sans-serif; font-weight: 700; text-transform: uppercase; cursor: pointer; background: transparent; color: var(--white); border: 1px solid var(--white); border-radius: 27px; padding: 12px 40px; font-size: 18px; transition: background .2s, color .2s; }
.btn-ghost:hover { background: var(--white); color: var(--primary); }
.badge-tag { display: inline-block; background: var(--primary); color: var(--white); font-family: 'Exo', Sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; border-radius: 20px; padding: 4px 14px; margin-bottom: 10px; }
.s-head { text-align: center; margin-bottom: 52px; }
.s-head p { color: var(--secondary); max-width: 680px; margin: 12px auto 0; }
@media (max-width: 767px) {
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}

/* ── ul-blog ── */
.ul-blog { padding-left: 20px !important; line-height: 20px !important; margin-bottom: 20px !important; }


/* ── Hero de página interior ── */
.page-hero { background-color: var(--primary); background-position: center; background-repeat: no-repeat; background-size: cover; padding: 60px 0 50px; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: var(--primary); opacity: .72; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 0; }
.page-hero .hero-sub { color: rgba(255,255,255,.85); margin-top: 14px; margin-bottom: 0; max-width: 680px; line-height: 1.65; }
.breadcrumb--hero { color: rgba(255,255,255,.65); margin-bottom: 16px; }
.breadcrumb--hero a { color: rgba(255,255,255,.75); }
.breadcrumb--hero a:hover { color: var(--white); text-decoration: underline; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 14px; margin-bottom: 32px; color: var(--secondary); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Páginas legales ── */
.legal-page { padding: 60px 0 80px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 32px; color: var(--primary); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; color: var(--dark); }
.legal-page h3 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--dark); }
.legal-page p { color: var(--secondary); line-height: 1.75; margin-bottom: 16px; }
.legal-page ul { padding-left: 20px; margin-bottom: 20px; }
.legal-page ul li { color: var(--secondary); line-height: 1.75; margin-bottom: 6px; }
.legal-page a { color: var(--primary); text-decoration: underline; }
.legal-page em { font-style: italic; color: var(--secondary); font-size: 0.9rem; }
