/* =========================================================
   YeaSoftware — Hoja de estilos
   Paleta muestreada de Recursos/ (ver Recursos/marca.md)
   ========================================================= */

:root {
  /* Marca */
  --ys-blue:        #0A84FF;
  --ys-blue-bright: #2E9CFF;
  --ys-blue-deep:   #0057D8;
  --ys-navy:        #0A2040;
  --ys-navy-deep:   #001030;
  --ys-slate:       #103050;

  /* Superficies y texto */
  --bg:        #FFFFFF;
  --bg-alt:    #F5F8FC;
  --surface:   #FFFFFF;
  --border:    #E2EAF3;
  --text:      #0B1B2E;
  --text-soft: #52657C;
  --text-mute: #7B8CA3;

  --grad-brand: linear-gradient(135deg, #2E9CFF 0%, #0A84FF 45%, #0A2040 100%);
  --grad-text:  linear-gradient(100deg, #2E9CFF 0%, #0A84FF 60%);

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 32, 64, .06), 0 2px 8px rgba(10, 32, 64, .05);
  --shadow-md: 0 4px 12px rgba(10, 32, 64, .08), 0 12px 32px rgba(10, 32, 64, .07);
  --shadow-lg: 0 18px 48px rgba(10, 32, 64, .16);

  --container: 1180px;
  --nav-h: 76px;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* Los display: flex/grid de este archivo ganarían sobre el [hidden] del
   navegador, así que lo reforzamos: sin esto, el modal y el botón de
   WhatsApp aparecerían aunque estén marcados como ocultos. */
[hidden] { display: none !important; }
a { color: var(--ys-blue-deep); text-decoration: none; }
a:hover { color: var(--ys-blue); }

:focus-visible {
  outline: 3px solid var(--ys-blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ys-navy); color: #fff;
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--ys-blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 132, 255, .35);
}
.btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(10, 132, 255, .45); background-position: 100% 0; }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

.btn--light { background: #fff; color: var(--ys-navy); box-shadow: var(--shadow-md); }
.btn--light:hover { color: var(--ys-blue-deep); }

.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(10, 32, 64, .07);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand__mark { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--ys-navy); }
.brand__text strong { color: var(--ys-blue); font-weight: 700; }
.brand--light .brand__text { color: #fff; }
.brand--light .brand__text strong { color: var(--ys-blue-bright); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link {
  position: relative;
  font-size: 15.5px; font-weight: 500; color: var(--text-soft);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--ys-blue); border-radius: 2px;
  transition: right .25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--ys-navy); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--border); border-radius: 11px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ys-navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 108px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(0, 16, 48, .96) 0%, rgba(0, 16, 48, .88) 42%, rgba(10, 32, 64, .55) 72%, rgba(10, 32, 64, .35) 100%),
    url("../Recursos/Portada%2002%20yeasoftware.png") center right / cover no-repeat,
    var(--ys-navy-deep);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 12% 30%, rgba(10, 132, 255, .28), transparent 70%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 660px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ys-blue-bright);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--ys-blue-deep); }

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, #6FC0FF 0%, #2E9CFF 55%, #0A84FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__lead { font-size: clamp(1.03rem, 1.6vw, 1.19rem); color: #C7D8EC; max-width: 570px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 62px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 44px; }
.hero__stats li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px; }
.stat__num, .stat__plus {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 800;
  color: #fff; line-height: 1;
}
.stat__plus { color: var(--ys-blue-bright); }
.stat__label {
  flex-basis: 100%;
  font-size: 14px; color: #9FB6D0; margin-top: 6px;
}

