/* web3hispano.com: estilos propios (diseño bento por definir) */

/* Fuente de títulos: Instrument Sans (OFL), alojada en el tema */
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans/instrument-sans-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans/instrument-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans/instrument-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans/instrument-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* Colores (modo claro): fondo gris metálico suave, cajas blanco perlado, texto gris muy oscuro cálido; acento #C5381E en w3h.yaml (AA: 5,3 con blanco, 4,5 sobre fondo, más sobre cajas y tablas) */
:root,
:root[data-theme="light"] {
  --q2-bg: #EDEDEB;
  --q2-bg-elev: #F5F3EF;
  --q2-bg-muted: #E4E4E1;
  --q2-text: #33312E;
  --q2-text-strong: #1F1E1C;
  --q2-nav-bg: rgba(237, 237, 235, 0.85);
  --pico-font-family-display: "Instrument Sans", "Inter", sans-serif;
}

/* Marca en texto */
.navbar-brand.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* Selector de idioma dentro del menú: texto discreto, sin la pastilla del menú */
.dropmenu li.lang-item a.lang-link,
.tree li.lang-item a.lang-link {
  font-size: .85rem;
  opacity: .6;
  background: none;
}
.dropmenu li.lang-item a.lang-link.lang-current,
.tree li.lang-item a.lang-link.lang-current {
  opacity: 1;
  font-weight: 600;
}
.dropmenu li.lang-item:first-of-type { margin-left: 1rem; }

#footer .footer-legal a { white-space: nowrap; }

/* Tablas: gris perlado neutro, apenas azulado */
:root {
  --w3h-table-bg: #EEEFF1;
  --w3h-table-head-bg: #E5E7E9;
}
.container table th,
.container table td {
  background-color: var(--w3h-table-bg);
}
.container table thead th {
  background-color: var(--w3h-table-head-bg);
}

/* Títulos h2 sin la barrita de acento de Quark 2 (autor) */
h2::before { content: none; display: none; }

/* Portada: cada bloque en su caja */
.w3h-block { background: var(--q2-bg-elev); border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; }
.w3h-block > :last-child { margin-bottom: 0; }

