
:where(a,button,input,textarea,select,summary):focus-visible{
  outline:3px solid #664771;
  outline-offset:3px;
}

/* Header */
.ipp-header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid #E6E7E8;
  box-shadow:0 2px 10px rgba(43,37,48,.035);
}
.admin-bar .ipp-header{top:32px}
.ipp-header .wp-block-site-logo img{
  width:auto;
  max-height:54px;
}
.ipp-header .wp-block-navigation-item__content{color:#2B2530}
.ipp-header .wp-block-navigation-item__content:hover{color:#664771}
.ipp-header .wp-block-button__link{
  white-space:nowrap;
  padding:12px 18px;
}

/* Shared visual system */
.ipp-section{scroll-margin-top:96px}
.ipp-kicker{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:14px;
  font-weight:700;
}
.ipp-card,
.ipp-service-card,
.ipp-trust-card,
.ipp-step-card{
  height:100%;
  box-sizing:border-box;
}
.ipp-card,
.ipp-service-card{
  border:1px solid #E6E7E8;
  border-radius:16px;
  background:#fff;
}
.ipp-service-card{
  padding:28px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.ipp-service-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(43,37,48,.07);
}
.ipp-step-card{
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-step-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:999px;
  background:#EFE8F1;
  color:#664771;
  font-weight:700;
  margin-bottom:14px;
}
.ipp-trust-card{
  padding:26px 22px;
  border:1px solid #E6E7E8;
  border-radius:16px;
  background:#fff;
}
.ipp-trust-mark{
  display:inline-block;
  width:34px;
  height:4px;
  border-radius:999px;
  background:#664771;
  margin-bottom:14px;
}
.ipp-home-hero-image img,
.ipp-feature-image img,
.ipp-accompaniment-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:18px;
}
.ipp-gallery-image img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:16px;
}
.ipp-memory-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:18px;
}
.ipp-faq details{
  border-bottom:1px solid #E6E7E8;
  padding:18px 0;
}
.ipp-faq summary{
  font-size:18px;
  font-weight:600;
  cursor:pointer;
}
.ipp-map-frame{
  border:0;
  width:100%;
  min-height:340px;
  border-radius:18px;
  display:block;
}
.wp-block-button__link{transition:opacity .2s ease, transform .2s ease}
.wp-block-button__link:hover{opacity:.92}

/* Footer */
.ipp-footer a{
  color:#fff !important;
  text-decoration:underline;
  text-underline-offset:3px;
}
.ipp-footer .wp-block-separator{opacity:.35}

/* Mobile persistent actions */
.ipp-mobile-actions{display:none}

@media (max-width:1000px){
  .ipp-header .wp-block-navigation{font-size:15px}
  .ipp-header .wp-block-site-logo img{max-height:48px}
}
@media (max-width:782px){
  .admin-bar .ipp-header{top:46px}
  .ipp-header .wp-block-buttons{display:none}
  .ipp-header .wp-block-site-logo img{max-height:44px}
  .ipp-mobile-actions{
    display:flex !important;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:999;
    gap:0 !important;
    background:#fff;
    border-top:1px solid #E6E7E8;
    box-shadow:0 -6px 20px rgba(43,37,48,.09);
  }
  .ipp-mobile-actions > .wp-block-group{
    width:100%;
    gap:0 !important;
  }
  .ipp-mobile-actions .wp-block-button{
    width:50%;
    margin:0;
  }
  .ipp-mobile-actions .wp-block-button__link{
    width:100%;
    border-radius:0;
    padding:15px 10px;
    text-align:center;
  }
  .ipp-mobile-actions .ipp-call .wp-block-button__link{
    background:#fff;
    color:#664771;
    border-top:0;
  }
  body{padding-bottom:54px}
  .ipp-home-hero{padding-top:48px !important;padding-bottom:48px !important}
  .ipp-section{padding-top:64px !important;padding-bottom:64px !important}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important
  }
}


/* ===== Iris Home v0.4.1 polish ===== */
.ipp-header .wp-block-site-logo{
  flex:0 0 auto;
}
.ipp-header .wp-block-site-logo img{
  width:200px !important;
  max-width:200px !important;
  max-height:64px !important;
  object-fit:contain;
}

.ipp-hero-facts{
  margin-top:24px;
  margin-bottom:26px;
  gap:18px;
}
.ipp-hero-facts p{
  font-size:16px;
  line-height:1.4;
  margin:0;
}
.ipp-hero-facts span{
  color:#606062;
  font-size:14px;
}

.ipp-service-card{
  min-height:190px;
  display:flex;
  flex-direction:column;
}
.ipp-service-card > :last-child{
  margin-top:auto;
}

.ipp-step-card{
  min-height:210px;
}
.ipp-step-number{
  width:48px;
  height:48px;
  font-size:15px;
}

.ipp-trust-card{
  min-height:205px;
}
.ipp-trust-card h3{
  font-size:20px !important;
  line-height:1.15;
}
.ipp-trust-card p{
  font-size:16px;
}

.ipp-faq{
  max-width:980px;
}
.ipp-faq summary{
  font-size:19px;
  line-height:1.35;
}
.ipp-faq details p{
  font-size:17px;
  line-height:1.65;
}

.ipp-footer .wp-block-columns{
  gap:42px;
}
.ipp-footer p,
.ipp-footer li,
.ipp-footer a{
  font-size:16px;
  line-height:1.55;
}
.ipp-footer h4{
  margin-bottom:12px;
}

@media (max-width:1000px){
  .ipp-header .wp-block-site-logo img{
    width:170px !important;
    max-width:170px !important;
    max-height:56px !important;
  }
}

@media (max-width:782px){
  .ipp-header .wp-block-site-logo img{
    width:150px !important;
    max-width:150px !important;
    max-height:50px !important;
  }
  .ipp-service-card,
  .ipp-step-card,
  .ipp-trust-card{
    min-height:0;
  }
  .ipp-hero-facts{
    gap:8px;
  }
  .ipp-hero-facts p{
    font-size:16px;
  }
}


/* ===== Iris iconography polish v0.4.2.1 ===== */
/* Keep icon sizing in the theme so Home keeps its design after build plugins are removed. */
.ipp-icon-card,
.ipp-icon-step,
.ipp-icon-trust,
.ipp-icon-inline{
  margin:0 0 14px 0 !important;
  line-height:0;
}

.ipp-icon-card img{
  width:56px !important;
  height:56px !important;
  max-width:56px !important;
  object-fit:contain;
}

.ipp-icon-step img{
  width:44px !important;
  height:44px !important;
  max-width:44px !important;
  object-fit:contain;
}

.ipp-icon-trust img{
  width:46px !important;
  height:46px !important;
  max-width:46px !important;
  object-fit:contain;
}

.ipp-icon-inline img{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  object-fit:contain;
}

/* The need cards and service cards read better when the icon has a little breathing room. */
.ipp-service-card .ipp-icon-card{
  align-self:flex-start;
  margin-bottom:16px !important;
}

.ipp-step-card .ipp-icon-step{
  margin-bottom:10px !important;
}

.ipp-trust-card .ipp-icon-trust{
  margin-bottom:12px !important;
}

/* Avoid oversized icons on narrow phones while retaining visibility. */
@media (max-width:782px){
  .ipp-icon-card img{
    width:48px !important;
    height:48px !important;
    max-width:48px !important;
  }
  .ipp-icon-step img,
  .ipp-icon-trust img,
  .ipp-icon-inline img{
    width:40px !important;
    height:40px !important;
    max-width:40px !important;
  }
}


/* ===== Home v0.4.3 icon system ===== */
/* Icons remain only where they materially improve scanning:
   immediate need cards + trust principles. */

.ipp-icon-card{
  width:72px !important;
  height:72px !important;
  margin:0 0 18px 0 !important;
  line-height:0;
  flex:0 0 auto;
}
.ipp-icon-card img{
  width:72px !important;
  height:72px !important;
  max-width:none !important;
  object-fit:contain;
  display:block;
}

.ipp-icon-trust{
  width:60px !important;
  height:60px !important;
  margin:0 0 16px 0 !important;
  line-height:0;
}
.ipp-icon-trust img{
  width:60px !important;
  height:60px !important;
  max-width:none !important;
  object-fit:contain;
  display:block;
}

/* Step cards in v0.4.3 use the number as the visual anchor, not another icon. */
.ipp-step-card .ipp-icon-step{
  display:none !important;
}

/* Service cards no longer repeat the need-card iconography. */
.ipp-service-card > .ipp-icon-card{
  display:none !important;
}

/* Editorial sections return to image + heading without repeated icon marks. */
.ipp-icon-inline{
  display:none !important;
}

@media (max-width:782px){
  .ipp-icon-card{
    width:60px !important;
    height:60px !important;
    margin-bottom:14px !important;
  }
  .ipp-icon-card img{
    width:60px !important;
    height:60px !important;
  }
  .ipp-icon-trust{
    width:52px !important;
    height:52px !important;
    margin-bottom:12px !important;
  }
  .ipp-icon-trust img{
    width:52px !important;
    height:52px !important;
  }
}


