:root {
  --nuevo-font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nuevo-color-bg: #070b11;
  --nuevo-color-bg-alt: #0f1621;
  --nuevo-color-panel: rgba(18, 24, 34, 0.85);
  --nuevo-color-card: rgba(20, 26, 36, 0.9);
  --nuevo-color-surface: rgba(255, 255, 255, 0.06);
  --nuevo-color-border: rgba(255, 255, 255, 0.08);
  --nuevo-color-text: #f5f6f8;
  --nuevo-color-muted: rgba(228, 233, 243, 0.72);
  --nuevo-color-accent: #1f7af2;
  --nuevo-color-accent-soft: rgba(31, 122, 242, 0.2);
  --nuevo-color-shadow: rgba(7, 18, 32, 0.55);
  --nuevo-color-glass: rgba(17, 27, 39, 0.55);
  --nuevo-radius-sm: 10px;
  --nuevo-radius: 18px;
  --nuevo-radius-lg: 26px;
  --nuevo-container-max: 1200px;
  --nuevo-transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px; /* Fallback height */
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--nuevo-color-bg);
  color: var(--nuevo-color-text);
  font-family: var(--nuevo-font-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.nuevo-body {
  background: radial-gradient(circle at top, rgba(35, 54, 82, 0.5), transparent 60%) var(--nuevo-color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

.nuevo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: linear-gradient(90deg, rgba(7, 11, 17, 0.92), rgba(8, 20, 32, 0.8));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nuevo-color-border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  opacity: 1;
  will-change: transform;
}

.nuevo-header--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.nuevo-main {
  position: relative;
}

.nuevo-header__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nuevo-header__logo-img {
  width: 70px;
  height: auto;
  border-radius: var(--nuevo-radius-sm);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nuevo-header__tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--nuevo-radius-sm);
  background: linear-gradient(135deg, rgba(12, 20, 32, 0.85), rgba(31, 122, 242, 0.22));
  box-shadow: 0 12px 24px rgba(5, 10, 18, 0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.65rem;
  color: var(--nuevo-color-muted);
}

.nuevo-header__tagline-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.78), rgba(94, 141, 255, 0.6));
  box-shadow: 0 10px 18px rgba(31, 122, 242, 0.38);
  overflow: hidden;
}

.nuevo-header__tagline-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px) {
  .nuevo-header__logo {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nuevo-header__tagline {
    width: 100%;
    justify-content: flex-start;
  }
}

.nuevo-nav {
  position: relative;
  display: flex;
  align-items: center;
}

.nuevo-nav__list {
  position: static;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nuevo-nav__item {
  margin: 0;
}

.nuevo-nav__link {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--nuevo-radius-sm);
  color: var(--nuevo-color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--nuevo-transition), background var(--nuevo-transition);
}

.nuevo-nav__link:hover,
.nuevo-nav__link:focus-visible {
  color: var(--nuevo-color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nuevo-nav__link--accent {
  color: var(--nuevo-color-text);
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.45), rgba(94, 141, 255, 0.35));
  border: 1px solid var(--nuevo-color-accent-soft);
}

.nuevo-nav__link--current,
.nuevo-nav__link[aria-current='page'] {
  color: var(--nuevo-color-text);
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.32), rgba(94, 141, 255, 0.24));
  border: 1px solid rgba(31, 122, 242, 0.35);
  box-shadow: 0 10px 24px rgba(31, 122, 242, 0.22);
}

@media (max-width: 767px) {
  .nuevo-header {
    padding: 0.8rem 1rem;
  }

  .nuevo-nav__list {
    justify-content: center;
    gap: 0.4rem;
  }

  .nuevo-nav__link {
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
  }
}

