* {
  box-sizing: border-box;
}
:root {
  --navy: #092e59;
  --blue: #164a7d;
  --sky: #dff3fc;
  --green: #10984f;
  --text: #10365f;
  --line: #dceaf4;
  --serif: 'Playfair Display',Georgia,serif;
  --sans: 'DM Sans',Arial,sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.header {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffffff5;
  box-shadow: 0 2px 15px #0b31550c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px,4.5vw,62px);
}
.logo {
  width: 96px;
  height: 96px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-self: flex-start;
  position: relative;
  z-index: 2;
  margin-bottom: -32px;
  box-shadow: 0 3px 12px #0c31551a;
}
.logo img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  border-radius: 50%;
}
.header nav {
  display: flex;
  gap: clamp(13px,2.4vw,33px);
  margin-left: 100px;
}
.header nav a,footer nav a {
  font-size: 12px;
}
.header nav a:hover,.header nav .active {
  font-weight: 700;
  color: #071f43;
}
.head-actions {
  display: flex;
  gap: 10px;
}
.head-actions a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 8px;
}
.phone {
  background: linear-gradient(120deg,#08294e,#124c80);
}
.wa {
  background: linear-gradient(120deg,#0b8e49,#14a656);
}
.menu {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 385px;
  overflow: hidden;
  background: linear-gradient(110deg,#d9f1fb,#91cce9 54%,#f1fbff);
}
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 20% 20%,#fff 0 5%,transparent 25%),radial-gradient(ellipse at 48% 50%,#fff9 0 8%,transparent 28%),radial-gradient(ellipse at 76% 15%,#fff 0 4%,transparent 22%),radial-gradient(ellipse at 90% 78%,#fff 0 7%,transparent 24%);
  filter: blur(5px);
}
.hero-text {
  padding: 54px 6.2% 27px;
  max-width: 1250px;
  margin: auto;
}
.eyebrow {
  display: none;
}
.hero h1 {
  font: 700 clamp(37px,4.3vw,54px)/.99 var(--serif);
  letter-spacing: -1.5px;
  color: #092e59;
  margin: 0 0 10px;
}
.lead {
  font: 17px/1.4 var(--serif);
  margin: 0 0 19px;
}
.trust {
  display: flex;
  gap: 21px;
  margin-bottom: 19px;
}
.trust div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.35;
}
.trust i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0a315d;
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.buttons {
  display: flex;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.navy {
  background: linear-gradient(120deg,#082b51,#164f83);
  color: white;
}
.green {
  background: linear-gradient(120deg,#0b934b,#16a957);
  color: white;
}
.hero-saying {
  position: absolute;
  right: 8%;
  bottom: 39px;
  text-align: center;
  color: #143e68;
}
.hero-saying span {
  display: block;
  font-size: 56px;
  color: white;
  text-shadow: 0 2px 8px #fff;
}
.hero-saying p,.why-saying {
  font: italic clamp(20px,2.4vw,29px) var(--serif);
}
.hero-saying i {
  display: block;
  width: 55px;
  height: 1px;
  background: #244d73;
  margin: 14px auto;
}
.lilies {
  position: absolute;
  right: -8px;
  bottom: -37px;
  font-size: 150px;
  color: #fff8;
  transform: rotate(-20deg);
  text-shadow: 0 3px 15px #7ba9bc;
}
.section {
  padding: 18px clamp(16px,2.6vw,36px) 22px;
}
.title {
  text-align: center;
  margin-bottom: 16px;
}
.title h2 {
  font: 700 clamp(27px,3vw,34px)/1.2 var(--serif);
  margin: 0 0 8px;
  color: #103c6b;
}
.title>i {
  display: block;
  width: 30px;
  height: 2px;
  background: #5fb5e6;
  margin: auto;
}
.title p {
  font-size: 13px;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 9px;
  max-width: 1300px;
  margin: auto;
}
.service {
  min-height: 184px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 8px 12px;
  background: linear-gradient(150deg,#fff,#f6fbfe);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: .2s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #123f7314;
  border-color: #9bcde8;
}
.service>i {
  font-size: 34px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #0c477f;
  margin-bottom: 7px;
}
.service h3 {
  font-size: 13px;
  line-height: 1.2;
  min-height: 30px;
  margin: 0 0 6px;
  color: #082e59;
}
.service p {
  font-size: 10px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.service span {
  margin-top: auto;
  background: #0a315c;
  color: white;
  border-radius: 50%;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.why {
  min-height: 290px;
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(ellipse at 70% 45%,#eee4c9 0%,#8c9a8c 15%,transparent 35%),radial-gradient(ellipse at 88% 25%,#d2a77d 0%,#293b43 24%,transparent 43%),linear-gradient(90deg,#06284e,#0c3a67 50%,#333d40);
}
.why:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#062a51 0%,#062a51ed 33%,#062a5170 53%,transparent 100%);
}
.why-text {
  position: relative;
  z-index: 1;
  padding: 25px 6.3%;
  max-width: 550px;
}
.why h2 {
  font: 700 27px/1.1 var(--serif);
  margin: 0 0 14px;
}
.why ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: grid;
  gap: 8px;
}
.why li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  line-height: 1.35;
}
.why li i {
  font-size: 22px;
  width: 30px;
  text-align: center;
}
.white {
  background: #fff;
  color: #103963;
  border-radius: 25px;
  padding: 9px 18px;
  font-size: 11px;
}
.why-saying {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 31%;
  text-align: center;
  color: white;
  text-shadow: 0 2px 12px #0008;
}
.obituaries {
  padding: 20px clamp(18px,4.7vw,60px) 17px;
  background: radial-gradient(ellipse at 8% 20%,#fff9 0 8%,transparent 22%),linear-gradient(120deg,#eaf8ff,#cfeaf7 48%,#f5fbff);
}
.obit-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  max-width: 1200px;
  margin: auto;
}
.obit {
  min-height: 184px;
  text-align: center;
  background: #ffffffdf;
  border: 1px solid #e1edf6;
  border-radius: 8px;
  padding: 10px 12px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portrait {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  background: linear-gradient(145deg,#c4d6e1,#f5f8fa);
  color: #6c8597;
  font-size: 26px;
  border: 3px solid white;
}
.obit h3 {
  font-size: 13px;
  margin: 1px 0 2px;
}
.obit p,.obit small {
  font-size: 10px;
  margin: 4px 0;
  line-height: 1.4;
}
.obit small {
  color: #73859a;
}
.obit-cta {
  background: #c2e2f5d9;
  justify-content: center;
}
.obit-cta>i {
  font-size: 27px;
  margin-bottom: 6px;
}
.obit-cta h3 {
  font: 700 17px/1.2 var(--serif);
}
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #174a7b;
  background: transparent;
  color: #103963;
  border-radius: 24px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  margin-top: auto;
  cursor: pointer;
}
.outline:hover {
  background: #103963;
  color: white;
}
.note {
  text-align: center;
  color: #627b91;
  font-size: 9px;
  margin: 10px 0 0;
}
.contact {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 18px;
  padding: 20px clamp(18px,4.5vw,60px);
  background: white;
}
.contact>a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.contact>a>i {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg,#092b51,#124d80);
  color: white;
  font-size: 19px;
}
.contact>a .green-icon {
  background: linear-gradient(140deg,#0b914b,#1caf5d);
}
.contact b {
  font-size: 12px;
  line-height: 1.35;
}
.contact small {
  display: block;
  font-size: 9px;
  color: #526b82;
  margin-top: 3px;
  max-width: 290px;
}
footer {
  background: #e1f0f8;
}
.foot-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(18px,4.5vw,60px);
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}
.foot-brand b {
  display: block;
  font: 600 21px var(--serif);
}
.foot-brand small {
  font-size: 11px;
}
.foot-main nav {
  display: flex;
  gap: clamp(12px,2vw,26px);
}
.foot-main p {
  font: italic 19px/1.25 var(--serif);
  text-align: center;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding: 12px clamp(18px,4.5vw,60px);
  background: #12385f;
  color: #dcecf7;
  font-size: 9px;
}
.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0e9e53;
  color: white;
  font-size: 27px;
  box-shadow: 0 7px 24px #082e5940;
  z-index: 25;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%,20px);
  background: #092f59;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}
@media (max-width:1050px) {
  .header nav {
    margin-left: 45px;
    gap: 13px;
  }
  .head-actions a {
    padding: 9px;
  }
  .service-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .service {
    min-height: 170px;
  }
  .contact {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .contact>a {
    width: calc(50% - 12px);
  }
  .foot-main {
    flex-wrap: wrap;
  }
}
@media (max-width:760px) {
  .header {
    height: 66px;
    padding: 0 14px;
  }
  .logo {
    width: 70px;
    height: 70px;
    margin-bottom: -19px;
  }
  .menu {
    display: grid;
    place-items: center;
    margin-left: auto;
    margin-right: 10px;
    border: 1px solid #dce8f2;
    background: white;
    color: #0b315c;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  /*Menú móvil a todo el ancho*/
  .header nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 20px 12px;
    background: #fff;
    border: none;
    border-top: 1px solid #e6edf3;
    border-radius: 0;
    box-shadow: 0 12px 20px rgba(8, 46, 89, 0.12);
    flex-direction: column;
    gap: 0;
    z-index: 1002;
  }
  .header nav.open {
    display: flex;
  }
  .header nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 8px;
    border-bottom: 1px solid #eaf0f5;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  .header nav a:last-child {
    border-bottom: none;
  }
  .head-actions {
    gap: 6px;
  }
  .head-actions a {
    width: 39px;
    height: 39px;
    padding: 10px;
    justify-content: center;
  }
  .head-actions span {
    display: none;
  }
  .hero {
    min-height: 0;
  }
  .hero-text {
    padding: 42px 21px 24px;
  }
  .hero h1 {
    font-size: clamp(35px,10vw,48px);
    line-height: 1.02;
    letter-spacing: -1px;
  }
  .lead {
    font-size: 16px;
  }
  .desktop {
    display: none;
  }
  .trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
    max-width: 350px;
  }
  .trust div {
    font-size: 10px;
  }
  .trust i {
    width: 30px;
    height: 30px;
  }
  .buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
  }
  .hero-saying {
    right: 10px;
    bottom: 8px;
    opacity: .7;
  }
  .hero-saying span {
    font-size: 32px;
  }
  .hero-saying p {
    font-size: 15px;
  }
  .hero-saying i {
    margin-top: 7px;
  }
  .lilies {
    font-size: 70px;
    right: -18px;
    bottom: -12px;
    opacity: .5;
  }
  .section {
    padding: 23px 13px;
  }
  .title h2 {
    font-size: 29px;
  }
  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .service {
    min-height: 168px;
    padding: 14px 8px 12px;
  }
  .service:last-child {
    grid-column: 1/-1;
    min-height: 145px;
  }
  .why {
    min-height: 370px;
  }
  .why:after {
    background: linear-gradient(90deg,#062a51f5 0%,#062a51d9 58%,#062a5140 100%);
  }
  .why-text {
    padding: 28px 22px;
  }
  .why-saying {
    right: 12px;
    bottom: 15px;
    top: auto;
    font-size: 17px;
  }
  .obituaries {
    padding: 23px 13px 16px;
  }
  .title p {
    font-size: 12px;
    line-height: 1.5;
  }
  .obit-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .obit {
    padding: 12px 7px;
    min-height: 190px;
  }
  .portrait {
    width: 58px;
    height: 58px;
  }
  .obit h3 {
    font-size: 12px;
  }
  .obit-cta h3 {
    font-size: 16px;
  }
  .contact {
    padding: 18px 16px;
    gap: 17px;
  }
  .contact>a {
    width: 100%;
    gap: 12px;
  }
  .contact>a>i {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 17px;
  }
  .foot-main {
    padding: 20px 16px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 15px;
  }
  .foot-brand img {
    width: 55px;
    height: 55px;
  }
  .foot-brand b {
    font-size: 20px;
  }
  .foot-main nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
  .foot-main nav a {
    font-size: 11px;
  }
  .foot-main p {
    margin: 0;
    font-size: 18px;
  }
  .foot-bottom {
    padding: 12px 16px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }
  .floating-wa {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none !important;
  }
}
/*── Refinamiento visual: edición premium ─────────────────────────────*/
:root {
  --navy: #082b52;
  --blue: #15558a;
  --sky: #e9f7fd;
  --green: #119653;
  --line: #d9e8f2;
  --text: #173a5e;
}
body {
  font-size: 14px;
  letter-spacing: .005em;
}
.header {
  height: 72px;
  padding-inline: clamp(22px,5vw,76px);
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(20,75,120,.08);
}
.logo {
  width: 100px;
  height: 100px;
  box-shadow: 0 8px 28px #0c31551c;
  border: 5px solid #fff;
}
.header nav a {
  position: relative;
  font-size: 12px;
  padding: 10px 0;
  color: #294864;
  transition: color .2s ease;
}
.header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: #4ba9d8;
  transition: right .22s ease;
}
.header nav a:hover:after,.header nav a.active:after {
  right: 0;
}
.head-actions a {
  border-radius: 9px;
  box-shadow: 0 5px 12px #092e5918;
  transition: transform .2s,box-shadow .2s;
}
.head-actions a:hover,.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px #092e5925;
}
.hero {
  min-height: 455px;
  background: #b9e2f4;
  isolation: isolate;
}
.sky {
  z-index: -2;
  filter: none;
  background: linear-gradient(90deg,rgba(240,250,255,.96) 0%,rgba(225,244,253,.88) 36%,rgba(207,234,248,.28) 68%,rgba(221,242,251,.10) 100%),url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=2200&q=85') center 47%/cover no-repeat;
}
.hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg,rgba(218,241,251,.28),transparent 38%);
  pointer-events: none;
}
.hero-text {
  padding: 64px 6.3% 42px;
  max-width: 1450px;
}
.eyebrow,.section-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .19em;
  font-weight: 700;
  color: #397da6;
  margin: 0 0 11px;
}
.hero h1 {
  font-size: clamp(43px,4.4vw,64px);
  line-height: 1.01;
  letter-spacing: -1.8px;
  max-width: 690px;
  text-shadow: 0 2px 16px #fff7;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  max-width: 500px;
  color: #163b61;
  margin-bottom: 23px;
}
.trust {
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.trust div {
  font-size: 11px;
  gap: 9px;
}
.trust i {
  width: 36px;
  height: 36px;
  box-shadow: 0 4px 10px #0a315d22;
}
.btn {
  padding: 13px 20px;
  border-radius: 9px;
  font-size: 12px;
  transition: transform .2s,box-shadow .2s;
}
.hero-saying {
  right: 6.5%;
  bottom: 48px;
  width: 300px;
  padding: 18px 20px;
  border: 1px solid #ffffff70;
  border-radius: 20px;
  background: rgba(255,255,255,.26);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 35px #174e6d12;
}
.hero-saying span {
  font-size: 48px;
  color: #fff;
  text-shadow: 0 3px 18px #527f9b;
}
.hero-saying p {
  font-size: 25px;
  margin: 7px 0 0;
  text-shadow: 0 1px 8px #fff9;
}
.hero-saying small {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  color: #244c6d;
}
.hero-saying i {
  margin: 12px auto;
  width: 46px;
  background: #477ca0;
}
.hero-badge {
  position: absolute;
  right: 6.8%;
  top: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #fff9;
  background: #ffffffa6;
  border-radius: 12px;
  box-shadow: 0 12px 30px #174e6d12;
  backdrop-filter: blur(8px);
  color: #143b60;
}
.hero-badge>i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0c3965;
  color: white;
  font-size: 16px;
}
.hero-badge b,.hero-badge small {
  display: block;
}
.hero-badge b {
  font-size: 11px;
}
.hero-badge small {
  font-size: 10px;
  margin-top: 3px;
  color: #53708a;
}
.section {
  padding: 36px clamp(20px,4vw,64px) 40px;
}
.title {
  margin-bottom: 24px;
}
.title h2 {
  font-size: clamp(30px,3vw,39px);
  letter-spacing: -.7px;
}
.title>i {
  width: 44px;
  height: 3px;
  border-radius: 5px;
  margin: 12px auto;
}
.section-subtitle {
  margin: 12px 0 0;
  color: #617a90;
  font-size: 13px;
}
.service-grid {
  gap: 13px;
  max-width: 1380px;
}
.service {
  min-height: 205px;
  border-radius: 13px;
  padding: 22px 11px 15px;
  background: linear-gradient(145deg,#fff 0%,#f5fafe 100%);
  box-shadow: 0 5px 18px #113f6707;
  position: relative;
  overflow: hidden;
}
.service:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,#74c6e9,#174d7e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px #123f7318;
  border-color: #b4d7e9;
}
.service:hover:before {
  transform: scaleX(1);
}
.service>i {
  font-size: 36px;
  height: 48px;
  color: #15568b;
  margin-bottom: 12px;
}
.service h3 {
  font-size: 13px;
  line-height: 1.35;
  min-height: 34px;
}
.service p {
  font-size: 10.5px;
  line-height: 1.55;
  color: #5a7084;
}
.service span {
  width: 31px;
  height: 31px;
  transition: transform .2s,background .2s;
}
.service:hover span {
  transform: translateX(3px);
  background: #1d689c;
}
.why {
  min-height: 350px;
  background: url('https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=2200&q=85') center 47%/cover no-repeat,#0b3156;
}
.why:after {
  background: linear-gradient(90deg,rgba(5,37,72,.98) 0%,rgba(6,43,80,.93) 30%,rgba(7,43,78,.56) 56%,rgba(8,35,59,.12) 100%);
}
.why-text {
  padding: 45px 6.3%;
  max-width: 590px;
}
.why .section-kicker {
  color: #a5d9f0;
}
.why h2 {
  font-size: clamp(30px,3vw,38px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.why ul {
  gap: 13px;
  margin-bottom: 23px;
}
.why li {
  font-size: 13px;
  gap: 15px;
}
.why li i {
  font-size: 23px;
  color: #cceeff;
}
.why-saying {
  right: 5%;
  top: 34%;
  font-size: clamp(23px,2.5vw,33px);
  line-height: 1.35;
  text-shadow: 0 3px 20px #0009;
}
.obituaries {
  padding: 38px clamp(20px,4.7vw,70px) 25px;
  background: linear-gradient(130deg,#f6fcff 0%,#d9eff9 50%,#f4fbff 100%);
  position: relative;
}
.obituaries:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=70') center/cover;
  opacity: .055;
  pointer-events: none;
}
.obituaries>* {
  position: relative;
}
.obit-grid {
  gap: 15px;
  max-width: 1280px;
}
.obit {
  min-height: 215px;
  padding: 17px 14px 16px;
  border-radius: 13px;
  box-shadow: 0 8px 22px #16466b08;
  transition: transform .2s,box-shadow .2s;
}
.obit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px #16466b12;
}
.portrait {
  width: 74px;
  height: 74px;
  box-shadow: 0 0 0 5px #fff,0 6px 18px #173b5c12;
}
.obit h3 {
  font-size: 13px;
  margin-top: 5px;
}
.obit p,.obit small {
  font-size: 10.5px;
}
.obit-cta {
  background: linear-gradient(145deg,#d6edf9,#b9dff2);
  border-color: #c5e4f4;
}
.obit-cta>i {
  font-size: 30px;
  color: #174c7b;
}
.outline {
  font-size: 10px;
  padding: 9px 16px;
  transition: background .2s,color .2s,transform .2s;
}
.outline:hover {
  transform: translateY(-1px);
}
.contact {
  padding: 25px clamp(22px,5vw,76px);
  gap: 25px;
  border-bottom: 1px solid #e0edf5;
}
.contact>a {
  transition: transform .2s;
}
.contact>a:hover {
  transform: translateY(-2px);
}
.contact>a>i {
  box-shadow: 0 6px 15px #092b5117;
}
.contact b {
  font-size: 12px;
}
.contact small {
  line-height: 1.45;
}
footer {
  background: linear-gradient(120deg,#eaf6fc,#d8ebf6);
}
.foot-main {
  padding: 22px clamp(22px,5vw,76px);
}
.foot-brand img {
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px #123e6012;
}
.foot-brand b {
  font-size: 23px;
  color: #103b66;
}
.foot-main p {
  font-size: 21px;
  color: #315a7e;
}
.foot-bottom {
  padding: 14px clamp(22px,5vw,76px);
  font-size: 10px;
  background: linear-gradient(100deg,#082b52,#174c79);
}
.floating-wa {
  width: 55px;
  height: 55px;
  right: 22px;
  bottom: 22px;
  box-shadow: 0 8px 25px #082e5945;
  transition: transform .2s;
}
.floating-wa:hover {
  transform: translateY(-3px) scale(1.04);
}
@media (max-width:1050px) {
  .hero-saying {
    right: 3%;
    width: 245px;
  }
  .hero-badge {
    right: 3%;
  }
  .hero-text {
    padding-left: 5%;
  }
  .why-saying {
    right: 3%;
  }
  .service-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .service {
    min-height: 190px;
  }
}
@media (max-width:760px) {
  .header {
    height: 66px;
    padding: 0 14px;
  }
  .logo {
    width: 72px;
    height: 72px;
    margin-bottom: -18px;
  }
  .hero {
    min-height: 0;
  }
  .sky {
    background: linear-gradient(90deg,rgba(240,250,255,.96),rgba(225,244,253,.78)),url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1100&q=80') center/cover no-repeat;
  }
  .hero-text {
    padding: 40px 21px 28px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: .15em;
  }
  .hero h1 {
    font-size: clamp(37px,9.7vw,48px);
    line-height: 1.03;
    max-width: 560px;
  }
  .lead {
    font-size: 16px;
    max-width: 390px;
  }
  .trust {
    gap: 12px 8px;
  }
  .trust div {
    font-size: 10px;
  }
  .buttons {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .btn {
    padding: 12px 14px;
    font-size: 11px;
  }
  .hero-badge {
    position: relative;
    top: auto;
    right: auto;
    margin: 0 20px 20px;
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 9px 12px;
  }
  .hero-saying {
    display: none;
  }
  .section {
    padding: 28px 14px 30px;
  }
  .title {
    margin-bottom: 19px;
  }
  .title h2 {
    font-size: 29px;
  }
  .section-subtitle {
    font-size: 12px;
    line-height: 1.5;
  }
  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .service {
    min-height: 183px;
    padding: 17px 8px 13px;
  }
  .service:last-child {
    grid-column: 1/-1;
    min-height: 150px;
  }
  .service>i {
    font-size: 32px;
  }
  .service h3 {
    font-size: 12px;
  }
  .service p {
    font-size: 10px;
  }
  .why {
    min-height: 390px;
    background-position: center;
  }
  .why:after {
    background: linear-gradient(90deg,rgba(5,37,72,.97),rgba(6,43,80,.78) 72%,rgba(8,35,59,.48));
  }
  .why-text {
    padding: 31px 22px;
  }
  .why h2 {
    font-size: 31px;
  }
  .why li {
    font-size: 12px;
  }
  .why-saying {
    right: 16px;
    bottom: 17px;
    top: auto;
    font-size: 19px;
  }
  .obituaries {
    padding: 29px 13px 18px;
  }
  .obit-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .obit {
    min-height: 205px;
    padding: 13px 7px;
  }
  .portrait {
    width: 60px;
    height: 60px;
  }
  .obit-cta h3 {
    font-size: 16px;
  }
  .contact {
    padding: 19px 16px;
    gap: 17px;
  }
  .foot-main {
    padding: 20px 16px;
  }
  .foot-main p {
    font-size: 18px;
  }
  .foot-bottom {
    font-size: 9px;
  }
}
@media (max-width:390px) {
  .hero h1 {
    font-size: 35px;
  }
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .buttons .btn {
    width: 100%;
  }
  .trust {
    grid-template-columns: 1fr 1fr;
  }
  .service {
    min-height: 190px;
  }
  .obit {
    min-height: 220px;
  }
  .foot-main nav {
    gap: 10px 13px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*:before,*:after {
    transition: none !important;
  }
}
/*Páginas internas*/
.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 58px 20px 40px;
  background: radial-gradient(ellipse at 20% 15%,#fff 0,transparent 32%),radial-gradient(ellipse at 80% 25%,#fff9 0,transparent 29%),linear-gradient(120deg,#eaf8ff,#b9e1f3 54%,#f8fcff);
  border-bottom: 1px solid #dcecf5;
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #ffffff9c;
  border-radius: 50%;
  right: -70px;
  bottom: -160px;
  box-shadow: 0 0 0 25px #ffffff26,0 0 0 55px #ffffff20;
}
.page-hero .section-kicker,.section-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  font-weight: 700;
  color: #397ca8;
  margin: 0 0 10px;
}
.page-hero h1 {
  font: 700 clamp(34px,5vw,52px)/1.1 var(--serif);
  color: var(--navy);
  margin: 0 0 12px;
}
.page-hero>p:not(.section-kicker) {
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  color: #355b7d;
}
.page-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #5b7891;
  margin-top: 20px;
}
.page-breadcrumb i {
  font-size: 9px;
  color: #72a8c9;
}
.page-section {
  max-width: 1240px;
  margin: auto;
  padding: 48px clamp(18px,5vw,65px) 58px;
}
.page-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}
.page-intro h2 {
  font: 700 clamp(27px,3vw,36px)/1.2 var(--serif);
  color: var(--navy);
  margin: 0 0 12px;
}
.page-intro>p:last-child {
  line-height: 1.8;
  color: #5a7085;
  font-size: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
}
.detail-card,.value-card,.plan-card {
  background: linear-gradient(145deg,#fff,#f7fbfe);
  border: 1px solid #dceaf4;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 8px 24px #143c6010;
  transition: transform .22s,box-shadow .22s;
}
.detail-card:hover,.value-card:hover,.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px #143c601a;
}
.detail-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #e5f4fc;
  color: #124a7b;
  font-size: 24px;
  margin-bottom: 17px;
}
.detail-card h2,.value-card h3 {
  font: 700 20px/1.25 var(--serif);
  color: var(--navy);
  margin: 0 0 10px;
}
.detail-card p,.value-card p,.plan-card p {
  font-size: 13px;
  line-height: 1.75;
  color: #5a7085;
  margin: 0 0 20px;
}
.text-link {
  font-weight: 700;
  font-size: 12px;
  color: #15568a;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.text-link span {
  font-size: 19px;
  transition: transform .2s;
}
.text-link:hover span {
  transform: translateX(4px);
}
.about-feature {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(120deg,#eff9fe,#fff);
  border: 1px solid #deedf6;
}
.about-symbol {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg,#0b315c,#1b6090);
  color: white;
  font-size: 44px;
  box-shadow: 0 12px 30px #103e671f;
}
.about-feature h2 {
  font: 700 clamp(25px,3vw,34px)/1.2 var(--serif);
  color: var(--navy);
  margin: 0 0 14px;
}
.about-feature p:not(.section-kicker) {
  font-size: 13px;
  line-height: 1.85;
  color: #526d83;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}
.value-card {
  text-align: center;
  padding: 24px 17px;
}
.value-card>i {
  font-size: 27px;
  color: #15558b;
  margin-bottom: 15px;
}
.value-card h3 {
  font-size: 18px;
}
.value-card p {
  margin-bottom: 0;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}
.plan-card {
  padding: 30px;
  position: relative;
}
.plan-card>i {
  display: block;
  font-size: 28px;
  color: #15558b;
  margin: 17px 0;
}
.plan-card h2 {
  font: 700 24px/1.2 var(--serif);
  color: var(--navy);
  margin: 0 0 12px;
}
.plan-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: #5281a4;
}
.plan-card ul {
  padding-left: 20px;
  margin: 20px 0 26px;
  color: #47647d;
  font-size: 13px;
  line-height: 2;
}
.plan-card li::marker {
  color: #169955;
}
.plan-card .btn {
  width: 100%;
}
.plan-card.featured {
  border-color: #a8d4eb;
  box-shadow: 0 12px 34px #1b5a831b;
  background: linear-gradient(150deg,#f1faff,#fff);
}
.disclaimer {
  text-align: center;
  font-size: 11px;
  color: #6a7f91;
  margin: 22px 0 0;
}
.memorial-notice {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 850px;
  margin: 0 auto 30px;
  padding: 24px 28px;
  border: 1px solid #d6eaf5;
  background: #eef9ff;
  border-radius: 14px;
}
.memorial-notice>i {
  font-size: 35px;
  color: #154c7c;
}
.memorial-notice h2 {
  font: 700 22px var(--serif);
  margin: 0 0 6px;
  color: var(--navy);
}
.memorial-notice p {
  font-size: 13px;
  line-height: 1.7;
  color: #5a7085;
  margin: 0;
}
.empty-memorial {
  max-width: 650px;
  margin: auto;
  text-align: center;
  padding: 45px 25px;
  border: 1px solid #e0edf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px #143c600c;
}
.empty-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f5fc;
  color: #154c7c;
  font-size: 28px;
  margin: 0 auto 18px;
}
.empty-memorial h2 {
  font: 700 27px var(--serif);
  color: var(--navy);
  margin: 0 0 10px;
}
.empty-memorial p {
  max-width: 450px;
  margin: 0 auto 22px;
  font-size: 13px;
  line-height: 1.8;
  color: #5a7085;
}
.contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.contact-detail {
  display: flex;
  gap: 19px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #dceaf4;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 24px #143c600c;
  transition: .2s;
}
.contact-detail:hover {
  transform: translateY(-3px);
  border-color: #a8d3e9;
}
.contact-detail>i {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: #e6f4fc;
  color: #124a7b;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.contact-detail:nth-child(2)>i {
  background: #e4f7eb;
  color: #128349;
}
.contact-detail span {
  min-width: 0;
}
.contact-detail small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  color: #68839a;
}
.contact-detail h2 {
  font: 700 20px var(--serif);
  color: var(--navy);
  margin: 7px 0;
}
.contact-detail p {
  font-size: 12px;
  line-height: 1.65;
  color: #5a7085;
  margin: 0 0 10px;
}
.contact-detail b {
  font-size: 12px;
  color: #15558b;
}
.contact-callout {
  text-align: center;
  padding: 35px 20px;
  margin-top: 28px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(120deg,#082d56,#155486);
}
.contact-callout h2 {
  font: 700 27px var(--serif);
  margin: 0 0 10px;
}
.contact-callout p {
  font-size: 13px;
  color: #e0effa;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.contact-callout .green {
  display: inline-flex;
}
.plan-preview-card {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 30px;
  background: linear-gradient(120deg,#eef9ff,#fff);
  border: 1px solid #dceaf4;
  border-radius: 14px;
}
.plan-preview-card>div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 15px;
  align-items: center;
}
.plan-preview-card>div>i {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e1f2fb;
  color: #124a7b;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.plan-preview-card h3 {
  font: 700 19px var(--serif);
  margin: 0 0 4px;
  color: var(--navy);
}
.plan-preview-card p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #5a7085;
}
.plan-preview-card .btn {
  flex-shrink: 0;
}
@media (max-width:900px) {
  .detail-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .values-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .header nav {
    margin-left: 20px;
  }
  .head-actions a {
    padding: 8px 9px;
  }
  .plan-preview-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width:650px) {
  .page-hero {
    padding: 42px 18px 30px;
  }
  .page-hero h1 {
    font-size: 36px;
  }
  .page-hero>p:not(.section-kicker) {
    font-size: 13px;
  }
  .page-section {
    padding: 32px 16px 40px;
  }
  .detail-grid,.plan-grid,.contact-detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-card {
    padding: 22px;
  }
  .about-feature {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .about-symbol {
    width: 76px;
    height: 76px;
    font-size: 28px;
  }
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-detail {
    padding: 18px;
    gap: 13px;
  }
  .contact-detail>i {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 18px;
  }
  .plan-preview-card {
    padding: 20px;
  }
  .plan-preview-card>div {
    grid-template-columns: 40px 1fr;
  }
  .plan-preview-card>div>i {
    width: 40px;
    height: 40px;
  }
  .memorial-notice {
    align-items: flex-start;
    padding: 20px;
  }
  .memorial-notice>i {
    font-size: 27px;
  }
}
@media (max-width:400px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-detail h2 {
    font-size: 18px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
}
/*========================================
   BENEFICIOS DE LA PORTADA
   Ajustes de tamaño, tipografía y espacio
   ========================================*/
.trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.trust div {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #10365f;
}
.trust i {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #092e59, #164a7d);
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 5px 13px rgba(9, 46, 89, 0.18);
  flex-shrink: 0;
}
/*Ajustes para celulares*/
@media (max-width: 760px) {
  .trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    max-width: 420px;
    margin-bottom: 24px;
  }
  .trust div {
    gap: 9px;
    font-size: 11px;
    line-height: 1.4;
  }
  .trust i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 16px;
  }
}
/*========================================
   NOSOTROS - PORTADA
   ========================================*/
.home-about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
  padding: 65px clamp(24px, 7%, 100px);
  background: linear-gradient(135deg, #f4fbff, #ffffff 65%);
  border-bottom: 1px solid #e1edf5;
}
.home-about-intro {
  max-width: 480px;
}
.home-about-intro h2 {
  font-family: var(--serif);
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.2;
  color: #092e59;
  margin: 0 0 16px;
}
.home-about-intro > p {
  color: #526d83;
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 22px;
}
.home-about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #15558a;
  font-size: 13px;
  font-weight: 700;
}
.home-about-link i {
  transition: transform 0.2s ease;
}
.home-about-link:hover i {
  transform: translateX(5px);
}
.home-about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-about-card {
  padding: 25px 22px;
  background: #ffffff;
  border: 1px solid #dceaf4;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(9, 46, 89, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(9, 46, 89, 0.1);
}
.home-about-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 17px;
  border-radius: 14px;
  background: #e8f5fc;
  color: #164a7d;
  font-size: 22px;
}
.home-about-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: #092e59;
  margin: 0 0 10px;
}
.home-about-card p {
  font-size: 12px;
  line-height: 1.8;
  color: #526d83;
  margin: 0;
}
@media (max-width: 760px) {
  .home-about {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 21px;
  }
  .home-about-intro h2 {
    font-size: 31px;
  }
  .home-about-values {
    gap: 12px;
  }
  .home-about-card {
    padding: 19px 15px;
  }
  .home-about-card h3 {
    font-size: 18px;
  }
  .home-about-card p {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .home-about-values {
    grid-template-columns: 1fr;
  }
}
/*Acabado visual de misión y visión*/
.home-about-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border: 1px solid #d8e8f5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(9, 46, 89, 0.06);
}
.home-about-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #e6f3fc;
  color: #164a7d;
  font-size: 21px;
}
.home-about-card h3 {
  margin: 0 0 12px;
  color: #092e59;
}
.home-about-card p {
  margin: 0;
  line-height: 1.75;
}
/*Fondo diferenciado para la sección Nosotros*/
.home-about {
  background: linear-gradient(
        135deg,
        #f0f8fc 0%,
        #f8fbfd 55%,
        #ffffff 100%
    );
}
/*Fotografía floral de la sección Nosotros*/
.home-about-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 190px;
  margin: 22px 0 24px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dceaf4;
  box-shadow: 0 10px 28px rgba(9, 46, 89, 0.10);
}
.home-about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.5s ease;
}
.home-about-photo:hover img {
  transform: scale(1.04);
}
.home-about-photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(
        transparent,
        rgba(7, 35, 66, 0.82)
    );
}
.home-about-photo-caption i {
  color: #ffffff;
  font-size: 15px;
}
@media (max-width: 760px) {
  .home-about-photo {
    max-width: 100%;
    height: 180px;
  }
}
/*Ajuste de espacio en la sección Nosotros*/
.home-about {
  padding-bottom: 42px;
}
.home-about-intro {
  align-self: center;
}
.home-about-photo {
  margin-bottom: 18px;
}
/*========================================
   TARJETAS DE SERVICIOS - DISEÑO PREMIUM
   ========================================*/