/* === Diseño nuevo (páginas con .x-new) === */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/w3h/font0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/w3h/font0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/w3h/font0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/w3h/font1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body:has(.x-new){--x-acc:#C5381E;--x-ink:#1F1E1C;--x-text:#4A4844;--x-line:#D3D2CD;--q2-bg:#EDEDEB;background:#EDEDEB;color:var(--x-text);font-family:Archivo,sans-serif}
body:has(.x-new) #header{background:transparent;border:0;box-shadow:none;padding:18px 22px 0;backdrop-filter:none}
body:has(.x-new) #header:before,body:has(.x-new) #header:after{display:none}
body:has(.x-new) #header>.container{max-width:1260px;border:1px solid var(--x-line);background:#EDEDEB;padding:0 28px}
body:has(.x-new) .navbar{min-height:68px}
body:has(.x-new) .navbar-brand.brand-text{font-family:Archivo,sans-serif;font-size:18px;color:var(--x-ink)}
body:has(.x-new) .dropmenu .navigation{display:flex;align-items:center;gap:32px}
body:has(.x-new) .dropmenu .navigation>li{margin:0;padding:0}
body:has(.x-new) .dropmenu .navigation>li>a{font:700 12px Archivo,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--x-ink);background:none;padding:0;border-radius:0;box-shadow:none}
body:has(.x-new) .dropmenu .navigation>li:nth-child(2){order:5}
body:has(.x-new) .dropmenu .navigation>li:nth-child(2)>a{background:var(--x-acc);color:#fff;padding:11px 18px;display:block}
body:has(.x-new) .dropmenu .navigation>li.lang-item+li.lang-item{margin-left:-24px}
body:has(.x-new) .dropmenu .navigation>li.lang-item+li.lang-item:before{content:"·";margin-right:7px;color:#8A867F}
body:has(.x-new) .theme-toggle{display:none}
body:has(.x-new) #body-wrapper{padding:0}
body:has(.x-new) #body-wrapper>.container{max-width:1260px;padding:0 56px;background:none;border:0;box-shadow:none}
body:has(.x-new) #body-wrapper .content-item,body:has(.x-new) #start .content-item{background:none;border:0;box-shadow:none;padding:0;margin:0;max-width:none}
body:has(.x-new) .x-s{padding:96px 0}
body:has(.x-new) .x-hero{padding-top:80px}
body:has(.x-new) .x-k{font:700 12px Archivo,sans-serif;letter-spacing:.16em;text-transform:uppercase;display:flex;gap:18px;align-items:center;margin:0 0 40px}
body:has(.x-new) .x-k i{font-style:normal;color:var(--x-acc)}
body:has(.x-new) .x-k:after{content:"";flex:1;height:1px;background:var(--x-line)}
body:has(.x-new) #start h1,body:has(.x-new) #start h2,body:has(.x-new) #start h3{font-family:Archivo,sans-serif;color:var(--x-ink);font-weight:700;letter-spacing:-.03em;line-height:1.02;margin:0;text-align:left}
body:has(.x-new) #start h1{font-size:clamp(2.6rem,7.4vw,6.4rem)}
body:has(.x-new) #start h1 span{display:block}
body:has(.x-new) #start h2{font-size:clamp(2.2rem,4.6vw,4rem)}
body:has(.x-new) #start em{font-family:Newsreader,serif;font-style:italic;font-weight:400;color:var(--x-acc);letter-spacing:-.01em;line-height:.9}
body:has(.x-new) #start p{margin:0;line-height:1.65}
body:has(.x-new) .x-two{display:grid;grid-template-columns:1.1fr 1fr;gap:80px;align-items:end}
body:has(.x-new) .x-two p{font-size:19px}
body:has(.x-new) .x-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:56px;border-block:1px solid var(--x-line)}
body:has(.x-new) .x-c{padding:34px 28px 44px;border-right:1px solid var(--x-line);border-bottom:1px solid var(--x-line)}
body:has(.x-new) .x-c:nth-child(3n+1){padding-left:0}
body:has(.x-new) .x-c:nth-child(3n){border-right:0}
body:has(.x-new) .x-c:nth-last-child(-n+3){border-bottom:0}
body:has(.x-new) #start .x-c h3{font-size:2rem;margin-bottom:10px}
body:has(.x-new) .x-ph{display:grid;grid-template-columns:1fr 1.25fr;gap:80px}
body:has(.x-new) .x-r{display:grid;grid-template-columns:180px 1fr;gap:12px;align-items:baseline;padding:30px 0;border-top:1px solid var(--x-line)}
body:has(.x-new) .x-r:last-child{border-bottom:1px solid var(--x-line)}
body:has(.x-new) #start .x-r h3{font-size:1.5rem;color:var(--x-acc)}
body:has(.x-new) #footer{background:#181512;color:#A7A29A;font-size:14px;padding:48px 22px;margin:0;border:0}
body:has(.x-new) #footer .container{max-width:1260px;padding:0 34px;text-align:left}
body:has(.x-new) #footer p{text-align:left;margin:0}
body:has(.x-new) #footer a{color:#A7A29A;font-weight:400}
/* contacto */
body:has(.x-new) .x-contact{padding-top:80px}
body:has(.x-new) #start .form-wrapper,body:has(.x-new) #start #messages{max-width:760px;margin:0}
body:has(.x-new) #start h1+.form-wrapper{margin-top:56px}
body:has(.x-new) #start form{padding-bottom:96px}
body:has(.x-new) #start .form-label{font:700 12px Archivo,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--x-ink)}
body:has(.x-new) #start .form-field input.form-input:not([type=checkbox]),body:has(.x-new) #start textarea.form-input{background:transparent;border:0;border-bottom:1px solid var(--x-line);border-radius:0;box-shadow:none;padding-inline:0}
body:has(.x-new) #start .form-field input.form-input:focus,body:has(.x-new) #start textarea.form-input:focus{border-bottom-color:var(--x-acc)}
body:has(.x-new) #start button[type=submit]{background:var(--x-acc);border:0;border-radius:0;color:#fff;font:700 12px Archivo,sans-serif;letter-spacing:.14em;text-transform:uppercase;padding:15px 24px}
@media(max-width:820px){body:has(.x-new) #header{padding-inline:12px}body:has(.x-new) #header>.container{padding:0 14px}body:has(.x-new) #body-wrapper>.container{padding-inline:22px}body:has(.x-new) .x-s{padding:64px 0}body:has(.x-new) .x-two,body:has(.x-new) .x-ph{grid-template-columns:1fr;gap:32px}body:has(.x-new) .x-grid{grid-template-columns:1fr}body:has(.x-new) .x-c{padding-inline:0;border-right:0}body:has(.x-new) .x-c:nth-last-child(-n+3){border-bottom:1px solid var(--x-line)}body:has(.x-new) .x-c:last-child{border-bottom:0}body:has(.x-new) .x-r{grid-template-columns:1fr}body:has(.x-new) #footer .container{padding:0}}
body:has(.x-new) #footer p,body:has(.x-new) #footer .container{color:#A7A29A}
body:has(.x-new) #footer>.container{padding:0 56px}
body:has(.x-new) #footer .footer-legal{margin-bottom:4px}
body:has(.x-new) .navbar-section.actions{display:none}
body:has(.x-new) .dropmenu .navigation>li.lang-item+li.lang-item:before{content:none}
body:has(.x-new) .dropmenu .navigation>li.lang-item+li.lang-item>a:before{content:"·";margin-right:8px;color:#8A867F}
@media(max-width:820px){body:has(.x-new) #footer>.container{padding:0}}
body:has(.x-new) #start .form-field input.form-input:not([type=checkbox]),body:has(.x-new) #start textarea.form-input{border:1px solid #C4C3BE;background:#F5F4F2;padding-inline:14px}
body:has(.x-new) #start .form-field input.form-input:focus,body:has(.x-new) #start textarea.form-input:focus{border-color:var(--x-acc)}
body:has(.x-new) #start input[type=checkbox]+label:before{border:1px solid #9C9A94}
body:has(.x-new) #start input[type=checkbox]:not(:checked){border:1px solid #9C9A94}
