:root {
  --blue: #0b4a99;
  --blue-dark: #093976;
  --green: #05d111;
  --text: #17324d;
  --bg: #f3f5f7;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(8, 41, 84, .12);
  --radius: 22px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto
}

.narrow {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 245, 247, .88);
  border-bottom: 1px solid rgba(11, 74, 153, .08)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0
}

.brand img {
  width: 250px;
  height: auto
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.mini-btn {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .92rem
}

.mini-btn.whatsapp {
  background: var(--green);
  color: #fff
}

.hero {
  padding: 54px 0 34px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 30px;
  align-items: center
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem
}



.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: .95;
  margin: 0 0 18px;
  color: var(--blue-dark)
}

.hero p {
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 0 24px
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.btn {
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  box-shadow: var(--shadow)
}

.btn-dark {
  background: #0a0a0a;
  color: #fff
}

.btn-green {
  background: var(--green);
  color: #fff
}

.hero-card {
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 580px;
  background: url('assets/hero-reference.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(359deg, rgba(11, 74, 153, .1), rgba(247, 243, 238, .58));


}

.ribbon {
  position: absolute;
  top: 26px;
  right: -18px;
  z-index: 2;
  background: #0b3f87;
  color: #fff;
  padding: 20px 32px 27px 40px;
  width: 250px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 92%);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 520px;
  align-content: end
}

.hero-content-box {
  background: rgba(255, 255, 255, .96);
  color: var(--blue-dark);
  border-radius: 26px;
  padding: 26px 24px;
  max-width: 460px;
  box-shadow: 0 18px 30px rgba(8, 41, 84, .12);
}

.hero-content-box h2 {
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: .95;
  margin: 0 0 14px
}

.hero-content-box p {
  margin: 0;
  color: #2b4867;
  font-size: 1.02rem
}

.services,
.cases {
  padding: 34px 0 56px
}

.section-title {
  margin-bottom: 24px
}

.section-title.center {
  text-align: center
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
  margin: 0 0 12px;
  color: var(--blue-dark)
}

.section-title p {
  margin: 0 auto;
  max-width: 720px
}

.service-highlight {
  background: linear-gradient(180deg, #eef2f5 0%, #e9eef3 100%);
  border-radius: 30px;
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* SLIDER DE FONDO */

.service-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.service-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-bg-slide.active {
  opacity: 1;
}


/* asegurar contenido arriba */

.service-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  z-index: 0;
}

.service-copy,
.service-list-wrap {
  position: relative;
  z-index: 1
}

.service-copy {
  max-width: 760px;
  margin: 0 auto;
}

.service-copy h3 {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue-dark);
  margin: 0 0 14px;
  text-align: center;
}

.service-copy p {
  font-size: 1.08rem;
  margin: 0 auto;
  max-width: 720px;
  color: #31465f;
  text-align: center;
}

.service-list-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-list {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(100%, 760px);
  box-shadow: 0 22px 55px rgba(8, 41, 84, .10);
  backdrop-filter: blur(6px);
}

.service-list article {
  padding: 16px 18px;
  border: 1px solid rgba(11, 74, 153, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.service-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 74, 153, .08);
  color: var(--blue-dark);
  line-height: 1;
}

.service-list h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.22
}

.warning-block {
  padding: 26px 0 10px
}

.warning-block h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
  margin: 0 0 14px;
  color: var(--blue-dark)
}

.warning-block p {
  font-size: 1.18rem;
  margin: 0 auto;
  max-width: 700px
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.case-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 26px;
  background: #cfdae5;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -2;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(237, 242, 247, .18), rgba(221, 230, 239, .42));
  z-index: -1;
}

.case-card.numancia::before {
  background-image: url('assets/caso-numancia.png')
}

.case-card.puempin::before {
  background-image: url('assets/caso-pumpin.png')
}

.case-card.rulos::before {
  background-image: url('assets/caso-losrulos.png')
}

.case-card.baron::before {
  background-image: url('assets/caso-mall-baron.png')
}

.case-tag,
.case-action {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: fit-content
}

.case-tag {
  background: rgba(255, 255, 255, .9);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--blue-dark)
}

.case-action {
  background: var(--blue);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800
}

.center-row {
  justify-content: center;
  margin-top: 28px
}

