/* ==========================================================
   ActuACG - styles-mobile.css
   Mobile-first responsive, pixel-perfect Figma design
   ========================================================== */

/* ---- Montserrat local (GDPR-compliant — no Google CDN) ---- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variables */
:root {
  --blue: #008bb1;
  --blue2: #4DAEC9;
  --orange: #ea5434;
  --form-bg: #d1eaf1;
  --card-bg: #f1f9fb;
  --textarea-bg: #def1f7;
  --font: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--blue);
  overflow-x: clip;
}

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

ul {
  list-style: none;
}

button,
textarea,
input {
  font-family: var(--font);
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #000;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9000;
  transition: transform .3s ease;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: var(--orange);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =====================================================
   1. HERO (2-col desktop / stacked mobile)
   ===================================================== */
.main-wrapper {
  max-width: 1680px;
  margin-inline: auto;
}

.hero-grid {
  display: flex;
  flex-direction: column;
}

/* Mobile: hero-left se expande — sus hijos fluyen en la columna */
.hero-left {
  display: contents;
}

/* Orden visual mobile: logos → azul → badges → plano
   (el DOM tiene logos→badges→azul→plano por necesidad del layout desktop) */
.hero-logos-block {
  order: 1;
}

.hero-blue-block {
  order: 2;
}

.hero-badges-block {
  order: 3;
}

.hero-plano {
  order: 4;
}

.hero-plano {
  width: 100%;
  overflow: hidden;
  max-height: 415px;
  position: relative;
  /* ancla el viewer absoluto en desktop */
}

/* Visor pan del plano */
.plano-viewer {
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.plano-viewer img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  will-change: transform;
  transform: translate(0px, 0px);
  transition: none;
}

/* Pan activado solo en escritorio */
@media (min-width: 900px) {

  /* Viewer fuera del flujo: su altura no empuja al grid */
  .plano-viewer {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    cursor: grab;
    touch-action: none;
  }

  .plano-viewer.dragging {
    cursor: grabbing;
  }

  /* JS controla width y height vía fitImage() — cover sin deformación */
  .plano-viewer img {
    width: auto;
    height: auto;
    max-width: none;
  }

  .plano-hint {
    display: flex;
  }
}

/* Hint “arrasta para explorar” */
@keyframes plano-hint-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes plano-pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 139, 177, 0.5);
  }

  50% {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 0 0 6px rgba(0, 139, 177, 0);
  }
}

.plano-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 139, 177, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px 7px 10px;
  border-radius: 24px;
  display: none;
  /* sobreescrito a flex solo en ≥900px */
  align-items: center;
  gap: 7px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  animation:
    plano-hint-in .5s ease .8s forwards,
    plano-pulse 2s ease-in-out 1.3s 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 12px rgba(0, 139, 177, 0.35);
}

.plano-hint svg {
  flex-shrink: 0;
  opacity: .9;
}

.plano-hint.hidden {
  animation: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.hero-content {
  display: flex;
  flex-direction: column;
  order: 1;
}

/* Logos + rayas */
.hero-logos-block {
  background: url('img/fondo-bloque1.png') right bottom / cover no-repeat;
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-around;
  gap: 10px;
}

.hero-logos-tagline {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--blue);
  padding: 0.2em 1.5em 0em 0.5em;
}

.hero-logo-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.logo-celltrion {
  height: 32px;
  width: auto;
}

.hero-rayas {
  width: 55%;
  height: auto;
  margin-top: 4px;
}

.logo-actuacg {
  height: 50px;
  width: auto;
}

/* Blue event block */
.hero-blue-block {
  background: var(--blue2);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.hero-event-text {
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
}

.hero-event-text strong {
  font-weight: 600;
}

.hero-event-logoactuacg {
  width: 80%;

  display: inline-block;
  margin-top: 1em;
}

.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 6px;
  align-self: center;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(134, 36, 15, 0.4);
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
  position: relative;
}

