/*
Theme Name: AdsNuvia Public
Theme URI: https://adsnuvia.com/
Author: AdsNuvia
Author URI: https://adsnuvia.com/
Description: Tema institucional multipágina para la plataforma AdsNuvia. Incluye portada comercial, páginas informativas y documentos públicos requeridos para integraciones con Meta.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: adsnuvia-public
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --an-ink: #0b1025;
  --an-ink-soft: #17203e;
  --an-copy: #4e5974;
  --an-muted: #707b94;
  --an-line: #dfe4f0;
  --an-surface: #ffffff;
  --an-surface-soft: #f6f8fc;
  --an-primary: #6546ff;
  --an-secondary: #1589ff;
  --an-magenta: #c74cff;
  --an-success: #11a575;
  --an-radius-sm: 12px;
  --an-radius: 22px;
  --an-radius-lg: 34px;
  --an-shadow: 0 20px 70px rgba(22, 34, 78, .11);
  --an-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--an-ink);
  background: var(--an-surface);
  font-family: Inter, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.an-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(21, 137, 255, .42); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.an-wrap { width: min(calc(100% - 40px), var(--an-wrap)); margin-inline: auto; }
.an-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.an-section { padding: 104px 0; }
.an-section-soft { background: var(--an-surface-soft); }
.an-section-dark { color: #fff; background: var(--an-ink); }
.an-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 17px;
  color: var(--an-primary); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.an-eyebrow::before { width: 24px; height: 2px; content: ""; background: currentColor; border-radius: 99px; }
.an-display, .an-title, h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
.an-display { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.85rem, 6vw, 5.45rem); font-weight: 800; }
.an-title { max-width: 720px; margin-bottom: 18px; font-size: clamp(2.1rem, 4.2vw, 3.55rem); font-weight: 780; }
.an-lead { max-width: 700px; margin: 0; color: var(--an-copy); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.an-section-dark .an-lead { color: #c6cce0; }
.an-gradient-text {
  color: transparent; background: linear-gradient(110deg, var(--an-primary), var(--an-secondary) 54%, var(--an-magenta));
  -webkit-background-clip: text; background-clip: text;
}
.an-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.an-button {
  min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 14px; font-size: .92rem; font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.an-button:hover { transform: translateY(-2px); }
.an-button-primary { color: #fff; background: linear-gradient(120deg, var(--an-primary), #7458ff); box-shadow: 0 12px 28px rgba(101, 70, 255, .27); }
.an-button-primary:hover { box-shadow: 0 17px 35px rgba(101, 70, 255, .34); }
.an-button-light { color: var(--an-ink); background: #fff; }
.an-button-ghost { color: var(--an-ink); border-color: var(--an-line); background: rgba(255, 255, 255, .75); }
.an-button-ghost:hover { border-color: #b8c1d8; background: #fff; }
.an-button svg, .an-icon svg { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9; }

/* Header */
.an-header {
  position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(223, 228, 240, .75);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.an-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: flex-start; gap: 30px; }