/* Compact mobile nav: make the header more compact and scrollable */
@media (max-width: 520px) {
  .nuevo-header {
    padding: 0.6rem 0.9rem;
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .nuevo-header__logo {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
  }

  .nuevo-header__tagline {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
  }

  .nuevo-nav {
    width: 100%;
    justify-content: center;
  }

  /* make the nav list horizontally scrollable to avoid wrapping and large height */
  .nuevo-nav__list {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* firefox */
    padding: 0.15rem 0.25rem;
    max-width: 100%;
    justify-content: flex-start;
  }

  /* hide native scrollbar visually */
  .nuevo-nav__list::-webkit-scrollbar { display: none; }

  .nuevo-nav__link {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    color: var(--nuevo-color-muted);
    white-space: nowrap;
  }

  .nuevo-nav__link--accent {
    padding: 0.4rem 0.7rem;
    font-size: 0.74rem;
  }

  /* when menu is scrolled, maintain contrast for active links */
  .nuevo-nav__link:focus-visible,
  .nuevo-nav__link:hover {
    background: rgba(255,255,255,0.04);
  }
}

.nuevo-main {
  flex: 1;
}

.nuevo-hero {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 5rem 1.4rem 4rem;
  overflow: hidden;
  --nuevo-parallax-offset: 0px;
}

.nuevo-hero--compact {
  padding-top: 4rem;
}

.nuevo-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 122, 242, 0.2), transparent 50%);
  z-index: 1;
}

.nuevo-hero__content,
.nuevo-hero__media {
  position: relative;
  z-index: 2;
}

.nuevo-hero[data-parallax] .nuevo-hero__overlay,
.nuevo-hero[data-parallax] .nuevo-hero__media {
  transform: translateY(var(--nuevo-parallax-offset));
  transition: transform 0.5s ease-out;
}

.nuevo-hero[data-parallax] .nuevo-hero__content {
  transform: translateY(calc(var(--nuevo-parallax-offset) * 0.6));
  transition: transform 0.5s ease-out;
}

.nuevo-hero__title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.2rem;
}

.nuevo-hero__title span {
  display: block;
  color: var(--nuevo-color-accent);
  letter-spacing: 0.18em;
}

.nuevo-hero__subtitle {
  margin: 0 0 1.6rem;
  color: var(--nuevo-color-muted);
  max-width: 540px;
}

.nuevo-hero__cta {
  display: flex;
  gap: 1rem;
}

.nuevo-hero__image {
  width: min(480px, 100%);
  justify-self: end;
  filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.5));
}

.nuevo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.9), rgba(94, 141, 255, 0.75));
  color: #fff;
  box-shadow: 0 16px 32px rgba(31, 122, 242, 0.25);
  transition: transform var(--nuevo-transition), box-shadow var(--nuevo-transition);
  cursor: pointer;
}

.nuevo-button:hover,
.nuevo-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(31, 122, 242, 0.35);
}

.nuevo-button--full {
  width: 100%;
}

.nuevo-section {
  position: relative;
  padding: 4.5rem 1.4rem;
}

.nuevo-section__header {
  max-width: var(--nuevo-container-max);
  margin: 0 auto 2.6rem;
  display: grid;
  gap: 0.8rem;
}

.nuevo-heading {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nuevo-heading span {
  color: var(--nuevo-color-accent);
  margin-right: 0.4rem;
}

.nuevo-divider {
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, var(--nuevo-color-accent), transparent);
}

.nuevo-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
}

.nuevo-pillar {
  background: var(--nuevo-color-card);
  border: 1px solid var(--nuevo-color-border);
  border-radius: var(--nuevo-radius);
  box-shadow: 0 18px 40px var(--nuevo-color-shadow);
  padding: 1px;
  overflow: hidden;
}

.nuevo-pillar__inner {
  padding: 1.6rem;
  background: radial-gradient(circle at top, rgba(31, 122, 242, 0.14), rgba(10, 18, 30, 0.9));
  min-height: 100%;
}

.nuevo-pillar__title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nuevo-pillar__text {
  margin: 0;
  color: var(--nuevo-color-muted);
  line-height: 1.6;
}

.nuevo-section--split {
  display: grid;
  gap: 3rem;
}

.nuevo-split__text {
  display: grid;
  gap: 1.4rem;
}

.nuevo-paragraph {
  margin: 0;
  color: var(--nuevo-color-muted);
  line-height: 1.7;
}

.nuevo-paragraph--lead {
  color: var(--nuevo-color-text);
  font-size: 1.05rem;
}

.nuevo-figure {
  margin: 0;
  border-radius: var(--nuevo-radius);
  overflow: hidden;
  border: 1px solid var(--nuevo-color-border);
  box-shadow: 0 26px 44px var(--nuevo-color-shadow);
}

