* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f1ec;
  color: #1f1f2e;
}

.quote-page {
  min-height: 100vh;
  padding: 28px;
}

.hero {
  max-width: 1280px;
  min-height: 520px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(73, 20, 145, .88), rgba(72, 55, 180, .64)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
}

.hero-bg-shape {
  position: absolute;
  width: 560px;
  height: 560px;
  left: 55px;
  top: 50%;
  transform: translateY(-50%);
  background:
    url("https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  opacity: .22;
  border-radius: 52% 48% 63% 37% / 42% 48% 52% 58%;
  filter: saturate(1.2);
}

.hero-bg-shape::after {
  content: "✈";
  position: absolute;
  right: -40px;
  top: 40px;
  color: rgba(255,255,255,.5);
  font-size: 8rem;
  transform: rotate(-18deg);
}

.hero-content-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  padding: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 30px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  text-align: center;
  color: white;
}

.agent-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: var(--color-secundario);
  color: #1c163f;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.agent-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .95;
  margin-bottom: 12px;
}

.agent-slogan {
  font-size: 1rem;
  color: rgba(255,255,255,.86);
  margin-bottom: 16px;
}

.agent-description {
  max-width: 560px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.social-title {
  display: inline-block;
  margin-bottom: 14px;
  padding: 11px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff4b2b, #b000ff);
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icons span,
.social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: white;
  color: var(--color-principal);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.social-icon-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.social-icon-btn img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.social-icon-btn svg { width: 26px; height: 26px; }

.enlaces-personalizados-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}
.enlace-custom-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--color-principal);
  color: white;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .15s;
  text-align: left;
}
.enlace-custom-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.enlace-custom-btn .enlace-emoji { font-size: 20px; flex-shrink: 0; }
.enlace-custom-btn .enlace-texto { flex: 1; }
.enlace-custom-btn .enlace-texto span { display: block; font-size: 11px; font-weight: 400; opacity: .85; }
.enlace-custom-btn .enlace-arrow { font-size: 18px; flex-shrink: 0; }

.form-card {
  max-width: 1120px;
  margin: 32px auto 0;
  background: white;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.form-header p {
  color: #747486;
  line-height: 1.6;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: .9rem;
  font-weight: 700;
  color: #2d2d3d;
}

label span {
  color: #d94b4b;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #e2e2ea;
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  background: #fbfbfd;
  color: #1f1f2e;
  outline: none;
  transition: .2s;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-principal);
  background: white;
  box-shadow: 0 0 0 4px rgba(75, 50, 184, .10);
}

.option-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbfbfd;
  border: 1px solid #e2e2ea;
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: .2s;
}

.option-card:hover {
  border-color: var(--color-principal);
}

.option-card input {
  width: auto;
}

.option-card:has(input:checked) {
  border-color: var(--color-principal);
  background: rgba(75, 50, 184, 0.08);
}

.option-card span {
  font-size: .88rem;
  color: #2d2d3d;
}

.form-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 18px;
  padding: 16px 28px;
  background: var(--color-principal);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(75, 50, 184, .22);
  transition: .2s;
}

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

.form-actions p {
  color: #8b8b9b;
  font-size: .86rem;
}

.footer {
  max-width: 1040px;
  margin: 28px auto 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  color: #686878;
  font-size: .9rem;
}

.footer strong {
  color: var(--color-principal);
}

/* ── Phone widget ──────────────────────────────────────────── */
.pw-wrap { position: relative; }

.pw-row {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e2e2ea;
  border-radius: 16px;
  background: #fbfbfd;
  transition: border-color .2s, box-shadow .2s;
  overflow: visible;
}
.pw-row:focus-within {
  border-color: var(--color-principal);
  background: white;
  box-shadow: 0 0 0 4px rgba(75,50,184,.10);
}
.pw-row.pw-invalid {
  border-color: #ef4444 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.10) !important;
}

.pw-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 52px;
  background: transparent;
  border: none;
  border-right: 1px solid #e2e2ea;
  border-radius: 15px 0 0 15px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: #2d2d3d;
  white-space: nowrap;
  box-shadow: none;
  transition: background .12s;
  min-width: 90px;
  flex-shrink: 0;
}
.pw-trigger:hover { background: #f1f5f9; transform: none; }
.pw-flag  { font-size: 20px; line-height: 1; }
.pw-code  { font-size: 13px; }
.pw-arrow { font-size: 10px; color: #94a3b8; }

.pw-num {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 15px 15px 0 !important;
  padding: 15px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
  min-width: 0;
  width: auto;
}

.pw-err { display: none; color: #dc2626; font-size: 12px; margin-top: 5px; font-weight: 600; }
.pw-err.show { display: block; }

/* Dropdown */
.pw-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: white;
  border: 1px solid #e2e2ea;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 300;
  overflow: hidden;
}
.pw-dropdown.open { display: block; }

.pw-search {
  width: 100% !important;
  padding: 10px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  outline: none;
}

.pw-list { max-height: 220px; overflow-y: auto; list-style: none !important; padding: 4px 0; margin: 0; }
.pw-list li { list-style: none !important; }

.pw-item {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background .1s;
  list-style: none !important;
}
.pw-item:hover  { background: #f0f4ff; }
.pw-item.pw-active { background: #ede9ff; }
.pw-item-f { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; font-style: normal; }
.pw-item-c { color: var(--color-principal, #4B32B8); font-weight: 700; font-size: 12px; min-width: 42px; }
.pw-item-n { color: #475569; font-size: 12px; flex: 1; }
/* ──────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .quote-page {
    padding: 14px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-bg-shape {
    width: 360px;
    height: 360px;
    left: -80px;
  }

  .hero-content-card {
    padding: 28px;
  }

  .form-card {
    padding: 24px;
  }

  .form-grid,
  .option-group {
    grid-template-columns: 1fr;
  }

  /* iOS Safari: evitar zoom automático al enfocar inputs (requiere ≥16px) */
  input, textarea, select { font-size: 16px; }
}