/* ==========================================================================
   base.css — variables, reset, tipografía y botones
   ========================================================================== */

:root {
  --navy: #032745;
  --navy-dark: #000423;
  --blue: #123B82;
  --blue-bright: #0D5FC7;
  --blue-chip: #0057A8;
  --blue-soft: #EEF5FF;
  --blue-hero: #1F5A80;
  --wine: #8B1A24;
  --red: #C0141E;
  --red-hero: #9B1C22;
  --indigo: #25346B;

  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #212529;
  --text-soft: #4B5563;
  --text-muted: #555555;
  --line: #E3E8F0;

  --font: "Poppins", Arial, sans-serif;
  --font-logo: "Cinzel", "Times New Roman", serif;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
  --radius-card: 22px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 18px 40px rgba(18, 59, 130, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

html,
body,
main {
  overflow-x: clip;
}

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

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ----- Iconos ----- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  stroke-width: 2.1;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .icon:last-child:not(:first-child) {
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon:last-child:not(:first-child) {
  transform: translateX(3px);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--dark {
  background: var(--navy-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--blue);
  box-shadow: 0 10px 24px -8px rgba(18, 59, 130, 0.6);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.btn--white:hover {
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}

.btn--outline-white {
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

/* ----- Animaciones de aparición ----- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s;
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}
