/* =======================================================
   EtienX – styles.css
   Autor: EtienX
   Descripción: Estilos base limpios y escalables (sin frameworks)
   ======================================================= */

/* ------------------------------
   1) Variables y resets
---------------------------------*/
:root{
  --bg: #0b0d12;
  --bg-soft: #0f1219;
  --surface: #121723;
  --surface-2: #171c2a;
  --card: #151a27;

  --text: #e6eaf2;
  --muted: #a8b0c2;
  --muted-2: #9097a8;

  --brand: #2f8bfd;      /* azul primario */
  --brand-600:#207ef7;
  --brand-700:#1a6fe0;

  --accent: #7b5cff;     /* acento secundario */
  --accent-600:#6a49ff;

  --ok: #21c98d;
  --warn: #f5c344;
  --danger: #ff5e6b;

  --ring: rgba(47,139,253,.35);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --container: 1200px;

  --h1: clamp(32px, 5vw, 54px);
  --h2: clamp(24px, 3.5vw, 36px);
  --h3: clamp(18px, 2.2vw, 22px);
  --lead: clamp(16px, 2.4vw, 18px);
  --body: 16px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas{
  display: block;
  max-width: 100%;
  height: auto;
}

a{
  color: var(--brand);
  text-decoration: none;
}
a:hover{ color: var(--brand-600); }

button, input, textarea, select{
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* Focus visible accesible */
:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ------------------------------
   2) Utilidades y layout
---------------------------------*/
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section{
  padding: 72px 0;
}

.section__header{
  margin-bottom: 28px;
  text-align: center;
}
.section__title{
  margin: 0 0 8px;
  font-size: var(--h2);
  line-height: 1.15;
  letter-spacing: .2px;
}
.section__subtitle{
  margin: 0 auto;
  max-width: 680px;
  color: var(--muted);
  font-size: var(--lead);
}

/* Service description component (used by calculator pages) */
/* (service description styles were removed per restore request) */

/* Tarjetas base */
.card{
  background: linear-gradient(180deg, var(--card), #121725);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Grid utilitario */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Chips utilitarios */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  will-change: transform;
}
.chip:hover{
  transform: translateY(-1px);
  background: rgba(47,139,253,.09);
  border-color: rgba(47,139,253,.35);
}

/* Botones */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
  border: 1px solid transparent;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: linear-gradient(180deg, var(--brand), var(--brand-700));
  color: #0b1220;
  box-shadow: 0 12px 28px rgba(47,139,253,.35), inset 0 1px 0 rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.06);
}
.btn--primary:hover{
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
}

.btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,.12);
}
.btn--ghost:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}

/* Listas simples */
ul{ padding-left: 18px; }
li{ margin-bottom: 6px; }

/* ------------------------------
   3) Cabecera / NAV (nav.html)
---------------------------------*/
.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,12,18,.65);
  backdrop-filter: blur(10px) saturate(135%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-nav .nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}
.brand-name{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 20px;
  color: var(--text);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav-links a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
}

.nav-cta a{
  color: #0b1220;
  background: linear-gradient(180deg, var(--brand), var(--brand-700));
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 26px rgba(47,139,253,.35);
}
.nav-cta a:hover{
  filter: brightness(1.05);
}

/* Toggle móvil */
.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  background: rgba(255,255,255,.04);
}

