/* ═══════════════════════════════════════════════════════════════
   Foro: Mujeres que Transforman — Fátima Bosch
   Miss Universo 2025 · Palacio Tecleño
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-deep:    #04050d;
  --bg-card:    rgba(8, 10, 32, 0.85);
  --text:       #f3f4ff;
  --text-muted: rgba(243, 244, 255, 0.7);
  --gold:       #ffd700;
  --gold-dim:   rgba(255, 215, 0, 0.25);
  --purple:     #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.3);
  --rose:       #f472b6;
  --border:     rgba(255, 255, 255, 0.12);
  --radius:     16px;
  --radius-lg:  24px;
  --shadow:     0 20px 60px rgba(0, 0, 0, 0.5);
  --font:       'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* ═══════════ PARTICLES ═══════════ */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particleFloat 12s infinite ease-in-out;
}

.particle--1 { width: 4px; height: 4px; top: 15%; left: 10%; animation-delay: 0s; }
.particle--2 { width: 3px; height: 3px; top: 25%; left: 85%; animation-delay: 2s; }
.particle--3 { width: 5px; height: 5px; top: 55%; left: 20%; animation-delay: 4s; }
.particle--4 { width: 3px; height: 3px; top: 70%; left: 75%; animation-delay: 6s; }
.particle--5 { width: 4px; height: 4px; top: 40%; left: 50%; animation-delay: 8s; background: var(--purple); }
.particle--6 { width: 3px; height: 3px; top: 85%; left: 40%; animation-delay: 10s; background: var(--rose); }

@keyframes particleFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  20%      { opacity: 0.8; }
  50%      { opacity: 0.4; transform: translateY(-80px) scale(1.5); }
  80%      { opacity: 0.6; }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(255, 215, 0, 0.15), transparent),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(244, 114, 182, 0.15), transparent),
    linear-gradient(180deg, #0a0c2e 0%, #04050d 100%);
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 215, 0, 0.03) 60deg,
    transparent 120deg,
    rgba(124, 58, 237, 0.03) 180deg,
    transparent 240deg,
    rgba(244, 114, 182, 0.03) 300deg,
    transparent 360deg
  );
  animation: heroRotate 30s linear infinite;
}

@keyframes heroRotate {
  to { transform: rotate(360deg); }
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(4, 5, 13, 0.9) 0%, transparent 60%);
}

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

.hero__invite {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-family: var(--font-head);
  line-height: 1.05;
  margin-bottom: 30px;
}

.hero__title-line1 {
  display: block;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.06em;
}

.hero__title-line2 {
  display: block;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, rgba(255, 215, 0, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title-line3 {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose) 60%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 24px rgba(255, 215, 0, 0.3));
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 36px;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.hero__meta-item--free {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--gold);
}

.hero__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #0a0b14;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
}

.hero__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 48px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero__cta:active {
  transform: translateY(0) scale(0.98);
}

/* ═══════════ SHARE ═══════════ */
.share {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.share__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.share__buttons {
  display: flex;
  gap: 8px;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
}

.share__btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share__btn--wa:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.share__btn--fb:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877f2;
}

.share__btn--x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.share__btn--tg:hover {
  background: rgba(0, 136, 204, 0.2);
  border-color: rgba(0, 136, 204, 0.4);
  color: #0088cc;
}

.share__btn--copy:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--gold);
}

.share__btn--copied {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #22c55e !important;
}

/* ═══════════ ABOUT ═══════════ */
.about {
  padding: 80px 0 60px;
  position: relative;
  z-index: 1;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.about__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: stretch;
}

.about__image {
  position: relative;
}

.about__photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.08);
  object-fit: cover;
}

.about__role {
  font-size: 1.15rem;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about__text strong {
  color: var(--text);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.highlight-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
}

.highlight-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.highlight-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-dim), var(--purple-dim));
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--gold);
}

.highlight-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════ REGISTER ═══════════ */
.register {
  padding: 80px 0 100px;
  position: relative;
  z-index: 1;
}

.register::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.register__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.register__desc {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.register__details {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.detail__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  min-width: 60px;
}

.detail__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.detail__value--free {
  color: var(--gold);
  font-weight: 700;
}

.register__privacy {
  font-size: 0.85rem;
  color: rgba(243, 244, 255, 0.5);
  line-height: 1.6;
}

/* ── Form ── */
.register__form-wrapper {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* ── Alerts ── */
.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid;
  animation: alertSlide 0.4s ease-out;
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert strong {
  display: block;
  margin-bottom: 4px;
}

.alert p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.alert--success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.alert--success svg { color: #22c55e; }

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert--error svg { color: #ef4444; }

.form__phone {
  display: flex;
  gap: 8px;
}

.form__select {
  width: 100px;
  flex-shrink: 0;
  padding: 13px 22px 13px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.form__select:focus {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form__select option {
  background: #0a0c2e;
  color: var(--text);
}

.form__phone .form__input {
  flex: 1;
  min-width: 0;
}

/* ── Form grid ── */
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group--full {
  grid-column: 1 / -1;
}

.form__optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(243, 244, 255, 0.4);
}

.form__label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form__input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form__input::placeholder {
  color: rgba(243, 244, 255, 0.3);
}

.form__input:focus {
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
  background: rgba(0, 0, 0, 0.5);
}

.form__input--error {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
  animation: inputShake 0.4s ease-out;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-2px); }
  80%      { transform: translateX(2px); }
}

.form__submit {
  margin-top: 24px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
  color: #0a0b14;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-transform: uppercase;
}

.form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(255, 215, 0, 0.35);
}

.form__submit:active:not(:disabled) {
  transform: translateY(0);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  padding: 48px 0 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer__logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer__logo-item {
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.footer__logo-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.footer__logo-name small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.footer__note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer__note--small {
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer__copy {
  display: block;
  margin-top: 20px;
  font-size: 0.78rem;
  color: rgba(243, 244, 255, 0.35);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .about__photo {
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }

  .about__highlights {
    grid-template-columns: repeat(3, 1fr);
  }

  .register__wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 16px 48px;
    min-height: auto;
  }

  .hero__invite {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .hero__title {
    margin-bottom: 22px;
  }

  .hero__meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
  }

  .hero__meta-item {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 1rem;
  }

  .share {
    justify-content: center;
    margin-top: 24px;
  }

  .about, .register {
    padding: 40px 0;
  }

  .about__photo {
    max-width: 300px;
  }

  .about__role {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .about__text p {
    font-size: 0.92rem;
    text-align: left;
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    padding: 18px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .highlight-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .highlight-card p {
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .register__desc {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }

  .register__form-wrapper {
    padding: 20px 16px;
  }

  .form__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form__input {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .form__submit {
    margin-top: 18px;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .detail {
    flex-direction: row;
    gap: 10px;
    padding: 10px 14px;
  }

  .detail__label {
    min-width: 50px;
    font-size: 0.72rem;
  }

  .detail__value {
    font-size: 0.88rem;
  }

  .register__privacy {
    font-size: 0.78rem;
  }

  .footer {
    padding: 32px 0 24px;
  }

  .footer__logos {
    gap: 10px;
  }

  .footer__logo-item {
    padding: 10px 14px;
  }

  .footer__logo-name {
    font-size: 0.78rem;
  }

  .footer__note {
    font-size: 0.82rem;
  }

  .footer__copy {
    font-size: 0.72rem;
  }
}

/* ═══════════ ACCESIBILIDAD ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Ocultar badge reCAPTCHA (aviso incluido en texto de privacidad) */
.grecaptcha-badge { visibility: hidden !important; }

/* Focus visible para teclado */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
