/* ==========================================================================
   NOTARÍA 44 - GLOBAL STYLES (Premium & Unified)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* --- 1. Base Variables & Overrides --- */
:root {
  --color-primary: #CC2217;
  --color-primary-dark: #690001;
  --hero-banner-rgb: 255, 27, 38;
  --color-secondary: #CFA353;
  --color-secondary-light: #FFE5A5;
  --color-bg-dark: #09090B;
  /* Deep sophisticated black */
  --color-surface: #141416;
  --color-surface-elevated: #1F1F22;
  --color-text-main: #D4D4D8;

  /* Additional variables for services & process cards */
  --bg2: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --muted: #a1a1aa;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 6rem;
}

html,
body,
.font-sans {
  background-color: var(--color-bg-dark);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif !important;
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id],
.section[id] {
  scroll-margin-top: 5.5rem;
}

::selection {
  background-color: var(--color-primary);
  color: #d1d5db;
}

/* --- 2. Typography & Fluid Design --- */
/* Fluid text sizes using clamp() for perfect responsive scaling */
.fluid-display-lg {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fluid-title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  line-height: 1.2;
}

.fluid-body {
  font-size: clamp(1.0625rem, 1.5vw + 0.5rem, 1.25rem);
  line-height: 1.75;
}

/* Editorial alignment */
p,
.text-justify-custom,
[style*="text-align: justify"] {
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  text-wrap: pretty;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
  overflow-wrap: break-word !important;
  word-break: normal;
  word-spacing: normal;
  max-inline-size: 100%;
}

@media (max-width: 767px) {
  p,
  .text-justify-custom,
  [style*="text-align: justify"] {
    text-align: left !important;
    text-justify: auto !important;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/* --- 3. Premium Animations & Keyframes --- */
@keyframes lineShimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes verticalShimmer {
  0% {
    background-position: 0 -200%;
  }

  100% {
    background-position: 0 200%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-shell {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(var(--hero-banner-rgb), 0.68) 0%, rgba(20, 5, 5, 0.85) 100%) !important;
}

.hero-content {
  position: relative;
  z-index: 20;
}

.hero-media {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right bottom;
}

@media (max-width: 767px) {
  .hero-shell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-content {
    padding-right: 0;
    padding-bottom: 0;
  }

  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    justify-content: center;
  }

  .hero-media img,
  .hero-media video {
    width: 100%;
    max-width: 480px;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
  }
}

/* --- 4. Micro-interactions & Buttons --- */
/* ==========================================================================
   NEUMORPHIC GLASS BUTTON DESIGN SYSTEM (CSS-Only / 0ms Latency)
   ========================================================================== */

/* ==========================================================================
   NEUMORPHIC 3D POP-OUT GLASS DESIGN SYSTEM (CSS-Only / 0ms Latency)
   ========================================================================== */

/* Base transitions for all interactive buttons */
.primary-gradient-btn,
.secondary-filled-btn,
.secondary-outline-btn,
.petfriendly-btn,
.saber-mas-btn,
.bg-secondary\/10,
a[href="#organigrama"] {
  position: relative !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform, box-shadow, background;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* 1. Primary Neumorphic Button (Red Glass theme) */
.primary-gradient-btn {
  background: rgba(180, 25, 20, 0.35) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25), 
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.primary-gradient-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: rgba(204, 34, 23, 0.65) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.primary-gradient-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.7), 
    inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}

/* Custom Organigrama Hero Button - Matching site-wide button colors & effects */
a[href="#organigrama"],
.btn-organigrama {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 40px !important;
  min-height: 56px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(207, 163, 83, 0.3) !important;
  background: rgba(207, 163, 83, 0.1) !important;
  color: #CFA353 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

@media (min-width: 768px) {
  a[href="#organigrama"],
  .btn-organigrama {
    padding: 18px 48px !important;
    min-height: 60px !important;
    font-size: 14px !important;
  }
}

a[href="#organigrama"]:hover,
.btn-organigrama:hover {
  background: #CFA353 !important;
  color: #161616 !important;
  border-color: #CFA353 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

a[href="#organigrama"]:active,
.btn-organigrama:active {
  transform: scale(0.98) !important;
  background: #CFA353 !important;
  color: #161616 !important;
}


/* 3. Secondary Filled Buttons (Gold Glass theme) */
.secondary-filled-btn {
  background: rgba(207, 163, 83, 0.18) !important;
  color: #F3E5AB !important;
  border: 1px solid rgba(207, 163, 83, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25), 
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  text-shadow: none !important;
}

.secondary-filled-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: rgba(207, 163, 83, 0.32) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
}

.secondary-filled-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.6), 
    inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}

/* 3b. Secondary Outline Buttons (Gold Outline Glass theme) */
.secondary-outline-btn {
  background: rgba(207, 163, 83, 0.1) !important;
  color: #CFA353 !important;
  border: 1px solid rgba(207, 163, 83, 0.35) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25), 
    inset 0 1px 1px rgba(207, 163, 83, 0.15) !important;
}

.secondary-outline-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: rgba(207, 163, 83, 0.2) !important;
  border-color: rgba(207, 163, 83, 0.6) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.secondary-outline-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* 4. Petfriendly Button (Brown Glass theme) */
