/* ===== WOW! Almería 2026 — Estilos ===== */

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

:root {
  /* Paleta */
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --purple: #5b2a6e;
  --purple-dark: #3a1a47;
  --purple-light: #8e5ea2;
  --white: #ffffff;
  --off-white: #faf7f2;
  --text: #2d2d2d;
  --text-light: #f5f0e8;

  /* Tipografía */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Espaciado */
  --section-padding: 5rem 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---------- Utilidades ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--purple);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--purple-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--purple-dark);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--purple-dark);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(58, 26, 71, 0.72);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(58, 26, 71, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.navbar__logo {
  grid-column: 1;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
}

.navbar__links {
  grid-column: 2;
  justify-self: center;
}

.navbar__links li {
  white-space: nowrap;
}

.navbar__logo span {
  color: var(--white);
  font-weight: 300;
  font-size: 0.75em;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar__links a:hover {
  color: var(--gold);
}

/* Language switcher */
.lang-switch {
  grid-column: 3;
  justify-self: end;
  margin-left: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-switch__btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: inherit;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__btn:hover {
  color: var(--gold);
}

.lang-switch__btn.is-active {
  color: var(--purple-dark);
  background: var(--gold);
}

.lang-switch__sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(250, 247, 242, 0.24), rgba(250, 247, 242, 0.56) 45%, rgba(250, 247, 242, 0.24)),
    url("../assets/images/fondo_slide_1.jpeg") center / cover no-repeat;
  color: var(--purple-dark);
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 48%, rgba(250, 247, 242, 0.74) 0%, rgba(250, 247, 242, 0.46) 34%, transparent 58%);
  animation: shimmer 15s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, -3%); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero__title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.75rem;
  line-height: 1;
}

.hero__logo {
  width: clamp(180px, 32vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(91, 42, 110, 0.18));
}

.hero__meaning {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero__verse {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  opacity: 0.86;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__date {
  margin-top: 3rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.hero__date strong {
  color: var(--gold);
}

.hero .btn--outline {
  border-color: var(--purple);
  color: var(--purple);
}

.hero .btn--outline:hover {
  background: var(--purple);
  color: var(--off-white);
}

/* ---------- Acerca de ---------- */
.about {
  padding: var(--section-padding);
  background: var(--off-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 3rem;
  opacity: 0.8;
}

.about__text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 1rem;
}

.about__text p {
  margin-bottom: 1rem;
  color: #555;
}

.about__highlights {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.about__highlights div {
  text-align: center;
}

.about__highlights span {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}

.about__highlights small {
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ---------- Programa ---------- */
.schedule {
  padding: var(--section-padding);
}

.schedule__timeline {
  max-width: 700px;
  margin: 0 auto;
}

.schedule__item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.schedule__time {
  min-width: 100px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}

.schedule__info h4 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin-bottom: 0.25rem;
}

.schedule__info p {
  font-size: 0.9rem;
  color: #777;
}

.schedule__item--featured {
  background: linear-gradient(135deg, rgba(91, 42, 110, 0.04), rgba(201, 168, 76, 0.06));
  border-radius: 10px;
  padding: 1.2rem 1.2rem;
  border-bottom: none;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--gold);
}

.schedule__item--featured .schedule__info h4 {
  color: var(--purple-dark);
  font-size: 1.1rem;
}

.schedule__item--featured .schedule__info p {
  color: var(--purple-light);
  font-weight: 600;
  font-style: italic;
}

/* ---------- Oradoras ---------- */
.speakers {
  padding: var(--section-padding);
  background: var(--off-white);
}

.speakers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .speakers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .speakers__grid {
    grid-template-columns: 1fr;
  }
}

.speaker-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.speaker-card:hover {
  transform: translateY(-5px);
}

.speaker-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1.2rem;
  border: 3px solid var(--gold);
}

.speaker-card__photo--daphne {
  object-position: 50% 18%;
}

.speaker-card__photo--celia {
  object-position: 50% 14%;
}

.speaker-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2.5rem;
}

.speaker-card h4 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin-bottom: 0.3rem;
}

.speaker-card p {
  font-size: 0.9rem;
  color: #777;
}

