/* ==========================================================
   Refresh 2026 — misma estructura, detalles y ejecución nuevos.
   Se carga después de style.css y solo pisa lo necesario.
   ========================================================== */

:root {
  --rose: #cf278f;
  --rose-dark: #a91c73;
  --rose-soft: #fcf0f7;
  --rose-light: #f4a9d4;
  --ink: #1f1a21;
  --text: #5b5560;
  --muted: #8a838d;
  --cream: #faf7f4;
  --line: #ece5e0;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body {
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); }
a { color: var(--rose); }
a:hover, a:active, a:focus { color: var(--rose-dark); }

/* ---------- Header ---------- */
#header { height: 96px; transition: height .35s var(--ease), background .35s, box-shadow .35s; }
#header.header-scrolled {
  height: 76px;
  background: rgba(24, 18, 26, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .35);
}
#header #logo img { height: 68px; width: auto; transition: height .35s var(--ease); }
#header.header-scrolled #logo img { height: 56px; }

.navbar a, .navbar a:focus {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .88);
}
.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a { color: #fff; }
.navbar > ul > li { padding: 10px 0 10px 28px; }
.navbar > ul > li > a:before { height: 2px; bottom: -8px; border-radius: 2px; background-color: var(--rose); }

/* Dropdowns */
.navbar .dropdown ul {
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(20, 12, 22, .35);
}
.navbar .dropdown ul li { min-width: 220px; }
.navbar .dropdown ul a {
  color: var(--ink);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  transition: background .2s, color .2s;
}
.navbar .dropdown ul a i { color: var(--muted); }
/* Submenús (Familia, Civil, etc.): se abren hacia la izquierda para no salirse de la pantalla */
.navbar .dropdown .dropdown ul { left: auto; right: calc(100% - 24px); top: -9px; }
.navbar .dropdown .dropdown:hover > ul { left: auto; right: 100%; top: -9px; }
@media (min-width: 992px) { .navbar .dropdown .dropdown > a i { transform: rotate(180deg); } }
.navbar .dropdown ul a:hover, .navbar .dropdown ul .active:hover, .navbar .dropdown ul li:hover > a {
  color: var(--rose);
  background: var(--rose-soft);
}

/* Navegación mobile */
.mobile-nav-toggle { color: #fff; }
.navbar-mobile {
  background: rgba(18, 12, 20, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.navbar-mobile ul {
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  top: 70px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.navbar-mobile .mobile-nav-toggle { top: 22px; right: 22px; }
.navbar-mobile a, .navbar-mobile a:focus { color: var(--ink); font-size: 16px; padding: 13px 16px; border-radius: 10px; }
.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a { color: var(--rose); background: var(--rose-soft); }
.navbar-mobile .dropdown ul {
  background: var(--cream);
  box-shadow: none;
  border: 0;
  margin: 4px 6px 8px;
  padding: 6px;
}

/* ---------- Hero ---------- */
#hero {
  background: url("../img/2026/balanza-justicia.webp") center / cover no-repeat;
  background-attachment: fixed;
}
#hero:before {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(20, 14, 22, .45), rgba(20, 14, 22, .78)),
    linear-gradient(180deg, rgba(20, 14, 22, .35) 0%, rgba(20, 14, 22, .2) 50%, rgba(20, 14, 22, .65) 100%);
}
#hero:after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(20, 14, 22, .35));
  pointer-events: none;
}
#hero .hero-container { z-index: 1; }
#hero .hero-logo {
  height: 230px;
  width: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}
#hero h1 {
  font-family: var(--sans);
  font-size: clamp(16px, 1.9vw, 21px) !important;
  font-weight: 400;
  line-height: 1.7;
  max-width: 820px;
  margin: 18px auto 34px;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .005em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
#hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: .01em;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(207, 39, 143, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease);
}
#hero .btn-get-started i { font-size: 18px; line-height: 0; transform-origin: 50% 50%; }
#hero .btn-get-started:hover {
  background: #d43597;
  border: 0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -14px rgba(207, 39, 143, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
#hero .btn-get-started:hover i { animation: wa-ring .9s var(--ease) both; }
@keyframes wa-ring {
  0% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-14deg) scale(1.12); }
  40% { transform: rotate(10deg) scale(1.12); }
  60% { transform: rotate(-6deg) scale(1.08); }
  80% { transform: rotate(3deg) scale(1.04); }
  100% { transform: rotate(0) scale(1); }
}
@media (max-width: 1024px) { #hero { background-attachment: scroll; } }
@media (max-width: 768px) {
  #hero .hero-logo { height: 170px; }
  #hero h1 { line-height: 1.65 !important; }
  #hero .btn-get-started { padding: 15px 28px; }
}

/* ---------- Encabezados de sección ---------- */
.section-header { margin-bottom: 8px; }
.section-header .section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.005em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 14px;
}
.section-header .section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--rose);
}
.section-header .section-description {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 48px;
}