.site-footer {
  background: #e6e6e6;
  padding: 34px 0 42px;
  margin-top: 20px
}

.footer-inner {
  text-align: center
}

.footer-logo {
  width: 180px;
  margin: 0 auto 12px
}

.footer-inner p {
  margin: 8px 0
}

.footer-inner a {
  color: var(--blue-dark);
  font-weight: 600
}

.go-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .service-list-wrap {
    justify-content: center;
  }

  .hero-card {
    min-height: 500px;
  }
}

@media (max-width:720px) {

  .brand img {
    width: 150px;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .mini-btn {
    width: auto;
    min-width: auto;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 999px;
  }

  .hero {
    padding-top: 30px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: unset;
  }

  .service-list,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-copy h3 {
    font-size: 1.9rem;
  }

  .case-card {
    min-height: 180px;
  }

  .hero-card {
    min-height: 430px;
    padding: 18px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-content-box {
    padding: 20px;
  }

  .ribbon {
    top: 14px;
    right: -10px;
    width: 250px;
    font-size: .9rem;
    padding: 16px 18px 18px 40px;
  }

  .go-top {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
  }

}

.gallery {
  padding: 80px 0 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(17%) sepia(35%) saturate(1200%) hue-rotate(185deg);
}

.service-list article:hover .service-icon {
  background: var(--blue);
}

.service-list article:hover .service-icon img {
  filter: brightness(0) invert(1);
}


/* ==========================================
   FAQ Snippet - Preguntas frecuentes textuales (versión sobria y móvil-friendly)
   ========================================== */

.faq-snippet {
  padding: 50px 0 30px;
  background: var(--bg);
}

.faq-snippet .narrow {
  max-width: 860px;
  /* un poco más ancho para mejor lectura */
}

.faq-snippet h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 2.2rem;
  color: var(--blue-dark);
  text-align: center;
}

.faq-snippet details {
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(8, 41, 84, 0.06);
  /* sombra más suave */
  background: white;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.faq-snippet details:hover {
  box-shadow: 0 8px 24px rgba(8, 41, 84, 0.1);
}

.faq-snippet details[open] {
  box-shadow: 0 10px 28px rgba(8, 41, 84, 0.12);
}

.faq-snippet summary {
  padding: 16px 48px 16px 20px;
  /* más padding derecho para la flecha */
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease;
}

.faq-snippet summary:hover {
  background: rgba(11, 74, 153, 0.035);
}

.faq-snippet summary::-webkit-details-marker {
  display: none;
}

/* Flecha personalizada - más separada y sobria */
.faq-snippet summary::after {
  content: "▼";
  position: absolute;
  right: 20px;
  /* más espacio desde el borde derecho */
  top: 50%;
  transform: translateY(-52%);
  /* centrado vertical más preciso */
  font-size: 0.82rem;
  /* flecha más pequeña y discreta */
  color: var(--blue);
  transition: transform 0.35s ease, color 0.2s ease;
  font-weight: 600;
}

.faq-snippet details[open] summary::after {
  transform: translateY(-52%) rotate(180deg);
  color: var(--blue-dark);
}

.faq-snippet details p {
  padding: 0 20px 18px 20px;
  margin: 0;
  font-size: 0.98rem;
  color: #3a516d;
  line-height: 1.58;
}

/* Responsive - ajustes finos para móvil */
@media (max-width: 720px) {
  .faq-snippet {
    padding: 36px 0 24px;
  }

  .faq-snippet h2 {
    margin-bottom: 1.8rem;
  }

  .faq-snippet summary {
    padding: 14px 44px 14px 18px;
    /* reduce un poco pero mantiene espacio para flecha */
    font-size: 1rem;
  }

  .faq-snippet summary::after {
    right: 16px;
    /* ajustado para pantallas pequeñas */
    font-size: 0.78rem;
  }

  .faq-snippet details p {
    padding: 0 18px 16px 18px;
    font-size: 0.96rem;
  }
}

@media (max-width: 480px) {
  .faq-snippet summary {
    padding-right: 50px;
    /* asegura espacio mínimo para flecha en móviles muy pequeños */
  }
}

/* espaciado a letras atencion inmediata */

.cta-row+small {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

/* ==================================
   BLOQUE PROMO LEGAL INTERNO
================================== */

.promo-legal {
  padding: 70px 0;
}

.promo-box {
  position: relative;
  overflow: hidden;
  padding: 55px 40px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 28px 55px rgba(0, 0, 0, .18);

  background: url('assets/services-bg-3.png') center/cover no-repeat;
}

.promo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(11, 74, 153, .88) 0%,
      rgba(11, 74, 153, .74) 38%,
      rgba(0, 0, 0, .62) 100%);
}

.promo-box>* {
  position: relative;
  z-index: 2;
}

.promo-box h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: #fff;
}

