/* ==========================================================================
   NOTARIA LEGAL 360 - SISTEMA DE ESTILOS PROFESIONALES
   Paleta: Azul Notarial Intenso (#0B3B7E) + Amarillo Dorado Vibrante (#E5A910)
   Marcas: Guzhnay Notary Services & MOB (Ministros Oficiantes de Bodas)
   ========================================================================== */

:root {
  --color-primary: #0B3B7E;
  --color-primary-dark: #00254F;
  --color-primary-light: #1652A2;
  --color-primary-glow: rgba(11, 59, 126, 0.15);

  --color-gold: #E5A910;
  --color-gold-hover: #CCA500;
  --color-gold-light: #FFF8E7;
  --color-gold-glow: rgba(229, 169, 16, 0.25);

  --color-dark: #0F172A;
  --color-dark-surface: #1E293B;
  --color-mob-dark: #111827;

  --color-text-main: #1E293B;
  --color-text-muted: #475569;
  --color-text-light: #94A3B8;

  --color-bg-light: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-border: #E2E8F0;

  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 59, 126, 0.08), 0 2px 4px -2px rgba(11, 59, 126, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(11, 59, 126, 0.12), 0 4px 6px -4px rgba(11, 59, 126, 0.08);
  --shadow-gold: 0 10px 25px -3px rgba(229, 169, 16, 0.35);
  --shadow-card: 0 8px 24px rgba(11, 59, 126, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* --------------------------------------------------
   Reset & Tipografía Base (Inter Normal)
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: #FFFFFF;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400; /* Inter Normal */
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, span, li, a, input, textarea, select {
  font-family: var(--font-sans);
}

/* --------------------------------------------------
   Utilidades y Tipografía Bicolor
-------------------------------------------------- */
.font-serif {
  font-family: var(--font-serif);
}

.text-gold-vibrant {
  color: var(--color-gold) !important;
}

.text-primary-vibrant {
  color: var(--color-primary) !important;
}

.bg-primary-vibrant {
  background-color: var(--color-primary) !important;
}

.bg-primary-dark {
  background-color: var(--color-primary-dark) !important;
}

.bg-gold-vibrant {
  background-color: var(--color-gold) !important;
}

.border-gold-vibrant {
  border-color: var(--color-gold) !important;
}

/* --------------------------------------------------
   Traductor Flotante en Esquina Inferior Izquierda
-------------------------------------------------- */
.floating-lang-switcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99;
  background: rgba(0, 37, 79, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(11, 59, 126, 0.35);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-lang-switcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(11, 59, 126, 0.45);
}

@media (max-width: 640px) {
  .floating-lang-switcher {
    bottom: 20px;
    left: 16px;
    padding: 3px 5px;
  }
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.lang-switcher-btn.active {
  background-color: var(--color-gold);
  color: #0F172A !important;
  font-weight: 700;
  border-color: var(--color-gold);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-switcher-btn:not(.active) {
  color: #FFFFFF !important;
  opacity: 0.85;
}

.lang-switcher-btn:not(.active):hover {
  opacity: 1;
  color: var(--color-gold) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ocultar barra invasiva y tooltips de Google Translate para mantener el diseño impecable */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

/* --------------------------------------------------
   Top Bar Notarial (Fondo Azul Profundo & Texto Blanco)
-------------------------------------------------- */
.top-bar-legal {
  background: linear-gradient(90deg, #00254F 0%, #0B3B7E 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.85rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(229, 169, 16, 0.35);
  position: relative;
  z-index: 90;
}

.top-bar-legal a {
  color: #FFFFFF !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar-legal a:hover {
  color: var(--color-gold) !important;
}

/* --------------------------------------------------
   Navbar Principal Sticky (Fondo Blanco & Alta Visibilidad)
-------------------------------------------------- */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(11, 59, 126, 0.08);
  transition: all 0.3s ease;
  border-bottom: 1.5px solid rgba(229, 169, 16, 0.25);
}

.navbar-brand-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.navbar-brand-img:hover {
  transform: scale(1.03);
}

.nav-link-custom {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.nav-link-custom:hover {
  color: var(--color-primary);
  background-color: rgba(11, 59, 126, 0.05);
}

.nav-link-custom.active {
  color: var(--color-primary);
  font-weight: 700;
  background-color: rgba(11, 59, 126, 0.08);
}

.nav-link-mob {
  color: #92400E;
  background-color: #FEF3C7;
  font-weight: 600;
  border: 1px solid #FDE68A;
}

.nav-link-mob:hover {
  background-color: #FDE68A;
  color: #78350F;
}

.btn-navbar-cta {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(11, 59, 126, 0.15);
}

.btn-navbar-cta:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 59, 126, 0.25);
  border-color: #FFFFFF;
}

/* --------------------------------------------------
   Hero Slider de Alta Conversión (Con Gran Respiro y Altura)
-------------------------------------------------- */
.hero-slider-wrapper {
  position: relative;
  overflow: hidden;
  background: #00254F;
  color: #FFFFFF;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------
   Fondos Fotográficos Temáticos para los 4 Slides del Hero
-------------------------------------------------- */
.slide-bg-custom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.78;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active .slide-bg-custom {
  transform: scale(1);
}

.slide-overlay-custom {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 37, 79, 0.92) 0%, rgba(11, 59, 126, 0.78) 45%, rgba(11, 59, 126, 0.35) 72%, rgba(15, 23, 42, 0.15) 100%);
  z-index: 1;
}

@media (max-width: 1024px) {
  .slide-overlay-custom {
    background: linear-gradient(180deg, rgba(0, 37, 79, 0.94) 0%, rgba(11, 59, 126, 0.82) 55%, rgba(15, 23, 42, 0.35) 100%);
  }
}

.hero-slide-1 .slide-bg-custom {
  background-image: url('../assets/img/hero/hero-slide-1-notaria.jpg');
}

.hero-slide-2 .slide-bg-custom {
  background-image: url('../assets/img/hero/hero-slide-2-migracion.jpg');
}

.hero-slide-3 .slide-bg-custom {
  background-image: url('../assets/img/casamiento/boda-civil-altar.jpeg');
  background-position: center center;
}

.hero-slide-4 .slide-bg-custom {
  background-image: url('../assets/img/hero/hero-slide-4-negocios.jpg');
}

.hero-slide-5 .slide-bg-custom {
  background-image: url('../assets/img/hero/hero-slide-4-negocios.jpg');
}

.hero-slide-6 .slide-bg-custom {
  background-image: url('../assets/img/hero/hero-slide-4-negocios.jpg');
  background-position: center center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 37, 79, 0.6);
  border: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-title-main {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .hero-title-main {
    font-size: 2.35rem;
    line-height: 1.28;
  }
  .hero-slider-wrapper {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .hero-title-main {
    font-size: 1.95rem;
    line-height: 1.3;
  }
  .hero-slider-wrapper {
    min-height: 640px;
  }
  .hero-subtitle-desc {
    font-size: 0.98rem;
    margin-bottom: 22px;
    line-height: 1.45;
  }
  .slider-control-btn {
    top: auto;
    bottom: 14px;
    transform: none;
    width: 38px;
    height: 38px;
  }
  .slider-btn-prev { left: 14px; }
  .slider-btn-next { right: 14px; }
}

.hero-title-highlight {
  color: var(--color-gold);
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 12px rgba(229, 169, 16, 0.3);
}

.hero-subtitle-desc {
  font-size: 1.18rem;
  color: #F1F5F9;
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.65;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* Controles de Slider */
.slider-control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.slider-control-btn:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

.slider-dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--color-gold);
  width: 32px;
  border-radius: 8px;
}

/* --------------------------------------------------
   Barra de Sellos y Garantías Notariales
-------------------------------------------------- */
.trust-strip-container {
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 22px 0;
}

.trust-item-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold-light);
  border: 2px solid var(--color-gold);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------
   Buscador y Pestañas de Categorías
-------------------------------------------------- */
.category-tab-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--color-border);
  background-color: #FFFFFF;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-tab-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: var(--color-gold-light);
  transform: translateY(-1px);
}