/* ---------- Franja de confianza ---------- */
.strip { background: var(--ys-navy); color: #fff; padding: 22px 0; }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.strip__label {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ys-blue-bright);
}
.strip__list { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.strip__list li { font-size: 15px; color: #B6C9DF; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 700px; margin: 0 auto 58px; text-align: center; }
.section__title { font-size: clamp(1.85rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--ys-navy); margin-bottom: 16px; }
.section__sub { font-size: 1.05rem; color: var(--text-soft); }

/* ---------- Tarjetas de servicio ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
  gap: 24px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #C9DEF5; }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #E8F3FF, #D3E7FF);
  color: var(--ys-blue-deep);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }

.card__title { font-size: 1.25rem; font-weight: 600; color: var(--ys-navy); margin-bottom: 12px; }
.card__text { color: var(--text-soft); font-size: 15.5px; margin-bottom: 18px; }
.card__list { display: grid; gap: 9px; border-top: 1px solid var(--border); padding-top: 18px; }
.card__list li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; color: var(--text-mute);
}
.card__list li::before {
  content: ""; position: absolute; left: 6px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ys-blue);
}

.card--featured {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.card--featured .card__title, .card--featured .card__text { color: #fff; }
.card--featured .card__text { color: #D6E8FF; }
.card--featured .card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.card--featured .card__list { border-top-color: rgba(255, 255, 255, .22); }
.card--featured .card__list li { color: #C9E1FF; }
.card--featured .card__list li::before { background: #fff; }
.card__badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Por qué nosotros ---------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.why__media {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.why__media img { border-radius: 8px; }

.why .section__head { margin: 0; text-align: left; }
.why .section__title { text-align: left; margin-bottom: 16px; }
.why .section__sub { margin-bottom: 30px; }

.why__list { display: grid; gap: 18px; }
.why__list li {
  position: relative; padding-left: 38px;
  color: var(--text-soft); font-size: 15.5px;
}
.why__list li strong { color: var(--ys-navy); font-weight: 600; }
.why__list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .92);
}

/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__num {
  display: block;
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  line-height: 1; margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.step__title { font-size: 1.13rem; font-weight: 600; color: var(--ys-navy); margin-bottom: 10px; }
.step__text { font-size: 15px; color: var(--text-soft); }

/* ---------- Proyectos ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project__tag {
  align-self: flex-start;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ys-blue-deep); background: #E8F3FF;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.project__title { font-size: 1.2rem; font-weight: 600; color: var(--ys-navy); margin-bottom: 12px; }
.project__text { font-size: 15.5px; color: var(--text-soft); margin-bottom: 18px; }
.project__result {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px; color: var(--text-soft);
}
.project__result strong { color: var(--ys-navy); }

/* ---------- Tecnologías ---------- */
.tech__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech__list li {
  font-family: var(--font-head); font-size: 15px; font-weight: 500;
  color: var(--ys-navy);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 22px; border-radius: 999px;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.tech__list li:hover { transform: translateY(-3px); border-color: var(--ys-blue-bright); color: var(--ys-blue-deep); }

/* ---------- Testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.quote {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute; top: 6px; left: 22px;
  font-family: var(--font-head); font-size: 78px; line-height: 1;
  color: #DCEBFB;
}
.quote blockquote { margin: 0 0 22px; position: relative; font-size: 16px; color: var(--text-soft); }
.quote figcaption { display: grid; gap: 2px; border-top: 1px solid var(--border); padding-top: 16px; }
.quote figcaption strong { font-family: var(--font-head); color: var(--ys-navy); font-size: 15px; }
.quote figcaption span { font-size: 14px; color: var(--text-mute); }

/* ---------- CTA ---------- */
.cta {
  background: var(--grad-brand);
  color: #fff;
  padding: 66px 0;
}
.cta__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px;
}
.cta__title { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; margin-bottom: 10px; }
.cta__text { color: #D6E8FF; max-width: 560px; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.contact .section__head { text-align: left; margin: 0; }
.contact .section__title { margin-bottom: 16px; }
.contact .section__sub { margin-bottom: 34px; }

.contact__data { display: grid; gap: 22px; }
.contact__data li { display: flex; gap: 16px; align-items: flex-start; }
.contact__ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F3FF, #D3E7FF);
  color: var(--ys-blue-deep);
}
.contact__ico svg { width: 21px; height: 21px; }
.contact__data strong {
  display: block;
  font-family: var(--font-head); font-size: 14px; color: var(--ys-navy);
  margin-bottom: 2px;
}
.contact__data a, .contact__data span[data-pendiente] { color: var(--text-soft); font-size: 15.5px; }
.contact__data a:hover { color: var(--ys-blue); }
[data-pendiente] { border-bottom: 1px dashed var(--text-mute); }

/* ---------- Formulario ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--ys-navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #A8B7C9; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ys-blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, .14);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #D93A3A; }
.field__error { font-size: 13.5px; color: #D93A3A; min-height: 0; }
.form__note { font-size: 14.5px; color: var(--text-soft); text-align: center; min-height: 22px; }
.form__note.is-ok { color: #14804A; }
.form__note.is-error { color: #D93A3A; }

/* ---------- Pie ---------- */
.footer { background: var(--ys-navy-deep); color: #A9BDD6; padding: 68px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.footer__tagline { margin-top: 16px; font-size: 15px; max-width: 300px; color: #8FA6C2; }
.footer__col h3 {
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: #A9BDD6; font-size: 15px; transition: color .2s ease; }
.footer__col a:hover { color: var(--ys-blue-bright); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 24px;
  font-size: 14px; color: #7D93B0;
  text-align: center;
}

/* ---------- Confirmación tras enviar el formulario ---------- */
.exito {
  display: grid; justify-items: center; gap: 6px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px 32px;
  box-shadow: var(--shadow-md);
  animation: exitoEntra .32s ease;
}
@keyframes exitoEntra {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.exito__check {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  background: #E4F5EC; color: #14804A;
  border-radius: 50%; font-size: 30px;
}
.exito__titulo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--ys-navy); }
.exito__texto { font-size: 15px; color: var(--text-soft); max-width: 340px; margin-bottom: 20px; }

.exito .btn--wa { width: 100%; max-width: 320px; }

.exito__no {
  margin-top: 14px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; color: var(--text-mute);
  text-decoration: underline; text-underline-offset: 3px;
}
.exito__no:hover { color: var(--ys-navy); }

/* Dentro del modal ya hay una tarjeta: no anidamos otra */
.modal__caja .exito {
  background: none; border: 0; box-shadow: none;
  padding: 6px 0 0;
}

/* Con la confirmación en pantalla, la cabecera del modal sobra */
.modal__caja.es-enviado > .eyebrow,
.modal__caja.es-enviado > .modal__titulo,
.modal__caja.es-enviado > .modal__texto,
.modal__caja.es-enviado > .btn--wa,
.modal__caja.es-enviado > .modal__separador,
.modal__caja.es-enviado > .modal__luego { display: none; }

/* ---------- Modal de bienvenida ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  overflow-y: auto;
}
.modal__fondo {
  position: fixed; inset: 0;
  background: rgba(0, 12, 32, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
.modal.is-open .modal__fondo { opacity: 1; }

.modal__caja {
  position: relative;
  width: 100%; max-width: 440px;
  background: var(--surface);
  border-radius: 22px;
  padding: 38px 36px 30px;
  box-shadow: 0 28px 70px rgba(0, 10, 30, .42);
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(.97);
  transition: opacity .3s ease, transform .3s ease;
}
.modal.is-open .modal__caja { opacity: 1; transform: none; }

.modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--text-mute); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal__x:hover { background: var(--bg-alt); color: var(--ys-navy); }
.modal__x svg { width: 19px; height: 19px; }

.modal__mark { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 18px; object-fit: cover; box-shadow: var(--shadow-sm); }
.modal__titulo { font-size: 1.5rem; font-weight: 700; color: var(--ys-navy); margin-bottom: 10px; }
.modal__texto { font-size: 15px; color: var(--text-soft); margin-bottom: 24px; }

.btn--wa {
  width: 100%;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .34);
}
.btn--wa:hover { color: #fff; background: #1FBA59; box-shadow: 0 10px 26px rgba(37, 211, 102, .44); }
.btn--wa svg { width: 21px; height: 21px; }

.modal__separador {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 20px;
  color: var(--text-mute); font-size: 13.5px;
}
.modal__separador::before, .modal__separador::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--border);
}

.modal__form { text-align: left; display: grid; gap: 16px; }
.modal__form .field { display: grid; gap: 6px; }
.modal__form .form__note { min-height: 0; }

.modal__luego {
  margin-top: 18px;
  background: none; border: 0;
  font-family: var(--font-body); font-size: 14px; color: var(--text-mute);
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.modal__luego:hover { color: var(--ys-navy); }

body.modal-abierto { overflow: hidden; }

/* ---------- Redes sociales ---------- */
.redes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.redes a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #C7D8EC;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.redes a:hover {
  transform: translateY(-3px);
  background: var(--ys-blue);
  border-color: var(--ys-blue);
  color: #fff;
}
.redes svg { width: 19px; height: 19px; }

.redes--claro a {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--ys-blue-deep);
}
.redes--claro a:hover { background: var(--ys-blue); border-color: var(--ys-blue); color: #fff; }

.footer__admin { color: #7D93B0; border-bottom: 1px dotted rgba(255, 255, 255, .25); }
.footer__admin:hover { color: var(--ys-blue-bright); }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 91;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp:hover { color: #fff; transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 30px rgba(37, 211, 102, .5); }
.whatsapp svg { width: 32px; height: 32px; }

/* Cuando hay WhatsApp, el botón de volver arriba se recoloca encima */
body.con-whatsapp .to-top { bottom: 96px; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Animación de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .why { grid-template-columns: 1fr; gap: 40px; }
  .why__media { max-width: 460px; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 26px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 14px 4px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--border);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 20px; align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding: calc(var(--nav-h) + 64px) 0 80px; }
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(0, 16, 48, .95) 0%, rgba(0, 16, 48, .9) 60%, rgba(10, 32, 64, .82) 100%),
      url("../Recursos/Portada%2002%20yeasoftware.png") center center / cover no-repeat,
      var(--ys-navy-deep);
  }
  .hero__actions { margin-bottom: 46px; }
  .hero__actions .btn { flex: 1 1 210px; }
  .hero__stats { gap: 28px 34px; }
  .stat__num, .stat__plus { font-size: 1.75rem; }
  .section__head { margin-bottom: 42px; }
  .form { padding: 26px 22px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer { padding-top: 52px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .to-top { right: 16px; bottom: 16px; }
}

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