/* ===== Home v0.4.4 icon readability patch ===== */
/* Need cards: make icons clearly visible and remove the accidental global hide. */
.ipp-service-card > .ipp-icon-card{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:66px !important;
  height:66px !important;
  margin:0 0 18px 0 !important;
  padding:11px;
  box-sizing:border-box;
  border-radius:16px;
  background:#F3EDF5;
  flex:0 0 66px;
}

.ipp-service-card > .ipp-icon-card img{
  width:44px !important;
  height:44px !important;
  max-width:44px !important;
  object-fit:contain;
  display:block;
}

/* Trust principles: stronger visual cue with a soft background. */
.ipp-trust-card .ipp-icon-trust{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:58px !important;
  height:58px !important;
  margin:0 0 16px 0 !important;
  padding:10px;
  box-sizing:border-box;
  border-radius:15px;
  background:#F3EDF5;
}

.ipp-trust-card .ipp-icon-trust img{
  width:38px !important;
  height:38px !important;
  max-width:38px !important;
  object-fit:contain;
  display:block;
}

/* The icon now replaces the small decorative dash in trust cards. */
.ipp-trust-card .ipp-trust-mark{
  display:none !important;
}

/* Steps remain number-led and editorial blocks stay clean. */
.ipp-step-card .ipp-icon-step,
.ipp-icon-inline{
  display:none !important;
}

@media (max-width:782px){
  .ipp-service-card > .ipp-icon-card{
    width:60px !important;
    height:60px !important;
    flex-basis:60px;
    padding:10px;
  }
  .ipp-service-card > .ipp-icon-card img{
    width:40px !important;
    height:40px !important;
    max-width:40px !important;
  }
  .ipp-trust-card .ipp-icon-trust{
    width:54px !important;
    height:54px !important;
  }
  .ipp-trust-card .ipp-icon-trust img{
    width:35px !important;
    height:35px !important;
    max-width:35px !important;
  }
}


/* ===== Service pages ===== */
.ipp-service-hero{
  overflow:hidden;
}
.ipp-service-hero .wp-block-columns{
  gap:56px;
}
.ipp-service-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:20px;
}
.ipp-service-eyebrow{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
  font-size:14px;
  color:#664771;
}
.ipp-service-trust-row{
  gap:18px;
  margin-top:26px;
  margin-bottom:26px;
}
.ipp-service-trust-row p{
  margin:0;
  font-size:15px;
  line-height:1.45;
}
.ipp-service-trust-row strong{
  display:block;
  font-size:16px;
  color:#2B2530;
}
.ipp-service-icon-box{
  display:flex;
  align-items:center;
  justify-content:center;
  width:68px;
  height:68px;
  padding:12px;
  border-radius:18px;
  background:#F3EDF5;
  box-sizing:border-box;
  margin-bottom:16px;
}
.ipp-service-icon-box img{
  width:44px!important;
  height:44px!important;
  max-width:44px!important;
  object-fit:contain;
}
.ipp-service-info-card{
  height:100%;
  box-sizing:border-box;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
}
.ipp-service-info-card h3{
  margin-top:0;
}
.ipp-process-step{
  height:100%;
  padding:26px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-process-step .ipp-step-number{
  margin-bottom:16px;
}
.ipp-service-feature-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:18px;
}
.ipp-price-table-wrap{
  overflow-x:auto;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
}
.ipp-price-table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
.ipp-price-table th,
.ipp-price-table td{
  padding:15px 18px;
  border-bottom:1px solid #E6E7E8;
  text-align:left;
  vertical-align:middle;
}
.ipp-price-table th{
  background:#F7F5F7;
  font-weight:700;
}
.ipp-price-table tr:last-child td{
  border-bottom:0;
}
.ipp-price-table .ipp-price-promo{
  color:#664771;
  font-weight:700;
}
.ipp-service-faq details{
  padding:18px 0;
  border-bottom:1px solid #E6E7E8;
}
.ipp-service-faq summary{
  cursor:pointer;
  font-size:18px;
  font-weight:600;
}
.ipp-service-faq details p{
  font-size:17px;
  line-height:1.65;
}
.ipp-service-note{
  padding:18px 20px;
  border-left:4px solid #664771;
  background:#F7F5F7;
  border-radius:0 12px 12px 0;
}
@media(max-width:782px){
  .ipp-service-hero .wp-block-columns{
    gap:28px;
  }
  .ipp-service-icon-box{
    width:60px;
    height:60px;
    border-radius:16px;
  }
  .ipp-service-icon-box img{
    width:38px!important;
    height:38px!important;
    max-width:38px!important;
  }
  .ipp-service-info-card,
  .ipp-process-step{
    padding:22px;
  }
}


/* ===== Cremation v0.1.1 polish ===== */
.ipp-service-trust-row{
  gap:24px;
}
.ipp-service-trust-row strong{
  margin-bottom:3px;
}

.ipp-service-info-card .ipp-service-icon-box{
  width:72px;
  height:72px;
  margin-bottom:18px;
}
.ipp-service-info-card .ipp-service-icon-box img{
  width:46px!important;
  height:46px!important;
  max-width:46px!important;
}

.ipp-process-step{
  min-height:220px;
  padding:30px;
}
.ipp-process-step p{
  font-size:17px;
  line-height:1.6;
}

.ipp-price-table th,
.ipp-price-table td{
  font-size:16px;
  line-height:1.45;
}

.ipp-service-faq summary{
  font-size:19px;
}

@media(max-width:782px){
  .ipp-process-step{
    min-height:0;
    padding:24px;
  }
  .ipp-price-table th,
  .ipp-price-table td{
    font-size:15px;
  }
}


/* ===== Home FAQ centering fix v0.2.10 ===== */
.ipp-faq{
  width:min(900px, calc(100% - 48px)) !important;
  max-width:900px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  box-sizing:border-box;
}

.ipp-faq > .wp-block-heading{
  text-align:center !important;
}

.ipp-faq details{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}

.ipp-faq summary,
.ipp-faq details p{
  text-align:left;
}

.ipp-faq > p:last-child{
  text-align:center !important;
}

@media(max-width:782px){
  .ipp-faq{
    width:calc(100% - 32px) !important;
  }
}