.btn-cta:hover {
  opacity: .88;
}

/* El atributo hidden debe prevalecer sobre display:inline-block */
.btn-cta[hidden] {
  display: none;
}

/* ── Caja confirmación en el hero (sustituye al btn-cta) ── */
.hero-confirm {
  width: fit-content;
  align-self: center;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 16px 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

/* El atributo hidden debe prevalecer sobre display:flex */
.hero-confirm[hidden] {
  display: none;
}

.hero-confirm-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-confirm-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-confirm-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.hero-confirm-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hero-confirm-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-confirm-day {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.hero-confirm-q {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  line-height: 1.45;
  margin: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding-left: 10px;
  text-align: left;
}

/* Badges */
.hero-badges-block {
  background: #d1eaf1;
  padding: 18px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 0;
}

.badge-sep {
  width: 2px;
  height: 40px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-align: left;
  color: #000;
  font-size: 12px;
  padding: 0 10px;
  flex: 1.1;
justify-content: center;
}

.hero-badge+.hero-badge {
  /* separador gestionado por .badge-sep */
}

.hero-badge:first-child strong {
  color: var(--blue);
}

.hero-badge svg {
  width: 30px;
  height: 30px;
}

.hero-badge strong {
  font-weight: 600;
  display: block;
}

.btn-modal-calendar {
  display: none !important;
}

/* Desktop Hero */
@media (min-width: 900px) {
  .hero-grid {
    display: flex;
    grid-template-columns: 2fr 3fr;
    /* derecha (azul) más ancha */
    grid-template-rows: auto 500px;
    /* top: altura dictada por el azul | plano: fijo */
    grid-template-areas:
      "left blue"
      "plano plano";
    font-size: 20px;
  }

  .hero-logo-top {
    /*justify-content: flex-start;*/
  padding-right: 11vw;
  }

  /* Restaurar display normal en desktop */
  .hero-left {
    display: flex;
    flex-direction: column;
    grid-area: left;
  }

  /* Proporción 4:1 — flex distribuye dentro del espacio que ocupa .hero-left */
  .hero-logos-block {
    flex: 4;
    padding: 28px 28px 16px;
  }

  .hero-badges-block {
    flex: 1;
    padding: 20px 28px;
    background: #d1eaf1;
  }
 .hero-badge {
    font-size: 1.0em;
  }
  .hero-logos-tagline {
    font-size: 2.3em;
    font-weight: bold;
    line-height: 1.15;
    color: var(--blue);
    padding: 0.2em 5vw 1em 10vw;
  }

  .hero-blue-block {
    grid-area: blue;
    justify-content: center;
    padding: 40px 28px;
  }

  .hero-plano {
    grid-area: plano;
    height: 500px;
    max-height: none;
  }

  .hero-event-text {
    font-size: 1.7em;
    padding: 1vh 15vw;
  }

  .btn-cta {
    font-size: 1.5em;
    padding: 14px 32px;
  }

  .hero-event-logoactuacg {
    width: 80%;
    max-width: 800px;
    display: inline-block;
    margin-top: 1em;
  }
}

/* =====================================================
   2. CONTENT + FORM (2-col desktop)
   ===================================================== */
.content-form-section {
  display: block;
}

.content-form-grid {
  display: flex;
  flex-direction: column;
}

/* Left: textos-juntos */
.textos-section {
  background: linear-gradient(to bottom, #cdeaf3, #f1f9fb);

}

.inner-textos-section {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
}

.textos-logo {
  width: 90%;
  margin-bottom: 24px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.body-text-acg {
  font-size: 18px;
  line-height: 1.6;
  color: var(--blue);
  margin-bottom: 16px;
}

.body-text-acg strong {
  font-weight: 600;
}

.check-intro-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.5;
  margin: 28px 0 20px;
}

.check-list-figma {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-list-figma li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
  color: var(--blue);
  line-height: 1.4;
}

.check-list-figma li .check-icon-svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-fallback-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='12' fill='%23d1eaf1' stroke='%23ea5434' stroke-width='1.5'/%3E%3Cpolyline points='7,13 11,17 19,9' stroke='%23ea5434' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* Right: form column */
.form-col {
  background: var(--form-bg);
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plazas-text {
  font-size: 15px;
  color: var(--blue);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-card {
  background: var(--card-bg);
  border-radius: 11px;
  padding: 26px 22px 28px;
  width: 100%;
  max-width: 415px;
}

.form-card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 14px;
}

.form-card-subtitle {
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 18px;
}

/* Session list */
#sessionList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  padding: 0;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #c4dde8;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, background .15s;
}

.session-item:hover:not(.disabled) {
  border-color: var(--blue);
}

.session-item.selected {
  border-color: var(--blue);
  background: #e1f3fa;
}

.session-item.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cb-box {
  width: 22px;
  height: 22px;
  border: 2px solid #99c4d5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  transition: background .15s, border-color .15s;
}

.session-item.selected .cb-box {
  background: var(--blue);
  border-color: var(--blue);
}

.cb-check {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transition: opacity .15s;
}

.session-item.selected .cb-check {
  opacity: 1;
}

.session-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-label .day {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.session-label .time {
  font-size: 13px;
  color: #4a8ca0;
  font-weight: 600;
}

.session-label .time-note {
  font-size: 10px;
  font-weight: 400;
  color: #8aabb8;
  white-space: nowrap;
}

.seats-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.seats-badge.available {
  background: #d4edf5;
  color: var(--blue);
}

.seats-badge.few-left {
  background: #fef3cd;
  color: #b8860b;
}

.seats-badge.full-badge {
  background: #f5d5d0;
  color: var(--orange);
}

/* Expert question */
.form-expert-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.form-expert-desc {
  font-size: 14px;
  color: var(--blue);
  line-height: 1.45;
  margin-bottom: 12px;
}

.question-textarea {
  width: 100%;
  height: 67px;
  background: var(--textarea-bg);
  border: var(--blue2) 1.5px solid;
  border-radius: 5px;
  padding: 12px;
  font-size: 14px;
  color: var(--blue);
  resize: vertical;
  outline: none;
  margin-bottom: 20px;
}

.question-textarea::placeholder {
  color: #1b809e;
}

.question-textarea:focus {
  box-shadow: 0 0 0 2px var(--blue);
}

.btn-enviar {
  width: 100%;
  background: linear-gradient(135deg, #f07b4a, #ea5434);
  border: none;
  border-radius: 9px;
  padding: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(234, 84, 52, 0.4);
  position: relative
}

.btn-enviar:hover:not(:disabled) {
  opacity: .9;
  transform: scale(1.01);
}

.btn-enviar:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Honeypot anti-spam: invisible para humanos, atrapabots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Success */
.success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px;
  text-align: center;
}

.success-panel.show {
  display: flex;
}

.success-icon-sm {
  width: 52px;
  height: 52px;
  background: #d4f0e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-icon-sm svg {
  width: 28px;
  height: 28px;
  stroke: #2e7d52;
  stroke-width: 2.5;
  fill: none;
}

.success-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.success-text {
  font-size: 14px;
  color: #4a8ca0;
  line-height: 1.6;
}

.success-day {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 10px;
}

.success-q {
  font-size: 13px;
  color: #4a8ca0;
  font-style: italic;
  line-height: 1.5;
  margin-top: 6px;
}

.success-q[hidden] {
  display: none;
}

.success-cal-wrap[hidden] {
  display: none;
}

.success-cal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d1eaf1;
  width: 100%;
}

.success-cal-label {
  font-size: 11px;
  font-weight: 700;
  color: #4a8ca0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Variante sobre fondo blanco/claro (success panel) */
.cal-icon-group--panel .btn-cal-icon {
  background: #edf5fb;
  border-color: #b3d7e8;
  color: var(--blue);
}

.cal-icon-group--panel .btn-cal-icon:hover {
  background: #d1eaf1;
}

.cal-icon-group--panel .btn-cal-icon span {
  color: var(--blue);
}

.referencias-text {
  margin-top: 16px;
  font-size: 10px;
  color: var(--blue);
  line-height: 1.3;
  /*max-width: 415px;*/
  align-self: flex-start;
}

/* Desktop Content+Form */
@media (min-width: 900px) {
  .content-form-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
  }

  .textos-section {}

  .textos-logo {
    order: -1;
    margin-left: 0;
    margin-right: auto;
  }

  .inner-textos-section {
    padding: 56px 40px;
  }

  .form-col {
    padding: 40px 36px;
  }

  .form-card {
    max-width: 100%;
  }
}

/* =====================================================
   3. SESION INTERACTIVA
   ===================================================== */
.sesion-band {
  position: relative;
  overflow: hidden;
  min-height: 117px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
}

.sesion-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sesion-band-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.55;
  padding: 22px 28px;
  max-width: 700px;
}

/* =====================================================
   4. PONENTE
   ===================================================== */
.ponente-section {
  background: linear-gradient(to bottom, #e8f2f7, #b2dce8);
  padding: 32px 20px;
}

.ponente-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.ponente-photo {
  width: 116px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 139, 177, 0.35);
}

.ponente-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ponente-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ponente-intro {
  font-size: 16px;
  color: var(--blue);
}

.ponente-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
}

.ponente-role,
.ponente-hospital {
  font-size: 13px;
  color: var(--blue);
}

.ponente-sep {
  border: none;
  border-top: 1px solid #7cbcd4;
  margin: 10px 0 8px;
}

.ponente-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.5;
}

