:root {
  --bg: #07111f;
  --bg-elevated: #0e1c31;
  --bg-soft: #122642;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #eef3fb;
  --muted: #aebbd0;
  --primary: #d5af67;
  --primary-strong: #f1cf8d;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(0,0,0,0.28);
  --radius: 28px;
  --container: 1200px;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(213,175,103,0.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0b1829 35%, #0d1d33 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { color: var(--primary-strong); }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.portal-body { min-height: 100vh; }

.language-portal {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.portal-card {
  width: min(760px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.portal-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.portal-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.portal-kicker,
.kicker {
  color: var(--primary-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.portal-card h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0.5rem 0;
}

.portal-text,
.hero-copy,
.section-heading p,
.image-note,
.contact-notes p,
.site-footer p,
.form-help {
  color: var(--muted);
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 700;
}

.flag-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.portal-note {
  display: block;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7,17,31,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}

.brand-lockup strong {
  display: block;
  font-size: 1.02rem;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.9rem;
}

.desktop-nav,
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.desktop-nav a {
  color: var(--muted);
}

.desktop-nav a:hover {
  color: var(--white);
}

.lang-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 0.8rem 1rem;
}

.mobile-nav {
  display: none;
  padding-bottom: 1rem;
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.9rem;
}

.mobile-nav a {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #1b2330;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

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

.full-width {
  width: 100%;
}

.hero-section,
.section-block {
  padding: 5rem 0;
}

.hero-grid,
.two-column-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.two-column-grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0.8rem 0 1rem;
}

.hero-section h1 span,
.section-heading h2 span {
  color: var(--primary-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}

.metric-strip article,
.premium-card,
.hero-visual-card,
.contact-notes {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-strip article {
  padding: 1rem 1.1rem;
}

.metric-strip strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.metric-strip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual-card {
  background: #ffffff;
  border-radius: 32px;
  overflow: hidden;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.hero-image,
.service-image {
  width: 100%;
  display: block;
  border-radius: 22px;
}

.hero-image {
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
}

.service-image {
  height: 230px;
  object-fit: contain;
  object-position: center center;
  background: #ffffff;
  padding: 0;
  margin-bottom: 1rem;
}



.image-note-card .service-image,
.map-card .service-image {
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0.7rem 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.2rem;
}

.service-card {
  padding: 1rem;
}

.premium-card {
  padding: 1.4rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.feature-list li::before {
  content: '•';
  color: var(--primary-strong);
  margin-right: 0.65rem;
}

.muted-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.coverage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.coverage-pills span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--white);
}

.premium-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-row.two-up {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

label {
  font-weight: 700;
  font-size: 0.93rem;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #91a2bb;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-notes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  color: var(--muted);
}



.values-block {
  background:
    radial-gradient(circle at 18% 20%, rgba(213,175,103,0.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
}

.values-heading {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 2rem;
}

.value-card::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: rgba(213,175,103,0.13);
}

.value-label {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value-card p {
  position: relative;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
  margin: 0;
}

.value-card strong {
  color: var(--white);
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

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

  .hero-grid,
  .two-column-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .desktop-nav,
  .nav-cta-group {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .language-grid,
  .metric-strip,
  .form-row.two-up,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-visual-card {
    border-radius: 24px;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-notes {
    align-items: flex-start;
  }

  .portal-card {
    padding: 2rem;
  }
}

/* Contact logo carousel + native select visibility fixes */
.contact-logo-carousel {
  position: relative;
  min-height: 186px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.carousel-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.carousel-logo.is-active {
  opacity: 1;
  transform: scale(1);
}

select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
}

select option {
  background: #122642;
  color: #ffffff;
}

select:focus {
  outline: 2px solid rgba(241,207,141,0.45);
  outline-offset: 2px;
}

@media (max-width: 780px) {
  .contact-logo-carousel {
    min-height: 150px;
  }

  .carousel-logo {
    padding: 1rem;
  }
}

/* === SERVICES FIX (IMAGES FULL BLEED SIN FONDO BLANCO) === */

.service-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-radius: 24px;
  padding: 20px;
}

/* CONTENEDOR DE LA IMAGEN */
.service-card .service-image{
  width: 100%;
  height: 230px;
  border-radius: 18px;
  overflow: hidden;
  background: #122033; /* mismo color del fondo */
}

/* IMAGEN */
.service-card .service-image img,
.service-image{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 🔥 clave para eliminar bordes blancos */
  object-position: center;  /* centra la imagen */
  display: block;
  border-radius: 18px;
  background: #122033;
}

/* OPCIONAL: mejora visual más pro */
.service-card:hover{
  transform: translateY(-4px);
  transition: all 0.3s ease;
}
