/* ==========================================================================
   sections.css — estilos por sección
   ========================================================================== */

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  color: var(--white);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(6, 26, 64, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse at 95% 100%, rgba(23, 162, 214, 0.85) 0%, transparent 55%),
    linear-gradient(135deg, #061A40 0%, #0D47A1 52%, #17A2D6 100%);
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3rem;
}

.hero__slides {
  display: grid;
}

.hero__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.7s var(--ease) 0.3s, transform 0.7s var(--ease) 0.3s;
}

.hero__title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 400;
  line-height: 1.18;
  max-width: 16ch;
  margin-bottom: 1.4rem;
}

.hero__title strong {
  font-weight: 700;
}

.hero__text {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
  line-height: 1.45;
  max-width: 34ch;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero__media {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  animation: hero-in 1s var(--ease) 0.2s both;
}

.hero__photo {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.hero__badge {
  position: absolute;
  left: -28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.3;
  border-radius: 14px;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

.hero__badge strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s, color 0.3s;
}

.hero__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hero__arrow .icon {
  width: 22px;
  height: 22px;
}

.hero__arrow--prev { left: 1.2rem; }
.hero__arrow--next { right: 1.2rem; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: flex;
  gap: 8px;
}

.hero__dots button {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background-color 0.3s, width 0.3s var(--ease);
}

.hero__dots button.is-active {
  width: 28px;
  background: var(--white);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 110px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__media {
    width: min(70vw, 280px);
    order: -1;
  }

  .hero__badge {
    left: -14px;
  }

  .hero__arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* ================= ¿QUÉ HAGO? ================= */
.about {
  padding: 6rem 0 4rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__media {
  position: relative;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}

.about__img {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transition: transform 1s var(--ease);
}

.about__media:hover .about__img img {
  transform: scale(1.04);
}

.about__years {
  position: absolute;
  left: -2rem;
  bottom: -1.5rem;
  display: grid;
  place-items: center;
  padding: 1.3rem 1.6rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
  text-align: center;
  color: #003D60;
}

.about__years-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
}

.about__years-txt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.about__text {
  text-align: center;
}

.title-blue {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.about__text > p {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text-soft);
  max-width: 62ch;
  margin-inline: auto;
}

.about__text strong {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-chip);
  background: var(--blue-soft);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 87, 168, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.chips li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 87, 168, 0.16);
}

.chips .icon {
  stroke-width: 3;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about__media {
    max-width: 320px;
  }

  .about__years {
    left: -0.75rem;
  }
}

/* ================= ¿CÓMO TE AYUDO? ================= */
.help {
  padding: 3rem 0 6rem;
}

.line-title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.line-title::before,
.line-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #1F5FC9;
  opacity: 0.8;
}

.line-title span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F5FC9;
}

.help__intro {
  max-width: 34em;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.help__intro strong {
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.card {
  padding: 2.2rem 2rem 2.4rem;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-bright);
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}

.card__icon .icon {
  width: 32px;
  height: 32px;
}

.card:hover .card__icon {
  background: var(--blue-bright);
  color: var(--white);
  transform: rotate(-6deg);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-bright);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .line-title span { font-size: 15px; }
}

/* ================= ¿POR QUÉ ELEGIRME? ================= */
.why {
  position: relative;
  padding: 5.5rem 0 4rem;
  color: var(--white);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(4, 16, 42, 0.9), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(14, 116, 168, 0.75), transparent 60%),
    linear-gradient(135deg, #04102A 0%, #0A2A63 55%, #0E6FA8 100%);
  overflow: hidden;
}

.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.why .container {
  position: relative;
}

.why__head {
  position: relative;
  text-align: center;
}

.why__head h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 400;
}

.why__head h2 strong {
  font-size: 1.3em;
  font-weight: 700;
}

.why__line {
  position: relative;
  display: block;
  width: 180px;
  height: 3px;
  margin: 0.9rem auto 0;
  background: linear-gradient(90deg, #2850A8, #17A2D6);
  border-radius: 3px;
}

.why__line::before,
.why__line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
}

.why__line::before { left: -2px; background: #2850A8; }
.why__line::after { right: -2px; background: #17A2D6; }

.why__more {
  position: absolute;
  right: 0;
  top: 0;
}

.why__intro {
  max-width: 40em;
  margin: 1.8rem auto 5rem;
  text-align: center;
  font-size: 1.15rem;
}

.why__intro strong {
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat {
  --c: var(--indigo);
  position: relative;
  padding: 3.6rem 1.4rem 2rem;
  text-align: center;
  background: var(--white);
  color: var(--text-soft);
  border-radius: 18px;
  border-bottom: 4px solid var(--c);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-8px);
}

.stat--blue { --c: var(--indigo); }
.stat--wine { --c: var(--wine); }
.stat--navy { --c: #1A2440; }
.stat--red { --c: var(--red); }

.stat__icon {
  position: absolute;
  top: -42px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--c);
  color: var(--white);
  border: 5px solid var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease);
}

.stat:hover .stat__icon {
  transform: rotateY(180deg);
}

.stat__icon .icon {
  width: 36px;
  height: 36px;
}

.stat__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c);
}