.petfriendly-btn {
  background: rgba(145, 100, 60, 0.25) !important;
  color: #ffffff !important;
  border: 1px solid rgba(207, 163, 83, 0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25), 
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.petfriendly-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: rgba(166, 120, 75, 0.45) !important;
  border-color: rgba(207, 163, 83, 0.4) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.petfriendly-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.65), 
    inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}

/* 5. Saber Más Button (Red Glass theme) */
.saber-mas-btn {
  background: rgba(204, 34, 23, 0.22) !important;
  color: #ffffff !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 
    0 4px 14px rgba(0, 0, 0, 0.25), 
    inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.6) !important;
}

.saber-mas-btn:hover {
  transform: translateY(-3px) scale(1.01) !important;
  background: rgba(204, 34, 23, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.saber-mas-btn:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 
    inset 3px 3px 8px rgba(0, 0, 0, 0.7), 
    inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
}






/* --- 5. Glassmorphism & Cards --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

:target {
  scroll-margin-top: 7rem;
}

.glass-panel {
  background: rgba(20, 20, 22, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 2rem;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.service-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-card-requirements {
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.service-card-requirements>* {
  width: 100%;
}

@media (max-width: 1023px) {
  .service-card-layout {
    grid-template-columns: 1fr;
  }

  .service-card-requirements {
    max-width: none;
    justify-self: stretch;
  }
}

.specialty-card,
.bento-card {
  background-color: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  transform: translateZ(0);
  /* HW Acceleration */
  min-height: clamp(24rem, 30vw, 30rem);
  display: flex;
  flex-direction: column;
}

.specialty-card:hover,
.bento-card:hover {
  transform: translateY(-6px) translateZ(0);
  border-color: rgba(204, 34, 23, 0.4);
  box-shadow: 0 20px 40px rgba(204, 34, 23, 0.25), 0 0 20px rgba(204, 34, 23, 0.05);
  background-color: rgba(204, 34, 23, 0.05);
}

@media (max-width: 767px) {

  .specialty-card,
  .bento-card {
    min-height: auto;
    padding: 1.5rem !important;
  }

  .service-card-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-card-content,
  .service-card-requirements {
    max-width: none !important;
    justify-self: stretch !important;
  }

  footer>div.grid {
    grid-template-columns: 1fr !important;
  }
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(204, 34, 23, 0.15), transparent);
  transition: transform 0.6s ease;
  z-index: 1;
}

.specialty-card:hover::before {
  transform: translateX(200%);
}

/* --- 6. Aesthetic Lines & Dividers --- */
.gold-border-gradient {
  position: relative;
  border-bottom: 1px solid transparent;
  border-top: 1px solid transparent;
  background-image: linear-gradient(to right, var(--color-secondary) 0%, var(--color-secondary-light) 50%, var(--color-secondary) 100%);
  background-size: 200% auto;
  animation: lineShimmer 3.5s linear infinite;
}

.shimmer-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent 0%, var(--color-secondary) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineShimmer 2.5s ease-in-out infinite;
}

.service-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(207, 163, 83, 0.5) 50%, transparent 100%);
  margin: 3rem 0;
  position: relative;
}

.service-section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: radial-gradient(circle, rgba(207, 163, 83, 0.8) 0%, transparent 100%);
}

/* --- 7. Layouts & Containers --- */
.service-fullscreen-section {
  position: relative;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 2rem;
  box-sizing: border-box;
  scroll-snap-align: start;
}

.service-panel {
  display: flex;
}

.service-panel[hidden] {
  display: none !important;
}

.service-scroll-snap {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 5rem;
  scroll-behavior: smooth;
}

/* Container limits */
.service-unified-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0;
  margin-top: 0.75rem;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .service-unified-container {
    min-height: 580px;
  }
}

@media (max-width: 767px) {
  .service-unified-container {
    grid-template-columns: 1fr;
  }
}

/* Module parts */
.service-module {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.service-module-content {
  padding: 2.5rem 2.25rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.1rem;
}

.service-module-content h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
}

.service-module-content p,
.service-module-content li button {
  font-size: clamp(1rem, 1.2vw + 0.25rem, 1.125rem);
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  max-width: 60ch;
}

/* Fix for mobile carousels missing aspect-ratio from Tailwind JIT */
.mini-carousel {
  aspect-ratio: 4 / 3;
}

.service-module-image {
  min-height: 360px;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.65) 24%, rgba(0, 0, 0, 0.25) 48%, rgba(0, 0, 0, 0.08) 72%, transparent 100%);
}

.service-module-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: right center;
  margin-left: auto;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  position: relative;
  z-index: 1;
  display: block;
}

.service-module-image::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 22%, rgba(0, 0, 0, 0.16) 46%, rgba(0, 0, 0, 0.05) 70%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.service-module-image>.absolute {
  z-index: 10;
}

.service-module-image>.subservice-overlay {
  z-index: 30;
}

