@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Navbar === */
.navbar {
  background: #7B1E3A;
  color: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}
.logo img {
  height: 120px; /* ✅ logo más grande */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover {
  color: #E50914;
}
.menu-toggle {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: #fff;
}

@media(max-width:768px){
  .nav-links {
    display: none;
    flex-direction: column;
    background: #7B1E3A;
    position: absolute;
    top: 64px;
    right: 0;
    width: 240px;
    padding: 1rem;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* === Sections === */
section {
  padding: 4rem 1rem;  /* 🔥 más compacto */
  text-align: center;
  display: block;
}

.hero {
  min-height: 100vh; /* solo el hero ocupa la pantalla completa */
  padding-top: 13rem; /* espacio extra debajo de la navbar */
  background: linear-gradient(rgba(123,30,58,.7), rgba(229,9,20,.7)), 
              url('../img/hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
}

/* Ajustamos en móvil */
@media(max-width:768px){
  .hero {
    padding-top: 12rem;
  }
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* ✅ Centrar todo dentro del hero */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 1.5rem;
  margin: .5rem 0 0;
  text-align: center;
}
.hero p {
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
}
.hero .hero-logo {
  max-width: 260px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 1.5rem;
  margin: 1rem 0 0; /* sin margen inferior */
}

.btn {
  background: #E50914;
  color: #fff;
  padding: .9rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  transition: .25s;
  margin-top: 0.8rem;   /* espacio entre texto y botón */
  margin-bottom: 0.5rem; /* un poco de aire debajo del botón */
}

.hero {
  min-height: auto;      /* que la altura dependa del contenido */
  padding-bottom: 1rem;  /* aire visual en la sección */
}


.btn:hover {
  background: #7B1E3A;
  transform: translateY(-2px);
}
.section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.lead {
  max-width: 900px;
  margin: 0 auto 1.25rem auto;
  text-align: justify; /* 🔥 Justifica el texto */
  font-size: 1.1rem;
  line-height: 1.8;
}

.section.alt {
  background: #f9f9f9;
}

/* === Speakers grid === */
.speakers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.speaker-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: .25s;
}
.speaker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.speaker-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  display: block;
}
.speaker-card h3 {
  margin: .3rem 0 .2rem 0;
}
.speaker-card .handle {
  opacity: .8;
  font-size: .9rem;
  margin-bottom: .5rem;
}

@media(min-width:768px){
  .speakers-grid { grid-template-columns: repeat(2,1fr); }
}
@media(min-width:1024px){
  .speakers-grid { grid-template-columns: repeat(3,1fr); }
}

/* === Pricing (Inversión por fases) === */
.pricing {
  width: 100%;
  margin-top: 1.5rem;
}

.pricing table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.pricing th,
.pricing td {
  padding: .9rem;
  border: 1px solid #e6e6e6;
  text-align: left;
}

.pricing th {
  background: #7B1E3A;
  color: #fff;
}

.pricing tr:nth-child(even) {
  background: #fafafa;
}

/* Fondo vino solo para las celdas de Fase */
.pricing td.fase-solid {
  background: #7B1E3A; /* vino */
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.fase-solid {
  display: inline-block;
  background: #7B1E3A; /* vino sólido */
  color: #fff;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ✅ Versión móvil como tarjetas apiladas */
@media(max-width:768px){
  .pricing table,
  .pricing thead,
  .pricing tbody,
  .pricing th,
  .pricing td,
  .pricing tr {
    display: block;
    width: 100%;
  }

  .pricing thead {
    display: none; /* ocultamos encabezados */
  }

  .pricing tr {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  .pricing td {
    border: none;
    padding: 0.5rem 0;
    text-align: left;
    position: relative;
  }

  .pricing td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: .3rem;
    color: #7B1E3A;
  }
}

/* === Formulario Inscríbete === */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
}

.form button {
  margin-top: 1rem;
  align-self: flex-start;
}

/* === Footer === */
.footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1.2rem;
}
.footer a {
  color: #fff;
  text-decoration: underline;
}

