﻿/* Paleta RIBACTIVA: gris principal, granate secundario */
:root {
  --color-bg: #f5f7fa;
  /* gris muy claro de fondo */
  --color-accent: #DA291C;
  /* Pantone 485 Rojo */
  --color-secondary: #595959;
  /* Gris neutro */
  --color-ink: #0f0f0f;
  /* texto principal muy oscuro */
  --color-paper: #ffffff;
  /* blanco para superficies */
  --color-surface: #ffffff;
  /* tarjetas */
  --color-border: #e5e7eb;
  /* bordes */
  --header-h: 80px;
  /* altura aproximada del header */
  --radius: 14px;
  --hero-image: url('../img/slide01.jpg');
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%
}

body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-ink);
  background: linear-gradient(180deg, #f8fafc, #f3f4f6 40%, #eef2f7);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  will-change: transform, background, box-shadow;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .5)
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .15));
  margin: 0 24px
}

.site-header .brand .logo-3d {
  width: auto;
  height: 80px;
  object-fit: contain;
}

.site-header .brand img {
  /*filter: brightness(0) invert(0) contrast(1.1);*/
  opacity: .95;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1)
}

.site-header.scrolled .brand img {
  filter: brightness(0) invert(0) contrast(1.1)
}

/* Logo: zoom simple en hover */
.logo-3d-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.logo-3d {
  display: block;
  will-change: transform
}

.logo-3d-wrap:hover .logo-3d {
  transform: scale(1.05)
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1200px;
  position: relative
}

.main-nav>ul:not(.mobile-menu) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px
}

.main-nav .mobile-menu {
  display: none !important
}

.main-nav .nav-left {
  justify-self: start
}

.main-nav .nav-right {
  justify-self: end
}

.main-nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: .85;
  position: relative;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .8);
  padding: 8px 0
}

.main-nav a:link,
.main-nav a:visited {
  color: var(--color-ink)
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--color-accent);
  transition: right .25s ease
}

.main-nav a:hover::after {
  right: 0
}

.main-nav a:hover,
.main-nav a:focus {
  opacity: 1;
  color: var(--color-accent)
}

.site-header.scrolled .main-nav a {
  color: var(--color-ink);
  text-shadow: none
}

.site-header.scrolled .main-nav a:hover {
  color: var(--color-accent)
}

.brand-mobile {
  display: none !important
}

.brand-desktop {
  display: flex
}

.nav-toggle {
  display: none
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  height: 20px;
  justify-content: space-between
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s ease;
  transform-origin: center
}

/* OptimizaciÃ³n MÃ³vil Header y MenÃº */
@media (max-width: 900px) {
  .site-header {
    padding: 16px 20px;
    z-index: 10000 !important;
    height: 80px
  }

  .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0
  }

  /* Layout Logo 75% - Burger 25% */
  .brand-mobile {
    display: flex !important;
    margin: 0;
    flex: 0 0 75%;
    max-width: 75%;
    justify-content: flex-start
  }

  .brand-mobile .logo-3d {
    width: auto;
    max-width: 100%;
    height: 32px;
    object-fit: contain;
    object-position: left
  }

  .brand-desktop {
    display: none !important
  }

  .main-nav .nav-left,
  .main-nav .nav-right {
    display: none !important
  }

  /* BotÃ³n Burger Optimizado */
  .nav-toggle {
    display: flex;
    align-items: center;
    /*justify-content: flex-end;*/
    background: transparent;
    border: none;
    padding: 12px 0 12px 12px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    flex: 0 0 25%;
    max-width: 25%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent
  }

  .nav-toggle .hamburger-icon {
    width: 28px;
    height: 20px
  }

  .nav-toggle .hamburger-icon span {
    background: #000000;
    height: 3px;
    border-radius: 4px;
    opacity: 1;
  }

  .main-nav[aria-expanded="true"] .nav-toggle .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px)
  }

  .main-nav[aria-expanded="true"] .nav-toggle .hamburger-icon span:nth-child(2) {
    opacity: 0
  }

  .main-nav[aria-expanded="true"] .nav-toggle .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px)
  }

  /* MenÃº MÃ³vil Fullscreen Optimizado */
  .main-nav .mobile-menu {
    display: none !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 24px 40px;
    flex-direction: column;
    gap: 4px;
    z-index: 9999 !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .main-nav[aria-expanded="true"] .mobile-menu {
    display: flex !important;
    animation: fadeIn .3s ease-out
  }

  .mobile-menu li {
    width: 100%;
    opacity: 0;
    animation: slideInUp .4s ease-out forwards
  }

  .mobile-menu li:nth-child(1) {
    animation-delay: .1s
  }

  .mobile-menu li:nth-child(2) {
    animation-delay: .15s
  }

  .mobile-menu li:nth-child(3) {
    animation-delay: .2s
  }

  .mobile-menu li:nth-child(4) {
    animation-delay: .25s
  }

  .mobile-menu a {
    display: block;
    width: 100%;
    padding: 18px 0;
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: color .2s ease, padding .2s ease;
  }

  .mobile-menu a:active {
    color: var(--color-accent);
    padding-left: 10px;
    background: rgba(0, 0, 0, .02)
  }

  .mobile-menu a::after {
    display: none
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.hero {
  min-height: calc(100vh + var(--header-h));
  margin-top: calc(-1 * var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* background-image: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .45)), var(--hero-image); */
  background-color: #1a1a1a;
  /* Visual debug: if black, slides are transparent */
  background-size: cover;
  background-position: center;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(800px 400px at 20% -10%, rgba(218, 41, 28, .28), transparent 60%);
  pointer-events: none
}

.hero .effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1
}