/* =====================================================
   5. FOOTER
   ===================================================== */
.footer-bar {
  /*min-height: 53px;*/
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1em;
}

.footer-legal-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}

.footer-legal-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.cod {
  padding: 0.5em;
  color: #fff;
  font-size: 0.8em;
}

@media (min-width: 900px) {
  .footer-bar {
    flex-direction: row;
    justify-content: space-between;
    padding: 1em 2em;
  }

  .cod {
    position: static;
    position: absolute;
    right: 0;
    bottom: 0;
  }
}

/* ── Modal Aviso Legal ─────────────────────────── */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 59, 110, 0.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  padding: 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

.legal-overlay.is-open {
  display: flex;
}

.legal-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(27, 59, 110, 0.25);
  overflow: hidden;
  position: relative;
}

.legal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background .15s;
  z-index: 1;
}

.legal-close:hover {
  background: var(--form-bg);
}

.legal-content {
  overflow-y: auto;
  padding: 28px 28px 32px;
  -webkit-overflow-scrolling: touch;
}

.legal-domain {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 4px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1b3b6e;
  margin: 0 0 20px;
  padding-right: 32px;
}

.legal-content h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 22px 0 6px;
  border-bottom: 1px solid var(--form-bg);
  padding-bottom: 4px;
}

.legal-content p,
.legal-content li {
  font-size: 13px;
  line-height: 1.65;
  color: #3d4f66;
  margin: 0 0 8px;
}