.service-grid {
  align-items: stretch;
  gap: 16px;
}
.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 235px;
  padding: 26px 16px 18px;
  border: 1px solid #d8e8f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  box-shadow: 0 5px 18px rgba(9, 46, 89, 0.035);
  text-align: center;
  transition: transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.service:hover {
  transform: translateY(-5px);
  border-color: #a9d3ef;
  box-shadow: 0 13px 28px rgba(9, 46, 89, 0.10);
}
.service > i {
  display: block;
  margin-bottom: 19px;
  color: #15558a;
  font-size: 34px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.service:hover > i {
  transform: translateY(-3px);
}
.service h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 0 0 10px;
  color: #092e59;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.service p {
  margin: 0 0 18px;
  color: #526d83;
  font-size: 12px;
  line-height: 1.7;
  flex-grow: 1;
}
.service .service-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  margin-top: auto;
  border-radius: 50%;
  background: #0b345f;
  color: #ffffff;
  transition: background 0.25s ease,
        transform 0.25s ease;
}
.service:hover .service-arrow {
  background: #17679f;
  transform: translateX(3px);
}
/*Adaptación para tablets y celulares*/
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .service {
    min-height: 225px;
    padding: 22px 12px 16px;
  }
  .service > i {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .service h3 {
    font-size: 13px;
  }
  .service p {
    font-size: 11px;
  }
}
/*========================================
   PLANES FUNERARIOS - FUNERARIA JORCO
   ========================================*/
