/* =====================================================================
   HIPNOSIS.ES - Catalogo de congresos V0.3
   Portada V0.3 = fuente visual autoritativa.
   ===================================================================== */

.hpcv03-shell{
  --hp-accent:#18B9E6;
  --hp-navy:#061A2D;
  --hp-surface:#F3F7FA;
  --hp-reading:#EEF3F5;
  --hp-ink:#071622;
  --hp-muted:#6A7C8A;
  --hp-radius:24px;
  --hp-shadow:0 24px 70px rgba(0,11,24,.14);
  position:relative;width:100%;max-width:none;margin-left:0;overflow:clip;
  color:var(--hp-ink);background:var(--hp-reading);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  isolation:isolate;
}
.hpcv03-shell *, .hpcv03-shell *::before, .hpcv03-shell *::after{box-sizing:border-box}
.hpcv03-shell a{text-decoration:none}.hpcv03-shell button,.hpcv03-shell a{font:inherit}
.hpcv03-inner{width:min(1180px,calc(100% - 48px));margin-inline:auto}

.hpcv03-header{position:absolute;inset:0 0 auto;z-index:50;width:100%;border-bottom:1px solid rgba(255,255,255,.12);background:linear-gradient(to bottom,rgba(2,11,20,.78),rgba(2,11,20,.12));backdrop-filter:blur(8px)}
.hpcv03-header-inner{min-height:68px;display:flex;align-items:center;gap:24px}
.hpcv03-brand{display:flex;align-items:center;gap:10px;color:#fff;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.hpcv03-brand-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.45);border-radius:50%;color:#fff;font-size:12px;line-height:1}
.hpcv03-brand-text{color:#fff;font-size:14px;line-height:1;font-weight:800;letter-spacing:.03em}
.hpcv03-nav{margin-left:auto;display:flex;gap:14px;align-items:center}
.hpcv03-nav a{color:rgba(255,255,255,.86);font-size:14px;font-weight:650;white-space:nowrap;transition:color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease}
.hpcv03-nav a:hover,.hpcv03-nav a:focus-visible,.hpcv03-nav a.is-current{color:var(--hp-accent)}


.hpcv03-menu-toggle{display:none;margin-left:auto;width:44px;height:44px;border:1px solid rgba(255,255,255,.3);border-radius:12px;background:rgba(255,255,255,.05);padding:10px;color:#fff}
.hpcv03-menu-toggle span:not(.visually-hidden){display:block;height:2px;background:#fff;margin:5px 0}

.hpcv03-hero{position:relative;min-height:500px;display:grid;align-items:end;padding:145px max(24px,calc((100vw - 1180px)/2)) 80px;overflow:hidden;color:#fff;background:radial-gradient(circle at 80% 24%,rgba(24,185,230,.18),transparent 35%),linear-gradient(135deg,#07192b 0%,#061A2D 52%,#0a2a40 100%)}
.hpcv03-hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(2,11,20,.18),rgba(2,11,20,0) 55%)}
.hpcv03-hero-inner{position:relative;z-index:2;width:min(1180px,100%);margin:0 auto}
.hpcv03-kicker{margin:0 0 16px;color:var(--hp-accent);font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.hpcv03-hero h1{max-width:850px;margin:0;color:#fff;font-size:clamp(58px,6vw,86px);line-height:.92;letter-spacing:-.052em;font-weight:850;text-wrap:balance}
.hpcv03-intro{max-width:760px;margin:25px 0 0;color:rgba(255,255,255,.78);font-size:18px;line-height:1.6}
.hpcv03-jump{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}
.hpcv03-jump a{display:inline-flex;align-items:center;min-height:40px;padding:0 15px;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#fff;background:rgba(255,255,255,.05);font-size:13px;font-weight:750}
.hpcv03-jump a:hover,.hpcv03-jump a:focus-visible{border-color:var(--hp-accent);color:var(--hp-accent)}

.hpcv03-content{background:var(--hp-reading)}
.hpcv03-section{padding:86px 0}
.hpcv03-section--upcoming{background:var(--hp-reading)}
.hpcv03-section--history{background:#f8fbfc;border-top:1px solid #dfe8ec}
.hpcv03-section-heading{max-width:720px;margin-bottom:34px}
.hpcv03-section-heading h2{margin:0;color:var(--hp-ink);font-size:clamp(38px,4vw,56px);line-height:.98;letter-spacing:-.045em;font-weight:850;text-wrap:balance}
.hpcv03-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}

.hpcv03-card{overflow:hidden;border:1px solid rgba(7,22,34,.08);border-radius:var(--hp-radius);background:#fff;box-shadow:0 16px 50px rgba(7,22,34,.08);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.hpcv03-card:hover{transform:translateY(-4px);box-shadow:0 24px 65px rgba(7,22,34,.13);border-color:rgba(24,185,230,.28)}
.hpcv03-card-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#0b263a}
.hpcv03-card-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .5s ease}
.hpcv03-card:hover .hpcv03-card-media img{transform:scale(1.025)}
.hpcv03-card-media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(2,11,20,.42),transparent 45%);pointer-events:none}
.hpcv03-card-placeholder{display:grid;place-items:center;width:100%;height:100%;background:radial-gradient(circle at 70% 20%,rgba(24,185,230,.24),transparent 28%),linear-gradient(135deg,#07192b,#0b3048)}
.hpcv03-card-placeholder span{display:grid;place-items:center;width:74px;height:74px;border:1px solid rgba(255,255,255,.42);border-radius:50%;color:#fff;font-weight:850;letter-spacing:.08em}
.hpcv03-card-badge{position:absolute;left:18px;bottom:17px;z-index:2;display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#fff;background:rgba(6,26,45,.78);backdrop-filter:blur(8px);font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.hpcv03-card-body{padding:26px 26px 28px}
.hpcv03-card-meta{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0 0 12px;color:#0a91b8;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.hpcv03-card-meta span+span::before{content:"·";margin-right:16px;color:#a7b6bf}
.hpcv03-card h3{margin:0;color:var(--hp-ink);font-size:clamp(26px,2.5vw,36px);line-height:1.02;letter-spacing:-.035em;font-weight:850}
.hpcv03-card-excerpt{margin:16px 0 22px;color:#536b79;font-size:15px;line-height:1.65}
.hpcv03-card-link{display:inline-flex;align-items:center;gap:9px;color:var(--hp-navy);font-size:14px;font-weight:850}
.hpcv03-card-link span{color:var(--hp-accent);font-size:18px;transition:transform .2s ease}
.hpcv03-card-link:hover span,.hpcv03-card-link:focus-visible span{transform:translateX(3px)}
.hpcv03-empty{max-width:760px;margin:0;padding:22px 24px;border:1px solid #d7e3e8;border-radius:18px;background:rgba(255,255,255,.72);color:#536b79;line-height:1.65}
.hpcv03-error{margin:30px auto 0;padding:16px 18px;border:1px solid #e1a9a9;border-radius:16px;background:#fff3f3;color:#802626}
.hpcv03-year+.hpcv03-year{margin-top:54px}.hpcv03-year-title{display:flex;align-items:center;gap:18px;margin:0 0 22px}.hpcv03-year-title::after{content:"";height:1px;flex:1;background:#d5e0e6}.hpcv03-year-title span{color:var(--hp-navy);font-size:18px;font-weight:850;letter-spacing:.02em}

.hpcv03-footer{padding:40px 0;background:var(--hp-navy);border-top:1px solid rgba(255,255,255,.10);color:#fff}
.hpcv03-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:32px}
.hpcv03-footer-brand{min-width:260px}.hpcv03-footer-brandline{display:flex;align-items:center;gap:10px}.hpcv03-footer-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.36);border-radius:50%;font-size:11px;font-weight:800}.hpcv03-footer-name{font-size:14px;font-weight:850;letter-spacing:.03em}.hpcv03-footer-meta{margin:10px 0 0;color:rgba(255,255,255,.58);font-size:12px;line-height:1.45}.hpcv03-footer-nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px 22px}.hpcv03-footer-nav a,.hpcv03-footer-nav span{color:rgba(255,255,255,.72);font-size:12px;font-weight:650}.hpcv03-footer-nav a:hover,.hpcv03-footer-nav a:focus-visible{color:var(--hp-accent)}

.hpcv03-reveal-on .hpcv03-card{opacity:0;transform:translateY(14px)}
.hpcv03-reveal-on.hpcv03-ready .hpcv03-card{opacity:1;transform:none;transition:opacity .5s ease,transform .5s ease,box-shadow .24s ease,border-color .24s ease}
.hpcv03-reveal-on.hpcv03-ready .hpcv03-card:nth-child(2){transition-delay:.06s}.hpcv03-reveal-on.hpcv03-ready .hpcv03-card:nth-child(3){transition-delay:.12s}.hpcv03-reveal-on.hpcv03-ready .hpcv03-card:nth-child(4){transition-delay:.18s}

@media(max-width:980px){.hpcv03-nav{gap:10px}.hpcv03-nav a{font-size:13px}.hpcv03-grid{gap:20px}}
@media(max-width:780px){
  .hpcv03-header{background:rgba(2,11,20,.88)}.hpcv03-header-inner{min-height:64px}.hpcv03-menu-toggle{display:block}.hpcv03-nav{position:absolute;top:64px;left:24px;right:24px;margin:0;padding:14px;display:grid;gap:0;border:1px solid rgba(255,255,255,.13);border-radius:16px;background:rgba(5,24,39,.97);box-shadow:0 20px 50px rgba(0,0,0,.28)}.hpcv03-nav[hidden]{display:none!important}.hpcv03-nav a{padding:12px 10px;border-radius:10px;font-size:14px}.hpcv03-hero{min-height:430px;padding-top:120px;padding-bottom:64px}.hpcv03-grid{grid-template-columns:1fr}.hpcv03-section{padding:66px 0}.hpcv03-footer-inner{display:grid}.hpcv03-footer-nav{justify-content:flex-start}
}
@media(max-width:520px){.hpcv03-inner{width:min(100% - 32px,1180px)}.hpcv03-hero{padding-left:16px;padding-right:16px}.hpcv03-hero h1{font-size:clamp(48px,16vw,66px)}.hpcv03-card-body{padding:22px}.hpcv03-footer-nav{display:grid;gap:10px}}
@media(prefers-reduced-motion:reduce){.hpcv03-card,.hpcv03-card-media img,.hpcv03-nav a{transition:none!important}.hpcv03-reveal-on .hpcv03-card{opacity:1;transform:none}}


/* HIPNOSIS_V03_CATALOGO_MENU_SIN_CTA_FINAL */


/* HIPNOSIS_V03_CATALOGO_AZULAR_FOTOS_V1
   Integra mejor las tarjetas del catalogo con el lenguaje visual V03:
   - overlay azul oscuro/cyan en imagenes
   - fondos de tarjeta mas frios
   - fondo de seccion mas coherente
*/

.hpcv03-catalogue,
.hpcv03-section,
.hpcv03-listing,
.hpcv03-archive{
  background:#EEF3F5 !important;
}

.hpcv03-card,
.hpcv03-congress-card,
.hpcv03-item{
  background:linear-gradient(180deg,#f9fcfd 0%,#f2f7fa 100%) !important;
  border:1px solid rgba(6,26,45,.08) !important;
  box-shadow:0 14px 36px rgba(6,26,45,.10) !important;
}

.hpcv03-card__media,
.hpcv03-congress-card__media,
.hpcv03-item__media,
.hpcv03-card__image,
.hpcv03-congress-card__image,
.hpcv03-item__image,
.hpcv03-card figure,
.hpcv03-congress-card figure{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#0b243b;
}

.hpcv03-card__media::after,
.hpcv03-congress-card__media::after,
.hpcv03-item__media::after,
.hpcv03-card__image::after,
.hpcv03-congress-card__image::after,
.hpcv03-item__image::after,
.hpcv03-card figure::after,
.hpcv03-congress-card figure::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(6,26,45,.30) 0%,
      rgba(7,29,49,.20) 28%,
      rgba(24,185,230,.14) 100%);
  mix-blend-mode:multiply;
}

.hpcv03-card__media img,
.hpcv03-congress-card__media img,
.hpcv03-item__media img,
.hpcv03-card__image img,
.hpcv03-congress-card__image img,
.hpcv03-item__image img,
.hpcv03-card figure img,
.hpcv03-congress-card figure img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.82) brightness(.78) contrast(1.03) hue-rotate(6deg);
  transform:scale(1.01);
}

.hpcv03-card__body,
.hpcv03-congress-card__body,
.hpcv03-item__body{
  background:transparent !important;
}

.hpcv03-card__city,
.hpcv03-congress-card__city,
.hpcv03-item__city,
.hpcv03-card__meta,
.hpcv03-congress-card__meta,
.hpcv03-item__meta{
  color:#4f6475 !important;
}

.hpcv03-card__title,
.hpcv03-congress-card__title,
.hpcv03-item__title{
  color:#071622 !important;
}

.hpcv03-empty,
.hpcv03-archive__empty,
.hpcv03-empty-state{
  background:rgba(255,255,255,.55) !important;
  border:1px solid rgba(6,26,45,.12) !important;
  color:#556978 !important;
}

.hpcv03-card:hover,
.hpcv03-congress-card:hover,
.hpcv03-item:hover{
  box-shadow:0 18px 42px rgba(6,26,45,.14) !important;
}

@media (prefers-reduced-motion:no-preference){
  .hpcv03-card:hover img,
  .hpcv03-congress-card:hover img,
  .hpcv03-item:hover img{
    transform:scale(1.035);
  }
}


/* HIPNOSIS_V03_CATALOGO_ESTILO_PORTADA_V2
   Tratamiento derivado del bloque Madrid/Barcelona de Portada V0.3,
   suavizado para tarjetas pequenas.
*/

/* Fondo general: claro pero azulado, evitando salto a blanco puro */
.hpcv03-section--upcoming{
  background:#E7EFF3 !important;
}

.hpcv03-section--history{
  background:#EEF3F5 !important;
  border-top:1px solid rgba(6,26,45,.08) !important;
}

/* Tarjeta */
.hpcv03-card{
  background:#F5F9FB !important;
  border:1px solid rgba(6,26,45,.09) !important;
  box-shadow:0 16px 42px rgba(6,26,45,.10) !important;
}

/* Imagen: misma filosofia que .hpv03-city img,
   pero menos oscura para conservar legibilidad en tarjeta */
.hpcv03-card-media img{
  filter:
    brightness(.68)
    saturate(.80)
    contrast(1.08) !important;

  transform:scale(1.01);
}

/* Overlay navy inspirado directamente en .hpv03-city__overlay */
.hpcv03-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background:
    linear-gradient(
      to top,
      rgba(1,10,19,.72) 0%,
      rgba(4,18,32,.34) 44%,
      rgba(4,18,32,.12) 100%
    ) !important;
}

/* Badge mejor integrado sobre la imagen oscura */
.hpcv03-card-badge{
  color:#fff !important;
  background:rgba(6,26,45,.74) !important;
  border-color:rgba(255,255,255,.26) !important;
  backdrop-filter:blur(8px);
}

/* Cuerpo ligeramente frio */
.hpcv03-card-body{
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.70),
      rgba(238,245,248,.92)
    ) !important;
}

/* Metadatos y enlace dentro de paleta V03 */
.hpcv03-card-meta{
  color:#0A91B8 !important;
}

.hpcv03-card-link{
  color:#061A2D !important;
}

.hpcv03-card-link span{
  color:#18B9E6 !important;
}

/* Hover discreto */
.hpcv03-card:hover{
  border-color:rgba(24,185,230,.24) !important;
  box-shadow:0 22px 54px rgba(6,26,45,.14) !important;
}

.hpcv03-card:hover .hpcv03-card-media img{
  transform:scale(1.035);
}

/* Estado vacío / histórico */
.hpcv03-empty,
.hpcv03-empty-state{
  background:rgba(255,255,255,.46) !important;
  border-color:rgba(6,26,45,.12) !important;
}


/* V04 estilo B/C: tratamiento azul oscuro sobre la misma foto original. */
.hpcv03-card-media::after{background:linear-gradient(180deg,rgba(0,24,53,.40),rgba(0,34,67,.65));opacity:1;z-index:1}
.hpcv03-card-media img{filter:saturate(.78) contrast(1.03)}
.hpcv03-card-badge{z-index:2}


/* HIPNOSIS_CATALOGO_FOOTER_B_V1
   Igualar escala y disposicion a Paginas V04 B.
   No afecta a los estilos A o C.
*/

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer {
    padding: 0;
    background: #031522;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #fff;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-brand {
    min-width: 0;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-brandline {
    gap: 12px;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(255,255,255,.55);
    font-size: 11px;
    letter-spacing: .05em;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-meta {
    margin: 8px 0 0 !important;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.5;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 24px;
    max-width: 620px;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav a,
.hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav span {
    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

@media (max-width: 780px) {
    .hpcv03-shell[data-visual-style="b"] .hpcv03-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav {
        justify-content: flex-start;
        gap: 12px 20px;
    }
}

@media (max-width: 520px) {
    .hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav a,
    .hpcv03-shell[data-visual-style="b"] .hpcv03-footer-nav span {
        font-size: 14px;
    }
}


/* HIPNOSIS_V04_B_INSCRIPCIONES_20261018 */
/* Boton de inscripcion: conserva colores al pasar el raton. */

.hpcv03-shell[data-visual-style="b"] .hpcv03-nav a.hpv04-b-inscripciones,
.hpcv03-shell[data-visual-style="b"] .hpcv03-nav a.hpv04-b-inscripciones:visited,
.hpcv03-shell[data-visual-style="b"] .hpcv03-nav a.hpv04-b-inscripciones:hover,
.hpcv03-shell[data-visual-style="b"] .hpcv03-nav a.hpv04-b-inscripciones:focus-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid #00a9dc;
    border-radius: 999px;
    background: rgba(0, 169, 220, .08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.hpcv03-shell[data-visual-style="b"] .hpcv03-nav .hpv04-b-inscripciones svg {
    flex-shrink: 0;
    color: #65d1ed;
}