/* ===== Euthanasia service page ===== */
.ipp-vet-hero-visual{
  min-height:390px;
  border:1px solid #E6E7E8;
  border-radius:24px;
  background:linear-gradient(145deg,#F7F5F7 0%,#EFE8F1 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px;
  box-sizing:border-box;
  text-align:center;
}
.ipp-vet-hero-visual .ipp-vet-hero-icon{
  margin:0 auto 18px auto !important;
}
.ipp-vet-hero-visual .ipp-vet-hero-icon img{
  width:118px !important;
  height:118px !important;
  max-width:118px !important;
  object-fit:contain;
}
.ipp-vet-hero-visual p{
  max-width:360px;
  margin-left:auto;
  margin-right:auto;
}
.ipp-human-handoff-note{
  border:1px solid #D9CCDD;
  border-left:5px solid #664771;
  border-radius:0 16px 16px 0;
  background:#FAF8FA;
  padding:22px 24px;
}
.ipp-human-handoff-note strong{
  color:#2B2530;
}
.ipp-vet-principle-card{
  height:100%;
  box-sizing:border-box;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
}
.ipp-vet-principle-card .ipp-service-icon-box{
  margin-bottom:16px;
}
.ipp-vet-principle-card p{
  font-size:17px;
  line-height:1.6;
}
.ipp-vet-process-step{
  height:100%;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-vet-process-step p{
  font-size:17px;
  line-height:1.6;
}
.ipp-vet-emergency-note{
  background:#FFF;
  border:1px solid #E6E7E8;
  border-radius:16px;
  padding:24px;
}
.ipp-vet-emergency-note h3{
  margin-top:0;
}
@media(max-width:782px){
  .ipp-vet-hero-visual{
    min-height:300px;
    padding:30px 22px;
  }
  .ipp-vet-hero-visual .ipp-vet-hero-icon img{
    width:92px !important;
    height:92px !important;
    max-width:92px !important;
  }
  .ipp-vet-principle-card,
  .ipp-vet-process-step{
    padding:22px;
  }
}


/* ===== Euthanasia v0.1.1 hero/layout fix ===== */
.ipp-vet-hero-visual{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  text-align:center !important;
}

.ipp-vet-hero-visual .wp-block-heading{
  max-width:360px;
  margin-left:auto !important;
  margin-right:auto !important;
  margin-top:0 !important;
  margin-bottom:4px !important;
  line-height:1.16 !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}

.ipp-vet-hero-visual p{
  max-width:390px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  margin-top:0 !important;
  line-height:1.55 !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  hyphens:none !important;
}

.ipp-vet-hero-visual .ipp-vet-hero-icon{
  margin:0 auto 10px auto !important;
  flex:0 0 auto;
}

@media(max-width:782px){
  .ipp-vet-hero-visual .wp-block-heading{
    max-width:320px;
  }
  .ipp-vet-hero-visual p{
    max-width:340px !important;
  }
}

/* ===== Ceremony / farewell service page ===== */
.ipp-ceremony-hero-image img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:20px}
.ipp-ceremony-mode-card{height:100%;padding:28px;border:1px solid #E6E7E8;border-radius:18px;background:#fff;box-sizing:border-box}
.ipp-ceremony-mode-card p{font-size:17px;line-height:1.6}
.ipp-ceremony-space img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:18px}
.ipp-ceremony-ritual{padding:24px;border-radius:16px;background:#F7F5F7;border:1px solid #E6E7E8}
.ipp-ceremony-ritual p{font-size:17px;line-height:1.65}
.ipp-ceremony-process{min-height:215px;padding:28px;border-top:3px solid #664771;background:#fff}
.ipp-ceremony-process p{font-size:17px;line-height:1.6}
@media(max-width:782px){.ipp-ceremony-mode-card,.ipp-ceremony-process{padding:22px;min-height:0}}


/* ===== Ceremony v0.1.1 visual polish ===== */

/* Centra ópticamente el bloque de sala + texto */
.ipp-ceremony-memory{
  width:min(1080px, calc(100% - 48px)) !important;
  max-width:1080px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.ipp-ceremony-memory > .wp-block-columns{
  width:100%;
  margin-left:auto !important;
  margin-right:auto !important;
  align-items:center !important;
  gap:42px !important;
}

.ipp-ceremony-memory > .wp-block-columns > .wp-block-column:first-child{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.ipp-ceremony-memory .ipp-ceremony-space{
  width:100% !important;
  max-width:500px !important;
  margin:0 auto !important;
}

.ipp-ceremony-memory .ipp-ceremony-space img{
  display:block !important;
  width:100% !important;
  margin:0 auto !important;
  object-position:center center !important;
}

/* Segunda fila del proceso: centra 04 y 05 */
.ipp-ceremony-process-row-last{
  max-width:790px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

.ipp-ceremony-process .ipp-step-number{
  display:inline-flex;
  margin-bottom:18px;
}

@media(max-width:782px){
  .ipp-ceremony-memory{
    width:calc(100% - 32px) !important;
  }
  .ipp-ceremony-memory > .wp-block-columns{
    gap:26px !important;
  }
  .ipp-ceremony-memory .ipp-ceremony-space{
    max-width:none !important;
  }
  .ipp-ceremony-process-row-last{
    max-width:none !important;
  }
}


/* ===== Ceremony v0.1.1 — vertical centering hotfix ===== */
/* ipp-ceremony-memory is applied directly to wp-block-columns */
.wp-block-columns.ipp-ceremony-memory{
  width:min(1080px, calc(100% - 48px)) !important;
  max-width:1080px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  align-items:center !important;
  column-gap:42px !important;
}

.wp-block-columns.ipp-ceremony-memory > .wp-block-column{
  align-self:center !important;
}

.wp-block-columns.ipp-ceremony-memory > .wp-block-column:first-child{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.wp-block-columns.ipp-ceremony-memory > .wp-block-column:first-child .ipp-ceremony-space{
  width:100% !important;
  max-width:500px !important;
  margin:auto !important;
}

.wp-block-columns.ipp-ceremony-memory > .wp-block-column:first-child .ipp-ceremony-space img{
  display:block !important;
  width:100% !important;
  margin:0 auto !important;
  object-position:center center !important;
}

@media(max-width:782px){
  .wp-block-columns.ipp-ceremony-memory{
    width:calc(100% - 32px) !important;
    row-gap:26px !important;
  }
}


/* ===== Transfer / recollection service page ===== */
.ipp-transfer-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}
.ipp-transfer-card{
  height:100%;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-transfer-card p{
  font-size:17px;
  line-height:1.6;
}
.ipp-transfer-process{
  min-height:220px;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-transfer-process p{
  font-size:17px;
  line-height:1.6;
}
.ipp-transfer-care{
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  padding:28px;
}
.ipp-transfer-care p{
  font-size:17px;
  line-height:1.65;
}
.ipp-transfer-live-note{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
.ipp-transfer-quote{
  max-width:860px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
@media(max-width:782px){
  .ipp-transfer-card,
  .ipp-transfer-process,
  .ipp-transfer-care{
    padding:22px;
    min-height:0;
  }
}


/* ===== Protección Preventiva service page ===== */
.ipp-preventive-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}
.ipp-preventive-card{
  height:100%;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-preventive-card p{
  font-size:17px;
  line-height:1.6;
}
.ipp-preventive-process{
  min-height:220px;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-preventive-process p{
  font-size:17px;
  line-height:1.6;
}
.ipp-preventive-quote{
  max-width:920px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.ipp-preventive-note{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
.ipp-preventive-activation{
  padding:30px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
}
.ipp-preventive-activation p{
  font-size:17px;
  line-height:1.65;
}
@media(max-width:782px){
  .ipp-preventive-card,
  .ipp-preventive-process,
  .ipp-preventive-activation{
    padding:22px;
    min-height:0;
  }
}

/* ===== Protección Preventiva hero centering fix v0.2.18 ===== */
.page-template-page-proteccion-preventiva .ipp-service-hero .wp-block-columns.alignwide{
  align-items:center;
}
.page-template-page-proteccion-preventiva .ipp-service-hero .wp-block-columns.alignwide > .wp-block-column:last-child{
  display:flex;
  align-items:center;
}
.page-template-page-proteccion-preventiva .ipp-preventive-hero-image{
  width:100%;
  margin-top:auto;
  margin-bottom:auto;
}


/* ===== Header desktop no-wrap fix v0.2.19 ===== */
.ipp-header-inner{
  flex-wrap:nowrap !important;
  gap:24px;
}

.ipp-header-inner > .wp-block-group:last-child{
  flex-wrap:nowrap !important;
  flex:1 1 auto;
  min-width:0;
  gap:18px;
}

.ipp-header .wp-block-navigation{
  flex:1 1 auto;
  min-width:0;
}

.ipp-header .wp-block-navigation__container{
  flex-wrap:nowrap !important;
  column-gap:18px !important;
  row-gap:0 !important;
}

.ipp-header .wp-block-navigation-item{
  white-space:nowrap;
}

@media (max-width:1180px) and (min-width:783px){
  .ipp-header .wp-block-site-logo img{
    width:170px !important;
    max-width:170px !important;
    max-height:56px !important;
  }
  .ipp-header .wp-block-navigation{
    font-size:15px !important;
  }
  .ipp-header .wp-block-navigation__container{
    column-gap:14px !important;
  }
  .ipp-header-inner > .wp-block-group:last-child{
    gap:14px !important;
  }
  .ipp-header .wp-block-button__link{
    padding:10px 14px !important;
  }
}

@media (max-width:980px) and (min-width:783px){
  .ipp-header .wp-block-site-logo img{
    width:150px !important;
    max-width:150px !important;
  }
  .ipp-header .wp-block-navigation{
    font-size:14px !important;
  }
  .ipp-header .wp-block-navigation__container{
    column-gap:10px !important;
  }
  .ipp-header .wp-block-button__link{
    padding:9px 12px !important;
    font-size:14px !important;
  }
}


/* ===== Cómo funciona page ===== */
.ipp-how-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}
.ipp-how-path-card{
  height:100%;
  padding:26px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-how-path-card p{
  font-size:16px;
  line-height:1.6;
}
.ipp-how-process{
  min-height:220px;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-how-process p{
  font-size:17px;
  line-height:1.6;
}
.ipp-how-principle{
  padding:26px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  height:100%;
  box-sizing:border-box;
}
.ipp-how-principle p{
  font-size:17px;
  line-height:1.6;
}
.ipp-how-note{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
@media(max-width:782px){
  .ipp-how-path-card,
  .ipp-how-process,
  .ipp-how-principle{
    padding:22px;
    min-height:0;
  }
}


/* ===== Guía: qué hacer cuando fallece mi mascota ===== */
.ipp-guide-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}
.ipp-guide-step{
  height:100%;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-guide-step p{
  font-size:17px;
  line-height:1.6;
}
.ipp-guide-calm{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
.ipp-guide-options{
  height:100%;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-guide-options p{
  font-size:17px;
  line-height:1.6;
}
.ipp-guide-dont{
  padding:26px;
  border-radius:18px;
  background:#fff;
  border:1px solid #E6E7E8;
}
.ipp-guide-dont p{
  font-size:17px;
  line-height:1.65;
}
@media(max-width:782px){
  .ipp-guide-step,
  .ipp-guide-options,
  .ipp-guide-dont{
    padding:22px;
  }
}


/* ===== Guide loss v0.1.2: richer caution section ===== */
.ipp-guide-cautions{
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}
.ipp-guide-cautions-intro{
  max-width:760px;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ipp-guide-caution-card{
  height:100%;
  box-sizing:border-box;
  padding:28px;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
  position:relative;
  overflow:hidden;
}
.ipp-guide-caution-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:#664771;
}
.ipp-guide-caution-kicker{
  display:inline-block;
  margin:0 0 14px 0 !important;
  padding:6px 10px;
  border-radius:999px;
  background:#F3EDF5;
  color:#664771;
  font-size:12px !important;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.ipp-guide-caution-card h3{
  margin-top:0 !important;
  margin-bottom:10px !important;
}
.ipp-guide-caution-card p:last-child{
  margin-bottom:0 !important;
  font-size:17px;
  line-height:1.65;
}
.ipp-guide-caution-card.is-emphasis{
  background:#FAF8FA;
  border-color:#D9CCDD;
}
@media(max-width:782px){
  .ipp-guide-caution-card{
    padding:22px;
  }
}


/* ===== Acompañamiento tanatológico ===== */
.ipp-grief-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}
.ipp-grief-card{
  height:100%;
  padding:28px;
  border:1px solid #E6E7E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-grief-card p{
  font-size:17px;
  line-height:1.65;
}
.ipp-grief-process{
  min-height:215px;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
}
.ipp-grief-process p{
  font-size:17px;
  line-height:1.6;
}
.ipp-grief-when{
  height:100%;
  padding:26px;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
}
.ipp-grief-when p{
  font-size:17px;
  line-height:1.6;
}
.ipp-grief-scope{
  padding:28px;
  border-radius:18px;
  border:1px solid #E6E7E8;
  background:#fff;
}
.ipp-grief-scope.is-soft{
  background:#FAF8FA;
  border-color:#D9CCDD;
}
.ipp-grief-scope p{
  font-size:17px;
  line-height:1.65;
}
.ipp-grief-note{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
@media(max-width:782px){
  .ipp-grief-card,
  .ipp-grief-process,
  .ipp-grief-when,
  .ipp-grief-scope{
    padding:22px;
    min-height:0;
  }
}


/* ===== Preguntas frecuentes ===== */
.ipp-faq-hero-visual{
  min-height:360px;
  border:1px solid #E6E0E8;
  border-radius:24px;
  background:linear-gradient(145deg,#F7F5F7 0%,#EFE8F1 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px;
  box-sizing:border-box;
}
.ipp-faq-hero-visual .ipp-service-icon-box{
  margin:0 auto 18px auto !important;
}
.ipp-faq-hero-visual p{
  max-width:380px;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ipp-faq-section{
  max-width:940px;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ipp-faq-section-heading{
  margin-bottom:22px !important;
}
.ipp-faq-section details{
  border-bottom:1px solid #E6E7E8;
  padding:0;
}
.ipp-faq-section details:first-of-type{
  border-top:1px solid #E6E7E8;
}
.ipp-faq-section summary{
  cursor:pointer;
  font-weight:700;
  font-size:18px;
  line-height:1.4;
  padding:19px 0;
}
.ipp-faq-section details p{
  margin-top:0;
  padding:0 0 18px 0;
  font-size:17px;
  line-height:1.65;
}
.ipp-faq-jump-card{
  height:100%;
  padding:24px;
  border:1px solid #E6E7E8;
  border-radius:16px;
  background:#fff;
  box-sizing:border-box;
}
.ipp-faq-jump-card p{
  margin-bottom:0;
}
.ipp-faq-help-note{
  border-left:5px solid #664771;
  background:#FAF8FA;
  border-radius:0 16px 16px 0;
  padding:24px 26px;
}
@media(max-width:782px){
  .ipp-faq-hero-visual{
    min-height:280px;
    padding:28px 22px;
  }
  .ipp-faq-section summary{
    font-size:17px;
  }
}


/* ===== Editorial image integration pack v0.2.25 ===== */

/* FAQ: lighter secondary panel in hero */
.ipp-faq-hero-visual{
  min-height:250px !important;
  padding:34px 38px !important;
}
.ipp-faq-hero-visual .wp-block-heading{
  max-width:330px;
  margin:0 auto 8px auto !important;
  line-height:1.2 !important;
}
.ipp-faq-hero-visual p{
  max-width:310px !important;
  margin:0 auto !important;
  line-height:1.55 !important;
}
.ipp-faq-hero-visual .ipp-service-icon-box{
  margin-bottom:14px !important;
}

/* Eutanasia: editorial image replaces text-heavy graphic card */
.ipp-euthanasia-editorial-image{
  width:100%;
  margin:0 auto !important;
}
.ipp-euthanasia-editorial-image img{
  display:block;
  width:100%;
  aspect-ratio:3/2;
  object-fit:cover;
  object-position:center;
  border-radius:20px;
}

/* Keep newly integrated hero images optically centered */
.ipp-transfer-hero-image,
.ipp-guide-hero-image{
  width:100%;
  margin-left:auto !important;
  margin-right:auto !important;
}
.ipp-transfer-hero-image img,
.ipp-guide-hero-image img{
  display:block;
  margin:0 auto !important;
}

@media(max-width:782px){
  .ipp-faq-hero-visual{
    min-height:210px !important;
    padding:28px 22px !important;
  }
  .ipp-euthanasia-editorial-image img{
    aspect-ratio:4/3;
  }
}


/* =========================================================
   Unified image hero system v0.2.26
   Image as background + readable text card
   Applies to image-based service/editorial heroes.
   FAQ is explicitly excluded because it uses a visual panel.
   ========================================================= */

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)){
  padding-top:52px !important;
  padding-bottom:52px !important;
  padding-left:24px !important;
  padding-right:24px !important;
  overflow:visible !important;
}

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide{
  position:relative;
  isolation:isolate;
  width:min(1240px,100%) !important;
  max-width:1240px !important;
  min-height:650px;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:54px;
  box-sizing:border-box;
  overflow:hidden;
  border-radius:28px;
  align-items:center !important;
  gap:0 !important;
  background:#EDE9EE;
  box-shadow:0 16px 42px rgba(43,37,48,.08);
}

/* Background image column */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  flex-basis:auto !important;
  display:block !important;
}

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child > figure,
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child .wp-block-image{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  margin:0 !important;
}

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  min-height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:0 !important;
}

/* Gentle contrast layer; card remains the main readability device */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(43,37,48,.13) 0%,
      rgba(43,37,48,.06) 42%,
      rgba(43,37,48,.02) 72%,
      rgba(43,37,48,0) 100%
    );
}

/* Text card */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
  position:relative !important;
  z-index:2 !important;
  flex-basis:auto !important;
  width:min(640px,58%) !important;
  max-width:640px !important;
  margin:0 !important;
  padding:38px 40px !important;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.68);
  border-radius:24px;
  background:rgba(255,255,255,.84);
  box-shadow:0 14px 38px rgba(43,37,48,.12);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}

/* Keep type compact enough for the card without changing global typography */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child h1{
  margin-top:8px;
  margin-bottom:18px;
  line-height:1.04;
}

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child .ipp-service-icon-box{
  margin-top:12px;
  margin-bottom:14px;
}

.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-buttons{
  margin-top:22px;
}

/* Page-level framing adjustments for portrait/content-sensitive images */
.page-template-page-eutanasia-mascotas-puebla .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  object-position:58% center !important;
}
.page-template-page-traslado-mascotas-puebla .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  object-position:62% center !important;
}
.page-template-page-que-hacer-cuando-fallece-mi-mascota .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  object-position:65% center !important;
}
.page-template-page-proteccion-preventiva .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  object-position:66% center !important;
}

/* Tablet */
@media (max-width:1080px) and (min-width:783px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide{
    min-height:610px;
    padding:38px;
  }
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:min(610px,65%) !important;
    padding:32px 34px !important;
  }
}

/* Mobile: keep the image as the hero background, expose it above the text card */
@media (max-width:782px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)){
    padding-top:20px !important;
    padding-bottom:20px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide{
    min-height:0 !important;
    padding:220px 14px 14px 14px !important;
    border-radius:22px;
    display:block !important;
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide::after{
    background:
      linear-gradient(
        180deg,
        rgba(43,37,48,.01) 0%,
        rgba(43,37,48,.02) 28%,
        rgba(43,37,48,.08) 48%,
        rgba(43,37,48,.16) 100%
      );
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:100% !important;
    max-width:none !important;
    padding:26px 24px !important;
    border-radius:19px;
    background:rgba(255,255,255,.88);
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child h1{
    line-height:1.08;
  }
}


/* v0.2.28 refinements: clearer photo presence + tighter text card + transfer framing */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
  width:min(620px,50%) !important;
  max-width:620px !important;
  border:1px solid rgba(255,255,255,.54);
  background:rgba(255,255,255,.80);
}

.page-template-page-traslado-mascotas-puebla .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
  transform: scaleX(-1) !important;
  object-position: 56% center !important;
}

@media (max-width:1080px) and (min-width:783px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:min(590px,56%) !important;
    max-width:590px !important;
    background:rgba(255,255,255,.82);
  }
}

@media (max-width:782px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    background:rgba(255,255,255,.86);
  }
  .page-template-page-traslado-mascotas-puebla .ipp-service-hero > .wp-block-columns.alignwide > .wp-block-column:last-child img{
    object-position: 52% center !important;
  }
}


/* =========================================================
   Hero system hotfix v0.2.29
   Reliable selectors + visibly lighter card
   ========================================================= */

/* Make the desktop card visibly lighter and slightly narrower */
.ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
  width:min(590px,48%) !important;
  max-width:590px !important;
  background:rgba(255,255,255,.76) !important;
  border-color:rgba(255,255,255,.48) !important;
  -webkit-backdrop-filter:blur(5px) !important;
  backdrop-filter:blur(5px) !important;
}

/* Use the actual image classes instead of relying on body template classes */
.ipp-euthanasia-editorial-image img{
  object-position:58% center !important;
}

.ipp-transfer-hero-image img{
  transform:scaleX(-1) !important;
  object-position:center center !important;
}

.ipp-guide-hero-image img{
  object-position:65% center !important;
}

.ipp-preventive-hero-image img{
  object-position:66% center !important;
}

@media (max-width:1080px) and (min-width:783px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:min(570px,55%) !important;
    max-width:570px !important;
    background:rgba(255,255,255,.80) !important;
  }
}

@media (max-width:782px){
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:100% !important;
    max-width:none !important;
    background:rgba(255,255,255,.90) !important;
    -webkit-backdrop-filter:blur(5px) !important;
    backdrop-filter:blur(5px) !important;
  }
}


/* =========================================================
   Home hero carousel — v0.2.30
   Same system: full background image + readable text card
   Sequence handled by IPP Home Build v0.4.5
   ========================================================= */

.ipp-home-hero{
  padding-top:52px !important;
  padding-bottom:52px !important;
  padding-left:24px !important;
  padding-right:24px !important;
  overflow:visible !important;
}

.ipp-home-hero > .wp-block-columns.alignwide{
  position:relative;
  isolation:isolate;
  width:min(1240px,100%) !important;
  max-width:1240px !important;
  min-height:690px;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:54px;
  box-sizing:border-box;
  overflow:hidden;
  border-radius:28px;
  align-items:center !important;
  gap:0 !important;
  background:#EDE9EE;
  box-shadow:0 16px 42px rgba(43,37,48,.08);
}

/* The second column becomes the full hero background */
.ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:last-child{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:100% !important;
  margin:0 !important;
  padding:0 !important;
  flex-basis:auto !important;
  display:block !important;
}

.ipp-home-hero-slider,
.ipp-home-hero-slides{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.ipp-home-hero-slide{
  position:absolute;
  inset:0;
  margin:0 !important;
  opacity:0;
  visibility:hidden;
  transition:opacity 1s ease, visibility 1s ease;
  z-index:0;
}

.ipp-home-hero-slide.is-active{
  opacity:1;
  visibility:visible;
  z-index:1;
}

.ipp-home-hero-slide img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  min-height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:0 !important;
}

/* Individual framing */
.ipp-home-hero-slide.is-facilities img{
  object-position:center center !important;
}
.ipp-home-hero-slide.is-euthanasia img{
  object-position:58% center !important;
}
.ipp-home-hero-slide.is-transfer img{
  transform:scaleX(-1);
  object-position:center center !important;
}
.ipp-home-hero-slide.is-preventive img{
  object-position:64% center !important;
}

/* Gentle contrast over all images */
.ipp-home-hero > .wp-block-columns.alignwide::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      rgba(43,37,48,.10) 0%,
      rgba(43,37,48,.04) 44%,
      rgba(43,37,48,.01) 72%,
      rgba(43,37,48,0) 100%
    );
}

