/* =========================================================
   Visas Americanas online
   Archivo principal de estilos
   ========================================================= */

:root {
  --navy-950: #031d3e;
  --navy-900: #082f63;
  --navy-800: #0b3f7f;
  --navy-700: #15549c;
  --red-700: #c90f2e;
  --red-600: #df1739;
  --red-500: #ef2948;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #eef3f8;
  --gray-200: #dfe7f0;
  --gray-500: #65758b;
  --gray-700: #34445a;
  --shadow-sm: 0 10px 30px rgba(3, 29, 62, 0.08);
  --shadow-lg: 0 28px 80px rgba(3, 29, 62, 0.2);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy-950);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(8, 47, 99, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 40px rgba(3, 29, 62, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 126px;
  min-width: 126px;
}

.brand img {
  width: 100%;
  height: 68px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 750;
  color: var(--navy-900);
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--red-600);
  transition: right 0.25s ease;
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
  right: 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red-700);
}

.nav-cta {
  padding: 11px 20px;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(201, 15, 46, 0.24);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-900);
  border-radius: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 170px 0 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 20%, rgba(223, 23, 57, 0.14), transparent 27%),
    radial-gradient(circle at 2% 55%, rgba(21, 84, 156, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eef5fd 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  right: -270px;
  top: 100px;
  border: 62px solid rgba(201, 15, 46, 0.045);
}

.hero::after {
  width: 390px;
  height: 390px;
  left: -230px;
  bottom: 10px;
  border: 52px solid rgba(8, 47, 99, 0.05);
}

.hero-stars {
  position: absolute;
  top: 130px;
  left: max(30px, calc((100vw - var(--container)) / 2 - 70px));
  width: 180px;
  height: 90px;
  opacity: 0.08;
  background-image:
    radial-gradient(circle, var(--navy-900) 0 2px, transparent 2.5px);
  background-size: 24px 24px;
  transform: rotate(-8deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ffb8c3;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(3.3rem, 7.2vw, 6.6rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: var(--red-600);
  font-size: 0.56em;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  color: var(--navy-900);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 850;
}

.hero-slogan::before {
  content: "";
  width: 54px;
  height: 4px;
  background: var(--red-600);
  border-radius: 999px;
}

.hero-text {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--gray-700);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 23px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button svg {
  width: 21px;
  fill: currentColor;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 14px 32px rgba(201, 15, 46, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 38px rgba(201, 15, 46, 0.32);
}

.button-secondary {
  color: var(--navy-900);
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.button-white {
  margin-top: 34px;
  color: var(--navy-900);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.contact-chip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 16px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 47, 99, 0.1);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.contact-chip span {
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.logo-card {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 47, 99, 0.08);
  border-radius: 44px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.6deg);
  overflow: hidden;
}

.logo-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(8, 47, 99, 0.09);
  border-radius: 34px;
  pointer-events: none;
}

.logo-card img {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(-1.6deg);
}

.logo-glow {
  position: absolute;
  width: 74%;
  height: 74%;
  background: radial-gradient(circle, rgba(21, 84, 156, 0.1), transparent 67%);
  border-radius: 50%;
}

.flag-lines {
  position: absolute;
  right: -16px;
  bottom: 48px;
  z-index: 3;
  display: grid;
  gap: 10px;
  transform: rotate(-10deg);
}

.flag-lines span {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--red-600), var(--red-700));
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(201, 15, 46, 0.18);
}

.flag-lines span:nth-child(1) { width: 112px; }
.flag-lines span:nth-child(2) { width: 148px; }
.flag-lines span:nth-child(3) { width: 86px; }

.hero-wave {
  position: absolute;
  inset: auto 0 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 150px;
}

.hero-wave path {
  fill: var(--white);
}

.section {
  padding: 110px 0;
}

.section-light {
  background: var(--white);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2,
.identity-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p:last-child {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--gray-500);
  font-size: 1.04rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -65px;
  bottom: -65px;
  border: 24px solid rgba(201, 15, 46, 0.045);
  border-radius: 50%;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(8, 47, 99, 0.2);
  box-shadow: 0 24px 58px rgba(3, 29, 62, 0.12);
}

.icon-box {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-700), var(--navy-950));
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(8, 47, 99, 0.22);
}

.icon-box svg {
  width: 28px;
  fill: currentColor;
}

.info-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.42rem;
}

.info-card p {
  margin: 12px 0 20px;
  color: var(--gray-500);
}