.category-tab-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(11, 59, 126, 0.25);
}

.search-input-box {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 12px 22px 12px 48px;
  font-size: 1rem;
  width: 100%;
  transition: all 0.25s ease;
  background-color: #FFFFFF;
}

.search-input-box:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px var(--color-gold-glow);
}

/* --------------------------------------------------
   TARJETAS DE SERVICIOS (Estilo Exacto del Flyer)
-------------------------------------------------- */
.service-card-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: var(--shadow-card);
}

.service-card-item:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 16px 32px rgba(11, 59, 126, 0.12), 0 0 0 1px var(--color-gold);
}

/* Badge de Icono Circular Dorado Notarial */
.service-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid var(--color-gold);
  box-shadow: 0 4px 12px rgba(229, 169, 16, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.service-card-item:hover .service-icon-badge {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.08) rotate(5deg);
  border-color: var(--color-gold);
}

/* Títulos Bicolor */
.service-card-title {
  font-size: 1.18rem;
  font-weight: 700; /* Inter Bold */
  line-height: 1.3;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.service-card-title .gold-accent {
  color: var(--color-gold);
}

.service-card-tagline {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.45;
}

.service-pill-category {
  display: inline-block;
  background: rgba(11, 59, 126, 0.08);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}

/* Botón Solicitar / Ver Detalles */
.btn-solicitar-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-solicitar-card:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(229, 169, 16, 0.35);
}