/* Home text card */
.ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child{
  position:relative !important;
  z-index:3 !important;
  flex-basis:auto !important;
  width:min(650px,52%) !important;
  max-width:650px !important;
  margin:0 !important;
  padding:38px 40px !important;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.52);
  border-radius:24px;
  background:rgba(255,255,255,.79);
  box-shadow:0 14px 38px rgba(43,37,48,.12);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}

.ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child h1{
  margin-top:8px;
  margin-bottom:18px;
  line-height:1.04;
}

.ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-buttons{
  margin-top:22px;
}

/* Minimal carousel indicators */
.ipp-home-hero-dots{
  position:absolute;
  z-index:4;
  right:28px;
  bottom:24px;
  display:flex;
  gap:8px;
  align-items:center;
}

.ipp-home-hero-dot{
  appearance:none;
  width:9px;
  height:9px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.62);
  box-shadow:0 1px 4px rgba(43,37,48,.18);
  cursor:pointer;
  transition:width .25s ease, background .25s ease;
}

.ipp-home-hero-dot.is-active{
  width:26px;
  background:#fff;
}

.ipp-home-hero-dot:focus-visible{
  outline:3px solid #664771;
  outline-offset:3px;
}

@media (max-width:1080px) and (min-width:783px){
  .ipp-home-hero > .wp-block-columns.alignwide{
    min-height:650px;
    padding:38px;
  }
  .ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:min(610px,58%) !important;
    max-width:610px !important;
    padding:32px 34px !important;
    background:rgba(255,255,255,.82);
  }
}