/* ---------- Sobre nosotros ---------- */
#about { padding: 110px 0 100px; }
#about .about-container { align-items: center; row-gap: 40px; }
#about .about-container > .content { padding-right: 32px; }
#about .about-container p { line-height: 1.8; font-size: 16.5px; color: var(--text); }
#about .about-container p strong { color: var(--ink); font-weight: 600; }
#about .about-container .icon-box { padding: 0 0 26px; }
#about .about-container .icon-box .icon {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--rose-soft);
}
#about .about-container .icon-box .icon i { color: var(--rose); font-size: 24px; }
#about .about-container .icon-box .title {
  margin-left: 76px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 6px;
  padding-top: 2px;
}
#about .about-container .icon-box .description {
  margin-left: 76px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
#about #about-img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  object-position: 40% 25%;
  border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(31, 26, 33, .45);
  margin: 0;
}
@media (max-width: 991px) {
  #about .about-container > .content { padding-right: 12px; }
  #about #about-img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Nuestros principios ---------- */
#main > #features {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 0 76px;
}
#main > #features .row > [class*="col-"] { display: flex; }
#main > #features .feature-block {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 28px 34px;
  margin-bottom: 24px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
#main > #features .feature-block:hover {
  transform: translateY(-4px);
  border-color: #f3d3e6;
  box-shadow: 0 26px 50px -26px rgba(31, 26, 33, .28);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 26px;
  transition: background .35s, color .35s;
}
#main > #features .feature-block:hover .feature-icon { background: var(--rose); color: #fff; }
#main > #features .feature-block h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink);
  margin-bottom: 14px;
}
#main > #features .feature-block p { font-size: 15px; line-height: 1.75; color: var(--text); }

/* ---------- Servicios ---------- */
#services { padding: 100px 0 60px; }
#services .row > [class*="col-"] { display: flex; }
#services .box {
  flex: 1;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 30px 32px;
  margin-bottom: 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
#services .box:hover {
  transform: translateY(-4px);
  border-color: #f3d3e6;
  box-shadow: 0 26px 50px -26px rgba(31, 26, 33, .28);
}
#services .icon {
  width: 72px;
  height: 72px;
  top: -36px;
  left: calc(50% - 36px);
  background: var(--rose);
  border: 6px solid #fff;
  box-shadow: 0 10px 24px -10px rgba(207, 39, 143, .6);
  transition: background .3s, transform .4s var(--ease);
}
#services .icon i { font-size: 26px; }
#services .box:hover .icon { background: var(--rose-dark); border: 6px solid #fff; transform: translateY(-3px); }
#services .box:hover .icon i { color: #fff; }
#services .title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  text-transform: none;
  margin-bottom: 12px;
}
#services .title a { color: var(--ink); }
#services .description { flex: 1; font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 22px; }