.plans-section {
  padding: 56px clamp(20px, 5%, 72px);
  background: linear-gradient(180deg, #f5faff, #ffffff);
}
.plans-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}
.plans-heading h2 {
  margin: 8px 0 12px;
  color: #10365f;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.15;
}
.plans-heading p {
  color: #61788d;
  font-size: 14px;
  line-height: 1.8;
}
/*Distribución: 3 tarjetas arriba y 2 centradas abajo*/
.plans-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: stretch;
}
.plans-grid > .plan-card {
  grid-column: span 2;
}
.plans-grid > .plan-card:nth-child(4) {
  grid-column: 2 / span 2;
}
.plans-grid > .plan-card:nth-child(5) {
  grid-column: 4 / span 2;
}
/*Tarjetas compactas*/
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 20px 20px;
  border: 1px solid #dbe9f4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(9, 46, 89, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(9, 46, 89, 0.10);
}
/*Iconos*/
.plan-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 13px;
  background: #eaf5fc;
  color: #15558a;
  font-size: 20px;
}
.plan-label {
  margin-bottom: 6px;
  color: #4286b4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
/*Títulos y descripciones*/
.plan-card h3 {
  margin: 0 0 8px;
  color: #10365f;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
}
.plan-description {
  min-height: 42px;
  margin: 0 0 14px;
  color: #64798b;
  font-size: 12px;
  line-height: 1.6;
}
/*Precios*/
.plan-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 15px;
  border-radius: 11px;
  background: #f1f8fd;
}
.plan-price span {
  color: #60798d;
  font-size: 11px;
}
.plan-price strong {
  color: #0c355f;
  font-size: 24px;
  letter-spacing: -0.4px;
}
.plan-monthly {
  margin: 9px 0 17px;
  color: #526d83;
  font-size: 11px;
  line-height: 1.7;
}
.plan-monthly strong {
  color: #087d52;
  font-size: 13px;
}
/*Servicios incluidos*/
.plan-card h4 {
  margin: 0 0 10px;
  color: #10365f;
  font-size: 13px;
}
.plan-features {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #52677b;
  font-size: 11px;
  line-height: 1.5;
}
.plan-features li i {
  flex-shrink: 0;
  margin-top: 3px;
  color: #16865d;
  font-size: 10px;
}
/*Botones*/
.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 9px;
  background: #0c355f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.plan-button:hover {
  background: #17679f;
  transform: translateY(-2px);
}
/*Plan destacado*/
.plan-featured {
  border: 2px solid #7ab8df;
  background: linear-gradient(180deg, #ffffff, #f5faff);
}
.plan-badge {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 6px 8px;
  border-radius: 30px;
  background: #e5f3fc;
  color: #15558a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
/*Protección familiar*/
.plan-protection {
  border-color: #b7d9d0;
}
.plan-protection .plan-icon {
  background: #e9f7f1;
  color: #147451;
}
.plan-note {
  margin: -5px 0 18px;
  color: #64798b;
  font-size: 10px;
  line-height: 1.7;
}
/*Nota informativa*/
.plans-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 1000px;
  margin: 24px auto 0;
  padding: 15px 18px;
  border: 1px solid #e0ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #607589;
}
.plans-disclaimer > i {
  margin-top: 3px;
  color: #397da6;
}
.plans-disclaimer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}
/*Tablets*/
@media (max-width: 1050px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans-grid > .plan-card,
    .plans-grid > .plan-card:nth-child(4),
    .plans-grid > .plan-card:nth-child(5) {
    grid-column: auto;
  }
}
/*Celulares*/
@media (max-width: 620px) {
  .plans-section {
    padding: 42px 16px;
  }
  .plans-heading {
    margin-bottom: 28px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .plan-card {
    padding: 22px 18px 18px;
  }
  .plan-card h3 {
    font-size: 21px;
  }
  .plan-description {
    min-height: 0;
  }
  .plan-price strong {
    font-size: 23px;
  }
  .plan-features {
    gap: 9px;
  }
}
/*========================================
   MEJORA VISUAL - PLANES FUNERARIA JORCO
   ========================================*/
/*Fondo más elegante y con profundidad*/
.plans-section {
  padding: 44px 24px 52px;
  background: radial-gradient(
            ellipse at 8% 10%,
            rgba(199, 229, 246, 0.48),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 92% 85%,
            rgba(220, 239, 250, 0.48),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #f3f9fd 0%,
            #ffffff 48%,
            #f5faff 100%
        );
}
/*Menos espacio antes de las tarjetas*/
.plans-heading {
  margin-bottom: 26px;
}
/*Tarjetas un poco más estrechas y compactas*/
.plans-grid {
  max-width: 1120px;
  gap: 16px;
}
/*Menos relleno interior*/
.plan-card {
  padding: 20px 17px 17px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(16, 54, 95, 0.055);
  border-color: #d9e8f4;
}
/*Efecto sutil al pasar el cursor*/
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(16, 54, 95, 0.10);
}
/*Iconos más compactos*/
.plan-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 11px;
  border-radius: 12px;
  font-size: 18px;
}
/*Títulos*/
.plan-card h3 {
  font-size: 21px;
  line-height: 1.25;
}
/*Descripciones más compactas*/
.plan-description {
  margin-bottom: 12px;
  font-size: 11.5px;
  line-height: 1.6;
}
/*Bloque de precio*/
.plan-price {
  padding: 12px 13px;
  border: 1px solid #e5f0f8;
  background: linear-gradient(135deg, #edf7fd, #f7fbff);
}
.plan-price strong {
  font-size: 22px;
}
/*Lista de servicios*/
.plan-features {
  gap: 7px;
  margin-bottom: 17px;
}
.plan-features li {
  font-size: 10.5px;
  line-height: 1.45;
}
/*Botones más discretos*/
.plan-button {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 10.5px;
}
/*Plan destacado*/
.plan-featured {
  border: 1.5px solid #79b9e2;
  background: linear-gradient(160deg, #ffffff, #f2f9ff);
}
/*Protección familiar*/
.plan-protection {
  border-color: #b8dcd0;
  background: linear-gradient(160deg, #ffffff, #f4fbf8);
}
/*Nota informativa*/
.plans-disclaimer {
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.85);
  border-color: #dceaf4;
  box-shadow: 0 4px 14px rgba(16, 54, 95, 0.025);
}
/*Adaptación para celulares*/
@media (max-width: 620px) {
  .plans-section {
    padding: 38px 15px 42px;
  }
  .plans-grid {
    gap: 15px;
  }
  .plan-card {
    padding: 20px 17px 17px;
  }
  .plan-card h3 {
    font-size: 21px;
  }
  .plan-price strong {
    font-size: 22px;
  }
  .plan-features li {
    font-size: 11px;
  }
}
/*==========================================
   HISTORIA DE FUNERARIA JORCO
   ==========================================*/
/*Fondo de historia a todo el ancho de la página*/
.history-page {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 76px clamp(20px, 5vw, 76px);
  background: radial-gradient(
            ellipse at 12% 15%,
            rgba(207, 235, 248, 0.78),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 90% 55%,
            rgba(226, 243, 251, 0.72),
            transparent 43%
        ),
        linear-gradient(
            135deg,
            #edf8fd 0%,
            #f8fcff 48%,
            #eaf5fb 100%
        );
  box-sizing: border-box;
}
/*El contenido permanece centrado*/
.history-page .history-intro,
.history-page .history-purpose,
.history-page .history-values {
  width: 100%;
  box-sizing: border-box;
}
/*Separación elegante entre historia y misión/visión*/
.history-page .history-purpose {
  padding-top: 48px;
  border-top: 1px solid rgba(172, 207, 229, 0.55);
}
/*Adaptación para móviles*/
@media (max-width: 600px) {
  .history-page {
    padding: 44px 18px;
  }
  .history-page .history-purpose {
    padding-top: 34px;
  }
}
.history-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  max-width: 1240px;
  margin: 0 auto 90px;
}
.history-copy h2,
.purpose-heading h2 {
  margin: 12px 0 22px;
  color: #10365f;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1.2;
}
.history-copy > p:not(.section-kicker) {
  color: #587087;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 17px;
}
.history-copy .btn {
  margin-top: 12px;
}
/*Collage circular*/
.history-gallery {
  position: relative;
  width: 100%;
  max-width: 510px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.history-photo {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 7px solid #fff;
  border-radius: 50%;
  background: #e7f3fa;
  box-shadow: 0 15px 38px rgba(16, 54, 95, .14);
  transition: transform .35s ease, box-shadow .35s ease;
}
.history-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-photo:hover {
  transform: scale(1.045);
  box-shadow: 0 20px 42px rgba(16, 54, 95, .2);
  z-index: 5;
}
.history-photo-main {
  width: 64%;
  aspect-ratio: 1;
  top: 3%;
  left: 18%;
  z-index: 2;
}
.history-photo-main img {
  object-position: center 40%;
}
.history-photo-ceremony {
  width: 43%;
  aspect-ratio: 1;
  top: 42%;
  left: 0;
  z-index: 3;
}
.history-photo-family {
  width: 42%;
  aspect-ratio: 1;
  top: 48%;
  right: 0;
  z-index: 3;
}
.history-photo-vehicle {
  width: 35%;
  aspect-ratio: 1;
  bottom: 0;
  left: 33%;
  z-index: 4;
}
.history-years {
  position: absolute;
  top: 4%;
  right: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(16, 54, 95, .12);
  color: #10365f;
  text-align: center;
}
.history-years i {
  color: #18845f;
  font-size: 18px;
}
.history-years strong {
  font-size: 18px;
}
.history-years span {
  color: #64798b;
  font-size: 10px;
}
/*Misión y visión*/
.history-purpose {
  max-width: 1120px;
  margin: 0 auto 70px;
}
.purpose-heading {
  max-width: 690px;
  margin: 0 auto 32px;
  text-align: center;
}
.purpose-heading h2 {
  margin-bottom: 12px;
}
.purpose-heading > p:last-child {
  color: #64798b;
  font-size: 14px;
  line-height: 1.8;
}
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.purpose-card {
  padding: 32px;
  border: 1px solid #dcebf6;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f1f8fd);
  box-shadow: 0 12px 32px rgba(16, 54, 95, .055);
  transition: transform .25s ease, box-shadow .25s ease;
}
.purpose-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(16, 54, 95, .1);
}
.purpose-card-vision {
  background: linear-gradient(145deg, #fff, #f2f9fb);
  border-color: #d5e8ef;
}
.purpose-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: #e2f1fb;
  color: #15558a;
  font-size: 22px;
}
.purpose-card-vision .purpose-icon {
  background: #e5f3f1;
  color: #18755e;
}
.purpose-label {
  margin: 0 0 9px;
  color: #3982ad;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.purpose-card h3 {
  margin: 0 0 14px;
  color: #10365f;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
}
.purpose-card > p:last-child {
  margin: 0;
  color: #5c7287;
  font-size: 14px;
  line-height: 1.9;
}
/*Valores*/
.history-values {
  max-width: 1120px;
  margin: 0 auto;
  gap: 18px;
}
.history-values .value-card {
  border-radius: 16px;
}
/*Tablets*/
@media (max-width: 900px) {
  .history-page {
    padding: 55px 24px;
  }
  .history-intro {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 65px;
  }
  .history-copy {
    max-width: 720px;
  }
  .history-gallery {
    max-width: 450px;
  }
  .purpose-grid {
    gap: 18px;
  }
  .purpose-card {
    padding: 25px;
  }
}
/*Celulares*/
@media (max-width: 600px) {
  .history-page {
    padding: 42px 18px;
  }
  .history-intro {
    gap: 30px;
    margin-bottom: 55px;
  }
  .history-copy h2,
    .purpose-heading h2 {
    font-size: 31px;
  }
  .history-copy > p:not(.section-kicker) {
    font-size: 14px;
    line-height: 1.85;
  }
  .history-gallery {
    width: 100%;
    max-width: 370px;
  }
  .history-photo {
    border-width: 4px;
  }
  .history-years {
    padding: 10px 12px;
    border-radius: 13px;
  }
  .history-years strong {
    font-size: 15px;
  }
  .history-years span {
    max-width: 90px;
    font-size: 9px;
  }
  .history-purpose {
    margin-bottom: 48px;
  }
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .purpose-card {
    padding: 24px;
    border-radius: 16px;
  }
  .purpose-card h3 {
    font-size: 23px;
  }
  .purpose-card > p:last-child {
    font-size: 13px;
  }
  .history-values {
    grid-template-columns: 1fr;
  }
}
/*==========================================
   FUNERARIA JORCO — TARJETAS DE NOSOTROS
   Diseño elegante y moderno
   ==========================================*/
/*Tarjetas de misión y visión*/
.history-page .history-purpose,
.about-page .about-feature {
  border-radius: 26px;
}
.history-page .mission-card,
.history-page .vision-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(190, 219, 238, 0.85);
  border-radius: 22px;
  background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98),
        rgba(241, 249, 254, 0.92)
    );
  box-shadow: 0 12px 32px rgba(16, 54, 95, 0.055);
  transition: transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