/* --------------------------------------------------
   SECCIÓN ESPECIAL MOB (Bodas Civiles & Ceremonias de Gala)
-------------------------------------------------- */
.mob-special-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  border-top: 4px solid var(--color-gold);
  border-bottom: 4px solid var(--color-gold);
  background-color: #0F172A;
}

.mob-bg-layer {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/mob-marriage-contract.jpg');
  background-size: cover;
  background-position: center right;
  opacity: 0.28;
  z-index: 0;
}

.mob-overlay-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.97) 0%, rgba(17, 24, 39, 0.90) 50%, rgba(15, 23, 42, 0.72) 100%);
  z-index: 1;
}

@media (max-width: 1024px) {
  .mob-overlay-layer {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.92) 60%, rgba(15, 23, 42, 0.80) 100%);
  }
}

.mob-featured-photo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--color-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 169, 16, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mob-featured-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 169, 16, 0.35);
}

.mob-card-luxury {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(229, 169, 16, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.mob-card-luxury:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 30px rgba(229, 169, 16, 0.2);
}

/* --------------------------------------------------
   MODAL / POPUP DE DETALLE Y SOLICITUD
-------------------------------------------------- */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 37, 79, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px;
}

.modal-backdrop-custom.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-gold);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop-custom.active .modal-content-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--color-text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: rotate(90deg);
}

/* Botones de Acción en Modal */
.btn-action-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  border: none;
  width: 100%;
}

.btn-action-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-action-call {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  transition: all 0.25s ease;
  border: 1.5px solid var(--color-primary);
  width: 100%;
}

.btn-action-call:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --------------------------------------------------
   BARRA FLOTANTE MULTI-REDES SOCIALES (LADO DERECHO)
-------------------------------------------------- */
.floating-social-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.floating-social-container * {
  pointer-events: auto;
}

.floating-social-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.floating-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid #FFFFFF;
  position: relative;
}

.floating-social-btn:hover {
  transform: scale(1.15) translateX(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

/* WhatsApp Flotante Principal */
.floating-social-btn.btn-wa {
  width: 52px;
  height: 52px;
  background-color: var(--color-whatsapp);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: pulse-whatsapp 2.5s infinite;
}

.floating-social-btn.btn-wa:hover {
  background-color: var(--color-whatsapp-dark);
}

/* Facebook Notaría Flotante */
.floating-social-btn.btn-fb-notaria {
  background: linear-gradient(135deg, #1877F2 0%, #0B53B8 100%);
}

/* Facebook MOB Bodas Flotante */
.floating-social-btn.btn-fb-bodas {
  background: linear-gradient(135deg, #00254F 0%, #0B3B7E 100%);
  border-color: #E5A910;
  color: #E5A910;
}

/* Agendar Cita & FAQ Flotante */
.floating-social-btn.btn-faq-cita {
  background: linear-gradient(135deg, #0B3B7E 0%, #00254F 100%);
  border-color: #E5A910;
  color: #E5A910;
  box-shadow: 0 6px 20px rgba(11, 59, 126, 0.45);
  cursor: pointer;
}

.floating-social-btn.btn-faq-cita:hover {
  background: linear-gradient(135deg, #E5A910 0%, #CCA500 100%);
  color: #00254F;
  border-color: #FFFFFF;
}

.faq-mini-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 10px;
  background: #E5A910;
  color: #00254F;
  font-weight: 800;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  line-height: 1;
}

.ring-mini-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 11px;
  background: #FFFFFF;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  line-height: 1;
}

/* YouTube Flotante */
.floating-social-btn.btn-yt {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
  color: #FFFFFF;
}

/* Instagram Flotante */
.floating-social-btn.btn-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 640px) {
  .floating-social-container {
    bottom: 18px;
    right: 14px;
  }
  .floating-social-stack {
    gap: 8px;
  }
  .floating-social-btn {
    width: 42px;
    height: 42px;
  }
  .floating-social-btn.btn-wa {
    width: 48px;
    height: 48px;
  }
}

/* Burbuja Flotante de Mensaje Periódico (Call to Action) */
.wa-floating-bubble {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--color-gold);
  border-radius: 16px;
  padding: 12px 14px;
  max-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(229, 169, 16, 0.2);
  margin-bottom: 12px;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(10px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.4s ease;
}

.wa-floating-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  animation: wa-bubble-nudge 4s infinite ease-in-out;
}

.wa-bubble-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  border: none;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.wa-bubble-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.wa-bubble-arrow {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--color-gold);
}

.wa-bubble-arrow::after {
  content: '';
  position: absolute;
  top: -9px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #FFFFFF;
}

@keyframes wa-bubble-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* --------------------------------------------------
   SISTEMA DE ANIMACIONES DE ENTRADA (SCROLL REVEAL)
-------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Retardo Escalonado para Grids */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Micro-interacciones táctiles en Móviles & Tablets */
@media (hover: none) {
  .service-card-item:active,
  .mob-card-luxury:active,
  .btn-solicitar-card:active,
  .btn-action-whatsapp:active {
    transform: scale(0.98);
  }
}

/* --------------------------------------------------
   Sección Sobre la CEO & Confianza
-------------------------------------------------- */
.ceo-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(11, 59, 126, 0.18);
  border: 4px solid var(--color-gold);
}