.service-module-image h4 {
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.subservice-overlay {
  margin-top: 3.25rem !important;
  padding: 1.25rem 1.25rem !important;
  border: 1px solid rgba(207, 163, 83, 0.28);
  border-top: 2px solid rgba(207, 163, 83, 0.42);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(16, 16, 16, 0.96), rgba(26, 22, 18, 0.94));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.subservice-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.subservice-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .subservice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.subservice-card {
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.1rem;
  padding: 1.15rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.subservice-card:hover,
.subservice-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(207, 163, 83, 0.38);
  background: rgba(207, 163, 83, 0.06);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(207, 163, 83, 0.06);
}

.subservice-card:focus {
  outline: 2px solid rgba(207, 163, 83, 0.18);
  outline-offset: 4px;
}

.subservice-card-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F4D39B;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.subservice-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.subservice-overlay .overlay-title {
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #CFA353;
  margin: 0 0 0.6rem;
  font-weight: 700;
}

/* Hardware Acceleration Helpers */
.hw-accel {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Custom Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: transform 0.2s ease;
}

/* Home trust carousel visibility states */
.carousel-item {
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  position: absolute;
  pointer-events: auto;
  z-index: 2;
}

.carousel-dot.active {
  background-color: #CFA353;
  width: 24px;
}

/* Accesibilidad (WCAG) */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 8px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-secondary);
  color: #161616;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  z-index: 999999;
}

/* ==========================================================================
   5. Header & Dropdown Sizing Overrides
   ========================================================================== */