.btn-service {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  margin: 0;
  border: 1.5px solid var(--rose);
  border-radius: 999px;
  background: transparent;
  color: var(--rose);
  transform: none;
  transition: background .3s, color .3s, box-shadow .3s;
}
.btn-service i { font-size: 18px; line-height: 0; }
.btn-service:hover {
  background: var(--rose);
  color: #fff;
  border: 1.5px solid var(--rose);
  box-shadow: 0 12px 26px -12px rgba(207, 39, 143, .7);
}

/* ---------- Testimonios ---------- */
.testimonials1 {
  padding: 110px 0 90px;
  background: url("../img/2026/justicia.webp") center / cover no-repeat;
}
.testimonials1::before {
  background: linear-gradient(135deg, rgba(26, 14, 28, .92) 0%, rgba(58, 16, 46, .88) 60%, rgba(96, 20, 70, .82) 100%);
}
.testimonials-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-transform: none;
  letter-spacing: .04em;
}
.testimonials-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--rose);
}
.testimonials1 #features { padding-top: 24px; }
.testimonials1 .testimonial-item { max-width: 820px; margin: 0 auto; padding: 0 12px; }
.testimonials1 .testimonial-item h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.testimonials1 .testimonial-item h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 22px;
}
.testimonials1 .testimonial-item p {
  font-family: var(--serif);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
  width: auto;
}
.testimonials1 .testimonial-item .quote-icon-left,
.testimonials1 .testimonial-item .quote-icon-right {
  color: var(--rose-light);
  opacity: .65;
  font-size: 26px;
}
.testimonials1 .swiper-pagination { margin-top: 34px; }
.testimonials1 .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .35);
  transition: width .3s var(--ease), background-color .3s;
}
.testimonials1 .swiper-pagination .swiper-pagination-bullet-active { width: 26px; background-color: var(--rose); }

/* ---------- Contacto ---------- */
#contact { background: var(--cream); padding: 100px 0 80px; border-top: 1px solid var(--line); }
#contact iframe {
  display: block;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  filter: saturate(.85);
}
#contact .info { color: var(--ink); }
#contact .info > div { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
#contact .info i {
  float: none;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--rose);
  font-size: 20px;
  line-height: 1;
}
#contact .info p { padding: 2px 0 0; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); word-break: break-word; }
#contact .social-links { text-align: left !important; display: flex; gap: 8px; padding: 6px 0 24px; }
#contact .social-links a {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
#contact .social-links a:hover { background: var(--rose); border-color: var(--rose); color: #fff; transform: translateY(-2px); }