.ceo-experience-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--color-primary-dark);
  color: #FFFFFF;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------
   Footer Legal
-------------------------------------------------- */
.footer-legal-main {
  background: linear-gradient(180deg, #00254F 0%, #001733 100%);
  color: #E2E8F0;
  border-top: 4px solid var(--color-gold);
}

.footer-link-item {
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-link-item:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

/* --------------------------------------------------
   Animaciones & Responsive Tweaks
-------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* --------------------------------------------------
   Lightbox / Pop-up de Fotos en Pantalla Completa
-------------------------------------------------- */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

.lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-dialog {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-backdrop.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-image {
  max-width: 90vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 16px;
  border: 2px solid rgba(229, 169, 16, 0.6);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 169, 16, 0.25);
  transition: opacity 0.2s ease;
}

.lightbox-btn-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
  z-index: 2050;
}

.lightbox-btn-close:hover {
  background: #E5A910;
  color: #020617;
  transform: scale(1.1);
}

.lightbox-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(229, 169, 16, 0.6);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 2050;
  user-select: none;
}

.lightbox-btn-nav:hover {
  background: #E5A910;
  color: #020617;
  transform: translateY(-50%) scale(1.12);
}

.lightbox-btn-prev {
  left: -65px;
}

.lightbox-btn-next {
  right: -65px;
}

@media (max-width: 820px) {
  .lightbox-btn-prev {
    left: 8px;
    background: rgba(15, 23, 42, 0.9);
  }
  .lightbox-btn-next {
    right: 8px;
    background: rgba(15, 23, 42, 0.9);
  }
  .lightbox-btn-close {
    top: 14px;
    right: 14px;
    position: fixed;
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid #E5A910;
  }
  .lightbox-image {
    max-height: 68vh;
  }
}

.gallery-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(229, 169, 16, 0.6);
  color: #E5A910;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

.cursor-zoom-in {
  cursor: zoom-in;
}

.cursor-zoom-in:hover .gallery-zoom-badge {
  background: #E5A910;
  color: #020617;
  transform: scale(1.05);
}

/* ==========================================================================
   SISTEMA RESPONSIVO INTEGRAL (Mobile 320px+ / Tablet / Desktop)
   ========================================================================== */

/* Reglas Globales de Prevención de Overflow y Ajustes Base */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  width: 100%;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* Ocultar barra de scroll en contenedor de pestañas sin romper el touch scroll */
#categoryTabsContainer {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#categoryTabsContainer::-webkit-scrollbar {
  display: none;
}

