/* ===== ESTILOS PRINCIPALES DEL CONGRESO ===== */
:root {
  --oro: #9A6B2A;
  --oro-claro: #7A4E18;
  --carmesi: #8B1A2A;
  --negro: #FDFAF4;
  --pergamino: #1C0F07;
  --pergamino-oscuro: #2E1A0E;
  --sepia: #4A3728;
  --sepia-medio: #7A5C45;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--negro);
  color: var(--pergamino);
  font-family: 'EB Garamond', Georgia, serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(139,26,42,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(154,107,42,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  padding-top: calc(4rem + 65px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('congreso.jpeg');
  background-size: cover;
  background-position: top center;
  background-attachment: local;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(139,26,42,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at center bottom, rgba(154,107,42,0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(242,232,213,0.91) 0%, rgba(237,224,196,0.87) 50%, rgba(242,232,213,0.91) 100%);
}

.hero-ornament-top, .hero-ornament-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--carmesi), #9A6B2A, var(--carmesi), transparent);
}
.hero-ornament-top { top: 0; }
.hero-ornament-bottom { bottom: 0; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeInUp 1.4s ease both;
  padding-bottom: 5rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--oro);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  width: fit-content;
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--carmesi));
}
.ornament-line::after {
  background: linear-gradient(90deg, var(--carmesi), transparent);
}
.ornament-diamond {
  width: 6px; height: 6px;
  background: var(--carmesi);
  transform: rotate(45deg);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--pergamino);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--oro-claro);
  margin: 1rem 0;
}

.hero-names {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.2em;
  color: var(--oro);
  text-transform: uppercase;
  margin-top: 2rem;
}

.hero-date-block {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 3rem;
  border: 1px solid rgba(139,26,42,0.25);
  background: rgba(139,26,42,0.04);
  animation: fadeInUp 1.4s 0.3s ease both;
}

.hero-date-item { text-align: center; }
.hero-date-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--oro);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.hero-date-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--pergamino);
}
.hero-date-sep {
  width: 1px;
  height: 40px;
  background: rgba(139,26,42,0.25);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: pulse 2s ease infinite;
}
.hero-scroll span {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--oro);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--carmesi), transparent);
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ===== SECCIONES GENERALES ===== */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--carmesi);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pergamino);
  line-height: 1.2;
}

/* ===== SOBRE, PERFILES, PROGRAMA, PONENTES, LUGAR ===== */
.about {
  padding: 7rem 0;
  background: linear-gradient(180deg, #F2E8D5 0%, #EDE0C4 50%, #F2E8D5 100%);
}

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

.about-text p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(28,15,7,0.82);
  margin-bottom: 1.5rem;
}

.about-text p:first-child::first-letter {
  font-size: 3.5rem;
  font-family: 'Cinzel', serif;
  color: var(--carmesi);
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.1em;
}

.quote-block {
  border-left: 2px solid var(--carmesi);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(139,26,42,0.04);
}

.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem !important;
  color: var(--sepia) !important;
  line-height: 1.6 !important;
}

.profiles { padding: 7rem 0; background: #FDFAF4; }
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.profile-card {
  border: 1px solid rgba(139,26,42,0.25);
  padding: 3rem;
  background: linear-gradient(135deg, rgba(139,26,42,0.03) 0%, transparent 100%);
  transition: border-color 0.4s ease, background 0.4s ease;
  position: relative;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60px; height: 2px;
  background: var(--carmesi);
  transition: width 0.4s ease;
}

.profile-card:hover {
  border-color: rgba(139,26,42,0.5);
  background: linear-gradient(135deg, rgba(139,26,42,0.06) 0%, transparent 100%);
}

.profile-card:hover::before { width: 100%; }

.profile-dates {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--oro);
  margin-bottom: 1rem;
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--pergamino);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.profile-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--carmesi);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.profile-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(28,15,7,0.72);
}

.programa { padding: 7rem 0; background: #EDE0C4; }
.dia-block { margin-bottom: 4rem; }
.dia-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.dia-numero {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  color: rgba(139,26,42,0.12);
  line-height: 1;
  font-weight: 600;
}

.dia-info {
  border-left: 2px solid var(--carmesi);
  padding-left: 1.5rem;
}

.dia-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--carmesi);
  text-transform: uppercase;
}

.dia-fecha {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--pergamino);
}

.sesion-block {
  margin-bottom: 3rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(139,26,42,0.2);
}

.sesion-titulo {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--carmesi);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(139,26,42,0.07);
  display: inline-block;
}

.ponencia {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(139,26,42,0.1);
}

.ponencia:last-child { border-bottom: none; }

.ponencia-hora {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--oro);
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.ponencia-titulo {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--pergamino);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.ponencia-autor {
  font-size: 0.85rem;
  color: rgba(28,15,7,0.5);
  letter-spacing: 0.05em;
}

.acto-especial {
  grid-template-columns: 80px 1fr;
  background: rgba(139,26,42,0.06);
  border-left: 2px solid var(--carmesi);
  padding: 1rem 1.5rem;
}

.acto-especial .ponencia-titulo {
  font-style: normal;
  color: var(--sepia);
}