.orb {
  position: absolute;
  width: 48vmin;
  height: 48vmin;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .25
}

.orb--accent {
  background: radial-gradient(circle at 30% 30%, rgba(218, 41, 28, .9), rgba(218, 41, 28, .0) 60%)
}

.orb--cyan {
  background: radial-gradient(circle at 70% 70%, rgba(200, 200, 200, .85), rgba(200, 200, 200, .0) 60%)
}

.hero-card {
  position: absolute;
  right: 6%;
  bottom: 10%;
  background: rgba(22, 22, 22, .75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .4)
}

.hero .container {
  max-width: 1100px;
  padding: 0 20px;
  margin: auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 100px);
  justify-content: flex-start;
  padding-top: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: clamp(12px, 2vw, 14px);
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.title-xl {
  font-size: clamp(28px, 6vw, 64px);
  line-height: 1.15;
  margin: 16px 0 12px;
  word-wrap: break-word
}

.subtitle {
  font-size: clamp(15px, 2.3vw, 20px);
  color: #ffffff;
  opacity: .95;
  line-height: 1.5;
  word-wrap: break-word;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(14px, 2vw, 16px);
  white-space: nowrap
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #B91F13);
  color: #fff;
  box-shadow: 0 8px 28px rgba(218, 41, 28, .35)
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05)
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-ink)
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, .7);
  color: #fff
}

.btn-hero-cta {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  text-decoration: none;
  font-size: 14px;
}

.btn-hero-cta:hover {
  transform: translateY(-3px) scale(1.02);
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(218, 41, 28, 0.4);
}

@media (max-width: 900px) {
  .hero .container {
    padding: 0 20px;
    min-height: calc(100vh - 80px);
    justify-content: center
  }

  .hero .hero-captions {
    text-align: center;
    width: 100%
  }

  .hero .badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px)
  }

  .hero .title-xl {
    font-size: clamp(32px, 9vw, 48px);
    line-height: 1.1;
    margin: 12px 0 16px;
    text-align: center
  }

  .hero .subtitle {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
    max-width: 100%;
    padding: 0 10px
  }

  .hero .cta-row {
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-direction: column;
    width: 100%
  }

  .hero .btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px
  }

  .hero .slider-controls {
    /* bottom: 24px; removed to allow centering */
    padding: 0 20px;
    width: 100%;
    pointer-events: none;
    inset: 0;
  }

  .hero .slider-prev,
  .hero .slider-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3)
  }

  .hero .slider-dots {
    gap: 10px
  }

  .hero .dot {
    width: 10px;
    height: 15px
  }

  #cookie-banner {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    bottom: 0 !important
  }

  #cookie-banner .cta-row {
    display: flex !important;
    gap: 10px !important;
    flex-direction: row !important
  }

  #cookie-banner .btn {
    flex: 1;
    min-height: 48px;
    padding: 12px
  }

  #cookie-modal {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 0
  }
}

@media (max-width: 900px) {
  .hero .slider {
    z-index: 1 !important
  }

  .hero .slide {
    z-index: 1 !important
  }

  .hero .container {
    z-index: 2 !important
  }

  .hero .slider-controls {
    z-index: 3 !important
  }
}