.nuevo-figure__image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.nuevo-card {
  background: var(--nuevo-color-card);
  border-radius: var(--nuevo-radius);
  border: 1px solid var(--nuevo-color-border);
  box-shadow: 0 20px 50px var(--nuevo-color-shadow);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
}

.nuevo-card--glass {
  background: linear-gradient(135deg, rgba(21, 31, 45, 0.8), rgba(12, 21, 32, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nuevo-card--form {
  gap: 2rem;
}

.nuevo-card__title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nuevo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.8rem;
}

.nuevo-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nuevo-grid--feature {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.nuevo-card__media,
.nuevo-feature__media {
  width: 72px;
  height: 72px;
  border-radius: var(--nuevo-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nuevo-card__icon,
.nuevo-feature__icon {
  width: 48px;
  height: 48px;
}

.nuevo-card__icon {
  object-fit: contain;
}

.nuevo-feature__media {
  color: var(--nuevo-color-accent);
}

.nuevo-feature__icon {
  display: block;
}

.nuevo-feature__icon circle,
.nuevo-feature__icon path,
.nuevo-feature__icon rect {
  stroke: currentColor;
  fill: none;
}

body.nuevo-loader-open {
  overflow: hidden;
}

.nuevo-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  background: radial-gradient(circle at top, rgba(31, 122, 242, 0.18), rgba(7, 11, 17, 0.94));
  backdrop-filter: blur(14px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nuevo-loader.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nuevo-loader__panel {
  position: relative;
  width: min(320px, 92vw);
  padding: 2.2rem 2rem;
  border-radius: var(--nuevo-radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(12, 20, 32, 0.92), rgba(25, 38, 58, 0.78));
  box-shadow: 0 32px 60px rgba(3, 8, 16, 0.6);
  display: grid;
  gap: 1.2rem;
  text-align: center;
  overflow: hidden;
}

.nuevo-loader__panel::after {
  content: '';
  position: absolute;
  inset: -40% -80% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(31, 122, 242, 0.4), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.nuevo-loader__icon {
  width: 74px;
  height: 36px;
  margin: 0 auto;
  color: var(--nuevo-color-accent);
  display: grid;
  place-items: center;
  animation: nuevoLoaderPulse 1.4s ease-in-out infinite;
}

.nuevo-loader__icon svg {
  width: 100%;
  height: 100%;
}

.nuevo-loader__icon path,
.nuevo-loader__icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nuevo-loader__text {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nuevo-color-muted);
}

.nuevo-loader__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.nuevo-loader__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(31, 122, 242, 0.8), rgba(94, 141, 255, 0.8));
  box-shadow: 0 0 18px rgba(31, 122, 242, 0.45);
}

.nuevo-loader__bar-fill.is-animating {
  animation: nuevoLoaderProgress 2s ease forwards;
}

@keyframes nuevoLoaderPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes nuevoLoaderProgress {
  0% {
    width: 0;
  }
  20% {
    width: 18%;
  }
  60% {
    width: 68%;
  }
  100% {
    width: 100%;
  }
}

.nuevo-card__heading,
.nuevo-feature__title {
  margin: 1.2rem 0 0.8rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nuevo-card__description,
.nuevo-feature__text {
  margin: 0;
  color: var(--nuevo-color-muted);
  line-height: 1.7;
}

.nuevo-trust {
  display: grid;
  gap: 1.4rem;
  padding: 1.8rem 1.6rem;
  border-radius: var(--nuevo-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(12, 20, 32, 0.92), rgba(31, 122, 242, 0.18));
  box-shadow: 0 26px 48px rgba(4, 10, 20, 0.5);
  position: relative;
  overflow: hidden;
}

.nuevo-trust::after {
  content: '';
  position: absolute;
  inset: -40% 55% auto -20%;
  height: 180px;
  background: radial-gradient(circle, rgba(94, 141, 255, 0.45), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.nuevo-trust__media {
  width: 72px;
  height: 72px;
  border-radius: var(--nuevo-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--nuevo-color-accent);
  box-shadow: 0 16px 32px rgba(31, 122, 242, 0.3);
}

.nuevo-trust__icon {
  width: 42px;
  height: 42px;
}

.nuevo-trust__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nuevo-trust__content {
  display: grid;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.nuevo-trust__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nuevo-color-text);
}

.nuevo-trust__text {
  margin: 0;
  color: var(--nuevo-color-muted);
  line-height: 1.6;
}

.nuevo-trust__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.nuevo-trust__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--nuevo-color-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.nuevo-trust__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.85), rgba(94, 141, 255, 0.65));
  box-shadow: 0 0 14px rgba(31, 122, 242, 0.4);
}

.nuevo-trust__bullet {
  position: absolute;
  left: 0.18rem;
  top: 0.08rem;
  font-size: 0.8rem;
  line-height: 1;
}

.nuevo-trust__cta {
  position: relative;
  z-index: 1;
  justify-self: start;
}

.nuevo-upload {
  position: relative;
  margin-top: 1.6rem;
}

.nuevo-upload__panel {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem 1.6rem;
  border-radius: var(--nuevo-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(140deg, rgba(12, 20, 32, 0.9), rgba(31, 122, 242, 0.18));
  box-shadow: 0 24px 44px rgba(4, 10, 20, 0.45);
  cursor: pointer;
  transition: transform var(--nuevo-transition), border-color var(--nuevo-transition), box-shadow var(--nuevo-transition);
}

.nuevo-upload__panel:hover,
.nuevo-upload__panel:focus-visible,
.nuevo-upload:focus-within .nuevo-upload__panel {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 242, 0.45);
  box-shadow: 0 30px 60px rgba(8, 20, 38, 0.55);
}

.nuevo-upload__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--nuevo-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--nuevo-color-accent);
  box-shadow: 0 20px 32px rgba(31, 122, 242, 0.3);
}

.nuevo-upload__icon svg {
  width: 60%;
  height: 60%;
}

.nuevo-upload__icon path,
.nuevo-upload__icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nuevo-upload__content {
  display: grid;
  gap: 0.6rem;
}

.nuevo-upload__title {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nuevo-color-text);
}

