/* ============================================================
 * europet-delivery.css
 * Europet modular CSS
 * ============================================================ */

/* === Landing tiempos de entrega === */
/* ============================================================
 * EUROPET - Landing tiempos de entrega
 * Página: /tiempos-de-entrega-santiago/
 * ============================================================ */

.ep-delivery-page {
  --ep-purple: #6f2dbd;
  --ep-purple-dark: #4b1688;
  --ep-purple-soft: #f5edff;
  --ep-green: #209c63;
  --ep-green-soft: #eaf8f1;
  --ep-yellow-soft: #fff7df;
  --ep-orange: #f08a24;
  --ep-blue-soft: #eef7ff;
  --ep-border: #eadff5;
  --ep-text: #241735;
  --ep-muted: #6f637c;
  --ep-white: #ffffff;
  --ep-shadow: 0 18px 45px rgba(65, 25, 112, 0.10);

  color: var(--ep-text);
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 54px;
}

.ep-delivery-page * {
  box-sizing: border-box;
}

.ep-delivery-page h1,
.ep-delivery-page h2,
.ep-delivery-page h3,
.ep-delivery-page h4,
.ep-delivery-page p {
  margin-top: 0;
}

.ep-delivery-page h1 {
  font-size: clamp(2.25rem, 4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
  color: var(--ep-text);
}

.ep-delivery-page h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
  color: var(--ep-text);
}

.ep-delivery-page h3 {
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 10px;
  color: var(--ep-text);
}

.ep-delivery-page h4 {
  font-size: 1.05rem;
  margin: 18px 0 10px;
  color: var(--ep-purple-dark);
}

.ep-delivery-page p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ep-muted);
}

.ep-delivery-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px !important;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ep-purple-soft);
  color: var(--ep-purple-dark) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ep-delivery-desktop-only {
  display: block;
}

.ep-delivery-mobile-only {
  display: none;
}

/* HERO */
.ep-delivery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9), rgba(255,255,255,0) 38%),
    linear-gradient(135deg, #f7edff 0%, #ffffff 54%, #ecfff5 100%);
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow);
  overflow: hidden;
}

.ep-delivery-hero__content {
  align-self: center;
}

.ep-delivery-hero__lead {
  max-width: 760px;
  font-size: 1.12rem !important;
  color: #594866 !important;
  margin-bottom: 22px !important;
}

.ep-delivery-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.ep-delivery-hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(111,45,189,0.12);
  color: var(--ep-purple-dark);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(65,25,112,0.06);
}

.ep-delivery-hero__actions,
.ep-delivery-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-delivery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

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

.ep-delivery-btn--primary {
  background: var(--ep-purple);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(111,45,189,0.22);
}

.ep-delivery-btn--primary:hover {
  background: var(--ep-purple-dark);
  color: #fff !important;
}

.ep-delivery-btn--secondary {
  background: var(--ep-green);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(32,156,99,0.18);
}

.ep-delivery-btn--secondary:hover {
  background: #167d4e;
  color: #fff !important;
}

.ep-delivery-btn--ghost {
  background: #fff;
  color: var(--ep-purple-dark) !important;
  border: 1px solid var(--ep-border);
}

.ep-delivery-btn--ghost:hover {
  background: var(--ep-purple-soft);
  color: var(--ep-purple-dark) !important;
}

.ep-delivery-hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--ep-purple-dark), var(--ep-purple));
  color: #fff;
  overflow: hidden;
}

.ep-delivery-hero__card::before {
  content: "";
  position: absolute;
  inset: -60px -50px auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
}

.ep-delivery-hero__card h2,
.ep-delivery-hero__card p,
.ep-delivery-hero__card small {
  position: relative;
  color: #fff !important;
}

.ep-delivery-hero__card h2 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.ep-delivery-hero__card p {
  opacity: 0.92;
  margin-bottom: 12px !important;
}

.ep-delivery-hero__card small {
  opacity: 0.78;
  font-weight: 700;
}

.ep-delivery-hero__icon {
  position: relative;
  display: block;
  font-size: 3.2rem;
  margin-bottom: 18px;
}