.info-card a,
.info-card strong,
.social-label {
  margin-top: auto;
  color: var(--red-700);
  font-size: 1.04rem;
  font-weight: 900;
}

.info-card a:hover,
.info-card a:focus-visible {
  text-decoration: underline;
}

.identity-section {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.1), transparent 25%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  overflow: hidden;
}

.identity-section::after {
  content: "";
  position: absolute;
  inset: auto -120px -240px auto;
  width: 560px;
  height: 560px;
  border: 74px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}

.identity-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.identity-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.outline-map {
  position: relative;
  width: min(100%, 560px);
  padding: 40px;
}

.outline-map::before {
  content: "";
  position: absolute;
  inset: 11% 8%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 28px,
      rgba(239, 41, 72, 0.13) 28px 42px
    );
  border-radius: 50%;
  transform: rotate(-5deg);
}

.outline-map svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 35px rgba(0, 0, 0, 0.22));
}

.outline-map path {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 4;
  stroke-linejoin: round;
}

.identity-copy h2 {
  color: var(--white);
}

.identity-slogan {
  margin: 18px 0 30px;
  color: #ffbcc6;
  font-size: 1.24rem;
  font-weight: 850;
}

.identity-list {
  display: grid;
  gap: 14px;
}

.identity-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.identity-list span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-list strong {
  color: var(--white);
}

.contact-section {
  padding: 110px 0;
  background:
    linear-gradient(180deg, rgba(238, 243, 248, 0.65), rgba(255, 255, 255, 0)),
    var(--white);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  padding: clamp(34px, 6vw, 70px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(3, 29, 62, 0.12);
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  left: -155px;
  top: -155px;
  border: 38px solid rgba(201, 15, 46, 0.06);
  border-radius: 50%;
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 2;
}

.contact-copy p:last-child {
  margin: 20px 0 0;
  color: var(--gray-500);
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.phone-link,
.facebook-card {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border-radius: 18px;
}

.phone-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  box-shadow: 0 16px 36px rgba(201, 15, 46, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(201, 15, 46, 0.3);
}

.facebook-card {
  color: var(--navy-900);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.phone-link span,
.facebook-card span {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.74;
}

.phone-link strong,
.facebook-card strong {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
}

.site-footer {
  color: var(--white);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
}

.footer-brand img {
  width: 136px;
  height: 90px;
  padding: 6px;
  object-fit: contain;
  background: var(--white);
  border-radius: 15px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer-info {
  display: grid;
  gap: 7px;
  text-align: right;
}

.footer-info span,
.footer-info a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-info a:hover,
.footer-info a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 980;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #25d366;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
}

.whatsapp-float svg {
  width: 31px;
  fill: currentColor;
}

/* El contenido permanece visible aunque JavaScript no cargue. */
.reveal {
  opacity: 1;
  transform: none;
  animation: reveal-up 0.7s ease both;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 110px 30px 50px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 1.4rem;
  }

  .nav-cta {
    padding: 14px 28px;
  }

  .hero {
    min-height: auto;
    padding: 145px 0 130px;
  }

  .hero-grid,
  .identity-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero-text {
    margin-inline: auto;
  }

  .hero-slogan,
  .contact-chip {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .logo-card {
    width: min(84vw, 520px);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-card:last-child {
    grid-column: 1 / -1;
  }

  .identity-grid {
    gap: 30px;
  }

  .identity-visual {
    min-height: 330px;
  }

  .identity-copy {
    max-width: 650px;
  }

  .contact-panel {
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-wrap {
    min-height: 74px;
  }

  .brand {
    width: 104px;
    min-width: 104px;
  }

  .brand img {
    height: 58px;
  }

  .hero {
    padding: 125px 0 110px;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contact-chip {
    width: 100%;
    justify-content: center;
  }

  .logo-card {
    width: 100%;
    border-radius: 30px;
  }

  .logo-card::before {
    border-radius: 22px;
  }

  .flag-lines {
    right: -8px;
    bottom: 20px;
  }

  .section,
  .identity-section,
  .contact-section {
    padding: 82px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card:last-child {
    grid-column: auto;
  }

  .info-card {
    min-height: 270px;
  }

  .identity-visual {
    min-height: 250px;
  }

  .outline-map {
    padding: 10px;
  }

  .identity-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-panel {
    padding: 30px 22px;
    border-radius: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-info {
    text-align: left;
  }

  .whatsapp-float {
    right: 15px;
    bottom: 15px;
    width: 56px;
    height: 56px;
  }
}