header nav a.font-label-caps {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

header a.font-label-caps.backdrop-blur-md {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

header nav .material-symbols-outlined {
  font-size: 16px !important;
  font-weight: bold !important;
}

/* Services Dropdown (w-[640px]) */
header nav .group\/services>div {
  width: 640px !important;
  padding: 2rem !important;
  /* p-8 */
  gap: 2rem !important;
  /* gap-8 */
}

/* Herencias Dropdown (w-[490px]) */
header nav .group\/herencias>div {
  width: 490px !important;
  padding: 2rem !important;
  /* p-8 */
  gap: 2rem !important;
  /* gap-8 */
}

/* Inmobiliario Dropdown (w-[380px]) */
header nav .group\/inmobiliario>div {
  width: 380px !important;
  padding: 2rem !important;
  /* p-8 */
  gap: 0.75rem !important;
}

/* Empresas Dropdown (w-[360px]) */
header nav .group\/empresas>div {
  width: 360px !important;
  padding: 2rem !important;
  /* p-8 */
  gap: 0.75rem !important;
}

/* Dropdown Category Headers */
header nav div.absolute a.font-label-caps,
header nav div.absolute div.font-label-caps {
  font-size: 13px !important;
  font-weight: 700 !important;
  /* Bold category titles */
  padding-bottom: 0.5rem !important;
  /* pb-2 */
}

header nav div.absolute a.font-label-caps span.material-symbols-outlined,
header nav div.absolute div.font-label-caps span.material-symbols-outlined {
  font-size: 18px !important;
  font-weight: bold !important;
}

/* Dropdown List Items */
header nav div.absolute ul {
  font-size: 14px !important;
  /* text-sm */
  gap: 0.75rem !important;
  /* gap-3 */
}

header nav div.absolute ul li a {
  font-weight: 500 !important;
  /* Medium weight for sub-links (less thin) */
}

/* ==========================================================================
   NEW ARCHITECTURE FOR HOMOGENEOUS CARDS & REQUISITES
   ========================================================================== */

/* Section styles */
.section {
  padding: 6rem 0;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  scroll-margin-top: 7.5rem;
  /* Permite que al saltar por anclas no quede tapado por el header fijo */
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

/* Header/Titles styling within section */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(207, 163, 83, 0.2);
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #E6E8EC;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35), 0 0 18px rgba(207, 163, 83, 0.14);
}

.section-title span {
  color: var(--color-secondary);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Process/service titles keep the dual tone even when there is no <span>. */
.process .section-title {
  color: #E2B65D;
  text-shadow: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .process .section-title {
    background: linear-gradient(92deg, #C99535 0%, #E7B85D 38%, #F2CC79 68%, #FFE1A8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.process .section-title span {
  background: linear-gradient(135deg, #D9B36B 0%, #F0D7A1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Apply the same card-title aesthetic to other section cards across the site. */
.section:not(.process) .section-title {
  color: #E2B65D;
  text-shadow: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .section:not(.process) .section-title {
    background: linear-gradient(92deg, #C99535 0%, #E7B85D 38%, #F2CC79 68%, #FFE1A8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.section:not(.process) .section-title span {
  background: linear-gradient(135deg, #D9B36B 0%, #F0D7A1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Services Grid (Main containers) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-item {
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item:hover {
  transform: translateY(-6px);
  background: rgba(204, 34, 23, 0.05);
  border-color: rgba(204, 34, 23, 0.4);
  box-shadow: 0 12px 30px rgba(204, 34, 23, 0.25), 0 0 15px rgba(204, 34, 23, 0.1);
}

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255, 107, 0, 0.4);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.service-item:hover .service-num {
  color: rgba(255, 107, 0, 0.8);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-item:hover .service-icon-wrap {
  transform: scale(1.05);
  border-color: var(--color-secondary);
}

.service-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: #E2B65D;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .service-name {
    background: linear-gradient(92deg, #CC9B3B 0%, #E9BB67 45%, #F8D48A 75%, #FFE8BA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.service-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

.service-arrow {
  position: absolute;
  top: 44px;
  right: 44px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.service-item:hover .service-arrow {
  color: var(--color-secondary);
  transform: translate(3px, -3px);
}

/* Process section (Requirements parts) */
.process {
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3rem 2.5rem !important;
  margin-top: 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  scroll-margin-top: 7.5rem;
}

@media (max-width: 768px) {
  .process {
    padding: 2rem 1.5rem !important;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: 100%;
}

@media (min-width: 640px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.step {
  background: rgba(20, 20, 22, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
}

.step:hover {
  transform: translateY(-4px);
  background: rgba(204, 34, 23, 0.05);
  border-color: rgba(204, 34, 23, 0.4);
  box-shadow: 0 12px 30px rgba(204, 34, 23, 0.25), 0 0 15px rgba(204, 34, 23, 0.1);
}

.step-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-secondary, #CFA353);
}

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: rgba(255, 107, 0, 0.08);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.step-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #d1d5db;
}

.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
}

/* ==========================================================================
   Scroll-triggered reveal system — IntersectionObserver (sobre-nosotros motions)
   ========================================================================== */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(207, 163, 83, 0); transform: translateY(0); }
  50%       { box-shadow: 0 0 18px rgba(207, 163, 83, 0.1); transform: translateY(-1px); }
}

/* Hero text entrance (above-the-fold, CSS-only) */
.hero-content h1 {
  animation: heroRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-content p {
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* Base hidden state — JS adds .is-visible when element enters viewport */
.animate-on-enter,
.reveal-blur,
.reveal-left,
.reveal-right,
.reveal {
  animation: none;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(22px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter   0.75s ease;
  transition-delay: var(--enter-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal-left  { transform: translateX(-22px) translateY(8px); }
.reveal-right { transform: translateX(22px)  translateY(8px); }

/* Visible state */
.animate-on-enter.is-visible,
.reveal-blur.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) translateX(0);
}

/* Staggered delays via CSS custom property */
.reveal-d1 { --enter-delay: 0ms; }
.reveal-d2 { --enter-delay: 100ms; }
.reveal-d3 { --enter-delay: 180ms; }
.reveal-d4 { --enter-delay: 260ms; }
.reveal-d5 { --enter-delay: 340ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-enter,
  .reveal-blur,
  .reveal-left,
  .reveal-right,
  .reveal,
  .hero-content h1,
  .hero-content p {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* Floating Back to Services Button */
.back-to-services {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: #CC2217;
  color: #d1d5db;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  border: 1px solid #CFA353;
  cursor: pointer;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(15px);
  text-decoration: none;
}

.back-to-services.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.back-to-services:hover {
  background: #E52E20;
  box-shadow: 0 0 15px rgba(207, 163, 83, 0.6), 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.back-to-services span {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #d1d5db;
}

.back-to-services:hover span {
  transform: translateY(-2px);
}

/* Glassmorphism overrides for tailwind surface container classes */
.bg-surface-container {
  background: rgba(20, 20, 22, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.bg-surface-container\/60 {
  background: rgba(20, 20, 22, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.bg-surface-container\/50 {
  background: rgba(20, 20, 22, 0.35) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.bg-surface-container-high {
  background: rgba(45, 45, 45, 0.45) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}


/* ==========================================================================
   LG BREAKPOINT FIXES (1024px+)
   Clases lg: que Tailwind no incluyó en el compilado
   ========================================================================== */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:flex-col {
    flex-direction: column;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:justify-between {
    justify-content: space-between;
  }

  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:gap-12 {
    gap: 3rem;
  }

  .lg\:gap-16 {
    gap: 4rem;
  }

  .lg\:px-section-padding {
    padding-left: 80px;
    padding-right: 80px;
  }

  .lg\:py-section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .lg\:mt-0 {
    margin-top: 0;
  }

  .lg\:w-auto {
    width: auto;
  }

  .lg\:w-full {
    width: 100%;
  }

  .lg\:max-w-3xl {
    max-width: 48rem;
  }

  .lg\:text-left {
    text-align: left;
  }
}

/* --- Footer Responsive Grid --- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* --- Footer Element Overrides --- */
footer {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
  position: relative;
  z-index: 10; /* Evita que el lienzo interactivo del fondo (z-index: 1) se superponga al contenido del footer */
}

@media (min-width: 768px) {
  footer {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* --- Footer Typography & Layout Harmonization --- */
footer h5 {
  font-size: 0.75rem !important; /* text-xs (12px), matching EXPLORAR, LEGAL, UBICACIÓN */
  margin-bottom: 0.5rem !important;
  line-height: 1.25;
}

/* Increase gap between CONTACTO block and HORARIO block */
footer .footer-grid > div:nth-child(3) {
  display: flex;
  flex-direction: column;
  gap: 1.25rem !important;
}

/* Harmonize body text size under CONTACTO and HORARIO to match EXPLORAR & LEGAL */
footer .footer-grid > div:nth-child(3) a,
footer .footer-grid > div:nth-child(3) p {
  font-size: 0.8125rem !important; /* 13px - perfectly balanced with text-xs column links */
  line-height: 1.5 !important;
}

footer a.font-body-md {
  margin-bottom: 0.5rem !important;
}

footer a.font-body-md:last-child {
  margin-bottom: 0 !important;
}

/* Specific rule for institutional email to fit cleanly without breaking awkwardly */
footer a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 0.8125rem !important;
}

/* ==========================================================================
   WIDGET DE ACCESIBILIDAD — Circular Rojizo con Auto-Colapso
   ========================================================================== */

/* ── Animación de entrada ── */
@keyframes a11y-widget-in {
  from { opacity: 0; transform: translateY(-50%) scale(0.6); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ── Contenedor principal ──
   Tamaño fijo = tamaño del toggle. El panel se posiciona
   absolutamente encima sin desplazar el botón. */
#a11y-widget {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
  /* Tamaño exacto del toggle — no cambia al abrir el panel */
  width: 2.75rem;
  height: 2.75rem;
  animation: a11y-widget-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1s;
  opacity: 0;
}

/* Puente invisible que cubre el gap entre toggle y panel
   para evitar que mouseleave dispare al cruzar el espacio */
#a11y-widget::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 0.55rem; /* mismo valor que el gap del panel */
  pointer-events: auto;
}

/* ── Botón distintivo (siempre visible) ── */
.a11y-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid rgba(204, 34, 23, 0.55);
  background: radial-gradient(circle at 38% 38%, #e8352a, #9b1810);
  box-shadow:
    0 0 0 3px rgba(204, 34, 23, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.25s ease;
  flex-shrink: 0;
}

.a11y-toggle:hover {
  box-shadow:
    0 0 0 5px rgba(204, 34, 23, 0.22),
    0 6px 22px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: scale(1.07);
}

.a11y-toggle:active {
  transform: scale(0.94);
}

.a11y-toggle:focus-visible {
  outline: 2px solid #e8352a;
  outline-offset: 3px;
}

/* El icono universal de accesibilidad */
.a11y-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  user-select: none;
  transition: transform 0.2s ease;
}

.a11y-universal-icon {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  pointer-events: none;
}

/* Escala sutil al expandirse */
#a11y-widget.a11y-expanded .a11y-toggle-label {
  transform: scale(0.9) rotate(15deg);
}

/* ── Shimmer de linea dorada ── */
@keyframes a11y-gold-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 200%; }
}

/* ── Panel emergente horizontal ──
   Se despliega horizontalmente a la izquierda del botón principal */
#a11y-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.6rem);
  transform: translateY(-50%) translateX(0.6rem) scale(0.85);
  transform-origin: center right;
  width: max-content;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;

  /* Glassmorphism premium */
  background: rgba(8, 5, 5, 0.72);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);

  /* Borde dorado sutil */
  border: 1px solid rgba(207, 163, 83, 0.28);
  border-radius: 2rem;
  padding: 0.5rem 1rem 0.5rem 1.1rem;

  box-shadow:
    -8px 8px 36px rgba(0, 0, 0, 0.75),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(207, 163, 83, 0.08);

  overflow: hidden;

  /* Estado colapsado */
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* Puente invisible que cubre el gap lateral */
#a11y-widget::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 0;
  height: 100%;
  width: 0.65rem;
  pointer-events: auto;
}

/* Destello plata animado (horizontal en el borde superior del panel) */
#a11y-panel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 224, 224, 0.2) 20%,
    rgba(255, 255, 255, 1) 50%,
    rgba(224, 224, 224, 0.2) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
}

/* Animación de destello único (un solo pase de izquierda a derecha al desplegarse) */
@keyframes a11y-flash-silver {
  0% {
    background-position: -150% 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    background-position: 150% 0;
    opacity: 0;
  }
}

#a11y-widget.a11y-expanded #a11y-panel::before {
  animation: a11y-flash-silver 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Estado expandido */
#a11y-widget.a11y-expanded #a11y-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0) scale(1);
}

/* Título principal del panel */
.a11y-panel-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #CFA353, #FFE5A5, #CFA353);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  margin: 0;
  white-space: nowrap;
  border-right: 1px solid rgba(207, 163, 83, 0.2);
  border-bottom: none;
  padding-right: 0.8rem;
  padding-bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Grupo horizontal de controles */
.a11y-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.a11y-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(207, 163, 83, 0.65);
  user-select: none;
}

.a11y-controls-row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

/* Botón base */
.a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(207, 163, 83, 0.65);
  transition: background 0.2s ease, color 0.2s ease, transform 0.18s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.2s ease;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

.a11y-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  pointer-events: none;
  flex-shrink: 0;
}

.a11y-btn:hover:not(:disabled) {
  background: rgba(207, 163, 83, 0.12);
  color: #FFE5A5;
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(207, 163, 83, 0.2), inset 0 0 6px rgba(207, 163, 83, 0.08);
}

.a11y-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.a11y-btn:disabled {
  opacity: 0.18;
  cursor: not-allowed;
}

.a11y-btn:focus-visible {
  outline: 2px solid rgba(207, 163, 83, 0.7);
  outline-offset: 2px;
}

.a11y-magnifier {
  transition: transform 0.22s ease, filter 0.22s ease;
  stroke: rgba(207, 163, 83, 0.65);
}

.a11y-btn:hover:not(:disabled) .a11y-magnifier {
  stroke: #FFE5A5;
  filter: drop-shadow(0 0 4px rgba(207, 163, 83, 0.6));
  transform: scale(1.08);
}

/* Divisores internos entre botones (verticales) */
.a11y-divider {
  width: 1px;
  height: 1.2rem;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(207, 163, 83, 0.3) 30%,
    rgba(255, 229, 165, 0.45) 50%,
    rgba(207, 163, 83, 0.3) 70%,
    transparent
  );
  margin: 0 0.15rem;
  flex-shrink: 0;
}

/* Divisores entre grupos principales */
.a11y-section-divider {
  width: 1px;
  height: 1.6rem;
  background: rgba(207, 163, 83, 0.18);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* Indicador de porcentaje/texto */
.a11y-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(207, 163, 83, 0.75);
  text-align: center;
  user-select: none;
  font-variant-numeric: tabular-nums;
  min-width: 2.8rem;
}

/* Botón de Reset */
.a11y-btn-reset {
  opacity: 0.25;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.25s ease, transform 0.15s ease;
  border-top: none;
  border-radius: 50%;
  width: 2.3rem;
  color: rgba(207, 163, 83, 0.5);
}

.a11y-btn-reset.a11y-reset-active {
  opacity: 0.85;
  color: rgba(207, 163, 83, 0.85);
}

.a11y-btn-reset.a11y-reset-active:hover {
  background: rgba(207, 163, 83, 0.1);
  color: #FFE5A5;
  opacity: 1;
  box-shadow: 0 0 10px rgba(207, 163, 83, 0.15);
}

/* Icono de alto contraste */
.a11y-contrast-icon {
  transition: transform 0.22s ease, filter 0.22s ease, color 0.22s ease;
  color: rgba(207, 163, 83, 0.65);
}

.a11y-btn:hover:not(:disabled) .a11y-contrast-icon {
  color: #FFE5A5;
  filter: drop-shadow(0 0 4px rgba(207, 163, 83, 0.6));
  transform: scale(1.08);
}

.a11y-btn.a11y-btn-active .a11y-contrast-icon {
  color: #FFE5A5;
  filter: drop-shadow(0 0 6px rgba(207, 163, 83, 0.8));
}

.a11y-btn.a11y-btn-active {
  background: rgba(207, 163, 83, 0.15);
}


/* ── REGLAS GLOBALES DE ALTO CONTRASTE (WCAG AAA) ── */
.high-contrast {
  filter: contrast(1.25) !important;
}

.high-contrast body,
.high-contrast p,
.high-contrast li,
.high-contrast span,
.high-contrast a,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast td,
.high-contrast th {
  /* Forzar colores de texto de altísima legibilidad */
  color: #FFFFFF !important;
  text-shadow: none !important;
}

.high-contrast a {
  text-decoration: underline !important;
}

.high-contrast input,
.high-contrast textarea,
.high-contrast select,
.high-contrast button:not(.a11y-btn):not(.a11y-toggle) {
  border: 2px solid #FFFFFF !important;
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

.high-contrast :focus {
  outline: 3px solid #FFE5A5 !important;
  outline-offset: 3px !important;
}


/* ── Móvil ── */
@media (max-width: 480px) {
  #a11y-widget {
    top: auto;
    bottom: 5.5rem;
    right: 0.75rem;
    transform: none;
    animation-name: none;
    opacity: 1;
    width: 2.4rem;
    height: 2.4rem;
  }

  /* En móvil, para no salirse, se despliega verticalmente hacia arriba */
  #a11y-panel {
    bottom: calc(100% + 0.6rem);
    top: auto;
    right: 0;
    transform: translateY(0.6rem) scale(0.85);
    transform-origin: bottom right;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0.6rem 0.6rem;
    border-radius: 1.4rem;
  }

  #a11y-widget.a11y-expanded #a11y-panel {
    transform: translateY(0) scale(1);
  }

  .a11y-panel-title {
    border-right: none;
    border-bottom: 1px solid rgba(207, 163, 83, 0.2);
    padding-right: 0;
    padding-bottom: 0.3rem;
    margin-bottom: 0.2rem;
    width: 100%;
    justify-content: center;
  }

  .a11y-group {
    flex-direction: column;
    gap: 0.15rem;
  }

  .a11y-section-divider {
    width: 1.6rem;
    height: 1px;
    margin: 0.2rem 0;
  }

  #a11y-widget::before {
    right: 0;
    bottom: 100%;
    height: 0.65rem;
    width: 100%;
  }

  .a11y-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }

  .a11y-toggle-label {
    width: 1.3rem;
    height: 1.3rem;
  }
}


/* ==========================================================================
   SECCIÓN NOTICIAS / REDES SOCIALES
   ========================================================================== */

.social-news-section {
  position: relative;
  padding: var(--spacing-section, 5rem) 0;
  overflow: hidden;
}

.social-news-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(207, 163, 83, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Tarjeta de red social --- */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(31, 31, 34, 0.85) 0%, rgba(20, 20, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 100%;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  background-size: 200% 100%;
  animation: lineShimmer 4s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-card:hover::before {
  opacity: 1;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(207, 163, 83, 0.15),
    0 0 40px rgba(207, 163, 83, 0.04);
  border-color: rgba(207, 163, 83, 0.2);
}

/* Cabecera de la tarjeta */
.social-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-card-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 2px solid rgba(207, 163, 83, 0.3);
  overflow: hidden;
}

.social-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  filter: brightness(1.1);
}

.social-card-identity {
  flex: 1;
  min-width: 0;
}

.social-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.social-card-handle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-secondary);
  opacity: 0.8;
  margin-top: 0.1rem;
}

.social-card-x-logo {
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.social-card:hover .social-card-x-logo {
  color: rgba(255, 255, 255, 0.9);
}

/* Cuerpo de la tarjeta */
.social-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-card-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: rgba(212, 212, 216, 0.75);
  line-height: 1.65;
  font-style: italic;
}

.social-card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.social-card-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(207, 163, 83, 0.08);
  border: 1px solid rgba(207, 163, 83, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Pie de la tarjeta */
.social-card-footer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.social-card-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid rgba(207, 163, 83, 0.35);
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.social-card-follow-btn:hover {
  background: rgba(207, 163, 83, 0.12);
  border-color: rgba(207, 163, 83, 0.6);
  color: var(--color-secondary-light, #FFE5A5);
  box-shadow: 0 0 16px rgba(207, 163, 83, 0.12);
  transform: scale(1.02);
}

.social-card-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(212, 212, 216, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Divisor decorativo */
.social-news-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.social-news-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 163, 83, 0.25), transparent);
}

.social-news-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

/* Grid responsivo para las 3 tarjetas */
.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .social-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .social-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-card:hover {
    transform: none;
  }
}


/* ==========================================================================
   CARRUSEL DINÁMICO DE POSTS — .sn-*
   ========================================================================== */

/* Contenedor del feed dentro de .social-card-body */
.sn-feed-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
  position: relative;
}

/* Grupo de posts visibles */
.sn-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: snFadeIn 0.25s ease;
}

.sn-feed.sn-fade-out {
  animation: snFadeOut 0.2s ease forwards;
  pointer-events: none;
}

.sn-feed.sn-fade-in {
  animation: snFadeIn 0.25s ease forwards;
}

@keyframes snFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes snFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

/* Elemento de feed — un post */
.sn-feed-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sn-feed-item:last-child {
  border-bottom: none;
}

/* Enlace del post */
.sn-post {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.sn-post:hover {
  background: rgba(207, 163, 83, 0.06);
}

.sn-post-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(212, 212, 216, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.sn-post-text em {
  color: var(--color-secondary);
  font-style: normal;
}

.sn-post-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  opacity: 0.7;
}

/* Controles de navegación */
.sn-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 0.6rem;
  margin-top: auto;
}

.sn-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.sn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.sn-dot--active {
  background: var(--color-secondary);
  transform: scale(1.35);
}

.sn-dot:hover:not(.sn-dot--active) {
  background: rgba(207, 163, 83, 0.5);
}

.sn-ctrl {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.sn-ctrl:hover {
  border-color: rgba(207, 163, 83, 0.5);
  color: var(--color-secondary);
  background: rgba(207, 163, 83, 0.06);
}

/* Estado skeleton (carga) */
.sn-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

.sn-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sn-sk {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skShimmer 1.4s linear infinite;
}

.sn-sk--80 { width: 80%; }
.sn-sk--60 { width: 60%; }
.sn-sk--40 { width: 40%; }

@keyframes skShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Estado de error */
.sn-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: rgba(212, 212, 216, 0.4);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  min-height: 140px;
}

.sn-error svg {
  opacity: 0.4;
}

.sn-error p {
  margin: 0;
  line-height: 1.5;
}

.sn-error-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.sn-error-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Custom Aviso Modal & Cards Styling (Fluid Glass & Crystal Aesthetic) ── */
.aviso-modal-card {
  background: rgba(18, 18, 24, 0.52) !important;
  border: 1px solid rgba(207, 163, 83, 0.35) !important;
  border-radius: 2rem !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  max-height: 90vh !important;
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2.5rem !important;
}

.aviso-modal-top-highlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(207, 163, 83, 0.9) 50%, transparent 100%);
}

.aviso-icon-badge {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.125rem;
  background: rgba(207, 163, 83, 0.12);
  border: 1px solid rgba(207, 163, 83, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CFA353;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.aviso-modal-body-container {
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 0 !important;
  background: transparent !important;
}

/* Modal de Avisos y Transparencia - Espacio Amplio, Cristal Luminoso y Rejilla sin Scroll */
#aviso-modal {
  background-color: rgba(0, 0, 0, 0.4) !important;
}

#aviso-modal .aviso-modal-card {
  max-width: 1040px !important;
  width: 95% !important;
  background: rgba(18, 18, 24, 0.52) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
}

#aviso-modal .aviso-modal-body-container,
#aviso-modal #aviso-modal-body {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
  background: transparent !important;
}

.aviso-reports-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  width: 100% !important;
  align-items: start !important;
}