.legal-content ul {
  padding-left: 18px;
  margin: 0 0 8px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* =====================================================
   WIDE — 1680px+: tipografía fluida proporcional al ancho
   ===================================================== */
@media (min-width: 1680px) {
}
@media (min-width: 1680px) {

  /* Hero */
  .hero-logos-tagline {
    font-size: 2.4vw;
  }

  /* ~30px @ 1680 */
  .hero-event-text {
    font-size: 1.5vw;
  }

  /* ~20px @ 1680 */
  .btn-cta {
    font-size: 1.5vw;
    padding: 0.83vw 1.9vw;
  }

  /* Badges */
  .hero-badge {
    font-size: 0.71vw;
  }

  .badge-sep {
    height: 2vw;
  }

  /* Cuerpo clínico */
  .body-text-acg {
    font-size: 1.07vw;
  }

  .check-intro-text {
    font-size: 1.07vw;
  }

  .check-list-figma li {
    font-size: 1.07vw;
  }

  .check-list-figma li .check-icon-svg {
    width: 1.55vw;
    height: 1.55vw;
  }

  /* Sesión / Ponente */
  .sesion-band-text {
    font-size: 0.89vw;
  }

  .ponente-intro,
  .ponente-role,
  .ponente-hospital {
    font-size: 0.83vw;
  }

  .ponente-name {
    font-size: 0.95vw;
  }

  .ponente-desc {
    font-size: 0.83vw;
  }

  .ponente-photo {
    width: 6.9vw;
    height: 8.93vw;
  }

  /* Formulario */
  .plazas-text {
    font-size: 0.89vw;
  }

  .form-card-title {
    font-size: 1.31vw;
  }

  .form-card-subtitle {
    font-size: 0.95vw;
  }

  .form-expert-title {
    font-size: 0.95vw;
  }

  .form-expert-desc {
    font-size: 0.83vw;
  }

  .session-label .day {
    font-size: 0.89vw;
  }

  .session-label .time {
    font-size: 0.77vw;
  }

  .btn-enviar {
    font-size: 1.19vw;
  }

  .referencias-text {
    font-size: 0.65vw;
  }
}

/* =====================================================
   ULTRAWIDE — 3000px+: hero + contenido en una sola fila
   ===================================================== */
@media (min-width: 2800px) {
.hero-event-text {
        font-size: 1.7em;
        padding: 1vh 5em;
    }
}
@media (min-width: 5800px) {
  body {
    background: var(--blue);
  }

  .main-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 80vh;
    max-width: none;
  }

  .hero-grid {
    flex: 1.5;
    grid-template-columns: 4fr 2fr;
    min-height: 80vh;
  }

  .content-form-grid {
    flex: 1;
    min-height: 80vh;
  }

  /* Reset vw → px fijos para evitar scroll vertical */
  .hero-logos-tagline {
    font-size: 75px;
  }

  .hero-event-text {
    font-size: 25px;
  }

  .hero-plano {
    grid-area: plano;
    height: 600px;
    max-height: none;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: auto 600px;
    grid-template-areas: "left blue" "plano plano";
  }

  .btn-cta {
    font-size: 25px;
    padding: 12px 28px;
  }

  .hero-badge {
    font-size: 13px;
  }

  .badge-sep {
    height: 32px;
  }

  .body-text-acg {
    font-size: 22px;
  }

  .check-intro-text {
    font-size: 22px;
  }

  .check-list-figma li {
    font-size: 22px;
  }

  .check-list-figma li .check-icon-svg {
    width: 24px;
    height: 24px;
  }

  .sesion-band-text {
    font-size: 15px;
  }

  .ponente-intro,
  .ponente-role,
  .ponente-hospital {
    font-size: 18px;
  }

  .ponente-name {
    font-size: 20px;
  }

  .ponente-desc {
    font-size: 18px;
  }

  .ponente-photo {
    width: 150px;
    height: 170px;
  }

  .plazas-text {
    font-size: 20px;
  }

  .form-col {
    justify-content: center;
  }

  .form-card-title {
    font-size: 25px;
  }

  .form-card-subtitle {
    font-size: 16px;
  }

  .form-expert-title {
    font-size: 16px;
  }

  .form-expert-desc {
    font-size: 14px;
  }

  .session-label .day {
    font-size: 15px;
  }

  .session-label .time {
    font-size: 13px;
  }

  .btn-enviar {
    font-size: 20px;
  }

  .referencias-text {
    font-size: 11px;
  }

  .cod {
    position: static;

  }
.hero-grid {
    display: grid;
    grid-template-columns: 650px 1fr;
    /* izquierda fija o ajustable, derecha flexible */
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "logos plano"
      "blue plano"
      "badges plano";
    gap: 0;
    align-items: stretch;
  }

  /* Asignación de áreas */
  .hero-left {
    grid-area: logos;
  }

  .hero-blue-block {
    grid-area: blue;
  }

  .hero-badges-block {
    grid-area: badges;
  }

  .hero-plano {
    grid-area: plano;
    height: 100%;
  }

  /* Para que el viewer ocupe toda la altura disponible */
  .plano-viewer {
    height: 100%;
    min-height: 100%;
  }

  /* Opcional: imagen ajustada */
  #planoImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* o contain según necesites */
  }

  .hero-logos-tagline {
    font-size: 2em;
    font-weight: bold;
    line-height: 1.15;
    color: var(--blue);
    padding: 0.2em 1vw 1em 2vw;
  }

  .hero-event-text {
    font-size: 1.7em;
    padding: 1em 1vw;
  }

  .hero-logo-top {
    /* justify-content: flex-start; */
    padding-right: 2vw;
  }
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--blue2);
  border-radius: 16px;
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.modal-top-bar {
  /* height: 6px;*/
  background: var(--blue2);
  border-radius: 16px 16px 0 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.modal-body {
  padding: 0;

}

.modal-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  justify-content: space-around;
}