.nuevo-upload__text {
  font-size: 0.82rem;
  color: var(--nuevo-color-muted);
  line-height: 1.5;
}

.nuevo-upload__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.nuevo-upload__button {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 122, 242, 0.85), rgba(94, 141, 255, 0.55));
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 16px 32px rgba(31, 122, 242, 0.28);
}

.nuevo-upload__filename {
  font-size: 0.76rem;
  color: rgba(228, 233, 243, 0.7);
  letter-spacing: 0.04em;
}

.nuevo-upload.has-file .nuevo-upload__filename {
  color: var(--nuevo-color-text);
}

.nuevo-form--protected {
  margin-top: 1.8rem;
}

.nuevo-form--protected.is-hidden,
.nuevo-trust.is-hidden {
  display: none;
}

.nuevo-form {
  display: grid;
  gap: 1.2rem;
}

.nuevo-form__grid {
  display: grid;
  gap: 1rem 1.2rem;
}

.nuevo-form__grid--two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nuevo-form__group {
  display: grid;
  gap: 0.6rem;
}

.nuevo-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nuevo-color-muted);
}

.nuevo-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--nuevo-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 15, 24, 0.65);
  color: var(--nuevo-color-text);
  transition: border-color var(--nuevo-transition), box-shadow var(--nuevo-transition);
}

.nuevo-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nuevo-input:focus {
  outline: none;
  border-color: var(--nuevo-color-accent);
  box-shadow: 0 0 0 2px rgba(31, 122, 242, 0.25);
}

.nuevo-input--file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nuevo-input--invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.nuevo-form__actions {
  display: flex;
  gap: 1rem;
}

.nuevo-reference {
  border-radius: var(--nuevo-radius);
  border: 1px solid var(--nuevo-color-border);
  background: rgba(10, 18, 30, 0.75);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.nuevo-reference__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nuevo-color-muted);
}

.nuevo-map {
  display: grid;
  gap: 1.6rem;
}

.nuevo-map__card,
.nuevo-map__image {
  border-radius: var(--nuevo-radius-lg);
  overflow: hidden;
  background: rgba(6, 11, 18, 0.8);
  border: 1px solid var(--nuevo-color-border);
  box-shadow: 0 22px 48px var(--nuevo-color-shadow);
}

.nuevo-map__image {
  position: relative;
  cursor: zoom-in;
  touch-action: none;
  --map-zoom-scale: 4;
  --map-zoom-origin-x: 50%;
  --map-zoom-origin-y: 50%;
}