/* SECTIONS */
.ep-delivery-section {
  margin-top: 34px;
}

.ep-delivery-section__head {
  max-width: 760px;
  margin-bottom: 18px;
}

.ep-delivery-grid {
  display: grid;
  gap: 18px;
}

.ep-delivery-grid--three {
  grid-template-columns: 1.05fr 1.35fr 0.8fr;
}

.ep-delivery-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* CARDS */
.ep-delivery-card {
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--ep-border);
  box-shadow: 0 12px 34px rgba(65,25,112,0.07);
}

.ep-delivery-card--featured {
  background: linear-gradient(180deg, #ffffff 0%, var(--ep-green-soft) 100%);
  border-color: rgba(32,156,99,0.22);
}

.ep-delivery-card--express {
  background: linear-gradient(180deg, #ffffff 0%, var(--ep-yellow-soft) 100%);
  border-color: rgba(240,138,36,0.22);
}

.ep-delivery-card--cold {
  background: linear-gradient(180deg, #ffffff 0%, var(--ep-blue-soft) 100%);
}

.ep-delivery-card--store {
  background: linear-gradient(180deg, #ffffff 0%, var(--ep-purple-soft) 100%);
}

.ep-delivery-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ep-delivery-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--ep-purple-soft);
  font-size: 1.45rem;
}

.ep-delivery-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ep-border);
  color: var(--ep-purple-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

/* LISTS */
.ep-delivery-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.ep-delivery-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
  color: #4e405c;
  line-height: 1.45;
}

.ep-delivery-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ep-green);
  font-weight: 750;
}

.ep-delivery-list--compact {
  columns: 1;
}

.ep-delivery-list--columns {
  columns: 2;
  column-gap: 22px;
}

.ep-delivery-note {
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(111,45,189,0.10);
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  color: #5d4b6c !important;
}

/* MOBILE COMMUNES ACCORDION */
.ep-delivery-mobile-communes {
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(111,45,189,0.20);
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
}

.ep-delivery-mobile-communes summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 20px 52px 20px 20px;
  cursor: pointer;
  list-style: none;
}

.ep-delivery-mobile-communes summary::-webkit-details-marker {
  display: none;
}

.ep-delivery-mobile-communes__title {
  display: block;
  color: var(--ep-purple-dark);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.25;
}

.ep-delivery-mobile-communes__hint {
  display: block;
  grid-column: 1 / -1;
  color: var(--ep-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.ep-delivery-mobile-communes__arrow {
  position: absolute;
  right: 20px;
  top: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ep-purple);
  color: #fff;
  font-size: 0.85rem;
  transition: transform .18s ease;
}

.ep-delivery-mobile-communes[open] .ep-delivery-mobile-communes__arrow {
  transform: rotate(180deg);
}

.ep-delivery-mobile-communes__body {
  padding: 0 20px 22px;
}

/* PRICING */
.ep-delivery-pricing {
  margin-top: 26px;
}

.ep-delivery-price-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--ep-purple-dark), var(--ep-purple));
  box-shadow: var(--ep-shadow);
}

.ep-delivery-price-card h2,
.ep-delivery-price-card p {
  color: #fff !important;
}

.ep-delivery-price-card p {
  opacity: 0.93;
}

.ep-delivery-price-card .ep-delivery-eyebrow {
  background: rgba(255,255,255,0.14);
  color: #fff !important;
}

.ep-delivery-price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.26);
  color: #fff;
  text-align: center;
}

.ep-delivery-price-box span,
.ep-delivery-price-box small {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}