#contact .form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 50px -30px rgba(31, 26, 33, .25);
}
#contact .php-email-form input, #contact .php-email-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
#contact .php-email-form input::placeholder, #contact .php-email-form textarea::placeholder { color: #aaa2ab; }
#contact .php-email-form input:focus, #contact .php-email-form textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(207, 39, 143, .12);
  background: #fff;
}
#contact .php-email-form .my-3 { margin: 6px 0 !important; }
#contact .php-email-form button[type=submit] {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 14px 30px -14px rgba(207, 39, 143, .75);
  transition: background .3s, transform .3s var(--ease);
}
#contact .php-email-form button[type=submit]:hover { background: var(--rose-dark); transform: translateY(-2px); }
@media (max-width: 767px) { #contact .form { margin-top: 12px; padding: 22px; } }

/* ---------- Footer ---------- */
#footer { background: #1b161d; padding: 34px 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
#footer .copyright strong { color: #fff; font-weight: 600; }
#footer .credits { color: rgba(255, 255, 255, .5); }
#footer .credits a { color: var(--rose-light); }
#footer .credits a:hover { color: #fff; }

/* ---------- Botones flotantes ---------- */
.back-to-top2 {
  width: 52px;
  height: 52px;
  right: 18px;
  bottom: 82px;
  background: #1fa855;
  box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .65);
  transition: transform .3s var(--ease), opacity .4s, visibility .4s;
}
.back-to-top2 i { font-size: 25px; }
.back-to-top2::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  animation: wa-pulse 2.6s infinite;
}
.back-to-top2:hover { transform: translateY(-3px); }
.back-to-top2:hover i { transform: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); }
}
.back-to-top {
  width: 44px;
  height: 44px;
  right: 22px;
  bottom: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px rgba(31, 26, 33, .35);
}
.back-to-top i { color: var(--ink); }
.back-to-top:hover { background: #fff; border: 1px solid var(--rose); transform: translateY(-2px); }
.back-to-top:hover i { color: var(--rose); transform: none; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top2::before { animation: none; }
  #hero { background-attachment: scroll; }
}

/* ==========================================================
   Preloader — logo vectorial animado
   ========================================================== */
#preloader { display: none; }
.pl-loading #preloader {
  display: flex;
  position: fixed; inset: 0; z-index: 100000;
  align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(207, 39, 143, .16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 60%, rgba(210, 180, 55, .07), transparent 70%),
    #140e17;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
}
.pl-loading { overflow: hidden; }
.pl-exit #preloader { clip-path: inset(0 0 100% 0); }
.pl-inner { transition: transform 1s cubic-bezier(.77, 0, .18, 1), opacity .6s; }
.pl-exit .pl-inner { transform: translateY(-60px) scale(.96); opacity: 0; }

.pl-logo { width: min(440px, 78vw); height: auto; overflow: visible; }
/* Anula la regla global "path" de style.css dentro del preloader */
.pl-wreath path { animation: none; opacity: 1; stroke: none; }
.pl-star, .pl-line, .pl-letters path { stroke: none; }

/* Laureles: se dibujan desde abajo hacia arriba, por los dos lados */
@property --pa { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pl-inner { display: grid; }
.pl-inner > * { grid-area: 1 / 1; }
.pl-wreath-box {
  --pa: 0deg;
  -webkit-mask-image: conic-gradient(from 180deg at 50.6% 45.5%, #000 calc(var(--pa) - 12deg), transparent var(--pa), transparent calc(360deg - var(--pa)), #000 calc(372deg - var(--pa)));
          mask-image: conic-gradient(from 180deg at 50.6% 45.5%, #000 calc(var(--pa) - 12deg), transparent var(--pa), transparent calc(360deg - var(--pa)), #000 calc(372deg - var(--pa)));
}
.pl-go .pl-wreath-box { animation: pl-wreath 1.35s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
@keyframes pl-wreath { to { --pa: 200deg; } }
.pl-go .pl-wreath-wrap { animation: pl-glow 1.6s ease-in-out 2.1s both; }
@keyframes pl-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(244, 223, 134, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(244, 223, 134, .55)); }
}

/* Estrella */
.pl-star {
  fill: #cf278f;
  transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: scale(0) rotate(-120deg);
  animation: none;
}
.pl-go .pl-star {
  animation: pl-star .7s cubic-bezier(.34, 1.56, .64, 1) 1.15s forwards;
}

/* Monograma MBR: trazo y después relleno */
.pl-mono {
  fill: #cf278f; fill-opacity: 0; opacity: 1;
  stroke: #e04aa4; stroke-width: .45;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: none;
}
.pl-go .pl-mono {
  animation: pl-draw 1.1s cubic-bezier(.45, 0, .2, 1) .55s forwards, pl-fill .6s ease 1.35s forwards;
}
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fill { to { fill-opacity: 1; stroke-opacity: 0; } }

/* Nombre: letra por letra */
.pl-letters path {
  fill: #cf278f;
  opacity: 0; transform: translateY(4px);
}
.pl-go .pl-letters path {
  animation: pl-letter .55s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(1.55s + var(--i) * .035s);
}
.pl-line {
  fill: #cf278f; opacity: 1; animation: none;
  transform-box: fill-box; transform-origin: center;
  transform: scaleX(0);
}
.pl-go .pl-line {
  animation: pl-line .8s cubic-bezier(.65, 0, .35, 1) 2s forwards;
}

@keyframes pl-star { to { opacity: 1; transform: none; } }
@keyframes pl-letter { to { opacity: 1; transform: none; } }
@keyframes pl-line { to { transform: scaleX(1); } }

/* Entrada del contenido del hero después del preloader */
#hero .hero-container > * {
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1);
}
#hero .hero-container > *:nth-child(2) { transition-delay: .25s; }
#hero .hero-container > *:nth-child(3) { transition-delay: .4s; }
.pl-loading:not(.pl-exit) #hero .hero-container > * { opacity: 0; transform: translateY(28px); }
.pl-skip #hero .hero-container > * { animation: hero-in 1s cubic-bezier(.2, .7, .2, 1) both; }
.pl-skip #hero .hero-container > *:nth-child(2) { animation-delay: .12s; }
.pl-skip #hero .hero-container > *:nth-child(3) { animation-delay: .24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(20px); } }