/* Prevenir Auto-zoom de Safari en iOS al enfocar campos en móviles (< 768px) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Pantallas Extra Pequeñas y Celulares (<= 640px) */
@media (max-width: 640px) {
  /* Contenedores con Padding Adaptativo */
  .w-\[90\%\] {
    width: 92% !important;
  }

  /* Top Bar Notarial */
  .top-bar-legal {
    padding: 6px 0;
  }
  .top-bar-legal .flex {
    justify-content: center !important;
    text-align: center;
    gap: 4px 12px;
  }

  /* Navbar Sticky & Brand */
  .navbar-sticky {
    padding: 4px 0;
  }
  .navbar-sticky .h-20 {
    height: 64px !important;
  }

  /* Hero Slider Adaptativo */
  .hero-slider-wrapper {
    min-height: 540px !important;
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }
  .hero-badge-pill {
    padding: 6px 14px;
    font-size: 0.76rem;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
  }
  .hero-title-main {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px;
  }
  .hero-subtitle-desc {
    font-size: 0.92rem !important;
    margin-bottom: 20px !important;
  }

  /* Controles de Slider */
  .slider-control-btn {
    width: 36px !important;
    height: 36px !important;
    bottom: 12px !important;
    top: auto !important;
    transform: none !important;
  }
  .slider-btn-prev { left: 10px !important; }
  .slider-btn-next { right: 10px !important; }
  .slider-dots-container {
    bottom: 16px !important;
  }

  /* Barra de Sellos y Garantías Notariales */
  .trust-strip-container {
    padding: 16px 0;
  }
  .trust-item-box {
    padding: 8px 12px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
  }
  .trust-item-icon {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  /* Tarjetas de Servicios */
  .service-card-item {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
  .service-icon-badge {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }
  .service-card-title {
    font-size: 1.08rem;
  }

  /* Sección MOB Bodas */
  .mob-special-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  .mob-card-luxury {
    padding: 18px 14px;
  }

  /* Modales Emergentes */
  .modal-content-card {
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }
  .modal-close-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    top: 12px;
    right: 12px;
  }

  /* Elementos Flotantes Fijos (Evitar solapamientos en celulares) */
  .floating-lang-switcher {
    bottom: 14px !important;
    left: 10px !important;
    padding: 2px 4px !important;
    gap: 2px !important;
  }
  .lang-switcher-btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }
  .floating-social-container {
    bottom: 14px !important;
    right: 10px !important;
  }
  .floating-social-stack {
    gap: 6px !important;
  }
  .floating-social-btn {
    width: 40px !important;
    height: 40px !important;
  }
  .floating-social-btn.btn-wa {
    width: 46px !important;
    height: 46px !important;
  }
  .wa-floating-bubble {
    max-width: 210px !important;
    padding: 9px 11px !important;
    margin-bottom: 8px !important;
  }
  .wa-bubble-title {
    font-size: 0.72rem !important;
  }
  .wa-bubble-text {
    font-size: 0.65rem !important;
  }

  /* Limitar visibilidad a 4 tarjetas en celulares hasta hacer clic en 'Todos Nuestros Servicios' */
  #servicesGridContainer:not(.show-all-mobile) .service-card-item:nth-child(n+5) {
    display: none !important;
  }

  /* Footer Legal */
  .footer-legal-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Pantallas Medianas / Tablets (641px a 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-slider-wrapper {
    min-height: 560px;
  }
  .hero-title-main {
    font-size: 2.2rem;
  }
  .service-card-item {
    padding: 22px 18px;
  }
  .floating-social-container {
    bottom: 20px;
    right: 16px;
  }
  .floating-lang-switcher {
    bottom: 20px;
    left: 16px;
  }
}

/* Soporte para dispositivos ultra estrechos (<= 360px como iPhone SE o Galaxy Fold) */
@media (max-width: 360px) {
  .hero-title-main {
    font-size: 1.45rem !important;
  }
  .btn-solicitar-card {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .brand-lockup-wrapper {
    max-width: 72vw;
  }

/* ==========================================================================
   Estilos Especiales: Sección Slider Paquetería & Envíos de Dinero (Imagen de Fondo con Transparencia Mínima)
   ========================================================================== */
#paqueteria-slider-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background-color: #1a0f07 !important;
}

.paqueteria-bg-layer {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero/envio-dinero-fondo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.85; /* Alta visibilidad para observar claramente la foto del dinero */
  z-index: 0;
}

.paqueteria-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 15, 35, 0.35) 0%, rgba(0, 30, 70, 0.25) 100%); /* Oscurecimiento mínimo de protección */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
}

#paqueteria-slider-section h2, 
#paqueteria-slider-section p, 
#paqueteria-slider-section span {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

#paqueteriaSlidesContainer {
  background-color: rgba(15, 23, 42, 0.78) !important; /* Card con transparencia y máxima legibilidad */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 2px solid rgba(229, 169, 16, 0.70);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.paqueteria-card-60 {
  background-color: rgba(6, 78, 59, 0.70) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.60) !important;
}