/* Ensure slider covers the hero background */
.hero .slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.0s ease-in-out;
  z-index: 1;
}

.hero .slide.is-active {
  opacity: 1;
  z-index: 2;
  /* Force active slide on top */
}

.hero .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .25), rgba(0, 0, 0, .45))
}


.hero .container {
  position: relative;
  z-index: 2;
  color: #fff
}

.hero .slider-controls {
  z-index: 3
}

.hero-captions {
  position: relative
}

.hero-captions .caption {
  display: none !important
}

.hero-captions .caption.is-active {
  display: block !important
}

/* Controles del slider */
.slider-controls {
  position: absolute;
  inset: 20px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  pointer-events: none;
}

.slider-controls button,
.slider-dots {
  pointer-events: auto;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.slider-controls button {
  cursor: pointer
}

.slider-prev,
.slider-next {
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease
}

.slider-prev:hover,
.slider-next:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, .5)
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px
}

.dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dot.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.2)
}

/* Hero alternativo para pÃ¡ginas internas */
.hero--alt {
  min-height: 62vh;
  display: flex;
  align-items: end;
  position: relative;
  padding: 90px 20px;
  background-size: cover;
  background-position: center
}

.hero--alt .container {
  max-width: 1100px;
  color: #fff
}

.hero--alt .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .85));
}

.hero--alt .badge {
  position: relative;
  background: rgba(26, 26, 26, .6);
  border: 1px solid rgba(255, 255, 255, .2)
}

.hero--alt .title-xl {
  text-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.hero--alt .subtitle {
  background: rgba(7, 32, 41, .55);
  padding: 8px 12px;
  border-radius: 10px
}

.hero--alt h1 {
  position: relative;
  margin: 0 0 10px
}

/* Hero estrecho para pÃ¡ginas internas (mejor lectura del menÃº) */
.hero--thin {
  min-height: 38vh;
  display: flex;
  align-items: end;
  position: relative;
  padding-top: 300px;
  padding-bottom: 100px;
  background-size: cover;
  background-position: center;
  margin-top: calc(-1 * var(--header-h))
}

.hero--thin .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .35))
}

.hero--thin .container {
  color: #fff
}

/* Optimizaciones de rendimiento generales */
.section,
.news-list,
.partners,
.dir-grid {
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}



/* Action cards and testimonials removed from hero */


/* Floating UI elements cleanup complete */
.action-icon svg {
  color: var(--color-secondary)
}

.register-cta .btn-ghost {
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
  transition: all .3s ease
}

.register-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff
}


/* Cleaned up responsive styles for removed elements */

.section {
  padding: 80px 20px
}

.container {
  max-width: 1100px;
  margin: 0 auto
}

.section h2 {
  font-size: clamp(26px, 4.4vw, 42px);
  margin: 0 0 10px;
  color: var(--color-accent)
}

.kicker {
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr
  }
}

.card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  padding: 18px;
  border-radius: 14px;
  transition: transform .4s ease, box-shadow .4s ease
}

.card h3 {
  color: var(--color-accent)
}

.card p {
  color: var(--color-secondary)
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28)
}

/* Tarjetas de servicios mejoradas */
.card-service {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s ease
}

.card-service:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(218, 41, 28, .15)
}

.card-service-icon {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(218, 41, 28, .08), rgba(218, 41, 28, .06));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden
}

.card-service-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(218, 41, 28, .15), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease
}

.card-service:hover .card-service-icon::before {
  opacity: 1
}

.card-service-icon::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  opacity: 0;
  transition: opacity .4s ease
}

.card-service:hover .card-service-icon::after {
  opacity: 1
}

.card-service-icon svg {
  width: 72px;
  height: 72px;
  color: var(--color-accent);
  opacity: .9;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .4s ease, color .4s ease;
  z-index: 1
}

.card-service:hover .card-service-icon svg {
  transform: scale(1.15) rotate(5deg);
  opacity: 1;
  color: var(--color-accent)
}

.card-service h3 {
  margin: 22px 20px 12px;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3
}

.card-service p {
  margin: 0 20px 20px;
  color: var(--color-secondary);
  line-height: 1.65;
  flex: 1;
  font-size: 15px
}

.card-service .btn {
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: transform .3s ease, box-shadow .3s ease
}

.card-service:hover .btn {
  transform: translateX(4px);
  box-shadow: 0 10px 28px rgba(218, 41, 28, .3)
}