/* Mobile keeps a visible image area above the card */
@media (max-width:782px){
  .ipp-home-hero{
    padding-top:20px !important;
    padding-bottom:20px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .ipp-home-hero > .wp-block-columns.alignwide{
    min-height:0 !important;
    padding:235px 14px 14px 14px !important;
    border-radius:22px;
    display:block !important;
  }

  .ipp-home-hero > .wp-block-columns.alignwide::after{
    background:
      linear-gradient(
        180deg,
        rgba(43,37,48,.01) 0%,
        rgba(43,37,48,.02) 30%,
        rgba(43,37,48,.08) 52%,
        rgba(43,37,48,.16) 100%
      );
  }

  .ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child{
    width:100% !important;
    max-width:none !important;
    padding:26px 24px !important;
    border-radius:19px;
    background:rgba(255,255,255,.90);
  }

  .ipp-home-hero-dots{
    top:194px;
    right:28px;
    bottom:auto;
  }

  .ipp-home-hero-slide.is-euthanasia img{
    object-position:62% center !important;
  }
  .ipp-home-hero-slide.is-preventive img{
    object-position:68% center !important;
  }
}

@media (prefers-reduced-motion:reduce){
  .ipp-home-hero-slide{
    transition:none !important;
  }
}


/* =========================================================
   Responsive Home hero + mobile actions fix v0.2.31
   ========================================================= */

@media (max-width:782px){

  /* --- Home hero: image becomes a banner ABOVE the text card --- */
  .ipp-home-hero{
    padding:18px 14px 26px 14px !important;
  }

  .ipp-home-hero > .wp-block-columns.alignwide{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
    width:100% !important;
    max-width:none !important;
    min-height:0 !important;
    padding:0 !important;
    overflow:visible !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* Remove the desktop hero overlay on mobile */
  .ipp-home-hero > .wp-block-columns.alignwide::after{
    display:none !important;
    content:none !important;
  }

  /* Image/slideshow banner */
  .ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:last-child{
    order:1 !important;
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    max-width:none !important;
    height:210px !important;
    min-height:210px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    border-radius:22px !important;
    box-shadow:0 10px 26px rgba(43,37,48,.08);
  }

  .ipp-home-hero-slider,
  .ipp-home-hero-slides{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .ipp-home-hero-slide{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }

  .ipp-home-hero-slide img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  /* Mobile framing per slide */
  .ipp-home-hero-slide.is-facilities img{
    object-position:center 58% !important;
  }
  .ipp-home-hero-slide.is-euthanasia img{
    object-position:58% center !important;
  }
  .ipp-home-hero-slide.is-transfer img{
    transform:scaleX(-1) !important;
    object-position:center center !important;
  }
  .ipp-home-hero-slide.is-preventive img{
    object-position:64% center !important;
  }

  /* Dots remain inside the image banner */
  .ipp-home-hero-dots{
    top:auto !important;
    right:16px !important;
    bottom:14px !important;
    left:auto !important;
    z-index:5 !important;
  }

  /* Text card sits below the image, never over it */
  .ipp-home-hero > .wp-block-columns.alignwide > .wp-block-column:first-child{
    order:2 !important;
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:26px 24px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.97) !important;
    border:1px solid #E9E3EB !important;
    box-shadow:0 10px 26px rgba(43,37,48,.07) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  /* --- Persistent mobile CTA: centered side-by-side buttons --- */
  .ipp-mobile-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom)) 12px !important;
    gap:0 !important;
    background:rgba(255,255,255,.98) !important;
  }

  .ipp-mobile-actions > .wp-block-group{
    display:flex !important;
    width:min(460px,100%) !important;
    margin:0 auto !important;
    padding:0 !important;
    gap:0 !important;
  }

  .ipp-mobile-actions .wp-block-buttons{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:stretch !important;
    justify-content:center !important;
    width:100% !important;
    margin:0 !important;
    gap:10px !important;
  }

  .ipp-mobile-actions .wp-block-button{
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .ipp-mobile-actions .wp-block-button__link{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    min-height:46px !important;
    padding:11px 12px !important;
    border-radius:12px !important;
    box-sizing:border-box !important;
    text-align:center !important;
    font-weight:700 !important;
  }

  .ipp-mobile-actions .ipp-call .wp-block-button__link{
    border:1px solid #664771 !important;
    background:#fff !important;
    color:#664771 !important;
  }

  .ipp-mobile-actions .wp-block-button:not(.ipp-call) .wp-block-button__link{
    background:#664771 !important;
    color:#fff !important;
    border:1px solid #664771 !important;
  }

  body{
    padding-bottom:72px !important;
  }
}


/* =========================================================
   Responsive service hero standard v0.2.32
   On mobile/tablet-narrow: image banner ABOVE text card
   ========================================================= */

@media (max-width:782px){

  /* Applies to all photographic service/editorial heroes.
     FAQ remains excluded because it has its own informational panel. */
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)){
    padding:18px 14px 26px 14px !important;
    overflow:visible !important;
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
    width:100% !important;
    max-width:none !important;
    min-height:0 !important;
    padding:0 !important;
    overflow:visible !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* Remove desktop overlay */
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide::after{
    display:none !important;
    content:none !important;
  }

  /* Image column becomes a standalone banner */
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child{
    order:1 !important;
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    max-width:none !important;
    height:210px !important;
    min-height:210px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    border-radius:22px !important;
    box-shadow:0 10px 26px rgba(43,37,48,.08);
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child > figure,
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child .wp-block-image{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    margin:0 !important;
  }

  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:last-child img{
    width:100% !important;
    height:100% !important;
    min-height:100% !important;
    max-width:none !important;
    object-fit:cover !important;
    border-radius:0 !important;
  }

  /* Text card below the image */
  .ipp-service-hero:not(:has(.ipp-faq-hero-visual)) > .wp-block-columns.alignwide > .wp-block-column:first-child{
    order:2 !important;
    position:relative !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:26px 24px !important;
    border-radius:20px !important;
    background:rgba(255,255,255,.97) !important;
    border:1px solid #E9E3EB !important;
    box-shadow:0 10px 26px rgba(43,37,48,.07) !important;
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  /* Mobile framing by actual image class */
  .ipp-euthanasia-editorial-image img{
    object-position:58% center !important;
  }

  .ipp-transfer-hero-image img{
    transform:scaleX(-1) !important;
    object-position:center center !important;
  }

  .ipp-guide-hero-image img{
    object-position:62% center !important;
  }

  .ipp-preventive-hero-image img{
    object-position:64% center !important;
  }

  .ipp-ceremony-hero-image img{
    object-position:center center !important;
  }

  .ipp-grief-hero-image img{
    object-position:center center !important;
  }

  .ipp-how-hero-image img{
    object-position:center center !important;
  }

  .ipp-service-hero-image img{
    object-position:center center !important;
  }
}


/* =========================================================
   Memorial Iris — v0.2.33
   ========================================================= */
.ipp-memorial-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0}
.ipp-memorial-intro{max-width:850px;margin-left:auto!important;margin-right:auto!important}
.ipp-memorial-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.ipp-memorial-card{height:100%;padding:14px;border:1px solid #E6E0E8;border-radius:18px;background:#fff;box-sizing:border-box;box-shadow:0 8px 22px rgba(43,37,48,.05)}
.ipp-memorial-card figure{margin:0!important;width:100%;border-radius:13px;overflow:hidden;background:#F7F5F7}
.ipp-memorial-card img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#F7F5F7}
.ipp-memorial-card h3{margin:14px 4px 4px 4px!important;font-size:19px!important;line-height:1.25;text-align:center}
.ipp-memorial-process-card{height:100%;padding:28px;border-top:3px solid #664771;background:#fff;box-sizing:border-box}
.ipp-memorial-process-card p{font-size:17px;line-height:1.6}
.ipp-memorial-submit{padding:34px;border:1px solid #E2D9E5;border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(43,37,48,.05)}
.ipp-memorial-submit-list{margin-top:18px!important;margin-bottom:24px!important}
.ipp-memorial-submit-list li{margin-bottom:10px}
.ipp-memorial-note{border-left:5px solid #664771;padding:22px 24px;border-radius:0 16px 16px 0;background:#FAF8FA}
.ipp-memorial-links-card{height:100%;padding:26px;border:1px solid #E6E0E8;border-radius:18px;background:#fff;box-sizing:border-box}
@media(max-width:900px){.ipp-memorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:782px){.ipp-memorial-grid{grid-template-columns:1fr;gap:16px}.ipp-memorial-card{max-width:460px;width:100%;margin-left:auto!important;margin-right:auto!important}.ipp-memorial-process-card,.ipp-memorial-submit,.ipp-memorial-links-card{padding:22px}}


/* =========================================================
   Recuerdos y urnas — v0.2.35
   ========================================================= */
.ipp-memories-hero-image img{
  object-position:center center !important;
}

.ipp-memory-products-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

.ipp-memory-products-grid.is-relics{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.ipp-memory-product-card{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:14px;
  box-sizing:border-box;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(43,37,48,.05);
}

.ipp-memory-product-card figure{
  margin:0 0 16px 0 !important;
  width:100%;
  aspect-ratio:1/1;
  min-height:220px;
  border-radius:14px;
  overflow:hidden;
  background:#F7F5F7;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  box-sizing:border-box;
}

.ipp-memory-product-card figure img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  background:#F7F5F7;
}

.ipp-memory-product-card h3{
  margin:0 4px 8px 4px !important;
  font-size:20px !important;
  line-height:1.25;
  min-height:2.6em;
}

.ipp-memory-product-card > p{
  margin-left:4px !important;
  margin-right:4px !important;
  font-size:16px;
  line-height:1.55;
  flex:1 1 auto;
}

.ipp-memory-product-card .wp-block-buttons{
  margin-top:auto !important;
  padding-top:14px;
}

.ipp-memory-product-card .wp-block-button{
  width:100%;
}

.ipp-memory-product-card .wp-block-button__link{
  width:100%;
  box-sizing:border-box;
  text-align:center;
}

.ipp-memory-choice-card{
  height:100%;
  padding:28px;
  border-top:3px solid #664771;
  background:#fff;
  box-sizing:border-box;
}

.ipp-memory-choice-card p{
  font-size:17px;
  line-height:1.6;
}

.ipp-memory-info-note{
  max-width:940px;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:26px 28px;
  border-left:5px solid #664771;
  border-radius:0 16px 16px 0;
  background:#FAF8FA;
}

.ipp-memory-info-note p{
  font-size:17px;
  line-height:1.65;
}

@media(max-width:1050px){
  .ipp-memory-products-grid.is-relics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:850px){
  .ipp-memory-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:782px){
  .ipp-memory-products-grid,
  .ipp-memory-products-grid.is-relics{
    grid-template-columns:1fr;
    gap:16px;
  }

  .ipp-memory-product-card{
    width:100%;
    max-width:460px;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  .ipp-memory-choice-card{
    padding:22px;
  }
}


/* =========================================================
   Recuerdos y urnas — card component fix v0.2.36
   ========================================================= */
.ipp-memory-product-card{
  display:grid !important;
  grid-template-rows:220px auto 1fr auto;
  height:100%;
  align-content:stretch;
}
.ipp-memory-product-media{
  width:100%;
  height:220px;
  min-height:220px;
  margin:0 !important;
  padding:12px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
  background:#F7F5F7;
}
.ipp-memory-product-media img{
  display:block;
  width:100%;
  height:100%;
  margin:0 !important;
  object-position:center center;
  background:transparent;
}
.ipp-memory-product-card.is-illustration .ipp-memory-product-media img{ object-fit:contain; }
.ipp-memory-product-card.is-photo .ipp-memory-product-media{ padding:0; }
.ipp-memory-product-card.is-photo .ipp-memory-product-media img{ object-fit:cover; }
.ipp-memory-product-body{ display:contents; }
.ipp-memory-product-title{
  min-height:3.1em;
  margin:16px 4px 8px 4px !important;
  display:flex;
  align-items:flex-start;
  font-size:20px !important;
  line-height:1.25;
}
.ipp-memory-product-description{
  margin:0 4px !important;
  padding:0 !important;
  font-size:16px;
  line-height:1.55;
}
.ipp-memory-product-actions{
  margin-top:16px !important;
  padding:0 4px 0 4px !important;
  align-self:end;
}
.ipp-memory-product-actions .wp-block-buttons,
.ipp-memory-product-actions .wp-block-button{
  width:100% !important;
  margin:0 !important;
}
.ipp-memory-product-actions .wp-block-button__link{
  width:100% !important;
  box-sizing:border-box;
  text-align:center;
}
.ipp-memory-product-card > figure{ margin:0 !important; }
.ipp-memory-product-card > h3,
.ipp-memory-product-card > p,
.ipp-memory-product-card > .wp-block-buttons{ margin:0 !important; }
@media(max-width:782px){
  .ipp-memory-product-card{ grid-template-rows:240px auto 1fr auto; }
  .ipp-memory-product-media{ height:240px; min-height:240px; }
  .ipp-memory-product-title{ min-height:auto; }
}


/* =========================================================
   Recuerdos y urnas — definitive grid alignment fix v0.2.37
   Gutenberg flow-layout adds margin-block-start to every block
   after the first one. When the parent is converted to CSS Grid,
   those margins remain and push cards 2+ downward.
   Reset child block margins inside the product grids.
   ========================================================= */

.ipp-memory-products-grid{
  row-gap:22px !important;
  column-gap:22px !important;
}

/* Critical reset: removes Gutenberg flow spacing from grid children. */
.ipp-memory-products-grid > .ipp-memory-product-card,
.ipp-memory-products-grid > .wp-block-group.ipp-memory-product-card{
  margin-top:0 !important;
  margin-bottom:0 !important;
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  align-self:stretch !important;
}

/* Same reset for any nested WP layout selector WordPress may emit. */
.ipp-memory-products-grid.wp-block-group-is-layout-flow > * + *,
.ipp-memory-products-grid.is-layout-flow > * + *{
  margin-block-start:0 !important;
}

/* Ensure all cards in a row start at the same grid line. */
.ipp-memory-products-grid{
  align-items:stretch !important;
}


/* =========================================================
   Recuerdos y urnas — media/content spacing fix v0.2.39
   Root fix: use a real body row instead of display:contents.
   ========================================================= */

.ipp-memory-product-card{
  display:grid !important;
  grid-template-rows:220px minmax(0,1fr) auto !important;
  row-gap:18px !important;
  align-content:stretch !important;
}

.ipp-memory-product-media{
  margin:0 !important;
  width:100% !important;
  height:220px !important;
  min-height:220px !important;
}

/* The body is now one explicit grid row. */
.ipp-memory-product-body{
  display:block !important;
  min-width:0;
  margin:0 !important;
  padding:0 4px !important;
}

/* Gutenberg flow spacing is neutralized inside the body. */
.ipp-memory-product-body > *{
  margin-block-start:0 !important;
}

.ipp-memory-product-title{
  min-height:0 !important;
  margin:0 0 10px 0 !important;
  padding:0 !important;
  display:block !important;
  font-size:20px !important;
  line-height:1.25 !important;
}

.ipp-memory-product-description{
  margin:0 !important;
  padding:0 !important;
  font-size:16px;
  line-height:1.55;
}

.ipp-memory-product-actions{
  margin:0 !important;
  padding:0 4px !important;
  align-self:end !important;
}

/* Keep the buttons aligned to the same baseline. */
.ipp-memory-product-actions .wp-block-buttons,
.ipp-memory-product-actions .wp-block-button{
  margin:0 !important;
  width:100% !important;
}

@media(max-width:782px){
  .ipp-memory-product-card{
    grid-template-rows:240px minmax(0,1fr) auto !important;
    row-gap:16px !important;
  }

  .ipp-memory-product-media{
    height:240px !important;
    min-height:240px !important;
  }
}

/* =========================================================
   Puente del Arcoíris — consolidated layout v0.2.48
   Replaces all prior incremental rainbow overrides.
   ========================================================= */

.ipp-rainbow-hero-image img{
  object-position:center center !important;
}

.ipp-rainbow-section-intro{
  max-width:860px;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* ---------- Meaning section ---------- */
.ipp-rainbow-meaning-grid{
  width:100% !important;
  max-width:1080px !important;
  margin:0 auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 340px !important;
  gap:48px !important;
  align-items:stretch !important;
  box-sizing:border-box !important;
}

.ipp-rainbow-meaning-content{
  min-width:0 !important;
  align-self:start !important;
  margin:0 !important;
}

.ipp-rainbow-meaning-content .ipp-rainbow-section-intro{
  max-width:none !important;
  margin:0 !important;
}

.ipp-rainbow-meaning-content h2{
  margin-top:0 !important;
}

.ipp-rainbow-meaning-copy{
  margin-bottom:22px !important;
}

.ipp-rainbow-meaning-items{
  display:grid;
  gap:18px;
}

.ipp-rainbow-meaning-item{
  padding-top:18px;
  border-top:1px solid #E6E0E8;
}

.ipp-rainbow-meaning-item:first-child{
  padding-top:0;
  border-top:none;
}

.ipp-rainbow-meaning-item h3{
  margin:0 0 8px 0 !important;
  font-size:24px;
  line-height:1.25;
}

.ipp-rainbow-meaning-item p,
.ipp-rainbow-meaning-copy{
  font-size:17px;
  line-height:1.68;
}

.ipp-rainbow-meaning-media{
  width:340px !important;
  max-width:340px !important;
  min-width:0 !important;
  min-height:0 !important;
  align-self:stretch !important;
  justify-self:end !important;
  margin:0 !important;
  display:flex !important;
}

.ipp-rainbow-meaning-media figure,
.ipp-rainbow-meaning-media .wp-block-image{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  display:flex !important;
}

.ipp-rainbow-meaning-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:390px !important;
  max-height:470px !important;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:18px !important;
  margin:0 !important;
}

/* ---------- Album quote ---------- */
.ipp-rainbow-album-band{
  box-sizing:border-box !important;
}

.ipp-rainbow-album-shell{
  width:100% !important;
  max-width:1080px !important;
  margin:0 auto !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  box-sizing:border-box !important;
}

.ipp-rainbow-album-callout{
  width:100% !important;
  max-width:820px !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:minmax(0,0.92fr) minmax(0,1.08fr) !important;
  gap:30px !important;
  align-items:center !important;
  padding:28px !important;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#FAF8FA;
  box-sizing:border-box !important;
}

.ipp-rainbow-album-media{
  min-width:0 !important;
}

.ipp-rainbow-album-media figure,
.ipp-rainbow-album-media .wp-block-image{
  margin:0 !important;
  width:100% !important;
}

.ipp-rainbow-album-media img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:330px !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:16px !important;
}

.ipp-rainbow-quote-lead{
  margin:0 0 12px 0 !important;
  color:#664771;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:uppercase;
  font-size:13px;
}

.ipp-rainbow-quote-text{
  margin:0 !important;
  font-size:20px !important;
  line-height:1.7 !important;
}

/* ---------- Related paths ---------- */
.ipp-rainbow-path-grid{
  width:100% !important;
  max-width:1080px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:24px !important;
  align-items:stretch !important;
}

.ipp-rainbow-path-card{
  min-width:0 !important;
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  box-sizing:border-box;
}

.ipp-rainbow-path-media{
  width:100% !important;
  aspect-ratio:4 / 3 !important;
  max-height:270px !important;
  overflow:hidden;
  background:#F7F4F8;
}

.ipp-rainbow-path-media figure,
.ipp-rainbow-path-media .wp-block-image{
  margin:0 !important;
  width:100% !important;
  height:100% !important;
}

.ipp-rainbow-path-media img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-height:270px !important;
  object-fit:cover !important;
  object-position:center center !important;
}

.ipp-rainbow-path-body{
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:12px;
  padding:22px 22px 24px;
}

.ipp-rainbow-path-body h3{
  margin:0 !important;
  font-size:24px;
}

.ipp-rainbow-path-body p{
  margin:0 !important;
  font-size:17px;
  line-height:1.6;
}

.ipp-rainbow-path-link a{
  font-weight:700;
  color:#664771;
  text-decoration:none;
}

.ipp-rainbow-path-link a:hover,
.ipp-rainbow-path-link a:focus{
  text-decoration:underline;
}

/* ---------- Closing panel ---------- */
.ipp-rainbow-closing-panel{
  width:100% !important;
  max-width:940px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(260px,360px) !important;
  gap:32px !important;
  align-items:center !important;
  padding:30px 32px !important;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#FFFFFF;
  box-sizing:border-box !important;
}

.ipp-rainbow-closing-copy{
  min-width:0 !important;
}

.ipp-rainbow-closing-copy h2{
  margin-top:0 !important;
}

.ipp-rainbow-closing-copy p{
  font-size:17px;
  line-height:1.68;
}

.ipp-rainbow-closing-media{
  width:100% !important;
  max-width:360px !important;
  justify-self:end !important;
  overflow:hidden !important;
  border-radius:16px !important;
}

.ipp-rainbow-closing-media figure,
.ipp-rainbow-closing-media .wp-block-image{
  width:100% !important;
  margin:0 !important;
}

.ipp-rainbow-closing-media img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:360px !important;
  aspect-ratio:4 / 3 !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:16px !important;
}

@media(max-width:900px){
  .ipp-rainbow-meaning-grid{
    grid-template-columns:1fr !important;
    gap:28px !important;
    align-items:start !important;
  }

  .ipp-rainbow-meaning-media{
    width:min(100%,420px) !important;
    max-width:420px !important;
    align-self:auto !important;
    justify-self:center !important;
    display:block !important;
  }

  .ipp-rainbow-meaning-media figure,
  .ipp-rainbow-meaning-media .wp-block-image{
    height:auto !important;
    display:block !important;
  }

  .ipp-rainbow-meaning-media img{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:auto !important;
  }

  .ipp-rainbow-album-callout{
    max-width:760px !important;
    grid-template-columns:1fr !important;
  }

  .ipp-rainbow-path-grid{
    grid-template-columns:1fr !important;
    max-width:720px !important;
  }

  .ipp-rainbow-path-media,
  .ipp-rainbow-path-media img{
    max-height:none !important;
  }

  .ipp-rainbow-closing-panel{
    grid-template-columns:1fr !important;
    max-width:720px !important;
  }

  .ipp-rainbow-closing-media{
    max-width:420px !important;
    justify-self:center !important;
  }
}

@media(max-width:782px){
  .ipp-rainbow-meaning-item h3,
  .ipp-rainbow-path-body h3{
    font-size:22px;
  }

  .ipp-rainbow-album-callout,
  .ipp-rainbow-closing-panel{
    padding:22px !important;
    gap:22px !important;
  }

  .ipp-rainbow-quote-text{
    font-size:18px !important;
  }

  .ipp-rainbow-path-body{
    padding:20px 20px 22px;
  }

  .ipp-rainbow-closing-media{
    max-width:100% !important;
  }
}


/* =========================================================
   Homenaje en Vida — page template normalization v0.2.49
   The slug-specific template removes the default constrained page wrapper
   and duplicate post title, matching Memorial / service pages.
   ========================================================= */
body.page-homenaje-en-vida main.wp-block-group{
  margin:0 !important;
  padding:0 !important;
  max-width:none !important;
}

body.page-homenaje-en-vida .ipp-homenaje-hero{
  margin-top:0 !important;
}


/* =========================================================
   Nosotros — v0.2.50
   ========================================================= */
body.page-nosotros main.wp-block-group{
  margin:0 !important;
  padding:0 !important;
  max-width:none !important;
}

.ipp-about-hero-image img{
  object-position:center center !important;
}

.ipp-about-intro{
  max-width:860px;
  margin-left:auto !important;
  margin-right:auto !important;
}

.ipp-about-values-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
  margin-top:34px;
}

.ipp-about-value-card{
  height:100%;
  padding:28px;
  border:1px solid #E6E0E8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
}

.ipp-about-value-card h3{
  margin:0 0 10px !important;
  font-size:22px;
}

.ipp-about-value-card p{
  margin:0 !important;
  line-height:1.65;
}

.ipp-about-split{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:42px;
  align-items:center;
}

.ipp-about-split.is-reversed .ipp-about-split-media{
  order:2;
}

.ipp-about-split.is-reversed .ipp-about-split-copy{
  order:1;
}

.ipp-about-split-media figure,
.ipp-about-split-media .wp-block-image{
  margin:0 !important;
}

.ipp-about-split-media img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4 / 3;
  object-fit:cover;
  object-position:center center;
  border-radius:18px;
}

.ipp-about-split-copy h2{
  margin-top:0 !important;
}

.ipp-about-split-copy p{
  font-size:17px;
  line-height:1.7;
}

.ipp-about-expect-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
  margin-top:34px;
}

.ipp-about-expect-card{
  height:100%;
  padding:26px;
  border-top:3px solid #664771;
  border-radius:16px;
  background:#fff;
  box-sizing:border-box;
  box-shadow:0 8px 20px rgba(43,37,48,.04);
}

.ipp-about-expect-card span{
  display:block;
  margin-bottom:8px;
  color:#664771;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ipp-about-expect-card h3{
  margin:0 0 10px !important;
}

.ipp-about-expect-card p{
  margin:0 !important;
  line-height:1.65;
}

.ipp-about-note{
  max-width:900px;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:28px 30px;
  border-left:5px solid #664771;
  border-radius:0 18px 18px 0;
  background:#fff;
}

.ipp-about-note p:last-child{
  margin-bottom:0 !important;
}

@media(max-width:980px){
  .ipp-about-values-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:782px){
  .ipp-about-values-grid,
  .ipp-about-expect-grid,
  .ipp-about-split{
    grid-template-columns:1fr !important;
    gap:18px;
  }

  .ipp-about-split.is-reversed .ipp-about-split-media,
  .ipp-about-split.is-reversed .ipp-about-split-copy{
    order:initial;
  }

  .ipp-about-split-media img{
    aspect-ratio:4 / 3;
  }

  .ipp-about-value-card,
  .ipp-about-expect-card{
    padding:22px;
  }

  .ipp-about-note{
    padding:24px 22px;
  }
}


/* =========================================================
   Instalaciones — v0.2.51
   ========================================================= */
body.page-instalaciones main.wp-block-group{
  margin:0!important;
  padding:0!important;
  max-width:none!important;
}

.ipp-facilities-hero-image img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  object-position:center center;
  border-radius:18px;
}

.ipp-facilities-intro{
  max-width:860px;
  margin-left:auto!important;
  margin-right:auto!important;
}

.ipp-facilities-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:stretch;
}