/* Responsive NAV */
@media (max-width: 920px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
  .nav-links{
    position: fixed;
    right: 16px;
    top: 72px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(10,12,18,.94);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    width: min(260px, 86vw);
    max-height: 72vh;
    overflow: auto;
    transform-origin: top right;
    transform: scale(.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-links.is-open{
    transform: scale(1);
    opacity: 1;
    visibility: visible;
  }
}

/* Prevent the mobile nav (hidden state) from intercepting touches — only allow
   pointer events when the menu is open. This fixes cases where the menu's
   overlay or positioned container blocks form controls on small screens. */
@media (max-width: 920px){
  .nav-links{ pointer-events: none; }
  .nav-links.is-open{ pointer-events: auto; }
}

/* Make brand more prominent on larger screens */
@media (min-width: 720px){
  .brand-logo{
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 10px 26px rgba(0,0,0,.35));
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    padding: 4px;
  }
  .brand-name{ font-size: 18px; }
}

/* Slightly larger logo for small devices too */
@media (max-width: 420px){
  .brand-logo{ width: 40px; height: 40px; }
  .brand-name{ display: none; }
}

/* ------------------------------
   4) Hero
---------------------------------*/
.hero{
  position: relative;
  background:
    radial-gradient(1200px 480px at 80% -20%, rgba(47,139,253,.25), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(123,92,255,.22), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.hero__container{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  min-height: 68vh;
}
.hero__copy{
  padding: 16px 0;
}
.hero__title{
  margin: 0 0 10px;
  font-size: var(--h1);
  line-height: 1.08;
  letter-spacing: .3px;
  text-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.hero__subtitle{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: var(--lead);
}
.hero__cta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
}
.hero__bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.hero__media{
  display: grid;
  place-items: center;
}
.hero__image{
  width: 92%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
}

/* --- Hero enhancements: stronger headline and larger CTAs --- */
.hero{
  padding-top: 28px; /* give breathing room under sticky nav */
  min-height: 72vh;
}
.hero__title{
  font-weight: 900;
  /* subtle gradient headline for personality */
  background: linear-gradient(90deg, var(--text), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.hero__subtitle{ color: var(--muted); max-width: 56ch; }
.hero__cta .btn{ padding: 12px 18px; font-size: 15px; }
.hero__cta .btn--primary{
  padding: 14px 22px;
  font-size: 16px;
  box-shadow: 0 14px 36px rgba(47,139,253,.28);
}
.hero__cta .btn--ghost{ padding: 12px 16px; }
.hero__image{ transition: transform .35s ease, box-shadow .35s ease; }
.hero__image:hover{ transform: translateY(-6px) scale(1.01); box-shadow: 0 26px 66px rgba(0,0,0,.5); }

/* Brand pill inside hero */
.brand-pill{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.brand-pill__logo{ width: 56px; height: 56px; border-radius: 10px; }
.brand-pill__text{ color: var(--text); line-height: 1; }
.brand-pill__text strong{ display: block; font-size: 18px; }
.brand-pill__tagline{ font-size: 13px; color: var(--muted); }

@media (max-width: 720px){
  .brand-pill{ gap: 10px; padding: 6px 10px; }
  .brand-pill__logo{ width: 48px; height: 48px; }
  .brand-pill__text strong{ font-size: 16px; }
  .brand-pill__tagline{ font-size: 12px; }
}

/* Desktop: place brand-pill to the left of the title and scale up slightly */
@media (min-width: 1000px){
  .hero__container{ grid-template-columns: .9fr 1.1fr; }
  .hero__copy{ display: flex; flex-direction: column; gap: 10px; }
  .brand-pill{ align-self: flex-start; margin-left: -6px; padding: 10px 16px; }
  .brand-pill__logo{ width: 96px; height: 96px; border-radius: 12px; }
  .brand-pill__text strong{ font-size: 22px; letter-spacing: .6px; }
  .brand-pill__tagline{ font-size: 15px; color: rgba(255,255,255,.85); }
  .brand-pill{ padding: 12px 20px; box-shadow: 0 18px 46px rgba(0,0,0,.45); border-radius: 16px; }
}

/* Subtle entrance animation for brand-pill */
@keyframes pill-enter {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.brand-pill{
  animation: pill-enter 520ms cubic-bezier(.2,.9,.2,1) both;
}
@media (prefers-reduced-motion: reduce){
  .brand-pill{ animation: none; }
}

/* ------------------------------
   5) Steps (Cómo funciona)
---------------------------------*/
.steps__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Services carousel */
.carousel{
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel__track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px;
  flex: 1 1 auto;
}
.carousel__track > a{
  scroll-snap-align: start;
  min-width: 220px;
  max-width: 320px;
  flex: 0 0 auto;
  text-decoration: none;
}
.carousel__card{
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card), #0f1720);
  border: 1px solid rgba(255,255,255,.04);
  color: var(--text);
}
.carousel__nav{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
}
.carousel__nav:disabled{ opacity: .45; }

@media (max-width: 720px){
  .carousel__nav{ display: none; }
}

/* Mobile-friendly carousel and pairs layout fixes */
@media (max-width: 920px){
  /* Slightly smaller carousel cards on tablet/phone */
  .carousel__track > a{ min-width: 180px; max-width: 46vw; }
  .carousel__card{ padding: 12px; border-radius: 12px; }
}

@media (max-width: 720px){
  /* On narrow screens use a two-column grid for pairs for easier tapping */
  .pairs .pairs__grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-items: stretch;
    justify-items: stretch;
    margin-bottom: 12px;
  }
  .pairs__grid .chip{ width: 100%; justify-content: center; padding: 12px; }
}

@media (max-width: 420px){
  /* Very small screens: stack pairs vertically to avoid cramped chips */
  .pairs .pairs__grid{ grid-template-columns: 1fr; gap: 8px; }
  .carousel__track{ padding-left: 6px; padding-right: 6px; }
  .carousel__track > a{ min-width: 86vw; max-width: 86vw; }
  .carousel__card{ padding: 12px 14px; }
  /* Make pair icons a bit smaller on tiny screens */
  .pairs__grid .chip .pair-icon{ width:24px; height:24px; font-size:12px; }
}
.step{
  padding: 18px;
}
.step__number{

.chip:hover{
  transform: translateY(-1px);
  background: rgba(47,139,253,.09);
  border-color: rgba(47,139,253,.35);
}

/* Active / selected state for chips (links or toggles) */
.chip.active,
.chip[aria-pressed="true"],
.chip[aria-current="true"]{
  background: linear-gradient(180deg, rgba(47,139,253,.14), rgba(123,92,255,.06));
  border-color: rgba(47,139,253,.28);
  box-shadow: 0 10px 30px rgba(47,139,253,.12);
  transform: translateY(-2px);
  color: var(--text);
  font-weight: 700;
}

.pairs__grid .chip{ padding: 12px 16px; }
.pairs__grid a.chip{ text-decoration: none; }
  color: #0b1220;
  background: linear-gradient(180deg, var(--accent), var(--accent-600));
  margin-bottom: 8px;
}
.step__title{
  margin: 8px 0 6px;
  font-size: var(--h3);
}
.step__desc{
  margin: 0;
  color: var(--muted);
}

/* ------------------------------
   6) Servicios
---------------------------------*/
.services__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service{
  padding: 18px;
  text-align: left;
}
.service__icon{
  width: 40px; height: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.service__title{
  margin: 6px 0 6px;
  font-size: var(--h3);
}
.service__desc{
  margin: 0;
  color: var(--muted);
}
.section__actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ------------------------------
   7) Pares (chips + widget)
---------------------------------*/
.pairs .pairs__grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.widget{
  margin: 0 auto;
  max-width: 760px;
  min-height: 120px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 16px;
}

/* Rates widget: stronger visual emphasis when data appears */
.widget .rate{
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}
.widget p{ margin: 0; }

/* Demo pequeño para calculadora */
.calc__demo{
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius: 12px;
}

/* Pair chip icon */
.pairs__grid .chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  text-decoration: none;
}
.pairs__grid .chip .pair-icon{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:8px;
  background:var(--brand);
  color:#fff;
  font-weight:700;
  font-size:14px;
}

/* Glossary block for pairs and currency codes */
.pairs-glossary{
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.pairs-glossary__title{ margin: 0 0 6px; font-size: 18px; }
.pairs-glossary__intro{ margin: 0 0 12px; color: var(--muted); }
.pairs-glossary__list{ list-style: none; margin: 0; padding: 0; display: block; }
.glossary__item{ display:flex; gap:12px; align-items:flex-start; padding: 10px 8px; border-radius:8px; background: rgba(255,255,255,0.02); border:1px solid rgba(255,255,255,0.02); margin-bottom:8px; }
.glossary__code{ min-width:72px; display:block; font-weight:800; color: var(--text); font-size:15px; }
.glossary__desc{ color: var(--muted); font-size:14px; line-height:1.3; }

@media (max-width:720px){ .glossary__item{ gap:10px; padding:10px; } .glossary__code{ min-width:64px; } }

/* Contact select appearance */
.form__input[role="combobox"], .form__input select, select.form__input{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  border: 1px solid rgba(255,255,255,.04);
  color: var(--text);
  font-size: 14px;
  background: rgba(255,255,255,.04);
}
.calc__demo strong{ color: var(--text); }

/* Ensure form fields are readable on all viewports (fix desktop white-on-white issues) */
.form__input,
select.form__input,
.form__textarea{
  background: rgba(255,255,255,.04);
  color: var(--text);
}

/* Force options to use dark background so the dropdown is legible */
select.form__input option{
  color: var(--text);
  background: linear-gradient(180deg, var(--card), #121725);
}

/* ------------------------------
   8) Testimonios
---------------------------------*/
.testimonials__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.testimonial{
  padding: 18px;
}
.testimonial__text{
  margin: 0 0 10px 0;
  color: var(--text);
  font-style: italic;
}
.testimonial__author{
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------
   9) FAQ
---------------------------------*/
.faq__item{
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 10px 0;
}
.faq__q{
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}
.faq__item[open] .faq__q{
  color: var(--brand);
}
.faq__a{
  margin-top: 10px;
  color: var(--muted);
}

/* ------------------------------
   10) Contacto (formulario)
---------------------------------*/
.form{
  max-width: 920px;
  margin: 0 auto;
}
.form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form__field{
  display: grid;
  gap: 6px;
}
.form__label{
  font-weight: 700;
  color: var(--text);
}
.form__input,
.form__textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.form__textarea{ min-height: 120px; }
.form__input::placeholder,
.form__textarea::placeholder{ color: var(--muted-2); }

.form__input:focus,
.form__textarea:focus{
  box-shadow: 0 0 0 3px var(--ring);
  border-color: rgba(47,139,253,.5);
  background: rgba(255,255,255,.06);
}

/* Make select text visible and consistent on dark theme */
select.form__input{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--text);
  background: rgba(255,255,255,.04);
  /* leave padding as form inputs */
}
select.form__input option{
  color: var(--text);
  background: linear-gradient(180deg, var(--card), #121725);
}
/* hide default IE/Edge arrow if needed */
select.form__input::-ms-expand{ display: none; }

/* Add custom dropdown arrow and extra right padding so text doesn't sit under the arrow */
select.form__input{
  padding-right: 44px; /* room for arrow */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23e6eaf2' d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.form__field select.form__input,
select.form__input{
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,255,255,0.06);
  z-index: 20000; /* bring above most overlays on mobile */
}

/* Custom select styles (mobile friendly accessible fallback) */
.custom-select{
  position: relative;
}
.custom-select__button{
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}
.custom-select__list{
  display: none;
  position: absolute;
  left: 0; right: 0;
  max-height: 48vh;
  overflow: auto;
  margin: 8px 0 0 0;
  padding: 8px 6px;
  background: linear-gradient(180deg, var(--card), var(--surface-2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  z-index: 40000;
}
.custom-select__option{
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.custom-select__option:hover,
.custom-select__option:focus{
  background: rgba(47,139,253,.08);
}
.form__input,
select.form__input{
  /* ensure no opacity inheritance from utility classes */
  opacity: 1 !important;
  color: var(--text) !important;
  background-color: rgba(255,255,255,.04) !important;
  /* make sure select is on top when its native popup opens */
  position: relative;
  z-index: 9999;
}

/* Ensure the native select dropdown options are readable in most browsers.
   Note: some browsers render native popups outside the page CSS; these rules
   help the in-page rendering and custom dropdown fallbacks. */
select.form__input option{
  color: var(--text) !important;
  background-color: var(--card) !important;
}

/* Strong focus-visible state for keyboard users */
select.form__input:focus-visible,
.form__input:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  z-index: 10000;
}

/* For platforms where the native popup still shows dark text on dark bg,
   provide a custom-looking accessible select fallback using an accent ring. */
select.form__input.custom-fallback{
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.form__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 8px;
}

/* ------------------------------
   11) Footer (footer.html)
---------------------------------*/
.site-footer{
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, var(--surface), var(--bg));
}
.site-footer .footer-top{
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 18px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 18px;
}
.footer-brand .brand{
  margin-bottom: 8px;
}
.footer-tagline{
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}
.footer-cols{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.footer-col h3{
  margin: 0 0 8px;
  font-size: 15px;
  color: #fff;
}
.footer-col ul{
  margin: 0; padding: 0; list-style: none;
}
.footer-col li{ margin: 6px 0; }
.footer-col a{
  color: var(--muted);
}
.footer-col a:hover{ color: var(--text); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
}
.footer-legal{
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 12px;
}
.footer-legal a{ color: var(--muted); }
.footer-legal a:hover{ color: var(--text); }

/* ------------------------------
   12) Helpers responsivos
---------------------------------*/
@media (max-width: 1100px){
  .hero__container{ grid-template-columns: 1fr; }
  .hero__media{ order: -1; }
  .hero__image{ width: 100%; max-width: 640px; }
}

@media (max-width: 960px){
  .steps__grid,
  .services__grid,
  .testimonials__grid{
    grid-template-columns: 1fr 1fr;
  }
  .form__row{ grid-template-columns: 1fr; }
  .site-footer .footer-top{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .hero__cta{ flex-wrap: wrap; }
  .testimonials__grid{ grid-template-columns: 1fr; }
  .services__grid{ grid-template-columns: 1fr; }
  .steps__grid{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: 1fr 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; text-align: center; }
}

/* ------------------------------
   13) Estados/animaciones sutiles
---------------------------------*/
.card{
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.12);
}

/* ------------------------------
   14) Soporte preferencia reducido
---------------------------------*/
@media (prefers-reduced-motion: reduce){
  .btn, .card, .chip, .nav-links, .hero__image{
    transition: none !important;
  }
}

/* ------------------------------
   15) Placeholders utilitarios
---------------------------------*/
/* Oculta por defecto: se mostrará con JS cuando cargues nav/footer */
#nav-include:empty,
#footer-include:empty{
  min-height: 0;
}

/* Ensure the rates widget does not occupy space when empty; the widget will be
  shown/hidden via JS by toggling the 'hidden' class. We avoid an ::before
  placeholder so no empty box appears by default. */
.widget{ min-height: 0; }
.widget.hidden{ display: none !important; }

/* When on the homepage without explicit #pares, hide the rates widget entirely
  to avoid showing cotizaciones below the Pares populares section. */
body.is-home-no-pairs #rates-widget{ display: none !important; }

/* Año dinámico del footer (relleno por JS) */
[data-year]::after{
  content: attr(data-year);
}

/* Fin del archivo */