@media (max-width: 768px) {
  #aviso-modal .aviso-modal-body-container,
  #aviso-modal #aviso-modal-body {
    max-height: 65vh !important;
    overflow-y: auto !important;
  }
  .aviso-reports-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

.control-entity-card {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  border-radius: 1.25rem;
  padding: 1.625rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(35, 35, 48, 0.75) 0%, rgba(22, 22, 32, 0.82) 50%, rgba(15, 15, 21, 0.9) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.control-entity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(207, 163, 83, 0.65);
  box-shadow: 0 16px 40px rgba(207, 163, 83, 0.22), 0 12px 30px rgba(0, 0, 0, 0.65);
}

.control-entity-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #CFA353;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.control-entity-card h4 {
  font-size: 1.1875rem; /* ~19px */
  line-height: 1.45;
  color: #FFFFFF;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.control-entity-card li {
  font-size: 0.9375rem; /* 15px */
  line-height: 1.65;
  color: rgba(240, 240, 245, 0.92);
}

.info-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(34, 34, 46, 0.75) 0%, rgba(22, 22, 30, 0.84) 50%, rgba(14, 14, 20, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.info-notice-box .notice-text {
  font-size: 1.0625rem; /* 17px */
  line-height: 1.75;
  color: #F4F4F8;
}

/* Clases para corregir el espaciado y fuentes del header de modales */
.aviso-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem !important;
}