@media (max-width: 900px) {
  .card-service-icon {
    height: 160px
  }

  .card-service-icon svg {
    width: 60px;
    height: 60px
  }

  .card-service h3 {
    font-size: 20px;
    margin: 18px 16px 10px
  }

  .card-service p {
    margin: 0 16px 16px;
    font-size: 14px
  }

  .card-service .btn {
    margin: 0 16px 16px
  }
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media (max-width: 1100px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 700px) {
  .news-list {
    grid-template-columns: 1fr
  }
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .4s ease
}

.news-card:hover img {
  transform: scale(1.06)
}

.news-card .content {
  padding: 14px;
  background: #fff
}

.news-card--feature {
  grid-column: span 2
}

@media (max-width: 700px) {
  .news-card--feature {
    grid-column: span 1
  }
}

.news-card--feature img {
  height: 360px
}

.news-card--feature .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .7));
}

.news-card--feature .headline {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #fff
}

.news-card--feature .headline h3,
.news-card--feature .headline p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45)
}

.news-card .content .news-badge {
  background: var(--color-accent);
  border-color: var(--color-accent)
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(218, 41, 28, .9);
  border: 1px solid rgba(218, 41, 28, .95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px
}

.news-card .content h3 {
  color: var(--color-accent)
}

.news-card .content p {
  color: var(--color-secondary)
}

/* Nube de etiquetas */
.tag-cloud-card {
  display: flex;
  flex-direction: column
}

.tag-cloud-card .content {
  padding: 14px
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease
}

.tag:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--color-accent), #c44d6a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(218, 41, 28, .35)
}

.tag[data-size="lg"] {
  font-size: 16px;
  font-weight: 800
}

.tag[data-size="md"] {
  font-size: 14px;
  font-weight: 700
}

.tag[data-size="sm"] {
  font-size: 12px;
  font-weight: 600
}

/* Calendario de actividades */
.calendar-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  margin-top: 14px
}

@media (max-width: 1000px) {
  .calendar-grid {
    grid-template-columns: 1fr
  }
}

.calendar-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(218, 41, 28, .12), rgba(0, 0, 0, .02))
}

.cal-title {
  font-weight: 800;
  letter-spacing: .02em
}

.cal-prev,
.cal-next {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  border-radius: 10px;
  width: 40px;
  height: 36px;
  cursor: pointer
}

.cal-prev:hover,
.cal-next:hover {
  background: #f7fafc
}

.cal-body {
  padding: 12px
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px
}

.cal-head div {
  opacity: .8;
  text-align: center;
  font-weight: 700;
  color: var(--color-ink)
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 6px
}

.cal-day {
  height: 84px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease
}

.cal-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .10)
}

.cal-day .num {
  font-weight: 800
}

.cal-day .dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent)
}

.cal-day.is-today {
  outline: 2px solid rgba(218, 41, 28, .5);
  background: linear-gradient(180deg, #fff, #fafafa)
}

.cal-day.is-selected {
  border-color: rgba(218, 41, 28, .85);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, .28) inset
}

.cal-day:focus-visible {
  outline: 3px solid rgba(218, 41, 28, .5);
  outline-offset: 2px
}

.event-detail .event-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px
}

.event-kicker {
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em
}

.event-title {
  margin: 6px 0 10px
}

.event-info {
  display: grid;
  gap: 6px;
  margin-top: 8px
}

/* Directorio: grid de tarjetas chulas */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

@media (max-width: 1100px) {
  .dir-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 800px) {
  .dir-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width: 520px) {
  .dir-grid {
    grid-template-columns: 1fr
  }
}

.dir-card {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease
}

.dir-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35)
}

.dir-card .logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--color-border)
}

.dir-card .logo img {
  max-width: 62px;
  max-height: 62px;
  filter: grayscale(100%)
}

.dir-card h3 {
  margin: 6px 0 6px;
  color: var(--color-accent)
}

.dir-card .meta {
  font-size: 13px;
  opacity: .95;
  color: var(--color-secondary)
}

.dir-card .shine {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transform: translateX(-50%)
}

.dir-card:hover .shine {
  opacity: 1;
  animation: shine-sweep 1.1s ease
}

/* Ficha empresa: logo + galerÃ­a */
.company-header {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 20px;
  margin: 10px 0
}

@media (max-width: 900px) {
  .company-header {
    grid-template-columns: 1fr
  }
}