/*Efecto decorativo superior*/
.history-page .mission-card::before,
.history-page .vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #70c4ee, #17679f);
  opacity: 0.85;
}
.history-page .vision-card::before {
  background: linear-gradient(90deg, #70cbb1, #168365);
}
.history-page .mission-card:hover,
.history-page .vision-card:hover {
  transform: translateY(-5px);
  border-color: #c2dff1;
  box-shadow: 0 20px 42px rgba(16, 54, 95, 0.11);
}
/*Iconos*/
.history-page .mission-card .value-icon,
.history-page .vision-card .value-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 17px;
  background: #e7f4fc;
  color: #15558a;
  font-size: 23px;
  transition: transform 0.3s ease;
}
.history-page .vision-card .value-icon {
  background: #e6f6ef;
  color: #168365;
}
.history-page .mission-card:hover .value-icon,
.history-page .vision-card:hover .value-icon {
  transform: scale(1.07);
}
/*Títulos y texto*/
.history-page .mission-card h3,
.history-page .vision-card h3 {
  margin: 0 0 14px;
  color: #10365f;
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.3;
}
.history-page .mission-card p,
.history-page .vision-card p {
  margin: 0;
  color: #61788d;
  font-size: 14px;
  line-height: 1.9;
}
/*Tarjetas inferiores de valores*/
.history-page .value-card {
  padding: 28px 22px;
  border: 1px solid #dfebf5;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(16, 54, 95, 0.045);
  transition: transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}
