:root {
  --c-morado: #9A57F1;
  --c-amarillo: #FFC107;
  --c-amarillo-hover: #FCC41F;
  --c-azul: #004DDA;
  --c-magenta: #DE07FF;
  --c-verde-check: #1C8036;
  --c-verde-precio: #40C17E;
  --c-texto: #555555;
  --c-titulo: #333333;
  --c-negro: #000000;
  --c-gris-fondo: #F8F8F8;
  --c-gris-modal: #F7F7F7;
  --c-borde: rgba(85, 85, 85, 0.33);
  --c-blanco: #FFFFFF;
  --radius: 5px;
  --shadow-card: 0 0 10px 0 rgba(3, 23, 72, 0.15);
  --shadow-hover: 0 0 70px 0 rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--c-texto);
  background-color: var(--c-blanco);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--c-blanco);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  min-height: 64px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-negro);
}

.nav-item > a, .nav-parent > .nav-top-link {
  color: var(--c-negro);
  padding: 8px 6px;
  display: inline-block;
  cursor: pointer;
}

.nav-item > a:hover, .nav-parent:hover > .nav-top-link {
  color: var(--c-morado);
}

.nav-parent {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  color: var(--c-negro);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--c-blanco);
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1010;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 8px 18px;
  color: var(--c-texto);
  font-size: 13px;
  font-weight: 400;
}

.dropdown-menu li a:hover {
  background-color: var(--c-gris-fondo);
  color: var(--c-azul);
  padding-left: 22px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-cta-header {
  background-color: var(--c-morado);
  color: var(--c-blanco);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 3px;
  display: inline-block;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.btn-cta-header:hover {
  background-color: var(--c-amarillo-hover);
  color: var(--c-negro);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background-color: var(--c-negro);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-blanco);
  transition: 0.3s;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--c-blanco);
  padding: 50px 0 30px;
  border-top: 1px solid var(--c-borde);
  margin-top: 50px;
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-titulo);
  margin-bottom: 18px;
  position: relative;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  font-size: 14px;
  color: var(--c-azul);
  line-height: 1.5;
}

.footer-links li a:hover {
  text-decoration: underline;
}

.footer-divider {
  height: 1px;
  background-color: var(--c-borde);
  margin-bottom: 25px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: var(--c-texto);
}

.footer-legal a {
  color: var(--c-texto);
}

.footer-legal a:hover {
  color: var(--c-azul);
}

.footer-legal .sep {
  margin: 0 8px;
  color: #aaa;
}

/* ==========================================================================
   MODAL DE TELÉFONO / WHATSAPP
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-box {
  background-color: var(--c-blanco);
  border-radius: 8px;
  max-width: 720px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #777;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: #000;
}

.modal-inner {
  padding: 30px;
}

.modal-lawyer-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--c-negro);
  margin-bottom: 12px;
}

.modal-address-box {
  background-color: var(--c-gris-modal);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.modal-address-box strong {
  color: var(--c-titulo);
  display: block;
  margin-bottom: 4px;
}

.modal-phone-btn {
  display: block;
  width: 100%;
  background-color: var(--c-amarillo);
  color: var(--c-azul);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: background-color 0.2s, transform 0.1s;
}

.modal-phone-btn:hover {
  background-color: var(--c-amarillo-hover);
}

.modal-question {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-titulo);
  text-align: center;
  margin-bottom: 20px;
}

.modal-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background-color: var(--c-gris-modal);
  padding: 20px;
  border-radius: var(--radius);
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.modal-two-cols:hover {
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}

.modal-col-left {
  text-align: center;
}

.modal-gif {
  margin: 0 auto 10px;
  max-width: 60px;
}

.badge-disponible {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 4px;
}

.text-exito {
  font-size: 13px;
  color: #555;
}

.modal-col-right {
  text-align: center;
  background-image: url('/assets/img/modal/modalwindow.jpg');
  background-size: cover;
  background-position: center;
  padding: 20px 15px;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
}

.modal-col-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius);
}

.modal-col-right-inner {
  position: relative;
  z-index: 2;
}

.btn-whatsapp-blink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 25px;
  margin-top: 10px;
  animation: pulse-green 1.6s infinite;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-green {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (<1025px)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--c-blanco);
    flex-direction: column;
    padding: 30px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--c-gris-fondo);
    padding: 12px 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--c-gris-fondo);
    display: none;
    margin-top: 8px;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-two-cols {
    grid-template-columns: 1fr;
  }
}