.logo-pane {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.logo-pane .logo-wrap {
  width: 180px;
  height: 180px;
  border-radius: 22px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--color-border)
}

.logo-pane .logo-wrap img {
  max-width: 150px;
  max-height: 150px;
  filter: none
}

.logo-pane .logo-caption {
  margin-top: 10px;
  opacity: .95;
  color: var(--color-secondary)
}

.company-sheet {
  min-height: 180px
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px
}

.gallery-strip .thumb {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden
}

.gallery-strip img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery-strip .thumb:hover img {
  transform: scale(1.06)
}

.lightbox {
  max-width: 90vw;
  max-height: 90vh;
  background: #0000;
  border: none;
  border-radius: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 12px
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer
}

.lightbox .prev {
  left: 12px
}

.lightbox .next {
  right: 12px
}

/* Parallax contenedor */
.parallax-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px
}

.parallax-wrap img {
  will-change: transform
}

/* Barra progreso scroll */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  width: 0;
  z-index: 100
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px
}

@media (max-width: 1000px) {
  .contact {
    grid-template-columns: 1fr
  }
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px
}

.form-card h3 {
  color: var(--color-accent)
}

.form-card p,
.form-card label {
  color: var(--color-secondary)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr
  }
}

label {
  display: block;
  margin: 8px 0 6px;
  font-weight: 600;
  color: var(--color-ink)
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-ink)
}

/* Select estilizado con flecha */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px
}

/* Estados de foco accesibles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(218, 41, 28, .95);
  box-shadow: 0 0 0 3px rgba(218, 41, 28, .28)
}

textarea {
  min-height: 120px
}

.site-footer {
  padding: 30px 20px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg)
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--color-ink)
}

.site-footer a {
  color: var(--color-ink);
  opacity: .85
}

/* Animaciones */
@keyframes floatIn {
  0% {
    transform: translateY(12px);
    opacity: .0
  }

  100% {
    transform: translateY(0);
    opacity: 1
  }
}

.reveal {
  opacity: 0;
  transform: translateY(10px)
}

.reveal.in {
  animation: floatIn .7s ease forwards
}

/* Tilt efecto tarjetas */
.tilt {
  transform-style: preserve-3d;
  transition: transform .2s ease
}

.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  filter: drop-shadow(0 12px 30px rgba(255, 255, 255, .1))
}

.tilt--h:hover {
  transform: perspective(900px) rotateY(var(--ry, 0))
}

/* Carrusel partners */
.partners {
  padding: 70px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03))
}

.partners {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%)
}

.partners .track {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center
}

.partner-card {
  position: relative;
  overflow: visible;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  padding: 18px 22px;
  border-radius: 16px;
  transition: transform .4s ease, box-shadow .4s ease;
  will-change: transform;
  perspective: 800px
}

.tilt--soft:hover {
  transform: perspective(800px) rotateY(var(--ry, 0))
}

.partner-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35)
}

.partner-card::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 54%);
  opacity: 0;
  transform: translateX(-60%);
  pointer-events: none;
  z-index: 0
}

.partner-card:hover::after {
  opacity: 1;
  animation: shine-sweep 1.2s ease
}

.partner-card:active {
  transform: translateZ(10px)
}

.partner-logo {
  height: 84px;
  opacity: .95;
  filter: grayscale(100%);
  transition: filter .3s ease, opacity .3s ease, transform .4s ease
}

.partner-logo {
  height: 72px;
  opacity: .95;
  filter: grayscale(100%);
  transition: filter .3s ease, opacity .3s ease, transform .4s ease
}

.partner-card:hover .partner-logo {
  filter: none;
  opacity: 1;
  transform: translateZ(20px)
}

/* Tooltip eco */
.partner-info {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 12px);
  display: grid;
  grid-auto-rows: min-content;
  gap: 6px;
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) translateZ(30px);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
  z-index: 5;
  color: var(--color-ink)
}

.partner-card:hover .partner-info {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(30px);
  transition: opacity .28s ease, transform .28s ease
}

.partner-info::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-top: none;
  background: #fff;
  transform: rotate(45deg);
}

.partner-info .eco-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  align-self: center;
  background: #0e1a0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237ed957'%3E%3Cpath d='M5 13c7 0 9-6 14-6-2 5-6 9-11 10 1 2 3 3 5 4-6 1-10-3-8-8z'/%3E%3C/svg%3E") no-repeat center/16px;
  box-shadow: 0 0 0 3px rgba(126, 217, 87, .12), 0 8px 20px rgba(126, 217, 87, .18);
}