.history-page .value-card:hover {
  transform: translateY(-5px);
  border-color: #c2dff1;
  box-shadow: 0 16px 32px rgba(16, 54, 95, 0.09);
}
.history-page .value-card > i {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #eaf5fc;
  color: #15558a;
  font-size: 22px;
}
.history-page .value-card h3 {
  margin: 0 0 10px;
  color: #10365f;
  font-family: var(--serif);
  font-size: 20px;
}
.history-page .value-card p {
  margin: 0;
  color: #61788d;
  font-size: 13px;
  line-height: 1.8;
}
/*Móviles*/
@media (max-width: 600px) {
  .history-page .mission-card,
    .history-page .vision-card {
    padding: 25px 22px;
    border-radius: 19px;
  }
  .history-page .mission-card h3,
    .history-page .vision-card h3 {
    font-size: 23px;
  }
  .history-page .value-card {
    padding: 24px 19px;
  }
  /*Evita efectos de movimiento innecesarios en móviles*/
  .history-page .mission-card:hover,
    .history-page .vision-card:hover,
    .history-page .value-card:hover {
    transform: none;
  }
}
/*Mantener el footer abajo en las páginas de catálogo*/
html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
}
body > footer {
  margin-top: auto;
}
/*CONTACTO: estilos exclusivos de contacto.html*/
.contact-page .contact-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.contact-page .contact-detail-grid .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  min-height: 160px;
  padding: 25px;
  border: 1px solid #dce8f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(13, 54, 91, 0.05);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-page .contact-detail-grid .contact-detail:hover {
  border-color: #b9d5e9;
  box-shadow: 0 12px 28px rgba(13, 54, 91, 0.09);
}
.contact-page .contact-detail-grid .contact-detail > i {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e8f4fc;
  color: #15517f;
  font-size: 20px;
}
.contact-page .contact-detail-grid .contact-detail:nth-child(2) > i {
  background: #e5f7ed;
  color: #07864e;
}
.contact-page .contact-detail-grid .contact-detail > span {
  min-width: 0;
}
.contact-page .contact-detail-grid .contact-detail small {
  display: block;
  margin: 3px 0 8px;
  color: #71869a;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.contact-page .contact-detail-grid .contact-detail h2 {
  margin: 0 0 8px;
  color: #0c3156;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact-page .contact-detail-grid .contact-detail p {
  margin: 0 0 12px;
  color: #64798d;
  font-size: 13px;
  line-height: 1.7;
}
.contact-page .contact-detail-grid .contact-detail b {
  color: #15517f;
  font-size: 12px;
  font-weight: 700;
}
.contact-page .contact-callout {
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 42px 25px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0b2f53, #164f7b);
  text-align: center;
}
.contact-page .contact-callout h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
}
.contact-page .contact-callout p {
  margin: 0 auto 23px;
  color: #e0edf7;
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 760px) {
  .contact-page .contact-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-page .contact-detail-grid .contact-detail {
    min-height: 0;
    padding: 21px 18px;
    gap: 14px;
  }
  .contact-page .contact-detail-grid .contact-detail > i {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
  .contact-page .contact-detail-grid .contact-detail h2 {
    font-size: 19px;
  }
  .contact-page .contact-callout {
    padding: 32px 20px;
  }
}
/*PIE DE PÁGINA: enlaces legales compactos*/
.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 20px;
  border-top: 1px solid rgba(18, 56, 95, 0.12);
  border-bottom: 1px solid rgba(18, 56, 95, 0.12);
}
.legal-footer-links a {
  color: #244b70;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
  color: #a78035;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .legal-footer-links {
    gap: 9px 15px;
    padding: 12px 16px;
  }
  .legal-footer-links a {
    font-size: 11px;
  }
}
/*Crédito profesional*/
.developer-credit {
  padding: 8px 16px 10px;
  background: #12385f;
  color: #dcecf7;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}
.developer-credit a {
  color: #e0c27b;
  font-weight: 600;
  text-decoration: none;
}
.developer-credit a:hover,
.developer-credit a:focus-visible {
  text-decoration: underline;
}
/*FOOTER COMPACTO — FUNERARIA JORCO*/
.site-footer {
  background: #e5f2f9;
  color: #12385f;
  border-top: 1px solid #d4e5f0;
}
.footer-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1.05fr;
  gap: 30px;
  padding: 28px clamp(22px, 5vw, 70px);
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
.footer-column h3 {
  margin: 0 0 5px;
  color: #0b3158;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}
.footer-column p,
.footer-column a {
  margin: 0;
  color: #496983;
  font-size: 12px;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-column a:hover {
  color: #a78035;
}
.footer-column i {
  margin-right: 5px;
  color: #1b527d;
}
.footer-about .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  text-decoration: none;
}
.footer-about .foot-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}
.footer-about .foot-brand b {
  display: block;
  color: #0b3158;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
}
.footer-about .foot-brand small {
  color: #496983;
  font-size: 11px;
}
.footer-about > p {
  max-width: 260px;
}
.footer-main-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 5px;
}
.footer-main-links a {
  font-size: 11px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px clamp(22px, 5vw, 70px);
  background: #12385f;
  color: #e4eff7;
  font-size: 10px;
}
.developer-credit {
  padding: 8px 16px;
  background: #0c2d4e;
  color: #cbdce9;
  text-align: center;
  font-size: 10px;
}
.developer-credit a {
  color: #e0c27b;
  font-weight: 600;
  text-decoration: none;
}
.developer-credit a:hover {
  text-decoration: underline;
}
/*TABLET*/
@media (max-width: 900px) {
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    padding: 26px 28px;
  }
}
/*CELULAR*/
@media (max-width: 520px) {
  .footer-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 24px 18px;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .footer-about > p {
    max-width: 330px;
  }
  .footer-column h3 {
    font-size: 16px;
  }
  .footer-column p,
    .footer-column a {
    font-size: 11px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 12px 18px;
    line-height: 1.6;
  }
  .developer-credit {
    padding: 10px 16px;
    line-height: 1.7;
  }
}
/*Planes sin precio público*/
.plan-quote {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: #edf6fc;
}
.plan-quote span {
  color: #58738a;
  font-size: 11px;
}
.plan-quote strong {
  color: #0c3156;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
}
.plan-quote small {
  color: #58738a;
  font-size: 10px;
  line-height: 1.5;
}
/*Tarjeta de asesoría personalizada*/
.plan-advisory h4 {
  margin: 14px 0 8px;
  color: #0c3156;
  font-size: 13px;
}
.plan-advisory .plan-features {
  margin-bottom: 18px;
}
.plan-advisory .plan-features li {
  margin-bottom: 7px;
}
.plan-advisory .plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
}
/*Planes de inicio: tres tarjetas por fila*/
@media (min-width: 901px) {
  #planes .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  #planes .plans-grid > .plan-card,
    #planes .plans-grid > .plan-advisory {
    grid-column: auto !important;
    width: 100%;
    min-width: 0;
  }
}
/*Fotografías de los homenajes recientes en Inicio*/
.obituaries .obit .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.obituaries .home-obit-card h3 {
  overflow-wrap: anywhere;
}
.obituaries .home-obit-card p {
  overflow-wrap: anywhere;
}
/*Ajuste de fotografías de obituarios en Inicio*/
.obituaries .obit .portrait {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}
.obituaries .obit .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}
/*=========================================
   OBITUARIOS — AJUSTES VISUALES
   Solo afecta a obituarios.html
   =========================================*/
/*Encabezado celeste más compacto*/
body:has(.obituary-public-page) .page-hero {
  padding-top: 34px;
  padding-bottom: 26px;
}
body:has(.obituary-public-page) .page-hero h1 {
  font-size: clamp(34px, 4vw, 44px);
  margin-bottom: 8px;
}
body:has(.obituary-public-page) .page-hero .page-breadcrumb {
  margin-top: 12px;
}
/*Menos espacio alrededor del contenido*/
.obituary-public-page {
  padding-top: 32px;
  padding-bottom: 42px;
}
/*Aviso informativo más discreto*/
.obituary-public-page .memorial-notice {
  padding: 18px 24px;
  margin-bottom: 24px;
}
/*Título y botón de añadir recordatorio*/
.obituary-public-page .obituary-page-actions {
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 18px 0;
}
.obituary-public-page .obituary-page-actions h2 {
  font-size: clamp(25px, 2.5vw, 30px);
}
/*Cuatro tarjetas por fila en pantallas grandes*/
.obituary-public-page .public-obituaries-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
/*Tarjetas más compactas*/
.obituary-public-page .public-obituary-card {
  padding: 17px 12px;
  border-radius: 14px;
}
.obituary-public-page .public-obituary-photo {
  width: 88px;
  height: 88px;
  border-width: 5px;
  margin-bottom: 10px;
}
.obituary-public-page .public-obituary-card h3 {
  font-size: 18px;
  line-height: 1.3;
}
.obituary-public-page .public-obituary-years {
  margin-bottom: 8px;
  font-size: 12px;
}
.obituary-public-page .public-obituary-message {
  font-size: 12px;
  line-height: 1.6;
}
/*Portátiles y tabletas*/
@media (max-width: 1050px) {
  .obituary-public-page .public-obituaries-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }
}
/*Celulares: dos columnas en pantallas suficientemente anchas*/
@media (max-width: 760px) {
  body:has(.obituary-public-page) .page-hero {
    padding-top: 30px;
    padding-bottom: 22px;
  }
  .obituary-public-page {
    padding-top: 25px;
    padding-bottom: 32px;
  }
  .obituary-public-page .public-obituaries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .obituary-public-page .public-obituary-card {
    padding: 15px 9px;
  }
  .obituary-public-page .public-obituary-photo {
    width: 70px;
    height: 70px;
  }
  .obituary-public-page .public-obituary-card h3 {
    font-size: 15px;
  }
}
/*Celulares muy pequeños: una columna*/
@media (max-width: 380px) {
  .obituary-public-page .public-obituaries-grid {
    grid-template-columns: 1fr;
  }
}
/*Botón para añadir recordatorio: acabado compacto*/
.obituary-public-page .obituary-page-actions > a,
.obituary-public-page .obituary-page-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid #174b76;
  border-radius: 10px;
  background: linear-gradient(135deg, #123b60, #194f7d);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(16, 55, 87, 0.12);
  transition: background .2s ease, box-shadow .2s ease,
                transform .2s ease;
}
.obituary-public-page .obituary-page-actions > a:hover,
.obituary-public-page .obituary-page-actions > button:hover {
  background: #205b88;
  box-shadow: 0 5px 12px rgba(16, 55, 87, 0.18);
  transform: translateY(-1px);
}
.obituary-public-page .obituary-page-actions > a:focus-visible,
.obituary-public-page .obituary-page-actions > button:focus-visible {
  outline: 3px solid rgba(43, 139, 201, .35);
  outline-offset: 3px;
}
/*Ajuste para celular*/
@media (max-width: 600px) {
  .obituary-public-page .obituary-page-actions > a,
    .obituary-public-page .obituary-page-actions > button {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .hero div:has(> i.fa-clock + span > b) {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .header nav {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-left: 0;
    border-right: 0;
  }
}
/*INICIO — Tarjetas de misión y visión*/
.home-about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 22px;
}
.home-about-values .home-about-card {
  position: relative;
  min-width: 0;
  padding: 20px 17px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid #dce9f4;
  border-radius: 16px;
  box-shadow: 0 7px 22px rgba(11, 49, 86, 0.06);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-about-values .home-about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #174c78, #7bc8e8);
}
.home-about-values .home-about-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #e8f4fc;
  color: #164c79;
  font-size: 15px;
}
.home-about-values .home-about-card h3 {
  margin: 0 0 8px;
  color: #0c3156;
  font-size: 17px;
  line-height: 1.3;
}
.home-about-values .home-about-card p {
  margin: 0;
  color: #61778c;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .home-about-values {
    gap: 10px;
    margin-top: 18px;
  }
  .home-about-values .home-about-card {
    padding: 17px 12px;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(11, 49, 86, 0.055);
  }
  .home-about-values .home-about-icon {
    width: 33px;
    height: 33px;
    margin-bottom: 10px;
    border-radius: 10px;
    font-size: 13px;
  }
  .home-about-values .home-about-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .home-about-values .home-about-card p {
    font-size: 11.5px;
    line-height: 1.65;
  }
}
@media (hover: hover) {
  .home-about-values .home-about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(11, 49, 86, 0.10);
  }
}
/*=========================================
   PIE DE PÁGINA — COMPACTO EN CELULARES
   =========================================*/
