:root {
  --blue-dark: #163a8a;
  --blue-mid: #2b65cb;
  --blue-light: #8fd8ff;
  --blue-soft: #dff4ff;
  --white: #ffffff;
  --text: #16356f;
  --text-dark: #0f2e67;
  --shadow: 0 18px 45px rgba(18, 49, 110, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 16% 28%, rgba(255,255,255,0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(255,255,255,0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 78%, rgba(255,255,255,0.75) 0 1px, transparent 2px),
    linear-gradient(180deg, #66c8fb 0%, #dff4ff 22%, #f8fcff 48%, #d9f0ff 72%, #7ecff8 100%);
  background-attachment: fixed;
  line-height: 1.45;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 10% 34%, rgba(255,255,255,0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 15%, rgba(255,255,255,0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 12% 72%, rgba(255,255,255,0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 60%, rgba(255,255,255,0.9) 0 2px, transparent 4px);
  opacity: 0.65;
}

body::after {
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,0.85), transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.2) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(18,58,126,0.96), rgba(21,68,149,0.93));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(12, 41, 94, 0.22);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.topbar-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #8fe2ff, #2e75d6);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18), 0 8px 22px rgba(0,0,0,0.18);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px 8px 0 0;
  transform: skewX(-16deg);
}

.brand-mark::before {
  left: 12px;
  width: 10px;
  height: 28px;
}

.brand-mark::after {
  left: 28px;
  width: 12px;
  height: 38px;
  box-shadow: 16px -8px 0 0 rgba(255,255,255,0.82);
}

.brand-text {
  line-height: 0.95;
}

.brand-text strong,
.brand-text span {
  display: block;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.brand-text span {
  margin-top: 4px;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.top-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  display: grid;
  place-items: center;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 0;
}

.hero-panel {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(110deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.78) 42%, rgba(255,255,255,0.18) 60%, rgba(255,255,255,0.05) 100%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.95) 0 2px, transparent 4px),
    radial-gradient(circle at 8% 55%, rgba(255,255,255,0.95) 0 3px, transparent 5px),
    radial-gradient(circle at 28% 74%, rgba(255,255,255,0.92) 0 2px, transparent 4px),
    linear-gradient(135deg, #90dbff 0%, #eef8ff 34%, #b7e5ff 65%, #8fd6ff 100%);
  border: 1px solid rgba(255,255,255,0.72);
  position: relative;
  isolation: isolate;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -85px;
  height: 180px;
  background: #eaf7ff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -12px 40px rgba(78, 165, 230, 0.18);
  z-index: 1;
}

.hero-copy,
.hero-photo {
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding: 86px 58px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy p {
  max-width: 580px;
  font-size: clamp(1.12rem, 1.6vw, 1.6rem);
  color: var(--text-dark);
  font-weight: 500;
}

.hero-copy p strong {
  font-weight: 900;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 34px;
  border-radius: 18px;
  margin-top: 34px;
  background: linear-gradient(180deg, #2a66c8 0%, #164799 100%);
  color: var(--white);
  font-weight: 900;
  font-size: 1.18rem;
  box-shadow: 0 14px 28px rgba(15, 50, 113, 0.28);
  width: fit-content;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 50, 113, 0.32);
}

.hero-photo {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02)),
    url('../img/hero-a-medida.png') center right / cover no-repeat;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32,96,180,0.22) 0%, rgba(255,255,255,0.04) 38%, rgba(16,39,82,0.14) 100%);
}

.section {
  position: relative;
  padding: 56px 0;
}

.section-wave {
  background:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,0.95) 0 2px, transparent 4px),
    radial-gradient(circle at 88% 78%, rgba(255,255,255,0.95) 0 2px, transparent 4px),
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.35));
  border-radius: 42px;
  box-shadow: var(--shadow);
  padding: 58px 34px 40px;
  position: relative;
  overflow: hidden;
}

