/* Home-only layout; it does not style header, footer or other pages. */
.home-intro { background: linear-gradient(90deg, #fffdf4ed 0%, #fffdf4b3 30%, #fffdf400 66%), url('../img/inicio-hero-puerto-real.webp') center / cover; }
.home-hero { display: grid; align-items: center; min-block-size: 520px; padding-block: 48px; }
.home-hero__copy { max-inline-size: 550px; }
.home-hero h1 { max-inline-size: 460px; font-size: clamp(40px, 4.5vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -2.3px; }
.home-hero__description { max-inline-size: 400px; margin-block-start: 24px; font-size: 19px; line-height: 1.45; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-block-start: 30px; }
.home-benefits { padding-block: 30px; border-start-start-radius: 18px; border-start-end-radius: 18px; color: white; background: var(--navy); }
/* Both curves reveal the same parent photograph, without negative margins or viewport widths. */
.home-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin-block: 0; }
.home-facts__item { display: flex; align-items: center; gap: 18px; min-inline-size: 0; padding-inline: 24px; border-inline-end: 1px solid #ffffff55; }
.home-facts__item:first-child { padding-inline-start: 0; }
.home-facts__item:last-child { padding-inline-end: 0; border: 0; }
.home-facts .icon { inline-size: 50px; block-size: 56px; }
.home-benefits p { font-size: 17px; font-weight: 600; line-height: 1.3; }
.home-benefits span { display: block; }
.home-services { padding-block: 36px 20px; }
.home-section-title { text-align: center; margin-block-end: 25px; }
.home-heading { font-size: 31px; font-weight: 700; letter-spacing: -1px; }
.home-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
}

.home-service {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 360px;
  padding: 28px 22px 24px;
  overflow: hidden;
  border: 1px solid #e6edf4;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 28px #061e4008;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.home-service::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline-end: -35%;
  inset-block-end: -100px;
  inline-size: 130%;
  block-size: 150px;
  border-radius: 50%;
  background: linear-gradient(130deg, #f7faff, #edf4fb);
  transform: rotate(-22deg);
  pointer-events: none;
}

.home-service__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 104px;
  block-size: 104px;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: var(--navy);
  background: #f1f6fc;
}

.home-service__symbol {
  display: block;
  inline-size: 54px;
  block-size: 54px;
}

.home-service h3 {
  min-block-size: 2.5em;
  margin-block-end: 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.4px;
  overflow-wrap: break-word;
}

.home-service p {
  margin-block-end: 26px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.home-service__link {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 12px;
  min-block-size: 44px;
  margin-block-start: auto;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.home-service__link:hover {
  text-decoration: none;
}

.home-service__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  background: var(--yellow);
}

.home-service__arrow-icon {
  display: block;
  inline-size: 22px;
  block-size: 22px;
  transition: transform 240ms ease;
}

.home-service:focus-within {
  border-color: #c1cfdf;
  box-shadow: 0 12px 32px #061e4012;
}

.home-service__link:focus-visible .home-service__arrow-icon {
  transform: translateX(3px);
}

@media (hover: hover) and (pointer: fine) {
  .home-service:hover {
    border-color: #cbd8e7;
    box-shadow: 0 14px 34px #061e4014;
    transform: translateY(-4px);
  }

  .home-service__link:hover .home-service__arrow-icon {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-service,
  .home-service__arrow-icon {
    transition: none;
  }

  .home-service:hover,
  .home-service__link:hover .home-service__arrow-icon,
  .home-service__link:focus-visible .home-service__arrow-icon {
    transform: none;
  }
}

.home-box { display: grid; grid-template-columns: .9fr 1.1fr 1fr; align-items: center; gap: 32px; padding: 30px; border-radius: 19px; background: var(--surface); }
.home-box > *, .home-about > * { min-inline-size: 0; }
.home-box__illustration {
  display: block;
  inline-size: 100%;
  max-inline-size: 270px;
  block-size: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 12px;
  object-fit: cover;
}
.home-box__description { margin-block: 16px 22px; font-size: 14px; }
.home-steps { counter-reset: shipment; margin: 0; padding: 0; list-style: none; }
.home-steps li { position: relative; counter-increment: shipment; padding: 0 0 19px 51px; min-block-size: 62px; font-size: 12px; line-height: 1.4; }
.home-steps li::before { content: counter(shipment); position: absolute; inset-inline-start: 0; inset-block-start: 0; display: grid; place-items: center; inline-size: 35px; block-size: 35px; border-radius: 50%; background: var(--navy); color: white; font-size: 18px; }
.home-steps li:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 17px; inset-block: 40px 5px; border-inline-start: 1px dashed var(--navy); }
.home-steps li:last-child { padding-block-end: 0; }
.home-steps strong { display: block; font-size: 14px; }
.home-details { font-size: 12px; }
.home-box > .home-details { grid-column: 1 / -1; }
.home-details summary { cursor: pointer; font-weight: 600; padding-block: 10px; }
.home-details p { margin-block: 10px; }
.home-details p a { text-decoration: underline; }
.home-details .button { margin-block-start: 4px; }
.home-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; align-items: center; padding-block: 24px 28px; }
.home-about__image { inline-size: 100%; aspect-ratio: 1.8; object-fit: cover; border-radius: 12px; }
.home-about__description { margin-block: 16px 22px; font-size: 13px; }
.home-about .button { min-block-size: 38px; font-size: 12px; }
.home-coverage { background: var(--navy); color: white; padding-block: 24px; }
.home-coverage strong { display: block; color: var(--yellow); font-size: 21px; line-height: 1.2; }
.home-coverage span { display: block; margin-block-start: 5px; font-size: 12px; }
@media (min-width: 1400px) { .home-hero { min-block-size: 560px; } }
@media (max-width: 1200px) {
 .home-facts__item { gap: 12px; padding-inline: 16px; }
 .home-benefits p { font-size: 15px; }
}
@media (max-width: 1000px) {
 .home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .home-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .home-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
 .home-steps li::after { display: none; }
}
@media (max-width: 850px) {
 .home-heading { font-size: 27px; }
 .home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
 .home-facts__item:nth-child(2) { border: 0; padding-inline-end: 0; }
 .home-facts__item:nth-child(3) { padding-inline-start: 0; }
 .home-about { gap: 25px; }
}
@media (max-width: 600px) {
 .home-intro { background: linear-gradient(90deg, #fffdf4ed, #fffdf4bf 65%, #fffdf44d), url('../img/inicio-hero-puerto-real.webp') 65% center / cover; }
 .home-hero { padding-block: 40px; }
 .home-hero h1 { font-size: clamp(36px, 10.2vw, 44px); letter-spacing: -1.8px; }
 .home-hero__description { font-size: 17px; }
 .home-hero__actions { flex-direction: column; align-items: start; gap: 12px; }
 .home-hero__actions .button { inline-size: min(100%, 245px); }
 .home-facts__item { gap: 10px; padding-inline: 12px; }
 .home-facts .icon { inline-size: 37px; block-size: 44px; }
 .home-benefits p { font-size: 13px; }
 .home-services__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
 .home-service { min-block-size: 275px; }
 .home-box { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 25px; }
 .home-steps { display: block; }
 .home-steps li::after { display: block; }
 .home-about { grid-template-columns: minmax(0, 1fr); }
 .home-coverage strong { font-size: 17px; }
 .home-coverage span { font-size: 11px; }
}
@media (max-width: 360px) {
 .home-facts__item { flex-direction: column; align-items: start; }
 .home-facts p { overflow-wrap: anywhere; }
}