@media (prefers-reduced-motion: reduce) {
  .pl-loading #preloader { display: none; }
  .pl-loading { overflow: auto; }
  .pl-loading:not(.pl-exit) #hero .hero-container > * { opacity: 1; transform: none; }
}

/* ==========================================================
   Franja de servicios
   ========================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--rose);
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--rose), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--rose), transparent); }
.marquee-track {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee-track a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  transition: opacity .2s;
}
.marquee-track a:hover { color: #fff; opacity: .75; }
.marquee-track i {
  flex: none;
  width: 11px; height: 11px;
  background: #f3dc78;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 768px) { .marquee { padding: 15px 0; } .marquee-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee-track a { font-size: 21px; } .marquee-track { gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ==========================================================
   Nuestros principios en ciruela oscuro
   ========================================================== */
#main > #features {
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 85% 0%, rgba(207, 39, 143, .22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 5% 100%, rgba(210, 180, 55, .09), transparent 70%),
    #1a1220;
  border: 0;
}
#main > #features .section-title { color: #fff; }
#main > #features .section-description { color: rgba(255, 255, 255, .55); }
#main > #features .feature-block {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#main > #features .feature-block:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(207, 39, 143, .55);
  box-shadow: 0 30px 60px -30px rgba(207, 39, 143, .45);
}
#main > #features .feature-block h4 { color: #fff; }
#main > #features .feature-block p { color: rgba(255, 255, 255, .66); }
#main > #features .feature-icon {
  background: rgba(207, 39, 143, .14);
  color: var(--rose-light);
  box-shadow: inset 0 0 0 1px rgba(207, 39, 143, .3);
}
#main > #features .feature-block:hover .feature-icon { background: var(--rose); color: #fff; }

/* Alternancia de fondos */
#services { background: var(--cream); border-bottom: 1px solid var(--line); }
#contact { background: #fff; }

/* ==========================================================
   Páginas de servicio — bloque "¿Que es el derecho…?"
   ========================================================== */
#about .about-container h2.title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 26px;
}
#about .about-container h2.title::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--rose);
}
.area-img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 496;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(31, 26, 33, .45);
}

/* ==========================================================
   Cursor, puntero y barra de scroll a medida
   ========================================================== */