.section-wave::before,
.section-wave::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 110px;
  background: rgba(255,255,255,0.58);
  border-radius: 50%;
  filter: blur(1px);
}

.section-wave::before {
  top: -70px;
}

.section-wave::after {
  bottom: -80px;
}

.section-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  color: var(--text);
  line-height: 1.5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255,255,255,0.82);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 14px 30px rgba(24, 83, 156, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(24, 83, 156, 0.18);
}

.service-image {
  aspect-ratio: 1.55 / 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(15,56,126,0.08));
}

.service-card h3 {
  padding: 18px 18px 8px;
  color: var(--text-dark);
  font-size: clamp(1.1rem, 1.45vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
}

.service-card p {
  padding: 0 18px 18px;
  color: var(--text);
  font-size: 0.96rem;
  text-align: center;
  font-weight: 500;
}

.premium-band {
  padding-top: 18px;
}

.band-wrap {
  background: linear-gradient(180deg, rgba(22,58,138,0.96), rgba(23,81,163,0.94));
  color: var(--white);
  border-radius: 36px;
  padding: 36px 28px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(13, 41, 94, 0.24);
}

.band-wrap::before,
.band-wrap::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.band-wrap::before {
  top: -88px;
}

.band-wrap::after {
  bottom: -92px;
}

.band-head {
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 26px;
}

.band-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.band-head p {
  margin-top: 8px;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-style: italic;
  font-weight: 500;
  opacity: 0.96;
}

.contact-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}

.pill {
  min-height: 92px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(229,245,255,0.95));
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  box-shadow: 0 12px 26px rgba(5, 25, 66, 0.18);
  border: 1px solid rgba(255,255,255,0.8);
  font-weight: 800;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  justify-content: center;
  text-align: center;
}

.pill-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.4rem;
  color: var(--white);
  background: linear-gradient(180deg, #49cf6d, #1d9f47);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
}

.pill:nth-child(2) .pill-icon,
.pill:nth-child(3) .pill-icon {
  background: linear-gradient(180deg, #2f7be0, #16479a);
}

.quote-section {
  padding-top: 24px;
  padding-bottom: 78px;
}

.quote-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.quote-copy,
.quote-form {
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.quote-copy {
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(240,249,255,0.6), rgba(233,247,255,0.55)),
    url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80') center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  padding: 44px 40px;
}

.quote-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.14));
}

.quote-copy-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.quote-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 18px;
}

.quote-copy p {
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.55;
}

.quote-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,252,255,0.9));
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.9);
}

.quote-form h3 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 7px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(22,58,138,0.18);
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input,
select {
  min-height: 54px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2d6fdb;
  box-shadow: 0 0 0 4px rgba(45,111,219,0.1);
}

.submit-btn {
  width: 100%;
  min-height: 60px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a66c8 0%, #164799 100%);
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 50, 113, 0.2);
  transition: transform 0.25s ease;
  margin-top: 4px;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.form-note {
  text-align: center;
  font-size: 0.88rem;
  color: #4b6ca7;
  margin-top: 10px;
}