.ep-delivery-price-box strong {
  display: block;
  margin: 3px 0;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

/* EXPRESS / COLD */
.ep-delivery-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.ep-delivery-mini-grid div {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(111,45,189,0.10);
}

.ep-delivery-mini-grid strong,
.ep-delivery-mini-grid span {
  display: block;
}

.ep-delivery-mini-grid strong {
  margin-bottom: 4px;
  color: var(--ep-text);
  font-size: 0.88rem;
}

.ep-delivery-mini-grid span {
  color: var(--ep-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ep-delivery-cold-steps {
  margin: 18px 0 20px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(111,45,189,0.10);
}

.ep-delivery-cold-steps h4 {
  margin-top: 0;
}

/* CONDITIONS */
.ep-delivery-conditions {
  padding: 28px;
  border-radius: 30px;
  background: #fbf8ff;
  border: 1px solid var(--ep-border);
}

.ep-delivery-info-grid {
  display: grid;
  gap: 12px;
}

.ep-delivery-info-card {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ep-border);
  box-shadow: 0 8px 22px rgba(65,25,112,0.05);
}

.ep-delivery-info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.ep-delivery-info-card p {
  margin-bottom: 0;
}

.ep-delivery-info-card ul {
  margin: 0;
  padding-left: 18px;
}

.ep-delivery-info-card li {
  margin-bottom: 8px;
  color: var(--ep-muted);
  line-height: 1.55;
}

.ep-delivery-info-card li:last-child {
  margin-bottom: 0;
}

/* PICKUP / STORE */
.ep-delivery-pickup {
  margin-top: 34px;
}

.ep-delivery-card-actions {
  margin-top: 18px;
}

/* FINAL CTA */
.ep-delivery-final-cta {
  margin-top: 36px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(32,156,99,0.16), rgba(32,156,99,0) 30%),
    linear-gradient(135deg, #ffffff 0%, #f5edff 100%);
  border: 1px solid var(--ep-border);
  box-shadow: var(--ep-shadow);
}

.ep-delivery-final-cta p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ep-delivery-final-cta .ep-delivery-hero__actions {
  justify-content: center;
  margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .ep-delivery-hero,
  .ep-delivery-grid--three,
  .ep-delivery-grid--two,
  .ep-delivery-price-card {
    grid-template-columns: 1fr;
  }

  .ep-delivery-hero__card {
    min-height: auto;
  }

  .ep-delivery-desktop-only {
    display: none !important;
  }

  .ep-delivery-mobile-only {
    display: block !important;
  }

  .ep-delivery-price-box {
    min-height: 130px;
  }
}

@media (max-width: 600px) {
  .ep-delivery-page {
    padding: 18px 10px 38px;
  }

  .ep-delivery-hero {
    padding: 22px;
    border-radius: 26px;
  }

  .ep-delivery-page h1 {
    font-size: 2.15rem;
  }

  .ep-delivery-page h2 {
    font-size: 1.7rem;
  }

  .ep-delivery-page h3 {
    font-size: 1.28rem;
  }

  .ep-delivery-page p {
    font-size: 1rem;
  }

  .ep-delivery-hero__lead {
    font-size: 1rem !important;
    line-height: 1.58 !important;
  }

  .ep-delivery-hero__card {
    display: none;
  }

  .ep-delivery-hero__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 18px 0 20px;
  }

  .ep-delivery-hero__badges span {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 10px;
    font-size: 0.82rem;
    line-height: 1.2;
    border-radius: 18px;
  }

  .ep-delivery-hero__actions,
  .ep-delivery-card-actions {
    flex-direction: column;
  }

  .ep-delivery-btn {
    width: 100%;
  }

  .ep-delivery-card {
    padding: 20px;
    border-radius: 24px;
  }

  .ep-delivery-list--columns {
    columns: 1;
  }

  .ep-delivery-mini-grid {
    grid-template-columns: 1fr;
  }

  .ep-delivery-conditions {
    padding: 20px;
    border-radius: 24px;
  }

  .ep-delivery-info-card {
    padding: 18px;
  }

  .ep-delivery-price-card {
    padding: 24px;
    border-radius: 26px;
  }

  .ep-delivery-price-card h2 {
    font-size: 1.72rem;
  }

  .ep-delivery-price-box {
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .ep-delivery-price-box strong {
    font-size: 2rem;
  }

  .ep-delivery-final-cta {
    border-radius: 26px;
  }
}

@media (max-width: 390px) {
  .ep-delivery-hero__badges {
    grid-template-columns: 1fr;
  }
}