.nuevo-map__image.is-zoomed {
  cursor: zoom-out;
}

.nuevo-map__card iframe {
  width: 100%;
  height: clamp(240px, 55vw, 420px);
  border: none;
  filter: grayscale(12%) contrast(105%);
}

.nuevo-map__img {
  width: 100%;
  height: clamp(240px, 55vw, 420px);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.45s ease;
  transform-origin: var(--map-zoom-origin-x, 50%) var(--map-zoom-origin-y, 50%);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
}

.nuevo-map__image:hover .nuevo-map__img,
.nuevo-map__image.is-zoomed .nuevo-map__img {
  transform: scale(var(--map-zoom-scale, 4));
  filter: saturate(1.08) contrast(1.06);
}

@media (hover: none) {
  .nuevo-map__image,
  .nuevo-map__image.is-zoomed {
    cursor: default;
  }
}

.nuevo-forms {
  display: grid;
  gap: 2rem;
}

.nuevo-forms--dual {
  max-width: var(--nuevo-container-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
}

.nuevo-gallery {
  max-width: var(--nuevo-container-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.nuevo-gallery__item {
  margin: 0;
  text-align: center;
}

.nuevo-gallery__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--nuevo-radius);
  border: 1px solid var(--nuevo-color-border);
  box-shadow: 0 20px 40px var(--nuevo-color-shadow);
  margin-bottom: 1rem;
}

.nuevo-gallery__caption {
  font-size: 0.9rem;
  color: var(--nuevo-color-muted);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .nuevo-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

.nuevo-footer {
  margin-top: auto;
  padding: 2rem 1.4rem 3.4rem;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.9), rgba(5, 8, 14, 1));
  border-top: 1px solid var(--nuevo-color-border);
}

.nuevo-footer__content {
  max-width: var(--nuevo-container-max);
  margin: 0 auto;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  color: var(--nuevo-color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nuevo-link {
  color: inherit;
}

.nuevo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 2rem) clamp(1rem, 5vw, 1.6rem);
  background: radial-gradient(circle at 20% 20%, rgba(31, 122, 242, 0.18), transparent 55%), rgba(4, 8, 16, 0.86);
  backdrop-filter: blur(18px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.modal-open {
  overflow: hidden;
}

.nuevo-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nuevo-modal.is-visible .nuevo-modal__content {
  animation: nuevoModalPop 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}

.nuevo-modal__content {
  position: relative;
  background: linear-gradient(155deg, rgba(12, 21, 34, 0.96), rgba(25, 59, 104, 0.9));
  border-radius: calc(var(--nuevo-radius-lg) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 45px 65px rgba(3, 10, 22, 0.65);
  padding: 3rem 2.6rem 2.2rem;
  max-width: min(520px, 92vw);
  width: 100%;
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 1.1rem;
  text-align: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
}

.nuevo-modal__content--success {
  background: linear-gradient(160deg, rgba(12, 21, 34, 0.96), rgba(31, 122, 242, 0.2));
}

.nuevo-modal__content > *:not(.nuevo-modal__halo) {
  position: relative;
  z-index: 2;
}

.nuevo-modal__halo {
  position: absolute;
  inset: -30% -30% auto -30%;
  height: 320px;
  background: radial-gradient(circle at center, rgba(31, 122, 242, 0.55), transparent 70%);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.nuevo-modal.is-visible .nuevo-modal__halo {
  opacity: 0.85;
  transform: scale(1);
  animation: nuevoModalGlow 5s ease-in-out infinite;
}

.nuevo-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 18, 32, 0.45);
  color: var(--nuevo-color-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background var(--nuevo-transition), transform var(--nuevo-transition), border-color var(--nuevo-transition);
}

.nuevo-modal__close::before,
.nuevo-modal__close::after {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 100px;
  transition: transform var(--nuevo-transition);
}

.nuevo-modal__close::before {
  transform: rotate(45deg);
}

.nuevo-modal__close::after {
  transform: rotate(-45deg);
}

.nuevo-modal__close:hover,
.nuevo-modal__close:focus-visible {
  background: rgba(31, 122, 242, 0.35);
  border-color: rgba(31, 122, 242, 0.45);
  transform: translateY(-2px);
}

.nuevo-modal__icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(31, 122, 242, 0.95), rgba(91, 209, 255, 0.45));
  box-shadow: 0 22px 48px rgba(31, 122, 242, 0.45);
  position: relative;
  isolation: isolate;
}

.nuevo-modal__icon::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.nuevo-modal__icon svg {
  width: 56px;
  height: 56px;
  display: block;
  color: #ffffff;
}

.nuevo-modal.is-visible .nuevo-modal__icon {
  animation: nuevoModalPulse 2.4s ease-in-out infinite;
}

.nuevo-modal.is-visible .nuevo-modal__icon::after {
  opacity: 1;
  transform: scale(1);
  animation: nuevoModalHalo 3.4s ease-in-out infinite;
}

.nuevo-modal__title {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nuevo-color-text);
}

