/* avanware.com — sitio estático (sustituye al WordPress) */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/opensans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1f2a2e;
  --muted: #576a71;
  --brand: #1e5469;
  --brand-dark: #414f54;
  --accent: #57bda8;
  --sky: #6aa8c0;
  --soft: #dbe1e3;
  --paper: #ffffff;
  --footer: #414f54;
  --radius: 10px;
  --wrap: 1140px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); line-height: 1.25; margin: 0 0 .6em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; }

/* Cabecera */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand img { width: 190px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
.nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; inset: 76px 0 auto 0; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .9rem 1.25rem; border-top: 1px solid var(--soft); }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--brand-dark) center/cover no-repeat; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 25, 35, .45); }
.hero > .wrap { position: relative; padding: 7rem 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: .2em; }
.hero p.lead { font-family: var(--head); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.9rem); margin: 0 0 1.6rem; }
.hero.left { text-align: left; }
.hero.left > .wrap { padding: 4.5rem 0; }
.hero.left h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero.left h2 { font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; }
.hero ul { padding-left: 1.2rem; }

.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700;
       text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: .85rem 1.6rem; border-radius: 6px; border: 0; cursor: pointer; }
.btn:hover { background: #163f4f; }
.btn.light { background: #fff; color: var(--brand); }

/* Secciones */
.section { padding: 4.5rem 0; }
.section.alt { background: #f4f7f8; }
.section-title { text-align: center; color: var(--brand); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; } }
.panel { background: var(--brand); color: #fff; padding: 2.2rem; border-radius: var(--radius); }
.panel h3 { text-align: center; font-size: 1.5rem; }
.closing { text-align: center; font-family: var(--head); font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.6rem); max-width: 800px; margin: 0 auto; }

/* Carrusel de clientes */
.logos { display: flex; gap: 2.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 0; scrollbar-width: none; }
.logos::-webkit-scrollbar { display: none; }
.logos img { flex: 0 0 auto; width: 160px; scroll-snap-align: start; }
.carousel { position: relative; }
.carousel button { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid var(--soft); border-radius: 50%;
                   width: 38px; height: 38px; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.carousel .prev { left: -1.25rem; } .carousel .next { right: -1.25rem; }

/* RINC */
.check li { margin: .3rem 0; }
.plan { background: var(--soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plan h4 { margin: 0; background: var(--brand-dark); color: #fff; text-align: center; padding: 1rem; font-size: 1rem; }
.plan h3 { margin: 0; background: var(--muted); color: #fff; text-align: center; padding: 1.4rem 1rem; font-weight: 500; font-size: 1.35rem; }
.plan p { padding: 1.4rem; margin: 0; text-align: center; }
.plan.featured h3 { background: #1d8fae; }
.plan.featured { background: #e3f6fb; }
video { width: 100%; border-radius: var(--radius); background: #000; }
.highlight { font-family: var(--head); font-weight: 700; color: var(--brand); text-align: center; }

/* Contacto */
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.08); color: var(--ink); }
.contact-card h3 strong, .hero h1 strong { color: var(--accent); }
form.contact { display: grid; gap: .9rem; }
form.contact input, form.contact textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #c8d1d4; border-radius: 6px; }
form.contact label.check-row { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
form.contact label.check-row input { width: auto; margin-top: .3rem; }
.fine { font-size: .82rem; color: var(--muted); }

/* Legal */
.legal { max-width: 860px; }
.legal h1 { color: var(--brand); }
.legal h2 { color: var(--brand); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--soft); }
.legal h3 { margin-top: 1.8rem; font-size: 1.15rem; }
.legal h4 { font-size: 1rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal td { border: 1px solid var(--soft); padding: .4rem .6rem; vertical-align: top; }
.legal td p { margin: 0; }

/* Directorio de apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.app { border: 1px solid var(--soft); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; background: #fff; }
.app header { display: flex; gap: 1rem; align-items: center; }
.app header img { width: 64px; height: 64px; border-radius: 14px; }
.app h2 { font-size: 1.2rem; margin: 0; }
.app .tag { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.app p { margin: 0; color: var(--muted); flex: 1; }
.app .web { font-weight: 600; text-decoration: none; }
.app .web:hover { text-decoration: underline; }
.stores { display: flex; gap: .6rem; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: .5rem; background: #000; color: #fff; text-decoration: none; border-radius: 8px;
         padding: .4rem .8rem; min-width: 150px; line-height: 1.1; }
.store svg { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; }
.store small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .03em; }
.store b { font-family: var(--head); font-size: .95rem; }
.store.pending { background: #e9eef0; color: #8a9aa0; cursor: default; }
.store.pending small::after { content: " · próximamente"; text-transform: none; }

/* Pie */
.site-footer { background: var(--footer); color: #fff; padding: 3rem 0; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: center; }
.site-footer img { width: 220px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .2rem 0; }
@media (max-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr; } }
