/* ==========================================================================
   DermaSound Festival — estilos generales
   ========================================================================== */

:root {
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;

  --navy: #003052;
  --navy-deep: #05182e;
  --mint: #6fe0ac;
  --purple: #8f21f1;
  --teal: #019098;
  --teal-light: #2fcfd6;
  --magenta: #b4168f;
  --magenta-light: #d6249f;

  --bg-sky-top: #c3d7ea;
  --bg-sky-bottom: #dde4ef;
  --card-teal-wash: #eaf6f6;
  --card-magenta-wash: #fff2f8;

  --text-body: #33465c;
  --border-soft: #dde6ef;

  --shadow-card: 0 16px 40px rgba(0, 48, 82, 0.12);
  --shadow-soft: 0 8px 24px rgba(0, 48, 82, 0.08);

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text-body);
  background-color: var(--bg-sky-bottom);
  background-image: url("../img/Imagen background.png");
  background-size: cover;
  background-position: right top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.4;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */

.site-header {
  background: transparent;
  position: relative;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand img {
  width: 320px;
  height: auto;
  margin-top: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  flex-wrap: wrap;
  margin-top: -40px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.main-nav a:hover {
  border-bottom-color: var(--teal-light);
}

.main-nav a img,
.main-nav a svg {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-top: -40px;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: black;
}

.almirall-logo {
  width: 191px;
  height: auto;
}

/* Menú de usuario */

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy);
  padding: 6px 4px;
}

.user-menu__trigger strong {
  font-weight: 600;
}

.user-menu__trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.user-menu.is-open .user-menu__trigger svg {
  transform: rotate(180deg);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  min-width: 220px;
  max-width: calc(100vw - 32px);
  display: none;
  flex-direction: column;
  gap: 10px;
}

.user-menu.is-open .user-menu__dropdown {
  display: flex;
}

.user-menu__email {
  font-size: 12px;
  color: #7c8ba0;
  word-break: break-all;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.user-menu__dropdown a {
  font-size: 14px;
  font-weight: 500;
  color: var(--magenta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 70vh;
  padding: 48px 0 120px;
  overflow: hidden;
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 70px);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 35px);
  color: var(--navy);
  margin: 0 0 40px;
}

.accent-mint {
  color: #0c9b6e;
  font-weight: 400;
}

.flash-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 0 28px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

/* Tarjetas de escenario */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin-bottom: 44px;
}

.scenario-card {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  width: 100%;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
}

/* Separador "Otras áreas del festival" */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  max-width: 900px;
  margin-bottom: 22px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
}

/* Accesos secundarios */

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin-bottom: 8px;
}

.secondary-box {
  display: block;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.secondary-box img {
  width: 100%;
}

.secondary-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.hero__hashtag {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 30;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: 26px 0 0 0;
}

/* ==========================================================================
   Panel de acceso (login)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background-image:
    linear-gradient(
      180deg,
      rgba(195, 215, 234, 0.6) 0%,
      rgba(5, 24, 46, 0.55) 100%
    ),
    url("../img/Imagen background.png");
  background-size: cover;
  background-position: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
  text-align: center;
}

.auth-card__logo {
  height: auto;
  width: auto;
  margin: 0 auto 22px;
}

.auth-card h1 {
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}

.auth-card p.auth-card__lead {
  font-size: 14px;
  color: var(--text-body);
  margin: 0 0 26px;
}

.field {
  text-align: left;
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="email"],
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
}

.field input[type="email"]:focus,
.field input[type="text"]:focus,
.field input[type="password"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(1, 144, 152, 0.15);
}

.field__hint {
  margin-top: 6px;
  font-size: 12px;
  color: #7c8ba0;
}

.form-error {
  background: #fdecec;
  border: 1px solid #f3b9b9;
  color: #a12727;
  font-size: 13px;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.almirall-badge {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #7c8ba0;
}

.almirall-badge img {
  height: auto;
  width: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1050px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    flex-wrap: wrap;
    margin-top: 0px;
  }
  .main-nav a {
    gap: 8px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .main-nav {
    margin-top: 20px;
  }
  .header-actions {
    margin-top: 0px;
  }
  .main-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.15s ease,
      transform 0.15s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 10px 8px;
    border-bottom: none;
    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--card-teal-wash);
  }

  .nav-toggle {
    display: flex;
  }

  .header-divider {
    display: none;
  }
}

@media (max-width: 1000px) {
  .hero__hashtag {
    position: static;
    display: inline-block;
    margin-top: 26px;
    border-radius: var(--radius-md);
  }
}

@media (max-width: 720px) {
  .scenario-grid,
  .secondary-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    width: 100%;
  }

  .hero {
    padding-bottom: 90px;
  }

  .almirall-logo {
    width: 110px;
  }

  .brand img {
    width: 220px;
  }
}

@media (max-width: 480px) {
  .site-header {
    background: #ffffff;
  }
  .auth-card {
    padding: 30px 22px;
  }

  .header-inner {
    gap: 12px;
  }

  .user-menu__trigger span.user-menu__greeting {
    display: none;
  }
}