.nuevo-modal__text {
  margin: 0;
  color: var(--nuevo-color-muted);
  line-height: 1.6;
}

.nuevo-modal__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  text-align: left;
  color: var(--nuevo-color-muted);
}

.nuevo-modal__highlights li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.nuevo-modal__bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(31, 122, 242, 0.2);
  display: grid;
  place-items: center;
  color: var(--nuevo-color-accent);
  box-shadow: 0 12px 24px rgba(31, 122, 242, 0.2);
}

.nuevo-modal__bullet svg {
  width: 14px;
  height: 14px;
}

.nuevo-modal__folio {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: center;
  margin: 0.6rem auto 0;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  background: linear-gradient(120deg, rgba(31, 122, 242, 0.28), rgba(91, 209, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(31, 122, 242, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nuevo-color-text);
}

.nuevo-modal__folio-label {
  opacity: 0.72;
}

.nuevo-modal__folio-value {
  font-weight: 600;
  color: #ffffff;
}

.nuevo-modal__actions {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 520px) {
  .nuevo-modal__actions {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

.nuevo-button--glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(31, 122, 242, 0.45);
}

.nuevo-button--glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nuevo-transition);
}

.nuevo-button--glow:hover::after,
.nuevo-button--glow:focus-visible::after {
  opacity: 1;
}

.nuevo-button--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  color: var(--nuevo-color-text);
}

.nuevo-button--ghost:hover,
.nuevo-button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Estilos mejorados para citas móvil */
.nuevo-citas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: var(--nuevo-container-max);
  margin: 0 auto;
}

.nuevo-form__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nuevo-form__date-time {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.nuevo-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nuevo-form__toggle {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nuevo-color-border);
  text-align: center;
}

.nuevo-button--text {
  background: transparent;
  border: none;
  color: var(--nuevo-color-accent);
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--nuevo-transition);
  border-radius: var(--nuevo-radius-sm);
}

.nuevo-button--text svg {
  transition: transform var(--nuevo-transition);
}

.nuevo-button--text:hover,
.nuevo-button--text:focus-visible {
  background: var(--nuevo-color-accent-soft);
  transform: translateY(-1px);
}

.nuevo-button--text:hover svg {
  transform: translateX(3px);
}

.nuevo-login-container {
  position: relative;
  transition: opacity var(--nuevo-transition), transform var(--nuevo-transition);
}

.nuevo-login-container.is-hidden {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.nuevo-login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--nuevo-color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nuevo-color-muted);
  transition: var(--nuevo-transition);
  padding: 0;
}

.nuevo-login-close:hover,
.nuevo-login-close:focus-visible {
  background: rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.4);
  color: #ff4d4d;
  transform: rotate(90deg);
}

/* Sección de ubicación mejorada */
.nuevo-section--location {
  padding-block: 3rem;
}

.nuevo-location-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  max-width: var(--nuevo-container-max);
  margin: 0 auto;
}

.nuevo-gallery-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.nuevo-gallery-compact .nuevo-gallery__item {
  border-radius: var(--nuevo-radius);
  overflow: hidden;
  background: var(--nuevo-color-card);
  border: 1px solid var(--nuevo-color-border);
  transition: var(--nuevo-transition);
}

.nuevo-gallery-compact .nuevo-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.nuevo-gallery-compact .nuevo-gallery__img {
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: contain;
  background: var(--nuevo-color-bg-alt);
  padding: 0.5rem;
}

.nuevo-gallery-compact .nuevo-gallery__caption {
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--nuevo-color-muted);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.nuevo-map__card {
  border-radius: var(--nuevo-radius);
  overflow: hidden;
  border: 1px solid var(--nuevo-color-border);
  box-shadow: 0 8px 24px var(--nuevo-color-shadow);
  height: 350px;
}