.ipp-facility-card{
  overflow:hidden;
  border:1px solid #e6e0e8;
  border-radius:18px;
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr;
}

.ipp-facility-card-media{
  aspect-ratio:16/10;
  overflow:hidden;
  background:#f7f5f7;
}

.ipp-facility-card-media figure,
.ipp-facility-card-media .wp-block-image{
  width:100%;
  height:100%;
  margin:0!important;
}

.ipp-facility-card-media img{
  display:block;
  width:100%;
  height:100%!important;
  object-fit:cover;
  object-position:center center;
}

.ipp-facility-card-body{
  padding:24px 26px 26px;
}

.ipp-facility-card-body h3{
  margin:0 0 10px!important;
}

.ipp-facility-card-body p{
  margin:0!important;
  line-height:1.65;
}

.ipp-facilities-gallery{
  display:grid!important;
  grid-template-columns:1.25fr .75fr .75fr;
  gap:16px;
  align-items:stretch;
}

.ipp-facilities-gallery figure{
  margin:0!important;
  overflow:hidden;
  border-radius:16px;
  min-height:260px;
}

.ipp-facilities-gallery img{
  width:100%;
  height:100%!important;
  min-height:260px;
  object-fit:cover;
  object-position:center center;
  display:block;
}

.ipp-facilities-note{
  max-width:900px;
  margin:0 auto;
  padding:28px 30px;
  border-left:4px solid #664771;
  border-radius:0 18px 18px 0;
  background:#fff;
}