html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M6 3.5v21.2l5.3-5.1 3.6 8.4 3.5-1.5-3.6-8.3h7.4z' fill='%231f1a21' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='6' cy='3.5' r='1.3' fill='%23cf278f'/%3E%3C/svg%3E") 6 4, auto;
}
a, button, [role="button"], label[for], select, summary,
.btn-get-started, .btn-service, .mobile-nav-toggle,
.swiper-pagination-bullet, .back-to-top, .back-to-top2,
#contact .php-email-form button[type=submit] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M10.5 6.5a1.5 1.5 0 0 1 3 0V13a1.5 1.5 0 0 1 3 0v1a1.5 1.5 0 0 1 3 0v1a1.5 1.5 0 0 1 3 0v7c0 3.5-2.5 6-6 6h-2c-2.2 0-3.6-1-4.8-2.6l-3.4-4.8a1.6 1.6 0 0 1 2.4-2.1l1.8 1.5z' fill='%23fff' stroke='%231f1a21' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M13.5 13v4M16.5 14v3M19.5 15v2' stroke='%231f1a21' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M8.2 3.2l1.1 1.1M15.8 3.2l-1.1 1.1M12 .9v1.6' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M8.2 3.2l1.1 1.1M15.8 3.2l-1.1 1.1M12 .9v1.6' stroke='%23cf278f' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='6.4' r='1' fill='%23cf278f'/%3E%3C/svg%3E") 12 5, pointer;
}
input, textarea { cursor: text; }

/* Texto seleccionado */
::selection { background: rgba(207, 39, 143, .85); color: #fff; }

/* Barra de scroll */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--rose) #f1ebe6; scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #f1ebe6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e04aa4, var(--rose) 50%, var(--rose-dark));
  border-radius: 999px;
  border: 3px solid #f1ebe6;
}
::-webkit-scrollbar-thumb:hover { background: var(--rose-dark); }
::-webkit-scrollbar-corner { background: #f1ebe6; }

/* ==========================================================
   Logo vectorial del hero + animación de dibujado (hover)
   ========================================================== */
.hero-mark-link { display: inline-block; border-radius: 12px; }
.hero-mark {
  display: block;
  width: 290px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
}
@media (max-width: 768px) { .hero-mark { width: 220px; } }

/* Anula la regla global "path" de style.css */
.hero-mark path { opacity: 1; animation: none; stroke: none; }

.hero-mark .hm-wreath path {
  stroke: #f4df86; stroke-width: .45; stroke-opacity: 0;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero-mark .hm-mono {
  fill: #cf278f;
  stroke: #f06bbd; stroke-width: .5; stroke-opacity: 0;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero-mark .hm-star, .hero-mark .hm-letters path, .hero-mark .hm-line { fill: #cf278f; }
.hero-mark .hm-star, .hero-mark .hm-line { transform-box: fill-box; transform-origin: center; }
.hero-mark .hm-letters path { transform-box: fill-box; }
.hero-mark .hm-sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 6.4px;
  letter-spacing: 1.9px;
  fill: #fff;
  text-anchor: middle;
}

/* Dibujado */
.hero-mark.is-drawing .hm-wreath path { animation: hm-redraw 1.9s cubic-bezier(.45, 0, .2, 1) both; }
.hero-mark.is-drawing .hm-mono { animation: hm-redraw 1.7s cubic-bezier(.45, 0, .2, 1) .25s both; }
.hero-mark.is-drawing .hm-star { animation: hm-star 1s cubic-bezier(.34, 1.56, .64, 1) .9s both; }
.hero-mark.is-drawing .hm-line { animation: hm-line 1s cubic-bezier(.65, 0, .35, 1) .5s both; }
.hero-mark.is-drawing .hm-letters path {
  animation: hm-wave .6s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.6s + var(--i) * .035s);
}

@keyframes hm-redraw {
  0%   { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 1; }
  14%  { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 1; }
  68%  { fill-opacity: 0; stroke-opacity: 1; stroke-dashoffset: 0; }
  100% { fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }
}
@keyframes hm-star {
  0%   { transform: none; }
  45%  { transform: rotate(144deg) scale(1.35); }
  100% { transform: rotate(144deg) scale(1); }
}
@keyframes hm-line {
  0%   { transform: scaleX(1); }
  35%  { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
@keyframes hm-wave {
  0%, 100% { transform: none; }
  45% { transform: translateY(-2px); }
}