.nuevo-map__card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 540px) {
  .nuevo-modal__content {
    padding: 2.4rem 1.6rem 1.8rem;
    gap: 0.9rem;
    border-radius: calc(var(--nuevo-radius) + 4px);
  }

  .nuevo-modal__icon {
    width: 92px;
    height: 92px;
    margin-bottom: 0.15rem;
  }

  .nuevo-modal__icon svg {
    width: 48px;
    height: 48px;
  }

  .nuevo-modal__highlights {
    gap: 0.6rem;
    font-size: 0.92rem;
  }

  .nuevo-modal__highlights li {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
  }

  .nuevo-modal__bullet {
    width: 22px;
    height: 22px;
  }

  .nuevo-modal__folio {
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.75rem 1.2rem;
    letter-spacing: 0.1em;
  }

  .nuevo-modal__actions {
    gap: 0.6rem;
  }

  .nuevo-form__date-time {
    grid-template-columns: 1fr;
  }

  .nuevo-gallery-compact {
    gap: 1.2rem;
  }

  .nuevo-gallery-compact .nuevo-gallery__img {
    min-height: 200px;
    padding: 0.3rem;
  }

  .nuevo-map__card {
    height: 300px;
  }

  .nuevo-location-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .nuevo-modal__content {
    padding: 2rem 1.3rem 1.6rem;
  }

  .nuevo-modal__title {
    font-size: 1.2rem;
    letter-spacing: 0.12em;
  }

  .nuevo-modal__text {
    font-size: 0.95rem;
  }

  .nuevo-modal__icon {
    width: 82px;
    height: 82px;
  }

  .nuevo-modal__icon svg {
    width: 42px;
    height: 42px;
  }
}

@keyframes nuevoModalPop {
  0% {
    transform: translateY(18px) scale(0.92);
    opacity: 0;
  }
  55% {
    transform: translateY(-6px) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes nuevoModalPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes nuevoModalHalo {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

@keyframes nuevoModalGlow {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.55;
  }
  100% {
    transform: rotate(12deg) scale(1.05);
    opacity: 0.85;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate].nuevo-header--hidden {
  transform: translateY(-100%);
  opacity: 0;
}

[data-animate='fade-left'] {
  transform: translateX(32px);
}

[data-animate='fade-left'].is-visible {
  transform: none;
}

[data-animate='fade-down'] {
  transform: translateY(-18px);
}

[data-animate='stagger'] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate='stagger'].is-visible > * {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .nuevo-nav__toggle {
    display: none;
  }

  .nuevo-nav__list {
    position: static;
    width: auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    padding: 0;
    gap: 0.2rem;
  }

  .nuevo-nav__link {
    padding: 0.6rem 1.2rem;
  }

  .nuevo-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding-inline: clamp(1.4rem, 6vw, 4rem);
  }

  .nuevo-section {
    padding-inline: clamp(1.4rem, 6vw, 4rem);
  }

  .nuevo-section--split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
  }

  .nuevo-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .nuevo-forms {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .nuevo-gallery__slide {
    width: min(520px, 40vw);
  }

  /* Mejoras tablet para citas */
  .nuevo-citas-wrapper {
    max-width: 600px;
  }

  .nuevo-location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .nuevo-gallery-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .nuevo-gallery-compact .nuevo-gallery__img {
    min-height: 180px;
  }

  .nuevo-map__card {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .nuevo-header {
    padding-inline: clamp(2rem, 7vw, 6rem);
  }

  .nuevo-hero {
    padding-block: 6rem;
  }

  .nuevo-section {
    padding-block: 5.2rem;
  }

  .nuevo-card {
    padding: 2.4rem 2.8rem;
  }

  .nuevo-grid--cards {
    gap: 2.2rem;
  }

  /* Mejoras desktop para citas */
  .nuevo-citas-wrapper {
    max-width: 700px;
  }

  .nuevo-location-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .nuevo-gallery-compact {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .nuevo-gallery-compact .nuevo-gallery__img {
    min-height: 240px;
    padding: 0.8rem;
  }

  .nuevo-map__card {
    height: 100%;
    min-height: 520px;
  }
}