.ponentes { padding: 7rem 0; background: #FDFAF4; }
.ponentes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.ponente-card {
  padding: 2rem;
  border: 1px solid rgba(139,26,42,0.15);
  background: rgba(139,26,42,0.02);
  transition: all 0.3s ease;
  cursor: default;
}

.ponente-card:hover {
  border-color: rgba(139,26,42,0.35);
  background: rgba(139,26,42,0.05);
  transform: translateY(-2px);
}

.ponente-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--pergamino);
  margin-bottom: 0.3rem;
}

.ponente-cargo {
  font-size: 0.8rem;
  color: var(--oro);
  line-height: 1.4;
}

.lugar {
  padding: 7rem 0;
  background: linear-gradient(180deg, #F2E8D5 0%, #EDE0C4 100%);
}

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

.lugar-foto {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  margin-bottom: 3rem;
  border: 1px solid rgba(139,26,42,0.2);
  filter: sepia(15%);
}

.lugar-dato {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(139,26,42,0.15);
}

.lugar-dato:last-child { border-bottom: none; }

.lugar-dato-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--carmesi);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

.lugar-dato-value {
  font-size: 1rem;
  color: rgba(28,15,7,0.82);
  line-height: 1.6;
}

.lugar-maps-link {
  color: inherit;
  text-decoration: none;
}
.lugar-maps-link:hover {
  text-decoration: none;
}

/* ===== SECCIÓN REGISTRO ===== */
.registro {
  padding: 7rem 0;
  background: linear-gradient(180deg, #EDE0C4 0%, #F2E8D5 50%, #EDE0C4 100%);
  border-top: 1px solid rgba(139,26,42,0.2);
}

.registro .section-header {
  margin-bottom: 3rem;
}

.registro-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(139,26,42,0.25);
  background: rgba(253,250,244,0.95);
  box-shadow: 0 4px 24px rgba(28,15,7,0.06);
}

.registro-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row--double {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--carmesi);
  text-transform: uppercase;
}

.form-group label .requerido {
  color: var(--carmesi);
  margin-left: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139,26,42,0.25);
  background: #fff;
  color: var(--pergamino);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--carmesi);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--carmesi);
  background: rgba(139,26,42,0.03);
}

.form-group .field-error {
  font-size: 0.85rem;
  color: var(--carmesi);
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-group--checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-group--checkbox label {
  text-transform: none;
  letter-spacing: 0.05em;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
}

.registro-form .btn-primary {
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 0.7rem;
  cursor: pointer;
  border: none;
}

.registro-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.registro-form .form-message {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 0;
  text-align: center;
}

.registro-form .form-message.success {
  background: rgba(46,125,50,0.12);
  border: 1px solid rgba(46,125,50,0.4);
  color: #1b5e20;
}

.registro-form .form-message.error {
  background: rgba(139,26,42,0.08);
  border: 1px solid rgba(139,26,42,0.35);
  color: var(--carmesi);
}

@media (max-width: 600px) {
  .form-row--double {
    grid-template-columns: 1fr;
  }
  .registro-form-wrapper {
    padding: 2rem 1.5rem;
  }
}

/* ===== CONTACTO ===== */
.contacto {
  padding: 6rem 0;
  text-align: center;
  background: #F2E8D5;
  border-top: 1px solid rgba(139,26,42,0.2);
}

.contacto-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--pergamino);
  margin-bottom: 1rem;
}

.contacto-text {
  font-size: 1.05rem;
  color: rgba(28,15,7,0.6);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #FDFAF4;
  background: var(--carmesi);
  padding: 1rem 3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #6B1020;
  letter-spacing: 0.4em;
}

.btn-outline {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--carmesi);
  border: 1px solid var(--carmesi);
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(139,26,42,0.08);
}

.comite {
  padding: 5rem 0;
  text-align: center;
  background: rgba(139,26,42,0.03);
  border-top: 1px solid rgba(139,26,42,0.12);
  border-bottom: 1px solid rgba(139,26,42,0.12);
}

.comite-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(28,15,7,0.62);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.comite-list span::after {
  content: ' ·';
  color: var(--carmesi);
  opacity: 0.5;
}

.comite-list span:last-child::after { content: ''; }

/* ===== FOOTER ===== */
footer {
  padding: 2.5rem;
  text-align: center;
  background: #EDE0C4;
  border-top: 1px solid rgba(139,26,42,0.15);
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: rgba(139,26,42,0.5);
  text-transform: uppercase;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(242,232,213,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139,26,42,0.15);
  transition: all 0.3s ease;
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--carmesi);
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(28,15,7,0.8);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--carmesi); }

/* ===== HAMBURGUESA ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--carmesi);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.abierto span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.abierto span:nth-child(2) { opacity: 0; }
.nav-hamburger.abierto span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== MENÚ MÓVIL ===== */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(242,232,213,0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.nav-mobile.abierto {
  display: flex;
}

.nav-mobile ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-mobile a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: rgba(28,15,7,0.8);
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  padding: 0.9rem 2rem;
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--carmesi); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .about-grid, .profiles-grid, .lugar-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ponentes-grid { grid-template-columns: 1fr 1fr; }
  .ponencia { grid-template-columns: 60px 1fr; }
}

@media (max-width: 480px) {
  .ponentes-grid { grid-template-columns: 1fr; }
  .hero-date-block { flex-direction: column; gap: 1rem; }
  .hero-date-sep { width: 60px; height: 1px; }
}

/* Offset para nav fija en todos los anchors */
section[id],
div[id] {
  scroll-margin-top: 80px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