.partner-info div {
  font-size: 13px;
  opacity: .95
}

.partner-info strong {
  color: var(--color-ink)
}

.partner-info .dist-user,
.partner-info .save-mad,
.partner-info .save-de {
  font-weight: 700;
  color: var(--color-accent)
}

/* Forzar que el tooltip interno no se muestre; usaremos portal flotante */
.partner-card .partner-info {
  display: none !important
}

/* Tooltip portal flotante */
.partner-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .12);
  padding: 12px 14px;
  min-width: 240px;
  display: grid;
  gap: 6px;
  color: var(--color-ink)
}

.partner-tooltip::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-top: none;
  background: #fff;
  transform: rotate(45deg)
}

.partner-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease
}

.partner-tooltip .bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  margin-top: 6px
}

.partner-tooltip .bar .seg {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0
}

.partner-tooltip .bar .seg-mad {
  background: linear-gradient(90deg, #c44d6a, #e07b97);
  width: 0
}

.partner-tooltip .bar .seg-de {
  background: linear-gradient(90deg, #8B1E3F, #a33a5d);
  right: 0;
  left: auto;
  width: 0
}

@keyframes shine-sweep {
  from {
    transform: translateX(-70%) rotate(0.001deg)
  }

  to {
    transform: translateX(70%) rotate(0.001deg)
  }
}

/* Fondo animado de nodos */
.partners {
  position: relative;
  overflow: hidden
}

.partners .partners-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none
}

.partners .container {
  position: relative;
  z-index: 1
}

/* Timeline simple */
.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 24px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border)
}

.tl-item {
  position: relative;
  margin: 14px 0;
  padding-left: 14px
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(218, 41, 28, .15)
}

/* Wizard modal para alta de empresa */
.wizard-container {
  max-width: 100%;
  overflow: hidden
}

.wizard-header {
  position: relative;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(218, 41, 28, .08), rgba(218, 41, 28, .04));
  border-bottom: 1px solid var(--color-border)
}

.wizard-header h2 {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-size: 26px;
  font-weight: 700
}

.wizard-subtitle {
  margin: 0;
  color: var(--color-secondary);
  font-size: 14px;
  opacity: .9
}

.wizard-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s ease
}

.wizard-close:hover {
  background: rgba(218, 41, 28, .1)
}

.wizard-steps {
  padding: 20px 28px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border)
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 120px
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all .3s ease
}

.step-item.active .step-number {
  background: linear-gradient(135deg, var(--color-accent), #7A140E);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(218, 41, 28, .3)
}

.step-item.completed .step-number {
  background: var(--color-secondary);
  color: #fff
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink);
  opacity: .6;
  transition: opacity .3s ease;
  text-align: center
}

.step-item.active .step-label {
  opacity: 1;
  color: var(--color-accent)
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  max-width: 60px;
  transition: background .3s ease
}

.step-item.active~.step-line {
  background: var(--color-border)
}

.step-item.completed~.step-line {
  background: var(--color-secondary)
}

.wizard-form {
  padding: 32px 28px
}

.wizard-step {
  display: none
}

.wizard-step.active {
  display: block;
  animation: fadeIn .3s ease
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.wizard-step-content h3 {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 700
}

.wizard-step-desc {
  margin: 0 0 24px;
  color: var(--color-secondary);
  font-size: 14px;
  opacity: .9
}

.form-group {
  margin-bottom: 20px
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 14px
}

.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-secondary);
  opacity: .8
}

.file-upload-area {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: all .3s ease;
  cursor: pointer;
  background: var(--color-bg)
}

.file-upload-area:hover {
  border-color: var(--color-accent);
  background: rgba(218, 41, 28, .02)
}

.file-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-secondary)
}

.file-upload-content svg {
  opacity: .6
}

.file-upload-content p {
  margin: 0;
  font-weight: 600;
  color: var(--color-ink)
}

.file-upload-content small {
  margin: 0;
  font-size: 12px;
  opacity: .8
}

.file-preview {
  position: relative;
  display: inline-block;
  margin-top: 12px
}

.file-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  border: 1px solid var(--color-border)
}

.file-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(218, 41, 28, .3)
}

.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px
}

.file-preview-grid .file-preview {
  width: 100%
}

.file-preview-grid .file-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border)
}

.wizard-actions .btn {
  min-width: 120px
}