.promo-box p {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .92);
}

.promo-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.promo-btn-main,
.promo-btn-wa {
  min-width: 210px;
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  transition: .25s ease;
}

.promo-btn-main {
  background: #ffffff;
  color: #093976;
}

.promo-btn-main:hover {
  transform: translateY(-2px);
}

.promo-btn-wa {
  background: #05d111;
  color: #fff;
}

.promo-btn-wa:hover {
  transform: translateY(-2px);
}

/* móvil */
@media (max-width: 720px) {

  .promo-legal {
    padding: 45px 0;
  }

  .promo-box {
    padding: 35px 20px;
    border-radius: 22px;
  }

  .promo-actions {
    flex-direction: column;
  }

  .promo-btn-main,
  .promo-btn-wa {
    width: 100%;
    min-width: unset;
  }
}

/* ==================================
   BLOQUE despues galeria
================================== */

/* CTA debajo galería */

.gallery-cta {
  padding: 12px 0 40px;
}

.gallery-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 10px;
  color: var(--blue-dark);
}

.gallery-cta p {
  margin: 0 0 24px;
  color: #44566e;
}

.gallery-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-cta-buttons .btn {
  min-width: 210px;
}

/* llamar */
.gallery-cta-buttons .btn-dark {
  background: var(--blue-dark);
  color: #fff;
}

/* agendar */
.gallery-cta-buttons .btn-blue {
  background: #eef3fa;
  color: var(--blue-dark);
  border: 1px solid rgba(11, 74, 153, .12);
  box-shadow: none;
}

/* ===================================================
HOME GUIDE PRO TELEABOGADO
PEGAR AL FINAL DE styles.css
=================================================== */

.hg-wrap {
  padding: 8px 0 58px;
}

.hg-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 34px;
}

.hg-pills span {
  background: #fff;
  border: 1px solid rgba(11, 74, 153, .08);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: .92rem;
  font-weight: 800;
  color: #0b4a99;
  box-shadow: 0 10px 24px rgba(8, 41, 84, .05);
}

.hg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.hg-card {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 34px 26px 24px;
  box-shadow: 0 18px 38px rgba(8, 41, 84, .06);
  transition: transform .25s ease;
}

.hg-card:hover {
  transform: translateY(-5px);
}

.hg-num {
  position: absolute;
  top: -12px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0b4a99;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 10px 18px rgba(11, 74, 153, .18);
}

.hg-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: #093976;
}

.hg-card p {
  margin: 0;
  color: #55697f;
  font-size: .96rem;
  line-height: 1.6;
}

.hg-cta {
  margin: 34px auto 0;
  max-width: 920px;
  background: linear-gradient(135deg, #0b4a99, #093976);
  border-radius: 22px;
  padding: 18px 24px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 18px 38px rgba(8, 41, 84, .12);
}

.hg-wa {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #05d111;
  color: #fff;
  font-weight: 800;
  transition: .25s ease;
}

.hg-wa:hover {
  transform: translateY(-2px);
}

/* TABLET */

@media(max-width:920px) {

  .hg-grid {
    grid-template-columns: 1fr;
  }

}

/* MOBILE */

@media(max-width:720px) {

  .hg-wrap {
    padding: 0 0 48px;
  }

  .hg-pills span {
    width: 100%;
    text-align: center;
    font-size: .88rem;
  }

  .hg-card {
    padding: 30px 22px 22px;
  }

  .hg-card h3 {
    font-size: 1rem;
  }

  .hg-card p {
    font-size: .92rem;
  }

  .hg-cta {
    padding: 16px;
    font-size: .92rem;
    line-height: 1.55;
  }

  .hg-wa {
    display: block;
    width: max-content;
    margin: 10px auto;
  }

}