@media (max-width: 520px) {
  .site-footer .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    padding: 16px 14px 18px;
  }
  /*Identidad de la funeraria*/
  .site-footer .footer-about {
    grid-column: 1 / -1;
    gap: 6px;
  }
  .site-footer .footer-about .foot-brand {
    gap: 8px;
    margin: 0;
  }
  .site-footer .footer-about .foot-brand img {
    width: 38px;
    height: 38px;
  }
  .site-footer .footer-about .foot-brand b {
    font-size: 16px;
    line-height: 1.2;
  }
  .site-footer .footer-about .foot-brand small {
    font-size: 10px;
  }
  .site-footer .footer-about > p {
    max-width: 100%;
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
  }
  /*Contacto, ubicación e información legal*/
  .site-footer .footer-column {
    gap: 5px;
    min-width: 0;
  }
  .site-footer .footer-column h3 {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.3;
  }
  .site-footer .footer-column p,
    .site-footer .footer-column a {
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .site-footer .footer-column i {
    margin-right: 3px;
  }
  .site-footer .footer-main-links {
    gap: 5px 9px;
    margin-top: 5px;
  }
  .site-footer .footer-main-links a {
    font-size: 10px;
  }
  /*Derechos reservados*/
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 12px;
    text-align: center;
    font-size: 9px;
    line-height: 1.4;
  }
  /*Crédito del desarrollador*/
  .site-footer .developer-credit {
    padding: 7px 10px;
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
  }
}
/*PIE DE PÁGINA MÓVIL — VERSIÓN REDUCIDA*/
@media (max-width: 520px) {
  .site-footer .footer-about > p,
    .site-footer .footer-main-links {
    display: none !important;
  }
  .site-footer .footer-layout {
    padding: 12px 14px 14px !important;
    gap: 13px 12px !important;
  }
  .site-footer .footer-about .foot-brand img {
    width: 34px !important;
    height: 34px !important;
  }
  .site-footer .footer-about .foot-brand b {
    font-size: 15px !important;
  }
  .site-footer .footer-about .foot-brand small {
    font-size: 9px !important;
  }
  .site-footer .footer-column {
    gap: 4px !important;
  }
  .site-footer .footer-column h3 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }
  .site-footer .footer-column p,
    .site-footer .footer-column a {
    font-size: 9px !important;
    line-height: 1.4 !important;
  }
  .site-footer .footer-bottom {
    padding: 7px 9px !important;
    gap: 3px !important;
    font-size: 8px !important;
  }
  .site-footer .developer-credit {
    padding: 6px 8px !important;
    font-size: 8px !important;
    line-height: 1.4 !important;
  }
}
/** Carrusel de servicios de Funeraria Jorco.
 * Afecta solo a #servicios en móvil; escritorio conserva su cuadrícula actual.*/
.services-carousel-controls {
  display: none;
}
@media (max-width: 760px) {
  #servicios .services-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  #servicios .service-grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #servicios .service-grid::-webkit-scrollbar {
    display: none;
  }
  #servicios .service-grid > .service {
    flex: 0 0 calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
    min-width: 0;
    min-height: 205px;
    margin: 0;
    padding: 20px 10px 14px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  #servicios .service-grid > .service:last-child {
    grid-column: auto;
  }
  #servicios .service-grid > .service > i {
    margin-bottom: 13px;
    font-size: 29px;
  }
  #servicios .service-grid > .service h3 {
    min-height: 36px;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.35;
  }
  #servicios .service-grid > .service p {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.5;
  }
  #servicios .service-grid > .service .service-arrow {
    width: 31px;
    height: 31px;
    min-height: 31px;
    flex: 0 0 31px;
    margin-top: auto;
    font-size: 12px;
  }
  #servicios .services-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 3px auto 0;
  }
  #servicios .services-carousel-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d5e7f4;
    border-radius: 50%;
    background: #fff;
    color: #0b345f;
    box-shadow: 0 4px 12px rgba(9, 46, 89, 0.08);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
  }
  #servicios .services-carousel-button:not(:disabled):active {
    transform: scale(.96);
  }
  #servicios .services-carousel-button:not(:disabled):hover {
    background: #0b345f;
    color: #fff;
  }
  #servicios .services-carousel-button:disabled {
    opacity: .35;
    cursor: not-allowed;
    box-shadow: none;
  }
  #servicios .services-carousel-hint {
    color: #617a90;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
  }
}
@media (max-width: 390px) {
  #servicios .service-grid > .service {
    flex-basis: calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
    padding-inline: 8px;
  }
  #servicios .services-carousel-controls {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #servicios .service-grid {
    scroll-behavior: auto;
  }
  #servicios .services-carousel-button {
    transition: none;
  }
}
/*==========================================
   FUNERARIA JORCO — TARJETAS PREMIUM
   Solo carrusel móvil de servicios
   ==========================================*/
@media (max-width: 760px) {
  #servicios .service-grid > .service {
    position: relative;
    isolation: isolate;
    min-height: 205px;
    padding: 20px 10px 15px;
    overflow: hidden;
    background: radial-gradient(
                circle at 100% 0%,
                rgba(207, 234, 247, 0.55),
                transparent 48%
            ),
            linear-gradient(145deg, #ffffff 0%, #f5faff 100%);
    border: 1px solid #d8e8f3;
    border-radius: 17px;
    box-shadow: 0 5px 14px rgba(9, 46, 89, 0.045),
            inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: border-color .2s ease,
            box-shadow .2s ease,
            transform .2s ease;
  }
  /*Línea decorativa superior*/
  #servicios .service-grid > .service::before {
    height: 3px;
    opacity: .85;
    transform: scaleX(1);
    background: linear-gradient(
            90deg,
            #174b78,
            #69c2e6 65%,
            #d7bd82
        );
  }
  /*Icono dentro de un círculo*/
  #servicios .service-grid > .service > i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin: 0 0 13px;
    border-radius: 17px;
    color: #164d7b;
    font-size: 25px;
    background: linear-gradient(
            145deg,
            #edf8fe,
            #dceefa
        );
    border: 1px solid #d6e9f5;
    box-shadow: inset 0 1px 0 #ffffff;
  }
  /*Nombre del servicio*/
  #servicios .service-grid > .service h3 {
    min-height: 32px;
    margin: 0 0 6px;
    color: #0b3158;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .01em;
  }
  /*Descripción*/
  #servicios .service-grid > .service p {
    margin: 0 0 12px;
    color: #61778d;
    font-size: 10px;
    line-height: 1.55;
  }
  /*Flecha más elegante*/
  #servicios .service-grid > .service .service-arrow {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    margin-top: auto;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(
            135deg,
            #0b3158,
            #1c5a89
        );
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    box-shadow: 0 4px 9px rgba(9, 46, 89, .17);
    font-size: 12px;
  }
  /*Realimentación sutil al tocar*/
  #servicios .service-grid > .service:active {
    transform: scale(.985);
    border-color: #a8cde3;
    box-shadow: 0 3px 10px rgba(9, 46, 89, .08);
  }
}
/*Ajuste para teléfonos pequeños*/
@media (max-width: 390px) {
  #servicios .service-grid > .service {
    padding: 17px 8px 13px;
    border-radius: 15px;
  }
  #servicios .service-grid > .service > i {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
    font-size: 23px;
  }
}
/*NOSOTROS: encabezado compacto exclusivamente en móvil*/
@media (max-width: 640px) {
  .page-hero:has(+ .page-section.about-page.history-page) {
    padding: 20px 14px 17px !important;
    min-height: 0 !important;
  }
  .page-hero:has(+ .page-section.about-page.history-page) .section-kicker {
    margin: 0 0 7px !important;
    font-size: 9px !important;
    line-height: 1.3 !important;
    letter-spacing: 1.2px !important;
  }
  .page-hero:has(+ .page-section.about-page.history-page) h1 {
    margin: 0 0 8px !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.6px !important;
  }
  .page-hero:has(+ .page-section.about-page.history-page) > p:not(.section-kicker) {
    max-width: 300px;
    margin: 0 auto 9px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .page-hero:has(+ .page-section.about-page.history-page) .page-breadcrumb {
    margin-top: 7px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}
/*NOSOTROS — tarjetas de misión y visión refinadas*/
@media (max-width: 640px) {
  .history-purpose {
    padding: 24px 12px !important;
    border-radius: 20px;
  }
  .history-purpose .purpose-heading {
    margin-bottom: 18px !important;
    padding: 0 6px;
  }
  .history-purpose .purpose-heading .section-kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
    letter-spacing: 1.3px;
  }
  .history-purpose .purpose-heading h2 {
    margin: 0 0 9px !important;
    font-size: 25px !important;
    line-height: 1.16 !important;
  }
  .history-purpose .purpose-heading > p:last-child {
    max-width: 340px;
    margin: 0 auto !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .history-purpose .purpose-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 10px !important;
  }
  .history-purpose .purpose-card {
    position: relative;
    min-width: 0;
    padding: 15px 11px !important;
    overflow: hidden;
    border: 1px solid #dce8f2 !important;
    border-radius: 15px !important;
    background: linear-gradient(155deg, #ffffff 0%, #f4f9fd 100%) !important;
    box-shadow: 0 5px 16px rgba(13, 54, 91, 0.045);
    box-sizing: border-box;
  }
  .history-purpose .purpose-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2px;
    border-radius: 0 0 4px 4px;
    background: #2b80b7;
    opacity: .75;
  }
  .history-purpose .purpose-card:nth-child(2) {
    background: linear-gradient(155deg, #ffffff 0%, #f2faf7 100%) !important;
    border-color: #d5e9e2 !important;
  }
  .history-purpose .purpose-card:nth-child(2)::before {
    background: #16866b;
  }
  .history-purpose .purpose-icon {
    display: grid;
    place-items: center;
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 11px !important;
    border-radius: 11px !important;
    background: #e6f2fb !important;
    color: #15517f !important;
    font-size: 15px !important;
  }
  .history-purpose .purpose-card:nth-child(2) .purpose-icon {
    background: #e3f4ed !important;
    color: #087e60 !important;
  }
  .history-purpose .purpose-label {
    margin: 0 0 7px !important;
    color: #347da9;
    font-size: 8px !important;
    font-weight: 700;
    line-height: 1.4 !important;
    letter-spacing: .9px;
  }
  .history-purpose .purpose-card h3 {
    margin: 0 0 9px !important;
    color: #10375d;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.28 !important;
    letter-spacing: -.2px;
    overflow-wrap: break-word;
  }
  .history-purpose .purpose-card > p:last-child {
    margin: 0 !important;
    color: #61768a;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }
}
/*NOSOTROS — valores y diferenciales en dos columnas*/
@media (max-width: 640px) {
  .values-grid,
    .trust-grid,
    .benefits-grid,
    .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .values-grid > *,
    .trust-grid > *,
    .benefits-grid > *,
    .features-grid > * {
    min-width: 0;
    box-sizing: border-box;
  }
  .values-grid > article,
    .trust-grid > article,
    .benefits-grid > article,
    .features-grid > article {
    padding: 17px 12px;
    border: 1px solid #dce8f2;
    border-radius: 16px;
    background: linear-gradient(155deg, #ffffff, #f2f8fc);
    box-shadow: 0 5px 16px rgba(13, 54, 91, 0.05);
    text-align: center;
  }
  .values-grid > article:nth-child(even),
    .trust-grid > article:nth-child(even),
    .benefits-grid > article:nth-child(even),
    .features-grid > article:nth-child(even) {
    background: linear-gradient(155deg, #ffffff, #f1f8f6);
    border-color: #d9e9e3;
  }
  .values-grid i,
    .trust-grid i,
    .benefits-grid i,
    .features-grid i {
    font-size: 17px;
  }
  .values-grid h3,
    .trust-grid h3,
    .benefits-grid h3,
    .features-grid h3 {
    margin: 10px 0 7px;
    font-size: 16px;
    line-height: 1.25;
  }
  .values-grid p,
    .trust-grid p,
    .benefits-grid p,
    .features-grid p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
  }
}
/*NOSOTROS — valores en una tarjeta dividida en cruz*/
@media (max-width: 640px) {
  .history-purpose .purpose-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden;
    border: 1px solid #dce8f2;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f3f8fc);
    box-shadow: 0 8px 24px rgba(13, 54, 91, 0.07);
  }
  .history-purpose .purpose-card {
    min-width: 0;
    padding: 19px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: center;
  }
  /*Línea vertical de la cruz*/
  .history-purpose .purpose-card:nth-child(odd) {
    border-right: 1px solid #dce8f2 !important;
  }
  /*Línea horizontal de la cruz*/
  .history-purpose .purpose-card:nth-child(-n+2) {
    border-bottom: 1px solid #dce8f2 !important;
  }
  .history-purpose .purpose-card::before {
    display: none !important;
  }
  .history-purpose .purpose-icon {
    width: 38px !important;
    height: 38px !important;
    margin: 0 auto 10px !important;
    border-radius: 12px !important;
    background: #e8f3fb !important;
    color: #15517f !important;
    font-size: 16px !important;
  }
  .history-purpose .purpose-card:nth-child(even) .purpose-icon {
    background: #e6f4ee !important;
    color: #087e60 !important;
  }
  .history-purpose .purpose-label {
    margin: 0 0 7px !important;
    font-size: 8px !important;
    letter-spacing: .8px;
    line-height: 1.4 !important;
  }
  .history-purpose .purpose-card h3 {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
  .history-purpose .purpose-card > p:last-child {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
}
/*SERVICIOS: encabezado compacto en móviles*/
@media (max-width: 640px) {
  body:has(a[href="servicios.html"].active) .page-hero {
    padding: 20px 14px 17px !important;
  }
  body:has(a[href="servicios.html"].active) .page-hero .section-kicker {
    margin-bottom: 7px !important;
    font-size: 9px !important;
    letter-spacing: 1.2px !important;
    line-height: 1.3 !important;
  }
  body:has(a[href="servicios.html"].active) .page-hero h1 {
    margin: 0 0 8px !important;
    font-size: 28px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.6px !important;
  }
  body:has(a[href="servicios.html"].active) .page-hero > p:not(.section-kicker) {
    max-width: 300px;
    margin: 0 auto 9px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  body:has(a[href="servicios.html"].active) .page-hero .page-breadcrumb {
    margin-top: 7px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}
/*=========================================
   SERVICIOS — TARJETAS PREMIUM EN CELULAR
   Diseño compacto en dos columnas
   =========================================*/
@media (max-width: 640px) {
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    padding: 0 2px;
  }
  .detail-grid .detail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow: hidden;
    padding: 17px 13px 14px;
    box-sizing: border-box;
    border: 1px solid #d8e7f2;
    border-radius: 17px;
    background: linear-gradient(
            145deg,
            #ffffff 0%,
            #f7fbfe 100%
        );
    box-shadow: 0 5px 15px rgba(12, 49, 86, 0.045),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color .25s ease,
            box-shadow .25s ease;
  }
  /*Línea decorativa superior*/
  .detail-grid .detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 13px;
    right: 13px;
    height: 2px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(
            90deg,
            #174875,
            #70c8e9
        );
    opacity: .85;
  }
  /*Iconos*/
  .detail-grid .detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    margin: 0 0 11px;
    border: 1px solid #e0edf6;
    border-radius: 13px;
    background: linear-gradient(
            145deg,
            #eaf5fc,
            #dcecf8
        );
    color: #174875;
    box-shadow: 0 3px 8px rgba(16, 54, 92, .05);
  }
  .detail-grid .detail-icon i {
    font-size: 18px;
  }
  /*Títulos*/
  .detail-grid .detail-card h2 {
    margin: 0 0 7px;
    color: #10365c;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.25px;
    overflow-wrap: anywhere;
  }
  /*Descripciones*/
  .detail-grid .detail-card p {
    margin: 0 0 12px;
    color: #58718a;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: break-word;
  }
  /*Enlaces de acción*/
  .detail-grid .detail-card .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    max-width: 100%;
    margin-top: auto;
    padding: 0 9px;
    box-sizing: border-box;
    border: 1px solid #d9e8f4;
    border-radius: 10px;
    background: #ffffff;
    color: #123f69;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
  }
  .detail-grid .detail-card .text-link span {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
    transition: transform .2s ease;
  }
  .detail-grid .detail-card .text-link:active {
    background: #eaf5fc;
    border-color: #a9cce5;
  }
  .detail-grid .detail-card .text-link:active span {
    transform: translateX(3px);
  }
  /*Cremación ocupa la fila completa al final*/
  .detail-grid .detail-card:last-child {
    grid-column: 1 / -1;
  }
  .detail-grid .detail-card:last-child .text-link {
    align-self: flex-start;
  }
}
/*=========================================
   OBITUARIOS — ENCABEZADO COMPACTO EN CELULAR
   =========================================*/
@media (max-width: 640px) {
  .page-hero {
    padding: 16px 12px 14px;
  }
  .page-hero .section-kicker {
    margin: 0 0 5px;
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.25;
  }
  .page-hero h1 {
    margin: 0 0 6px;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
  }
  .page-hero > p:not(.section-kicker) {
    max-width: 300px;
    margin: 0 auto 7px;
    font-size: 11px;
    line-height: 1.35;
  }
  .page-hero .page-breadcrumb {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.25;
  }
}
/*OBITUARIOS: introducción compacta en celular*/
@media (max-width: 640px) {
  .obituaries-page .page-section {
    padding-top: 20px;
  }
  .obituaries-page .page-intro {
    margin-top: 0;
    margin-bottom: 16px;
  }
  .obituaries-page .page-intro .section-kicker {
    margin-bottom: 5px;
    font-size: 9px;
    line-height: 1.3;
  }
  .obituaries-page .page-intro h2 {
    margin-top: 0;
    margin-bottom: 7px;
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.4px;
  }
  .obituaries-page .page-intro > p:not(.section-kicker) {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.5;
  }
  .obituaries-page .page-intro .btn,
    .obituaries-page .page-intro a {
    min-height: 38px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 12px;
  }
}
/*=========================================
   OBITUARIOS — 3 TARJETAS POR FILA EN CELULAR
   =========================================*/
@media screen and (max-width: 560px) {
  body .public-obituaries-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: stretch;
  }
  body .public-obituaries-grid .public-obituary-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 12px 5px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 13px !important;
    overflow-wrap: anywhere;
  }
  body .public-obituaries-grid .public-obituary-photo {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    max-width: 100%;
    margin: 0 auto 9px !important;
    border-width: 3px !important;
    object-fit: cover;
    border-radius: 50%;
  }
  body .public-obituaries-grid .public-obituary-card h3 {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin: 0 0 6px !important;
    overflow-wrap: anywhere;
  }
  body .public-obituaries-grid .public-obituary-years {
    font-size: 9px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
  }
  body .public-obituaries-grid .public-obituary-message {
    font-size: 9px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    overflow-wrap: anywhere;
  }
  body .public-obituaries-grid .obituary-loading,
    body .public-obituaries-grid .obituary-empty-results {
    grid-column: 1 / -1 !important;
  }
}
/*==========================================
   CONTACTO — DISEÑO PREMIUM COMPACTO EN MÓVIL
   ==========================================*/
