/* =========================================================
   Air-e — Landing page de tesis
   Paleta y tipografía tomadas del sitio oficial de Air-e
   ========================================================= */

:root{
  --color-primary: #021d49;   /* azul marino — usado 2371 veces en el sitio original */
  --color-accent: #009ade;    /* azul brillante — links / botones activos */
  --color-secondary: #00af9a; /* verde-azulado — acentos secundarios */
  --color-gray: #b1b1b1;      /* bordes / texto secundario */
  --color-black: #000000;
  --color-white: #ffffff;

  --font-heading: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow-card: 0 10px 25px -12px rgba(2, 29, 73, 0.25);
  --shadow-card-hover: 0 18px 35px -12px rgba(2, 29, 73, 0.35);
  --container: 1200px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5{
  font-family: var(--font-heading);
  color: var(--color-black);
  margin: 0 0 0.5em;
}

h2{ font-size: 2rem; font-weight: 700; line-height: 1.2; }
h3{ font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
h4{ font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
h5{ font-size: 1.125rem; font-weight: 600; color: var(--color-primary); }

p{ margin: 0 0 1em; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

button{ font-family: inherit; cursor: pointer; }

.privacy-modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1rem;
  pointer-events: none;
  background: transparent;
}

.privacy-modal[hidden]{
  display: none;
}

.privacy-modal__card{
  width: min(560px, calc(100vw - 2rem));
  max-height: min(62vh, 360px);
  overflow: auto;
  padding: 1.1rem 1.25rem 1rem;
  background: var(--color-white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  pointer-events: auto;
}

.privacy-modal__card h2{
  margin: 0 0 0.45rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
}

.privacy-modal__card p{
  margin: 0;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.45;
}

.privacy-modal__card strong{
  color: #172b4d;
}

.privacy-modal__card a{
  color: var(--color-accent);
}

.privacy-modal__actions{
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.privacy-btn{
  min-width: 118px;
  min-height: 38px;
  border-radius: 5px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 400;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.privacy-btn--outline{
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  background: var(--color-white);
}

.privacy-btn--outline:hover{
  background: #eef9ff;
}

.privacy-btn--solid{
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
}

.privacy-btn--solid:hover{
  background: #0089c7;
  border-color: #0089c7;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section{ padding: 4rem 0; }
.section--muted{ background: #f7f8fa; }

.section-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head p{ color: #4b5563; margin-bottom: 0; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn--primary{ background: var(--color-accent); color: var(--color-white); }
.btn--primary:hover{ background: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.btn--secondary{ background: var(--color-secondary); color: var(--color-white); }
.btn--secondary:hover{ filter: brightness(0.92); transform: translateY(-2px); }
.btn--outline{ background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover{ background: var(--color-primary); color: var(--color-white); }
.btn--block{ width: 100%; }
.btn--sm{ padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------- Topbar ---------- */
.topbar{
  background: #009ade;
  color: var(--color-white);
  font-size: 0.85rem;
}
.topbar .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 57px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
}
.topbar__links{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.topbar__links a{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}
.topbar__links a:hover{ opacity: 0.7; }
.topbar__links .icon{ width: 16px; height: 16px; flex: none; }

.a11y{
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.a11y__btn{
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.a11y__btn:hover{ background: rgba(255,255,255,0.15); }
.a11y__btn.is-active{ background: var(--color-white); color: var(--color-primary); }
.a11y__btn--sound{ border-radius: 999px; }

/* ---------- Header / nav ---------- */
.site-header{
  background: #0057bb;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .brand img{ filter: brightness(0) invert(1); }
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand{ display: flex; align-items: center; flex: none; }
.brand img{ height: 44px; width: auto; }

.nav{
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.nav a, .nav .nav-drop > button{
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-white);
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.nav a:hover, .nav .nav-drop > button:hover{ color: rgba(255,255,255,0.7); }
.nav a.is-active{ color: var(--color-white); font-weight: 600; border-bottom: 2px solid var(--color-white); }

.nav-drop{ position: relative; }
.nav-drop__menu{
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-drop__menu a{
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 400;
}
.nav-drop__menu a:hover{ background: #f0f6fb; color: var(--color-accent); }

.nav-toggle{
  display: none;
  border: none;
  background: none;
  color: var(--color-white);
  padding: 0.4rem;
}
.nav-toggle svg{ width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
}
.hero__slide{ position: relative; }
.hero__slide img{ width: 100%; height: auto; }
.hero__arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(2,29,73,0.55);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.hero__arrow:hover{ background: var(--color-accent); }
.hero__arrow--prev{ left: 1rem; }
.hero__arrow--next{ right: 1rem; }
.hero__dots{
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.hero__dots button{
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.hero__dots button.is-active{ background: var(--color-white); width: 22px; border-radius: 999px; }

/* ---------- Cards genéricas ---------- */
.grid{
  display: grid;
  gap: 1.5rem;
}
.grid--4{ grid-template-columns: repeat(4, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }

.card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eef1f5;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }

.card__icon{
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f6ff;
  overflow: hidden;
}
.card__icon img{ width: 100%; height: 100%; object-fit: contain; object-position: center; }

#canales .section-head{
  max-width: 760px;
}

#canales .section-head .eyebrow{
  display: none;
}

#canales .section-head h2{
  font-size: 2rem;
  line-height: 1.15;
}

#canales .section-head h2::before{
  content: "Canales Habilitados";
  display: block;
  margin-bottom: 1.05rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

#canales .section-head h2{
  color: #273244;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
}

#canales .grid--4{
  gap: 2rem;
}

#canales .card{
  min-height: 310px;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.45rem 2rem;
  text-align: center;
}

#canales .card__badge{
  display: none;
}

#canales .card__icon{
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 0;
  background: transparent;
}

#canales .card:nth-child(2) .card__icon{
  width: 112px;
  height: 80px;
}

#canales .card:nth-child(3) .card__icon{
  width: 96px;
  height: 80px;
}

#canales .card:nth-child(4) .card__icon{
  width: 126px;
  height: 80px;
}

#canales .card__title{
  font-size: 1.55rem;
  font-weight: 700;
}

#canales .card__text{
  flex: 0 0 auto;
  max-width: 230px;
  margin: 0 auto 3.6rem;
  font-size: 0.98rem;
}

#canales .card__note{
  max-width: 230px;
  margin: -2.6rem auto 2.35rem;
  background: transparent;
  border-left: 0;
  padding: 0;
  font-size: 0.92rem;
}

#canales .btn{
  margin-top: auto;
}

.card__badge{
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: #e8f6ff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.card__title{ font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; margin: 0; }
.card__text{ color: #4b5563; font-size: 0.92rem; margin: 0; flex: 1; }
.card__note{
  font-size: 0.78rem;
  color: #6b7280;
  background: #f7f8fa;
  border-left: 3px solid var(--color-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* ---------- Noticias ---------- */
.news-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.news-card__media{ position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card__media img{ width: 100%; height: 100%; object-fit: cover; }
.news-card__tag{
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.news-card__body{ padding: 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.news-card__title{ font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; margin: 0; }
.news-card__excerpt{ color: #4b5563; font-size: 0.9rem; margin: 0; flex: 1; }
.news-card__meta{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: #6b7280;
}
.news-card__meta .pill{
  background: #eef6f2;
  color: var(--color-secondary);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.news-card__link{
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.news-card__link:hover{ color: var(--color-primary); }

/* ---------- Procesos de contratación ---------- */
.process-card{
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  border: 1px solid #eef1f5;
}
.process-card__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.process-card__status{
  background: #e8faf5;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.process-card__code{ font-size: 0.85rem; color: #6b7280; font-weight: 600; }
.process-card__title{ font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; margin-bottom: 1.25rem; }

.process-meta{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 1.25rem;
}
.process-meta dt{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 0.2rem; }
.process-meta dd{ margin: 0; font-weight: 600; font-size: 0.92rem; color: var(--color-primary); }

.process-card__objeto h4{ font-size: 0.95rem; margin-bottom: 0.4rem; }
.process-card__objeto p{ color: #4b5563; font-size: 0.9rem; }
.process-card__actions{ display: flex; justify-content: flex-end; margin-top: 1rem; }

/* ---------- Resolución ---------- */
.resolution{
  background: linear-gradient(120deg, var(--color-primary), #04306e);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.resolution h3{ color: var(--color-white); margin-bottom: 0.35rem; }
.resolution p{ color: rgba(255,255,255,0.8); margin: 0; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h5{ color: var(--color-white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-grid .brand img{ height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-grid p{ margin: 0 0 0.4rem; color: rgba(255,255,255,0.7); }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a{ color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.footer-grid a:hover{ color: var(--color-white); }

.social-row{ display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.social-row a{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover{ background: var(--color-accent); }
.social-row svg{ width: 18px; height: 18px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

/* ---------- Botón flotante de ayuda ---------- */
.help-fab{
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(2,29,73,0.5);
  z-index: 50;
  border: none;
  transition: transform 0.2s ease;
}
.help-fab:hover{ transform: translateY(-4px) scale(1.05); }
.help-fab svg{ width: 26px; height: 26px; }

/* ---------- Mobile nav drawer ---------- */
.nav-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 340px);
  background: var(--color-white);
  box-shadow: -10px 0 30px rgba(2,29,73,0.25);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 60;
  padding: 1.5rem;
  overflow-y: auto;
}
.nav-drawer.is-open{ transform: translateX(0); }
.nav-drawer__head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.nav-drawer__close{ border: none; background: none; color: var(--color-primary); }
.nav-drawer nav{ display: flex; flex-direction: column; gap: 0.9rem; }
.nav-drawer nav a{ font-size: 1rem; color: var(--color-primary); font-weight: 500; }
.nav-drawer nav a:hover{ color: var(--color-accent); }

.scrim{
  position: fixed;
  inset: 0;
  background: rgba(2,29,73,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 55;
}
.scrim.is-open{ opacity: 1; visibility: visible; }

/* Accesibilidad: aumento de tamaño de fuente */
body.font-lg{ font-size: 18px; }
body.font-xl{ font-size: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .nav{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px){
  .grid--3{ grid-template-columns: 1fr; }
  .process-meta{ grid-template-columns: repeat(2, 1fr); }
  .topbar__links span.label{ display: none; }
  h2{ font-size: 1.6rem; }
  .section{ padding: 3rem 0; }
}

@media (max-width: 560px){
  .privacy-modal{
    align-items: flex-end;
    padding: 0 0.75rem 0.75rem;
  }
  .privacy-modal__card{
    width: 100%;
    max-height: 70vh;
    padding: 1rem;
  }
  .privacy-modal__actions{
    justify-content: stretch;
  }
  .privacy-btn{
    width: 100%;
  }
  .grid--4{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .process-meta{ grid-template-columns: 1fr; }
  .resolution{ flex-direction: column; align-items: flex-start; }
  .topbar__links{ gap: 0.9rem; }
}