.an-brand {
  min-width: 0; flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-start;
  gap: 11px; text-align: left; font-size: 1.35rem; font-weight: 850; letter-spacing: -.045em;
}
.an-brand .custom-logo-link {
  width: auto; max-width: 100%; display: inline-flex; align-items: center; justify-content: flex-start; line-height: 0;
}
.an-brand .custom-logo {
  width: auto !important; height: auto !important; max-width: 190px; max-height: 42px;
  display: block; object-fit: contain; object-position: left center;
}
.an-brand-fallback { color: var(--an-ink); }
.an-brand-fallback span { color: var(--an-primary); }
.an-nav-row { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 22px; }
.an-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 25px; list-style: none; }
.an-nav a { color: #3d4863; font-size: .88rem; font-weight: 680; }
.an-nav a:hover, .an-nav .current-menu-item > a, .an-nav .current_page_item > a { color: var(--an-primary); }
.an-menu-toggle {
  width: 44px; height: 44px; display: none; align-items: center; justify-content: center;
  color: var(--an-ink); border: 1px solid var(--an-line); border-radius: 12px; background: #fff;
}

/* Hero */
.an-hero { position: relative; overflow: hidden; color: #fff; background: #070c24; }
.an-hero::before {
  position: absolute; inset: 0; content: "";
  background: radial-gradient(circle at 18% 40%, rgba(101, 70, 255, .26), transparent 34%), linear-gradient(90deg, rgba(7, 12, 36, .99) 5%, rgba(7, 12, 36, .93) 41%, rgba(7, 12, 36, .2) 75%);
  pointer-events: none;
}
.an-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.an-hero-inner { position: relative; z-index: 1; min-height: 720px; padding: 120px 0 100px; display: flex; align-items: center; }
.an-hero-copy { width: min(100%, 690px); }
.an-hero .an-eyebrow { color: #9fb6ff; }
.an-hero .an-lead { color: #ccd3ea; }
.an-proof { margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.an-proof li { padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; color: #dae0f2; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .77rem; }
.an-proof svg { color: #8bdcc3; }

/* Cards and grids */
.an-section-head { margin-bottom: 48px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.an-grid { display: grid; gap: 20px; }
.an-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.an-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-card { padding: 30px; border: 1px solid var(--an-line); border-radius: var(--an-radius); background: var(--an-surface); box-shadow: 0 10px 34px rgba(24, 37, 80, .045); }
.an-card-icon { width: 48px; height: 48px; margin-bottom: 25px; display: grid; place-items: center; color: var(--an-primary); border-radius: 15px; background: #efedff; }
.an-card-icon svg { width: 23px; height: 23px; }
.an-card h3 { margin-bottom: 12px; font-size: 1.16rem; letter-spacing: -.025em; }
.an-card p { margin: 0; color: var(--an-copy); font-size: .94rem; }
.an-card-featured { color: #fff; border-color: transparent; background: linear-gradient(145deg, #151c43, #0a1029); box-shadow: var(--an-shadow); }
.an-card-featured p { color: #c8cee2; }
.an-card-featured .an-card-icon { color: #fff; background: rgba(101,70,255,.45); }

.an-story-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 70px; }
.an-story-visual { position: relative; padding: 30px; border-radius: var(--an-radius-lg); background: linear-gradient(145deg, #10183a, #080e27); box-shadow: var(--an-shadow); }
.an-story-visual::before { position: absolute; width: 180px; height: 180px; right: -28px; top: -28px; content: ""; background: var(--an-primary); opacity: .3; filter: blur(70px); }
.an-mini-window { position: relative; padding: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.07); }
.an-mini-top { margin-bottom: 20px; display: flex; gap: 6px; }
.an-mini-top span { width: 7px; height: 7px; border-radius: 50%; background: #65709d; }
.an-mini-question { padding: 17px; color: #fff; border-radius: 14px; background: rgba(101,70,255,.2); font-size: .88rem; font-weight: 700; }
.an-mini-answer { width: 86%; margin: 12px 0 0 auto; padding: 14px; color: #bdc5de; border-radius: 14px; background: rgba(255,255,255,.075); font-size: .8rem; }
.an-mini-result { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.an-mini-result span { aspect-ratio: 1 / 1.15; border-radius: 12px; background: linear-gradient(145deg, #5a42e8, #168fff); opacity: .75; }
.an-checklist { margin: 27px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.an-checklist li { display: flex; align-items: flex-start; gap: 11px; color: var(--an-copy); }
.an-checklist .an-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; color: var(--an-success); border-radius: 50%; background: #e5f8f1; }

/* Steps */
.an-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.an-step { position: relative; padding: 0 22px; text-align: center; }
.an-step:not(:last-child)::after { position: absolute; width: calc(100% - 54px); height: 1px; left: calc(50% + 27px); top: 26px; content: ""; background: #d7dceb; }
.an-step-number { position: relative; z-index: 1; width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center; color: #fff; border: 7px solid var(--an-surface-soft); border-radius: 50%; background: var(--an-primary); font-weight: 800; }
.an-step h3 { margin-bottom: 8px; font-size: 1rem; }
.an-step p { margin: 0; color: var(--an-copy); font-size: .82rem; }

/* CTA */
.an-cta { padding: 0 0 104px; }
.an-cta-box { position: relative; overflow: hidden; padding: 68px; color: #fff; border-radius: var(--an-radius-lg); background: linear-gradient(120deg, #11183a, #1f1b57 62%, #321d69); box-shadow: var(--an-shadow); }
.an-cta-box::after { position: absolute; width: 280px; height: 280px; right: -70px; top: -110px; content: ""; border-radius: 50%; background: linear-gradient(135deg, var(--an-secondary), var(--an-magenta)); opacity: .35; filter: blur(20px); }
.an-cta-copy { position: relative; z-index: 1; max-width: 720px; }
.an-cta-box h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.3rem); }
.an-cta-box p { margin: 0; color: #ccd2e5; font-size: 1.08rem; }

/* Interior pages */
.an-page-hero { padding: 104px 0 76px; text-align: center; background: radial-gradient(circle at 50% 0, #ebe8ff, transparent 55%), var(--an-surface-soft); }
.an-page-hero .an-eyebrow { justify-content: center; }
.an-page-hero .an-title, .an-page-hero .an-lead { margin-inline: auto; }
.an-page-content { padding: 82px 0 110px; }
.an-prose { color: #35405b; }
.an-prose h2 { margin: 2.4em 0 .7em; color: var(--an-ink); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.an-prose h3 { margin: 2em 0 .55em; color: var(--an-ink); font-size: 1.25rem; letter-spacing: -.025em; }
.an-prose p, .an-prose li { font-size: 1rem; }
.an-prose ul, .an-prose ol { padding-left: 1.25rem; }
.an-prose a { color: var(--an-primary); text-decoration: underline; text-underline-offset: 3px; }
.an-prose .an-notice { margin: 28px 0; padding: 20px 22px; border: 1px solid #dcd7ff; border-radius: 16px; background: #f5f3ff; }
.an-contact-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 24px; }
.an-contact-panel { padding: 34px; border: 1px solid var(--an-line); border-radius: var(--an-radius); background: #fff; }
.an-contact-panel h2 { margin-bottom: 13px; font-size: 1.55rem; }
.an-contact-panel p { color: var(--an-copy); }
.an-contact-list { margin: 25px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.an-contact-list li { display: flex; align-items: center; gap: 12px; }
.an-contact-list .an-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--an-primary); border-radius: 12px; background: #efedff; }
.an-faq { display: grid; gap: 12px; }
.an-faq details { padding: 18px 20px; border: 1px solid var(--an-line); border-radius: 15px; background: #fff; }
.an-faq summary { cursor: pointer; font-weight: 750; }
.an-faq p { margin: 13px 0 0; color: var(--an-copy); }

/* Footer */
.an-footer { color: #c7cee2; background: #080d25; }
.an-footer-main { padding: 72px 0 44px; display: grid; grid-template-columns: 1.35fr .7fr .85fr; gap: 60px; }
.an-footer-brand { color: #fff; }
.an-footer-copy { max-width: 440px; margin: 16px 0 0; color: #9fa9c4; font-size: .9rem; }
.an-footer h2 { margin-bottom: 18px; color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.an-footer ul { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.an-footer a { color: #b8c1da; font-size: .88rem; }
.an-footer a:hover { color: #fff; }
.an-footer-bottom { padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 20px; color: #7e89a7; border-top: 1px solid rgba(255,255,255,.09); font-size: .77rem; }

/* WordPress */
.alignwide { width: min(calc(100vw - 40px), 1100px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .wp-caption-text, .gallery-caption { color: var(--an-muted); }
.sticky, .bypostauthor { display: block; }
.an-post-list { display: grid; gap: 18px; }
.an-post-list article { padding: 26px; border: 1px solid var(--an-line); border-radius: 18px; }
.an-post-list h2 { margin-bottom: 9px; font-size: 1.4rem; }

@media (max-width: 980px) {
  .an-nav-row > .an-button { display: none; }
  .an-menu-toggle { display: inline-flex; }
  .an-nav { position: fixed; inset: 76px 0 auto; padding: 18px 20px 30px; display: none; border-bottom: 1px solid var(--an-line); background: #fff; box-shadow: 0 24px 40px rgba(13, 23, 57, .12); }
  .an-menu-open .an-nav { display: block; }
  .an-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .an-nav li { width: 100%; border-bottom: 1px solid #edf0f6; }
  .an-nav a { padding: 14px 2px; display: block; }
  .an-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-story-grid { grid-template-columns: 1fr; gap: 46px; }
  .an-steps { grid-template-columns: 1fr; gap: 22px; }
  .an-step { padding: 0; display: grid; grid-template-columns: 54px 1fr; gap: 18px; text-align: left; }
  .an-step:not(:last-child)::after { width: 1px; height: calc(100% + 22px); left: 27px; top: 54px; }
  .an-step-number { margin: 0; }
  .an-contact-grid { grid-template-columns: 1fr; }
  .an-footer-main { grid-template-columns: 1fr 1fr; }
  .an-footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .an-wrap, .an-narrow { width: min(calc(100% - 28px), var(--an-wrap)); }
  .an-section { padding: 76px 0; }
  .an-header-inner { min-height: 68px; gap: 14px; }
  .an-nav { top: 68px; }
  .an-brand { font-size: 1.18rem; }
  .an-brand .custom-logo { max-width: 158px; max-height: 36px; }
  .an-hero-inner { min-height: 680px; padding: 90px 0 72px; align-items: end; }
  .an-hero-image { object-position: 63% center; opacity: .72; }
  .an-hero::before { background: linear-gradient(0deg, rgba(7,12,36,1) 5%, rgba(7,12,36,.84) 66%, rgba(7,12,36,.35)); }
  .an-display { font-size: clamp(2.65rem, 13vw, 4rem); }
  .an-actions, .an-actions .an-button { width: 100%; }
  .an-section-head { margin-bottom: 34px; align-items: start; flex-direction: column; }
  .an-grid-3, .an-grid-2 { grid-template-columns: 1fr; }
  .an-card { padding: 25px; }
  .an-story-visual { padding: 18px; }
  .an-cta { padding-bottom: 76px; }
  .an-cta-box { padding: 40px 25px; }
  .an-page-hero { padding: 80px 0 58px; }
  .an-page-content { padding: 60px 0 80px; }
  .an-footer-main { grid-template-columns: 1fr; gap: 34px; }
  .an-footer-main > div:first-child { grid-column: auto; }
  .an-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