.modal-logo-actuacg {
  height: 36px;
  width: auto;
}

.modal-logo-celltrion {
  height: 28px;
  width: auto;
}

.modal-success-circle {
  width: 60px;
  height: 60px;
  background: #d4f0e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-success-circle svg {
  width: 32px;
  height: 32px;
  stroke: #2e7d52;
  stroke-width: 2.5;
  fill: none;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b3b6e;
  text-align: center;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: #4a6080;
  text-align: center;
  margin-bottom: 20px;
}

.modal-session-card {
  background: var(--blue);
  color: #fff;
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
}

.sess-label {
  font-size: 11px;
  color: #7a9abf;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sess-day {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.sess-time {
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}

.sess-sep {
  border: none;
  border-top: 1px solid #c8d8ec;
  margin: 10px 0;
}

.sess-doctor {
  font-size: 13px;
  color: #4a6080;
  line-height: 1.5;
}

.sess-question {
  font-size: 13px;
  color: #2a4a6a;
  font-style: italic;
  line-height: 1.5;
  padding: 6px 10px;
  background: #edf5fb;
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
}

.sess-question[hidden],
.sess-sep[hidden] {
  display: none;
}

.modal-left {
  width: 100%
}

.modal-right {
  width: 100%;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.tx-calendario {
  font-size: 12px;
  color: #fff;
  text-align: center;
  font-weight: 600;
  margin-bottom: 2px;
}

.cal-icon-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-cal-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  min-width: 52px;
}

.btn-cal-icon:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-cal-icon span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* hero-confirm: variante sobre fondo naranja — usa los mismos .btn-cal-icon */
.cal-icon-group--hero .btn-cal-icon {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.hero-confirm-cal-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.btn-modal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  position: relative;
}

.btn-modal-pdf {
  background: #fff4f1;
  color: var(--orange);
  border: 1px solid #ffd5c8;
}

.btn-modal-dismiss {
  display: block;
  width: 100%;
  background: none;
  border: none;

  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #fff;

}



.modal-gdpr-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #7a9abf;
  padding: 12px;
  background: #f8fafd;
  border-radius: 6px;
}

.modal-gdpr-strip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #7a9abf;
  margin-top: 1px;
  fill: none;
}

.mano {
  width: 40px;
  height: 60px;
  position: absolute;
  right: -10px;
  top: 15px;
  z-index: 3;
  background: url(img/mano.png) center center no-repeat;
  background-size: contain;
  transform: rotate(-20deg);
}