.aviso-modal-subtitle {
  font-size: 0.9375rem !important; /* ~15px */
  font-weight: 700 !important;
  color: #CFA353 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 0.25rem !important;
}

.aviso-modal-title {
  font-size: 1.5625rem !important; /* ~25px */
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

/* Modal de Avisos y Transparencia - Espacio Amplio, Cristal Luminoso y Rejilla sin Scroll */
#aviso-modal {
  background-color: rgba(0, 0, 0, 0.55) !important;
}

#aviso-modal .aviso-modal-card {
  max-width: 1040px !important;
  width: 95% !important;
  background: linear-gradient(135deg, rgba(28, 25, 22, 0.68) 0%, rgba(18, 16, 14, 0.72) 50%, rgba(12, 10, 9, 0.76) 100%) !important;
  backdrop-filter: blur(28px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.9) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(207, 163, 83, 0.12) !important;
}

#aviso-modal .aviso-modal-body-container {
  max-height: none !important;
  overflow-y: visible !important;
  overflow-x: hidden !important;
  padding-right: 0 !important;
  background: transparent !important;
}

.aviso-reports-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.75rem !important;
  width: 100% !important;
  align-items: start !important;
}

@media (max-width: 768px) {
  #aviso-modal .aviso-modal-body-container {
    max-height: 65vh !important;
    overflow-y: auto !important;
  }
  .aviso-reports-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ==========================================================================
   TRANSPARENCIA SEQUENTIAL FLOATING DOCK (Soft Red & Gold Glassmorphism)
   ========================================================================== */