.ipp-facilities-note p:last-child{margin-bottom:0!important}

@media(max-width:900px){
  .ipp-facilities-grid{grid-template-columns:1fr}
  .ipp-facilities-gallery{grid-template-columns:1fr 1fr}
  .ipp-facilities-gallery figure:first-child{grid-column:1/-1}
}

@media(max-width:782px){
  .ipp-facilities-gallery{grid-template-columns:1fr}
  .ipp-facilities-gallery figure:first-child{grid-column:auto}
  .ipp-facility-card-body{padding:22px}
  .ipp-facilities-note{padding:24px 22px}
}


/* =========================================================
   404 page v0.2.58
   ========================================================= */
.ipp-404 > .wp-block-heading,
.ipp-404 > p{
  max-width:760px;
  margin-left:auto!important;
  margin-right:auto!important;
}

.ipp-404-links{
  margin-top:48px!important;
  gap:18px!important;
}

.ipp-404-card{
  height:100%;
  padding:24px;
  border:1px solid #e6e0e8;
  border-radius:16px;
  background:#fff;
}

.ipp-404-card h3{
  margin-top:0!important;
  margin-bottom:12px!important;
}

.ipp-404-card p{
  margin-bottom:0!important;
  line-height:1.8;
}

.ipp-404-card a{
  color:#664771;
  font-weight:600;
  text-decoration:none;
}

.ipp-404-card a:hover,
.ipp-404-card a:focus{
  text-decoration:underline;
}

@media(max-width:782px){
  .ipp-404{
    padding-top:64px!important;
    padding-bottom:72px!important;
  }

  .ipp-404-links{
    margin-top:36px!important;
  }
}