.stat h3 {
  margin: 0.4rem 0 1.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c);
}

.stat p {
  font-size: 14.5px;
  line-height: 1.55;
}

.why__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.why__foot .icon {
  width: 26px;
  height: 26px;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 4rem;
  }
}

@media (max-width: 700px) {
  .why__more {
    position: static;
    margin-top: 1.5rem;
  }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
}

/* ================= PASO A PASO (tarjetas tipo servicio) ================= */
.steps {
  padding: 5.5rem 0 5rem;
}

.steps__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.steps__head h2 {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}

.steps__head p {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  color: var(--blue);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 420px;
  padding: 2.6rem 2.2rem 2.4rem;
  color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -18px rgba(3, 39, 69, 0.6);
}

.step--red {
  background: linear-gradient(180deg, #1593C9 0%, #0D4E97 45%, #061A40 100%);
}

.step--blue {
  background: linear-gradient(180deg, #3D5BD9 0%, #1F3488 45%, #061A40 100%);
}

.step__bg {
  position: absolute;
  right: -30px;
  top: 30px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.07);
  transition: transform 0.6s var(--ease);
}

.step__bg .icon {
  width: 220px;
  height: 220px;
  stroke-width: 1.2;
}

.step:hover .step__bg {
  transform: scale(1.08) rotate(-6deg);
}

.step h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.step h3 small {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
}

.step__q {
  font-weight: 700;
  margin-bottom: 1rem;
}

.step p:not(.step__q) {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.step .btn {
  margin-top: auto;
}

@media (max-width: 900px) {
  .steps__grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
}

/* ================= REQUISITOS ================= */
.reqs {
  padding: 1rem 0 5rem;
}

.reqs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.reqs__box,
.reqs__cta {
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border-radius: var(--radius-card);
}

.reqs__box {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.reqs h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.reqs__box h2 {
  color: var(--navy);
}

.reqs__box > p {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.reqs__box ul {
  display: grid;
  gap: 1rem;
}

.reqs__box li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--text-soft);
}

.reqs__box li strong {
  color: var(--text);
}

.reqs__box li .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-bright);
  stroke-width: 3;
}

.reqs__cta {
  color: var(--white);
  background:
    radial-gradient(ellipse at 100% 100%, rgba(23, 162, 214, 0.7), transparent 60%),
    linear-gradient(135deg, #061A40 0%, #0D47A1 100%);
}

.reqs__cta h2 {
  font-weight: 400;
}

.reqs__cta h2 strong {
  font-weight: 700;
}

.reqs__cta > p {
  margin: 0.6rem 0 1.8rem;
  opacity: 0.9;
}

.reqs__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.reqs__cities span {
  padding: 0.35rem 0.9rem;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
}

@media (max-width: 860px) {
  .reqs__grid { grid-template-columns: 1fr; }
}

/* ================= PREGUNTAS ================= */
.faq {
  padding: 1rem 0 6rem;
}

.faq__list {
  display: grid;
  gap: 1rem;
  max-width: 880px;
  margin-inline: auto;
}

.faq__item {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-left: 4px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq__item[open] {
  border-left-color: var(--blue-bright);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-bright);
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}

.faq__item[open] summary .icon {
  transform: rotate(45deg);
  background: var(--blue-bright);
  color: var(--white);
}

.faq__item p {
  padding: 0 1.5rem 1.4rem;
  color: var(--text-soft);
}

/* ================= CONTACTO ================= */
.contact {
  padding: 5.5rem 0;
  color: var(--white);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(6, 26, 64, 0.95), transparent 55%),
    radial-gradient(ellipse at 95% 100%, rgba(23, 162, 214, 0.85), transparent 55%),
    linear-gradient(135deg, #061A40 0%, #0D47A1 52%, #17A2D6 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact__text h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact__text h2 strong {
  font-weight: 700;
}

.contact__text > p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.contact__list {
  display: grid;
  gap: 0.9rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow-wrap: anywhere;
}

.contact__list .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.form {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}

.form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.3rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 14px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(13, 95, 199, 0.12);
}

.field.is-invalid input {
  border-color: var(--red);
}

.field__error {
  font-size: 12px;
  color: var(--red);
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.field__error--check {
  display: block;
  margin: 0.3rem 0 0.4rem 1.6rem;
}

.form .btn {
  margin-top: 1rem;
  padding-block: 0.95rem;
}

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