@media (max-width: 700px) {
  .wizard-header {
    padding: 20px 16px
  }

  .wizard-header h2 {
    font-size: 22px;
    padding-right: 40px
  }

  .wizard-steps {
    padding: 16px
  }

  .wizard-step-indicator {
    gap: 4px
  }

  .step-item {
    max-width: 80px
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px
  }

  .step-label {
    font-size: 11px
  }

  .step-line {
    max-width: 30px
  }

  .wizard-form {
    padding: 24px 16px
  }

  .wizard-step-content h3 {
    font-size: 20px
  }

  .file-upload-area {
    padding: 24px 16px
  }

  .wizard-actions {
    flex-direction: column-reverse
  }

  .wizard-actions .btn {
    width: 100%;
    min-width: auto
  }

  #alta-empresa-modal {
    max-width: 95vw;
    margin: auto
  }
}

/* Botpress Chatbot y reCAPTCHA - Contenedor mÃ³vil */
@media (max-width: 900px) {

  /* Contener el chatbot dentro del viewport */
  body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative
  }

  html {
    overflow-x: hidden;
    max-width: 100vw
  }

  /* Ajustar contenedor del chatbot de Botpress */
  [id*="botpress"],
  [class*="botpress"],
  [id*="webchat"],
  [class*="webchat"] {
    max-width: 100vw !important;
    right: 0 !important;
    left: auto !important;
    box-sizing: border-box !important
  }

  /* Asegurar que el chatbot no se salga */
  iframe[src*="botpress"],
  iframe[src*="webchat"] {
    max-width: 100vw !important;
    right: 0 !important;
    box-sizing: border-box !important
  }

  /* Contenedor del badge de reCAPTCHA */
  .grecaptcha-badge {
    right: 0 !important;
    left: auto !important;
    max-width: 100vw !important;
    box-sizing: border-box !important
  }

  /* Cualquier elemento de Google reCAPTCHA */
  [id*="recaptcha"]:not(input):not(textarea),
  [class*="recaptcha"]:not(input):not(textarea),
  [id*="grecaptcha"]:not(input):not(textarea),
  [class*="grecaptcha"]:not(input):not(textarea) {
    max-width: 100vw !important;
    right: 0 !important;
    left: auto !important;
    box-sizing: border-box !important
  }
}

/* Ocultar branding de Botpress */
.bpComposerFooter {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ocultar elementos que contengan texto "botpress" o "powered by" */
bp-webchat *:not(script):not(style):not(input):not(textarea) {
  text-transform: none;
}

/* Ocultar pseudo-elementos */
bp-webchat *[class*="powered"]::before,
bp-webchat *[class*="powered"]::after,
bp-webchat *[class*="bp"]::before,
bp-webchat *[class*="bp"]::after,
bp-webchat *[id*="powered"]::before,
bp-webchat *[id*="powered"]::after {
  display: none !important;
  content: "" !important;
  visibility: hidden !important;
}

/* ============================================
   ADMIN PANEL - DiseÃ±o Premium
   ============================================ */

/* Fondo especial para admin */
body.admin-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

body.admin-panel .site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

body.admin-panel .site-header .brand {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-weight: 800;
}

body.admin-panel .main-nav {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

body.admin-panel .main-nav a {
  color: rgba(255, 255, 255, 0.95);
}

body.admin-panel .section {
  padding: 40px 20px;
  margin-top: 0;
}

body.admin-panel main {
  padding-top: 0;
}

/* Admin Dashboard Container */
.admin-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Admin */
.admin-hero {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px 40px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-hero-logo {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.admin-hero-logo img {
  transition: transform 0.3s ease;
}

.admin-hero:hover .admin-hero-logo img {
  transform: scale(1.05);
}

.admin-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.admin-hero .kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
}

/* Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.admin-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.admin-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.admin-stat-card .stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.admin-stat-card .stat-icon svg {
  width: 32px;
  height: 32px;
  stroke: #667eea;
}

.admin-stat-card .stat-value {
  font-size: 42px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.admin-stat-card .stat-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Admin Grid Cards */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.admin-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.admin-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.admin-card:hover::after {
  left: 100%;
}

.admin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
}

.admin-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.admin-card-icon svg {
  width: 36px;
  height: 36px;
  stroke: white;
  stroke-width: 2;
}

.admin-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1e293b;
}

.admin-card p {
  color: #64748b;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.admin-card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.admin-card:hover .admin-card-arrow {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(4px);
}

.admin-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #667eea;
}