.speaker-card__role {
  color: var(--gold) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem !important;
  min-height: 2.1rem;
}

.speaker-card__bio {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  min-height: 9.75em;
  text-align: left;
}

.speaker-card__more {
  margin-top: 1rem;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  transition: all 0.25s ease;
}

.speaker-card__more:hover,
.speaker-card__more:focus-visible {
  background: var(--purple);
  color: var(--white);
  outline: none;
}

.speaker-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.speaker-modal.is-open {
  display: flex;
}

.speaker-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 26, 0.72);
  backdrop-filter: blur(3px);
}

.speaker-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.4fr);
  gap: 2rem;
  width: min(980px, 100%);
  max-height: min(760px, 88vh);
  overflow: hidden;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 2rem;
}

.speaker-modal__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  z-index: 2;
}

.speaker-modal__image {
  width: 100%;
  height: min(700px, calc(88vh - 4rem));
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  align-self: start;
}

.speaker-modal__content {
  max-height: calc(88vh - 4rem);
  overflow-y: auto;
  padding-right: 0.4rem;
}

.speaker-modal__content::-webkit-scrollbar {
  width: 8px;
}

.speaker-modal__content::-webkit-scrollbar-track {
  background: #efe8dc;
  border-radius: 999px;
}

.speaker-modal__content::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

.speaker-modal__content h3 {
  font-family: var(--font-heading);
  color: var(--purple);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.35rem;
}

.speaker-modal__role {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.speaker-modal__text p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Ubicación ---------- */
.location {
  padding: var(--section-padding);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location__map {
  aspect-ratio: 16/10;
  background: #e0d8ce;
  border-radius: 16px;
  overflow: hidden;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location__details h3 {
  font-family: var(--font-heading);
  color: var(--purple);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.location__details p {
  color: #555;
  margin-bottom: 0.5rem;
}

.location__details .location__icon {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.location__details .location__icon svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

/* ---------- Hotel ---------- */
.hotel {
  padding: var(--section-padding);
  background: var(--off-white);
}

.hotel__layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hotel__card {
  background: #fff;
  border: 1px solid #ece4d6;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(91, 42, 110, 0.06);
}

.hotel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 20px rgba(91, 42, 110, 0.06);
}

.hotel__info h3 {
  font-family: var(--font-heading);
  color: var(--purple);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hotel__lead {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hotel__code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  text-align: center;
}

.hotel__code-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}

.hotel__code-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}

.hotel__details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.hotel__details li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: #444;
  line-height: 1.5;
}

.hotel__details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.hotel__info .btn {
  display: block;
  width: fit-content;
  margin: 0.5rem auto 0;
}

.hotel__note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ---------- Registro / CTA ---------- */
.register {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: var(--white);
  text-align: center;
}

.register .section-title {
  color: var(--white);
}

.register .section-subtitle {
  color: var(--gold-light);
}

.register__verse {
  font-style: italic;
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  font-size: 1.05rem;
}

.register__cta {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.register__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 460px;
}

.register__btn {
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
}

.register__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--purple-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gold);
}

.footer__socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer__socials a {
  font-size: 1.3rem;
  transition: opacity 0.3s;
}

.footer__socials a:hover {
  opacity: 0.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar .container {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .navbar__logo {
    font-size: 1.35rem;
  }

  .lang-switch {
    grid-column: 2;
    justify-self: center;
  }

  .navbar__toggle {
    grid-column: 3;
    justify-self: end;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(58, 26, 71, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    text-align: center;
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
  }

  .about__grid,
  .location__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    order: -1;
  }

  .about__highlights {
    justify-content: center;
  }

  .speaker-modal {
    padding: 1rem;
  }

  .speaker-modal__panel {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem;
  }

  .speaker-modal__image {
    height: 300px;
    min-height: 260px;
    max-height: 320px;
  }

  .speaker-modal__content {
    max-height: none;
    overflow-y: visible;
  }

  .hero__logo {
    width: clamp(160px, 56vw, 220px);
  }

  .hotel__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hotel__card {
    padding: 1.75rem 1.25rem;
  }

  .hotel__image {
    order: -1;
    max-height: 260px;
  }

  .hotel__code-value {
    font-size: 1.6rem;
  }
}