@media screen and (max-width: 640px) {
  .contact-page {
    padding: 24px 14px 30px !important;
  }
  /*Encabezado más compacto*/
  .contact-page .page-intro {
    margin: 0 auto 20px !important;
    padding: 0 4px;
  }
  .contact-page .page-intro .section-kicker {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .contact-page .page-intro h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
  }
  .contact-page .page-intro > p:not(.section-kicker) {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
  }
  /*Cuadrícula compacta de dos columnas*/
  .contact-page .contact-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
    width: 100%;
    margin: 0 auto;
  }
  /*Tarjetas pequeñas y elegantes*/
  .contact-page .contact-detail-grid .contact-detail {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 15px 12px !important;
    border: 1px solid #dce8f2;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f6faff);
    box-shadow: 0 4px 13px rgba(16, 57, 95, 0.045);
    text-decoration: none;
    box-sizing: border-box;
  }
  /*Iconos reducidos*/
  .contact-page .contact-detail-grid .contact-detail > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: #e8f3fb;
    color: #16466f;
    font-size: 17px;
  }
  .contact-page .contact-detail-grid .contact-detail:nth-child(2) > i {
    background: #e3f6eb;
    color: #07864e;
  }
  .contact-page .contact-detail-grid .contact-detail > span {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .contact-page .contact-detail-grid .contact-detail small {
    display: block;
    margin: 0 0 5px;
    color: #64809a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .contact-page .contact-detail-grid .contact-detail h2 {
    margin: 0 0 6px;
    color: #10395f;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .contact-page .contact-detail-grid .contact-detail p {
    margin: 0 0 9px;
    color: #617991;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .contact-page .contact-detail-grid .contact-detail b {
    color: #16466f;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  /*Bloque final de WhatsApp*/
  .contact-page .contact-callout {
    margin: 18px 0 0 !important;
    padding: 23px 16px !important;
    border-radius: 16px;
    background: linear-gradient(135deg, #103557, #174d77);
    text-align: center;
  }
  .contact-page .contact-callout h2 {
    margin: 0 0 8px;
    font-size: 23px;
    line-height: 1.2;
  }
  .contact-page .contact-callout p {
    margin: 0 auto 15px;
    font-size: 12px;
    line-height: 1.5;
  }
  .contact-page .contact-callout .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 12px;
  }
}
/*En celulares muy estrechos, conservar dos columnas sin desbordamiento*/
@media screen and (max-width: 360px) {
  .contact-page .contact-detail-grid {
    gap: 8px !important;
  }
  .contact-page .contact-detail-grid .contact-detail {
    padding: 12px 9px !important;
  }
  .contact-page .contact-detail-grid .contact-detail h2 {
    font-size: 15px;
  }
}
/*==========================================
   CONTACTO — LISTA PREMIUM COMPACTA MÓVIL
   ==========================================*/
@media (max-width: 640px) {
  .contact-page {
    padding: 20px 16px 26px !important;
  }
  /*Encabezado*/
  .contact-page .page-intro {
    margin: 0 0 14px !important;
    text-align: left !important;
  }
  .contact-page .page-intro .section-kicker {
    margin-bottom: 5px !important;
    font-size: 9px !important;
    letter-spacing: 1.1px !important;
  }
  .contact-page .page-intro h2 {
    margin: 0 0 6px !important;
    font-size: 23px !important;
    line-height: 1.2 !important;
  }
  .contact-page .page-intro > p:last-child {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  /*Lista de contacto sin tarjetas individuales*/
  .contact-page .contact-detail-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid #dce6ef !important;
  }
  /*Cada contacto: icono arriba y texto debajo*/
  .contact-page .contact-detail-grid .contact-detail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    justify-items: start !important;
    align-items: start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 13px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dce6ef !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
    text-decoration: none !important;
  }
  /*Iconos pequeños en la esquina superior izquierda*/
  .contact-page .contact-detail-grid .contact-detail > i {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #edf5fb !important;
    color: #174875 !important;
    font-size: 14px !important;
    box-shadow: none !important;
  }
  /*WhatsApp en verde*/
  .contact-page .contact-detail-grid
    .contact-detail:nth-child(2) > i {
    background: #e8f6ed !important;
    color: #07864e !important;
  }
  /*Contenido debajo del icono*/
  .contact-page .contact-detail-grid .contact-detail > span {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }
  /*Etiquetas: llamadas, ubicación, etc.*/
  .contact-page .contact-detail-grid .contact-detail small {
    display: block !important;
    margin: 0 0 3px !important;
    color: #71869a !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
  }
  /*Números y títulos con tipografía uniforme*/
  .contact-page .contact-detail-grid .contact-detail h2 {
    margin: 0 0 3px !important;
    color: #123b60 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
    text-align: left !important;
  }
  /*Descripciones*/
  .contact-page .contact-detail-grid .contact-detail p {
    margin: 0 0 4px !important;
    color: #687d90 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }
  /*Enlaces de acción*/
  .contact-page .contact-detail-grid .contact-detail b {
    display: inline-block !important;
    margin: 0 !important;
    color: #17517d !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }
  .contact-page .contact-detail-grid .contact-detail:active {
    background: #f5f9fc !important;
  }
  /*Bloque de orientación*/
  .contact-page .contact-callout {
    margin: 18px 0 0 !important;
    padding: 19px 16px !important;
    border: 1px solid #d8e6f1 !important;
    border-radius: 14px !important;
    background: linear-gradient(
            135deg,
            #123b61,
            #174f78
        ) !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
  .contact-page .contact-callout h2 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  .contact-page .contact-callout p {
    margin: 0 0 12px !important;
    color: #e0edf7 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }
  .contact-page .contact-callout .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 37px !important;
    padding: 8px 12px !important;
    border-radius: 9px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
  }
}
/*==========================================
   CATÁLOGOS — ACABADO PREMIUM EN CELULAR
   ==========================================*/
@media (max-width: 640px) {
  /*Espacio general de los productos*/
  .catalog-grid,
    .products-grid,
    .catalog-products,
    .product-grid {
    gap: 14px !important;
  }
  /*Tarjetas*/
  .catalog-grid .product-card,
    .products-grid .product-card,
    .catalog-products .product-card,
    .product-grid .product-card,
    .catalog-grid article,
    .products-grid article,
    .catalog-products article,
    .product-grid article {
    padding: 12px !important;
    border: 1px solid #e2eaf1 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(16, 54, 92, 0.045) !important;
    box-sizing: border-box !important;
  }
  /*Imagen del producto*/
  .catalog-grid img,
    .products-grid img,
    .catalog-products img,
    .product-grid img {
    display: block !important;
    width: 100% !important;
    height: 175px !important;
    object-fit: contain !important;
    margin: 0 auto 5px !important;
  }
  /*Texto para ampliar*/
  .catalog-grid .image-hint,
    .products-grid .image-hint,
    .catalog-products .image-hint,
    .product-grid .image-hint {
    margin: 2px 0 10px !important;
    color: #8494a5 !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }
  /*Nombre*/
  .catalog-grid h2,
    .catalog-grid h3,
    .products-grid h2,
    .products-grid h3,
    .catalog-products h2,
    .catalog-products h3,
    .product-grid h2,
    .product-grid h3 {
    margin: 0 0 7px !important;
    color: #123b60 !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere;
  }
  /*Descripción*/
  .catalog-grid p,
    .products-grid p,
    .catalog-products p,
    .product-grid p {
    margin: 0 0 9px !important;
    color: #60758a !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  /*Precio*/
  .catalog-grid .product-price,
    .products-grid .product-price,
    .catalog-products .product-price,
    .product-grid .product-price {
    margin: 8px 0 11px !important;
    color: #123b60 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }
  /*Botones*/
  .catalog-grid .product-card .btn,
    .products-grid .product-card .btn,
    .catalog-products .product-card .btn,
    .product-grid .product-card .btn,
    .catalog-grid .product-card .product-button,
    .products-grid .product-card .product-button,
    .catalog-products .product-card .product-button,
    .product-grid .product-card .product-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 42px !important;
    margin-top: 8px !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}
/*==========================================
   CATÁLOGOS JORCO — DISEÑO EDITORIAL PREMIUM
   ==========================================*/
.catalog-page {
  max-width: 1320px;
  padding: 38px 24px 60px;
}
.catalog-heading {
  margin-bottom: 24px;
}
.catalog-heading h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.catalog-heading p {
  font-size: 14px;
  line-height: 1.65;
}
/*Filtros*/
.catalog-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.catalog-filter {
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid #dedbd4;
  border-radius: 30px;
  background: #fff;
  color: #334155;
  font: 500 12px "DM Sans", sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease,
                border-color .2s ease;
}
.catalog-filter:hover {
  border-color: #12385b;
}
.catalog-filter.is-active {
  border-color: #172b4d;
  background: #172b4d;
  color: #fff;
}
/*Distribución de productos*/
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
/*Tarjeta*/
.catalog-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e4dc;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(22, 39, 58, .035);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.catalog-card:hover {
  border-color: #d4c7ad;
  box-shadow: 0 8px 22px rgba(22, 39, 58, .08);
  transform: none;
}
/*Fotografía sobre fondo neutro*/
.catalog-image-button {
  position: relative;
  height: 220px;
  padding: 18px;
  background: #f4f1eb;
}
.catalog-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.catalog-image-hint {
  padding: 8px 12px 0;
  background: #fff;
  font-size: 10px;
}
/*Información*/
.catalog-card-body {
  flex: 1;
  padding: 16px;
}
.catalog-card h2 {
  margin: 0 0 6px;
  color: #233b58;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
}
.catalog-description {
  margin: 0;
  color: #647184;
  font-size: 12px;
  line-height: 1.55;
}
.catalog-price {
  margin: 14px 0;
  color: #253c59;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 700;
}
/*Botón de consulta*/
.catalog-contact {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #286747;
  font-size: 12px;
}
.catalog-contact:hover {
  background: #1d5137;
}
/*Tabletas*/
@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .catalog-image-button {
    height: 200px;
  }
}
/*Celulares*/
@media (max-width: 520px) {
  .catalog-page {
    padding: 24px 14px 38px;
  }
  .catalog-heading {
    margin-bottom: 22px;
  }
  .catalog-heading h1 {
    font-size: 29px;
    line-height: 1.2;
  }
  .catalog-heading p {
    font-size: 13px;
    line-height: 1.6;
  }
  .catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 9px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-filters::-webkit-scrollbar {
    display: none;
  }
  .catalog-filter {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 13px;
    font-size: 11px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .catalog-card {
    border-radius: 13px;
  }
  .catalog-image-button {
    height: 190px;
    padding: 15px;
  }
  .catalog-card-body {
    padding: 14px;
  }
  .catalog-card h2 {
    font-size: 19px;
    margin-bottom: 5px;
  }
  .catalog-description {
    font-size: 12px;
    line-height: 1.5;
  }
  .catalog-price {
    margin: 11px 0;
    font-size: 16px;
  }
  .catalog-contact {
    min-height: 41px;
    font-size: 12px;
  }
}
/*En móviles, Placas comparte fila con Cremación*/
@media (max-width: 640px) {
  .detail-grid .detail-card:last-child {
    grid-column: auto !important;
  }
  .detail-grid .detail-card:last-child .text-link {
    align-self: flex-start;
  }
}
/*INICIO — 8 servicios en una sola fila en computadora*/
@media (min-width: 1200px) {
  #servicios .service-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 12px;
  }
  #servicios .service {
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  #servicios .service h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  #servicios .service p {
    font-size: 12px;
  }
}
/*INICIO — Ajuste vertical de Misión y Visión en computadora*/
@media screen and (min-width: 761px) {
  .home-about {
    grid-template-columns: 0.9fr 1.1fr !important;
    align-items: center !important;
  }
  .home-about-values {
    align-self: center !important;
    margin-top: 0 !important;
    transform: translateY(90px);
  }
  .home-about-values .home-about-card {
    min-height: 235px;
    height: 235px;
    box-sizing: border-box;
  }
}
/*==========================================
   FORMULARIO DE CONTACTO COMPACTO EN CELULAR
   Funeraria Jorco
   ==========================================*/
@media (max-width: 600px) {
  /*Reducir el tamaño general del cuadro*/
  .contact-message-panel {
    width: 100%;
    max-width: 100%;
    margin: 20px auto !important;
    padding: 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(15, 40, 70, 0.05) !important;
  }
  /*Título más compacto*/
  .contact-message-panel h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2rem;
    line-height: 1.35;
  }
  /*Texto introductorio*/
  .contact-message-panel > p,
  .contact-message-panel form > p {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-top: 8px;
    margin-bottom: 10px;
  }
  /*Menos separación entre campos*/
  .contact-message-panel form > div[style*="display:grid"] {
    gap: 10px !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  /*Etiquetas más pequeñas y compactas*/
  .contact-message-panel label {
    gap: 5px !important;
    font-size: 0.85rem;
    line-height: 1.35;
  }
  /*Campos de texto y selector*/
  .contact-message-panel input,
  .contact-message-panel select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 10px !important;
    font-size: 0.9rem;
    border-radius: 7px !important;
    box-sizing: border-box;
  }
  /*Mensaje más corto*/
  .contact-message-panel textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px !important;
    font-size: 0.9rem;
    border-radius: 7px !important;
    box-sizing: border-box;
  }
  /*Botón de envío más pequeño*/
  .contact-message-panel #contact-message-submit {
    padding: 9px 13px;
    font-size: 0.82rem;
    border-radius: 7px;
  }
  /*Mensaje de estado*/
  .contact-message-panel #contact-message-status {
    margin: 9px 0;
    font-size: 0.82rem;
    line-height: 1.4;
  }
}
/*==========================================
   PIE DE PÁGINA — FUNERARIA JORCO
   Diseño consistente en todas las páginas
   ==========================================*/