/* Login Admin */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-login-logo {
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: logoFloat 6s ease-in-out infinite;
}

.admin-login-logo img {
  transition: transform 0.3s ease;
}

.admin-login-card:hover .admin-login-logo img {
  transform: scale(1.05);
}

/* Logo fuera del cuadro de login */
.admin-login-logo-outside {
  text-align: center;
  padding-right: 50px;
  margin-bottom: 32px;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.admin-login-logo-outside img {
  max-width: 640px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.admin-login-logo-outside:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .admin-login-logo-outside img {
    max-width: 180px;
  }

  .admin-login-logo-outside {
    margin-bottom: 24px;
  }
}

.admin-login-card h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.admin-login-card .kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
  position: relative;
  z-index: 1;
}

.admin-login-card p {
  position: relative;
  z-index: 1;
}

.admin-login-card .form-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.admin-login-card input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  background: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.admin-login-card input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.admin-login-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.admin-login-card .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  position: relative;
  z-index: 1;
  color: white;
}

.admin-login-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-hero {
    padding: 32px 24px;
  }

  .admin-hero-logo img {
    max-width: 140px !important;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }


}

.admin-card:hover .admin-card-arrow {
  background: rgba(102, 126, 234, 0.2);
  transform: translateX(4px);
}

.admin-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #667eea;
}

/* Login Admin */
.admin-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-login-logo {
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: logoFloat 6s ease-in-out infinite;
}

.admin-login-logo img {
  transition: transform 0.3s ease;
}

.admin-login-card:hover .admin-login-logo img {
  transform: scale(1.05);
}

/* Logo fuera del cuadro de login */
.admin-login-logo-outside {
  text-align: center;
  padding-right: 50px;
  margin-bottom: 32px;
  animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.admin-login-logo-outside img {
  max-width: 640px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.6)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

.admin-login-logo-outside:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .admin-login-logo-outside img {
    max-width: 180px;
  }

  .admin-login-logo-outside {
    margin-bottom: 24px;
  }
}

.admin-login-card h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.admin-login-card .kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
  position: relative;
  z-index: 1;
}

.admin-login-card p {
  position: relative;
  z-index: 1;
}

.admin-login-card .form-card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.admin-login-card input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  background: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.admin-login-card input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.admin-login-card label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.admin-login-card .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  position: relative;
  z-index: 1;
  color: white;
}

.admin-login-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* Responsive Admin */
@media (max-width: 768px) {
  .admin-hero {
    padding: 32px 24px;
  }

  .admin-hero-logo img {
    max-width: 140px !important;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    padding: 32px 24px;
  }
}

/* --- Calendar Enhancements --- */
/* Event Highlights */
.cal-day.has-event {
  background-color: rgba(218, 41, 28, 0.1);
  /* Pantone Red tint */
  font-weight: 700;
  color: var(--color-accent);
  border: 1px solid rgba(218, 41, 28, 0.2);
  position: relative;
}

.cal-day.has-event:hover {
  background-color: var(--color-accent);
  color: white;
}

.cal-day.has-event .dot {
  display: none;
  /* Hide old dots */
}

/* Tooltip */
.event-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  text-align: left;
}

.event-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.cal-day.has-event:hover .event-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

.tooltip-row {
  margin-bottom: 2px;
}

.tooltip-row:last-child {
  margin-bottom: 0;
}

/* Accordion in Side Panel */
.accordion {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 16px;
}

.acc-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.acc-header {
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.acc-header:hover {
  color: var(--color-accent);
}

.acc-title {
  font-weight: 600;
  flex: 1;
}

.time-badge {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  color: #555;
  white-space: nowrap;
}

.acc-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-right: 4px;
}

.acc-item.open .acc-icon {
  transform: rotate(225deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  opacity: 0.8;
}

.acc-item.open .acc-body {
  max-height: 500px;
  /* arbitrary large number */
  padding-bottom: 16px;
}

.event-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.event-meta {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}

/* Event Detail Modal */
#event-detail-modal {
  padding: 0;
  border: none;
  border-radius: 20px;
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
}

#event-detail-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  display: flex;
  flex-direction: column;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.meta-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

/* Designed "More Info" Button */
.btn-info {
  appearance: none;
  background: white;
  /* Clean background */
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-info:hover {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(218, 41, 28, 0.25);
  transform: translateY(-1px);
}

/* Hide reCAPTCHA badge */
.grecaptcha-badge {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}