.transparencia-nav-dock {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-glass-panel {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.1rem;
  /* Fondo con tinte sutil de rojo institucional fundido en cristal oscuro */
  background: radial-gradient(circle at top left, rgba(204, 34, 23, 0.12) 0%, rgba(20, 20, 24, 0.65) 60%, rgba(12, 12, 14, 0.75) 100%);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(207, 163, 83, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 34, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  width: 215px;
  max-width: calc(100vw - 2rem);
  transform: translateZ(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-glass-panel:hover {
  border-color: rgba(207, 163, 83, 0.55);
  background: radial-gradient(circle at top left, rgba(204, 34, 23, 0.18) 0%, rgba(20, 20, 24, 0.72) 60%, rgba(12, 12, 14, 0.82) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(204, 34, 23, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dock Header */
.dock-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(207, 163, 83, 0.18);
  text-align: center;
}

.dock-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
}

.dock-back-link:hover {
  color: #CFA353;
  transform: translateY(-1px);
}

.dock-back-link svg {
  color: #CFA353;
  transition: transform 0.2s ease;
}

.dock-back-link:hover svg {
  transform: translateX(-3px);
}

.dock-badge-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.dock-group-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFE5A5;
  background: linear-gradient(135deg, rgba(204, 34, 23, 0.25) 0%, rgba(207, 163, 83, 0.2) 100%);
  padding: 0.22rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(207, 163, 83, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

/* Steps List */
.dock-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.2rem 0;
}

.dock-step-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  color: rgba(244, 244, 248, 0.75);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.dock-step-item:hover {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(204, 34, 23, 0.15) 0%, rgba(207, 163, 83, 0.1) 100%);
  border-color: rgba(207, 163, 83, 0.3);
  transform: translateX(4px);
}

.dock-step-item.active {
  color: #FFE5A5;
  background: linear-gradient(90deg, rgba(204, 34, 23, 0.3) 0%, rgba(207, 163, 83, 0.2) 100%);
  border: 1px solid rgba(207, 163, 83, 0.55);
  border-left: 3px solid #CFA353;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 12px rgba(204, 34, 23, 0.15);
}

.dock-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: #CFA353;
  opacity: 0.9;
}

.dock-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.95;
}

.dock-step-label {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.dock-step-indicator {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #CFA353;
  box-shadow: 0 0 10px #CFA353, 0 0 4px #FFE5A5;
}

/* Mobile Toggle */
.dock-mobile-toggle {
  display: none;
  pointer-events: auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(204, 34, 23, 0.85) 0%, rgba(20, 20, 24, 0.95) 100%);
  border: 1px solid rgba(207, 163, 83, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(204, 34, 23, 0.25);
  color: #FFE5A5;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.dock-mobile-toggle .dock-icon-close {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .transparencia-nav-dock {
    left: 1rem;
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }

  .dock-mobile-toggle {
    display: inline-flex;
  }

  .dock-glass-panel {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.75rem);
    left: 0;
    width: 225px;
    animation: dockFadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .transparencia-nav-dock.mobile-open .dock-glass-panel {
    display: flex;
  }

  .transparencia-nav-dock.mobile-open .dock-mobile-toggle .dock-icon-open {
    display: none;
  }

  .transparencia-nav-dock.mobile-open .dock-mobile-toggle .dock-icon-close {
    display: inline-block;
  }
}

@keyframes dockFadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