/*Distribución general*/
.site-footer .footer-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.site-footer .footer-column {
  min-width: 0;
}
.site-footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer .foot-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer .footer-column h3 {
  margin: 0 0 10px;
}
.site-footer .footer-column p,
.site-footer .footer-column a {
  overflow-wrap: anywhere;
}
/*Franja inferior*/
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
/*Ocultar el crédito si todavía existe en el HTML*/
.site-footer .developer-credit {
  display: none !important;
}
/*Ajustes para tabletas*/
@media (max-width: 900px) {
  .site-footer .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }
}
/*Ajustes para celulares*/
@media (max-width: 600px) {
  .site-footer .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .site-footer .footer-about {
    grid-column: 1 / -1;
  }
  .site-footer .foot-brand img {
    width: 36px;
    height: 36px;
  }
  .site-footer .footer-column h3 {
    margin-bottom: 7px;
    font-size: 0.9rem;
  }
  .site-footer .footer-column p,
  .site-footer .footer-column a,
  .site-footer .footer-phones {
    font-size: 0.72rem;
    line-height: 1.6;
  }
  .site-footer .footer-main-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    font-size: 0.65rem;
    line-height: 1.5;
  }
}
/*ENCABEZADO AÚN MÁS COMPACTO EN COMPUTADORA*/
@media (min-width: 901px) {
  body:has(.page-hero) .page-hero {
    padding-top: 25px !important;
    padding-bottom: 20px !important;
  }
  body:has(.page-hero) .page-hero .section-kicker {
    margin-bottom: 6px !important;
    font-size: 10px !important;
  }
  body:has(.page-hero) .page-hero h1 {
    font-size: clamp(36px, 2.8vw, 46px) !important;
    line-height: 1.08 !important;
    margin-bottom: 7px !important;
  }
  body:has(.page-hero) .page-hero > p:not(.section-kicker) {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }
  body:has(.page-hero) .page-hero .page-breadcrumb {
    margin-top: 7px !important;
    font-size: 11px !important;
  }
}
/*=========================================
   PLANES: ENCABEZADO MÁS COMPACTO EN PC
   =========================================*/
@media screen and (min-width: 761px) {
  .plans-page-hero {
    padding: 30px 24px 24px !important;
    min-height: 0 !important;
  }
  .plans-page-hero .eyebrow {
    font-size: 10px !important;
    margin-bottom: 7px !important;
    letter-spacing: 1.7px !important;
  }
  .plans-page-hero h1 {
    font-size: clamp(36px, 3.2vw, 44px) !important;
    line-height: 1.1 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.7px !important;
  }
  .plans-page-hero > p:not(.eyebrow) {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 auto !important;
  }
  .plans-page-hero .breadcrumbs {
    margin-top: 12px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}
/*============================================
   CONTACTO — DISEÑO MODERNO PARA COMPUTADORA
   La versión móvil permanece intacta
   ============================================*/
@media screen and (min-width: 901px) {
  /*Encabezado de contacto*/
  .contact-page-hero,
    .contact-hero {
    padding: 34px 24px 30px !important;
  }
  /*Contenedor de las cuatro opciones*/
  .contact-grid,
    .contact-methods,
    .contact-options {
    width: min(1120px, calc(100% - 64px)) !important;
    margin: 32px auto 36px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
  }
  /*Tarjetas individuales*/
  .contact-card,
    .contact-method,
    .contact-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 28px !important;
    min-height: 170px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%) !important;
    border: 1px solid #dce9f5 !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(18, 57, 91, 0.06) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
  }
  .contact-card:hover,
    .contact-method:hover,
    .contact-option:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 32px rgba(18, 57, 91, 0.11) !important;
    border-color: #b9d9ef !important;
  }
  /*Iconos*/
  .contact-card .contact-icon,
    .contact-method .contact-icon,
    .contact-option .contact-icon,
    .contact-card > i,
    .contact-method > i,
    .contact-option > i {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important;
    background: #e5f2fc !important;
    color: #16466e !important;
    font-size: 23px !important;
  }
  /*Texto y enlaces*/
  .contact-card > div,
    .contact-method > div,
    .contact-option > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .contact-card h2,
    .contact-method h2,
    .contact-option h2 {
    margin: 5px 0 8px !important;
    color: #12385d !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  .contact-card p,
    .contact-method p,
    .contact-option p {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #617991 !important;
  }
  .contact-card a,
    .contact-method a,
    .contact-option a {
    font-weight: 600 !important;
    text-decoration: none !important;
  }
  /*Formulario*/
  .contact-form,
    .contact-form-wrapper,
    .contact-form-section {
    width: min(1000px, calc(100% - 64px)) !important;
    margin: 42px auto 60px !important;
    padding: 34px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #dce9f5 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 34px rgba(18, 57, 91, 0.07) !important;
  }
}
/*CONTACTO: tipografía moderna solo en sus tarjetas*/
@media screen and (min-width: 901px) {
  body:has(a[href^="tel:+50624101371"]) .contact-card h2,
    body:has(a[href^="tel:+50624101371"]) .contact-method h2,
    body:has(a[href^="tel:+50624101371"]) .contact-option h2,
    body:has(a[href^="tel:+50624101371"]) .contact-card p,
    body:has(a[href^="tel:+50624101371"]) .contact-method p,
    body:has(a[href^="tel:+50624101371"]) .contact-option p,
    body:has(a[href^="tel:+50624101371"]) .contact-card a,
    body:has(a[href^="tel:+50624101371"]) .contact-method a,
    body:has(a[href^="tel:+50624101371"]) .contact-option a {
    font-family: "DM Sans", sans-serif !important;
  }
}
/*CONTACTO: tipografía moderna exclusiva de las cuatro tarjetas*/
@media screen and (min-width: 901px) {
  .contact-page .contact-detail h2,
    .contact-page .contact-detail p,
    .contact-page .contact-detail small,
    .contact-page .contact-detail b {
    font-family: "DM Sans", sans-serif !important;
  }
  .contact-page .contact-detail h2 {
    font-weight: 600 !important;
    letter-spacing: normal !important;
  }
  .contact-page .contact-detail p {
    font-weight: 400 !important;
  }
  .contact-page .contact-detail b {
    font-weight: 600 !important;
  }
}