.footer {
  background: linear-gradient(180deg, rgba(18,58,126,0.98), rgba(13,45,98,0.98));
  color: var(--white);
  padding: 26px 0;
  margin-top: 10px;
  box-shadow: 0 -10px 26px rgba(12, 41, 94, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 600;
  opacity: 0.96;
}

@media (max-width: 1100px) {
  .hero-panel,
  .quote-wrap {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 460px;
  }

  .contact-pills,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar-inner,
  .top-contact {
    justify-content: center;
  }

  .topbar-inner {
    padding: 14px 0;
    min-height: auto;
    flex-direction: column;
  }

  .hero-copy {
    padding: 48px 24px 120px;
  }

  .section-wave,
  .band-wrap,
  .quote-form,
  .quote-copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .services-grid,
  .contact-pills {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-radius: 0 0 34px 34px;
  }

  .brand-text strong,
  .brand-text span {
    font-size: 1.3rem;
  }

  .pill {
    border-radius: 28px;
    min-height: 82px;
  }
}

@media (max-width: 1100px) {
  .hero-panel,
  .quote-wrap {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 420px;
  }

  .contact-pills,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .top-contact {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar {
    position: relative;
  }

  .topbar-inner {
    padding: 12px 0 14px;
    gap: 12px;
    align-items: stretch;
  }

  .brand {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-mark::before {
    left: 10px;
    width: 8px;
    height: 22px;
    bottom: 8px;
  }

  .brand-mark::after {
    left: 22px;
    width: 10px;
    height: 30px;
    bottom: 8px;
    box-shadow: 12px -6px 0 0 rgba(255,255,255,0.82);
  }

  .brand-text {
    text-align: center;
  }

  .brand-text strong,
  .brand-text span {
    font-size: 1.05rem;
    line-height: 1;
  }

  .top-contact {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .top-contact a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    gap: 8px;
    font-size: 0.86rem;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    overflow-wrap: anywhere;
  }

  .top-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-panel {
    min-height: auto;
    border-radius: 0 0 28px 28px;
  }

  .hero-panel::after {
    height: 110px;
    bottom: -55px;
  }

  .hero-copy {
    padding: 34px 18px 84px;
    text-align: center;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 16px;
  }

  .hero-copy p {
    font-size: 1rem;
    max-width: 100%;
  }

  .cta {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    font-size: 1rem;
    margin-top: 24px;
  }

  .hero-photo {
    min-height: 260px;
    background-position: center;
  }

  .section {
    padding: 34px 0;
  }

  .section-wave {
    border-radius: 26px;
    padding: 32px 14px 22px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: clamp(1.6rem, 8vw, 2.3rem);
  }

  .section-head p {
    font-size: 0.98rem;
  }

  .services-grid,
  .contact-pills {
    grid-template-columns: 1fr;
  }

  .service-card {
    border-radius: 18px;
  }

  .service-image {
    aspect-ratio: 1.7 / 1;
  }

  .service-card h3 {
    font-size: 1.15rem;
    padding: 14px 14px 6px;
  }

  .service-card p {
    padding: 0 14px 14px;
    font-size: 0.92rem;
  }

  .premium-band {
    padding-top: 8px;
  }

  .band-wrap {
    border-radius: 26px;
    padding: 24px 14px 22px;
  }

  .band-head {
    margin-bottom: 18px;
  }

  .band-head h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .band-head p {
    font-size: 0.95rem;
  }

  .pill {
    border-radius: 18px;
    min-height: 64px;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 0.95rem;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .pill-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .quote-section {
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .quote-wrap {
    gap: 16px;
  }

  .quote-copy,
  .quote-form {
    border-radius: 24px;
  }

  .quote-copy {
    min-height: 280px;
    padding: 22px 16px;
    align-items: flex-start;
  }

  .quote-copy h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    margin-bottom: 12px;
  }

  .quote-copy p {
    font-size: 0.98rem;
  }

  .quote-form {
    padding: 20px 14px;
  }

  .quote-form h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .form-grid {
    gap: 10px;
  }

  label {
    font-size: 0.88rem;
    margin-bottom: 5px;
  }

  input,
  select,
  textarea {
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 16px;
  }

  input,
  select {
    min-height: 48px;
  }

  textarea {
    min-height: 110px;
  }

  .submit-btn {
    min-height: 54px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .form-note {
    font-size: 0.82rem;
  }

  .footer {
    padding: 18px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-links {
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 16px), var(--container));
  }

  .hero-copy {
    padding: 28px 14px 74px;
  }

  .hero-copy h1 {
    font-size: 1.85rem;
  }

  .hero-photo {
    min-height: 220px;
  }

  .section-wave,
  .band-wrap,
  .quote-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  .quote-copy {
    padding: 18px 12px;
  }

  .top-contact a,
  .pill {
    font-size: 0.9rem;
  }
}