/* Aterym — componentes compartidos (base.css). Se carga después de tokens.css. */

/* === NAV (header, dropdown, menú mobile @840) === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26,35,50,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
.nav-logo { height: 38px; width: auto; display: block; }
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
  }
.nav-links a {
    color: rgba(244,241,236,0.75);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color .25s ease;
  }
.nav-links a:hover { color: var(--bg); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    color: var(--bg) !important;
    border-radius: 2px;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase;
    transition: background .25s ease;
  }
.nav-cta:hover { background: var(--accent-deep); }
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--bg);
    cursor: pointer;
    width: 24px;
    height: 24px;
  }
.has-dropdown{position:relative}
.has-dropdown > a::after{content:'';display:inline-block;width:0;height:0;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-top:4px solid currentColor;margin-left:6px;vertical-align:middle;transition:transform .25s ease}
.has-dropdown:hover > a::after{transform:rotate(180deg)}
.dropdown{position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(8px);background:rgba(26,35,50,0.97);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,0.08);border-radius:2px;list-style:none;min-width:200px;padding:0.5rem 0;opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:200}
.has-dropdown:hover .dropdown{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.dropdown li a{display:block;padding:0.6rem 1.25rem;font-size:0.8rem;color:rgba(244,241,236,0.75);white-space:nowrap;transition:color .2s,background .2s}
.dropdown li a:hover{color:#f4f1ec;background:rgba(255,255,255,0.06)}
@media (max-width: 840px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: rgba(26,35,50,0.98); padding: 1.5rem; gap: 1.25rem; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-links.mobile-show { display: flex; }
    .dropdown{position:static;transform:none;opacity:1;pointer-events:auto;background:transparent;border:none;padding:0 0 0 1rem;backdrop-filter:none;min-width:0}
    .has-dropdown > a::after{display:none}
  }
.nav-links a.active{color:var(--bg);border-bottom:1px solid rgba(244,241,236,.35);padding-bottom:2px}
.nav-toggle svg{width:22px;height:22px}

/* === FOOTER (bloque compartido; los tweaks responsive quedan inline por página) === */
footer {
    background: var(--ink);
    color: rgba(244,241,236,0.85);
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
    position: relative;
    z-index: 2;
  }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
.footer-logo img { height: 36px; width: auto; margin-bottom: 1.25rem; }
.footer-logo p { font-size: 0.86rem; opacity: 0.7; max-width: 320px; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--bg); font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: rgba(244,241,236,0.7); text-decoration: none; font-size: 0.88rem; transition: color .25s; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.78rem; opacity: 0.5; flex-wrap: wrap; gap: 1rem; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a { opacity: 0.7; color: inherit; transition: opacity .25s; }
.footer-socials a:hover { opacity: 1; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-itaes{display:flex;align-items:center;gap:1.25rem;padding:2rem 0;border-bottom:1px solid rgba(244,241,236,.07)}
.footer-itaes img{height:48px;width:auto;opacity:.85;filter:brightness(0) invert(1)}
.footer-itaes p{font-size:.82rem;color:rgba(244,241,236,.5);font-weight:300;letter-spacing:.01em;max-width:40ch;line-height:1.55}
.footer-col ul li a{font-size:.88rem;color:rgba(244,241,236,.65);font-weight:300;transition:color .2s;line-height:1.45}
.footer-col ul li a:hover{color:var(--bg)}
.footer-bottom>div:first-child{font-size:.78rem;color:rgba(244,241,236,.35);font-weight:300;letter-spacing:.03em}

/* === BOTONES (.btn y modificadores; canónico unificado) === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
.btn svg { width: 15px; height: 15px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--bg); color: var(--ink); }
.btn-primary::before {
    content: ""; position: absolute; inset: 0; background: var(--accent-bright); transform: translateX(-101%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { color: var(--bg); }
.btn-primary:hover::before { transform: translateX(0); }
.btn-ghost {
    background: transparent; color: var(--bg); border: 1px solid rgba(244,241,236,0.35);
  }
.btn-ghost:hover { border-color: var(--bg); background: rgba(244,241,236,0.08); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark::before {
    content: ""; position: absolute; inset: 0; background: var(--accent-bright); transform: translateX(-101%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
.btn-dark span, .btn-dark svg { position: relative; z-index: 1; }
.btn-dark:hover::before { transform: translateX(0); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost-light {
    background: transparent; color: var(--ink); border: 1px solid var(--line);
  }
.btn-ghost-light:hover { border-color: var(--ink); background: rgba(26,35,50,0.06); }
.btn-light {
    background: transparent; color: var(--ink); border: 1px solid var(--line-soft);
  }
.btn-light:hover { border-color: var(--ink); background: rgba(26,35,50,0.06); }
.btn-primary span,.btn-primary svg{position:relative;z-index:1}
.btn-dark span,.btn-dark svg{position:relative;z-index:1}
.btn-light svg{stroke:var(--ink)}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
  }
.btn-download::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-101%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
.btn-download span, .btn-download svg { position: relative; z-index: 1; }
.btn-download:hover::before { transform: translateX(0); }
.btn-download:hover { transform: translateY(-2px); }
.btn-download svg { width: 15px; height: 15px; }
.btn-certificado {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
  }
.btn-certificado svg { width: 15px; height: 15px; transition: transform .3s ease; }
.btn-certificado:hover { background: var(--accent); color: var(--bg); }
.btn-certificado:hover svg { transform: translateX(4px); }

/* === BOTÓN FLOTANTE WHATSAPP === */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -6px rgba(37,211,102,.45); transition: transform .3s cubic-bezier(.2,.8,.2,1); animation: waFloat 3s ease-in-out infinite; color: #fff; text-decoration: none;
  }
.wa-float:hover { background: #1DA851; transform: scale(1.08) translateY(-2px); }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes waFloat{
  0%,100%{ transform:translateY(0) }
  50%{ transform:translateY(-4px) }
}
