@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&family=Playfair+Display:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #f7f7f7;
  text-align: center;
  color: #222;
}

/* ---------------- PORTADA ---------------- */

.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(230,30,110,0.6), rgba(250,200,220,0.6));
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero-text h3 {
  font-size: 1.7rem;
  font-weight: 300;
}

/* Responsive portada */
@media (max-width: 768px) {
  .hero {
    height: 55vh;
  }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text h2 { font-size: 1.6rem; }
  .hero-text h3 { font-size: 1.2rem; }
}

/* ---------------- CONTENEDOR CENTRAL ---------------- */

.container {
  width: 80%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
  background: #fff;
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }
}

/* Intro / logo / texto */

.logo-vm {
  width: 90px;
  margin-top: 30px;
  opacity: 0.9;
}

.intro {
  padding: 30px 20px 10px;
  background: #fff;
}

.intro-text {
  max-width: 650px;
  margin: 10px auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.faltan {
  font-family: 'Playfair Display', serif;
  margin-top: 30px;
}

/* Contador */

.contador {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contador div {
  background: linear-gradient(to bottom, #d64b79, #e8648a);
  color: white;
  padding: 15px;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 600;
}

.contador span {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* Mensaje */

.mensaje {
  padding: 40px 20px 20px;
}

.mensaje p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.datos {
  margin-top: 30px;
  display: grid;
  gap: 10px;
  justify-content: center;
}

.dato-item {
  font-size: 1rem;
}

/* RSVP */

.rsvp {
  padding: 40px 20px 10px;
  background: #fff;
}

.para {
  margin-bottom: 20px;
}

#grupoAsistentes {
  margin-top: 10px;
}

#labelAdulto {
  margin-right: 10px;
}

#asistentes {
  padding: 8px 14px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Botones */

.botones {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.si, .no {
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.si {
  background: linear-gradient(to right, #d63c72, #e95f8a);
}

.no {
  background: #777;
}

.si:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(214, 60, 114, 0.35);
}

.no:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(80,80,80,0.35);
}

.si:active, .no:active {
  transform: translateY(0px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Mensajes */

.msg {
  margin-top: 20px;
  font-weight: bold;
}

/* Error */

.error-container {
  padding: 60px 20px;
}


/* Sidebar cerrado por defecto en móviles */
@media (max-width: 768px) {
    body.sidebar-mini .main-sidebar {
        margin-left: -250px !important;
        transition: margin-left .3s ease;
    }

    body.sidebar-mini.sidebar-open .main-sidebar {
        margin-left: 0 !important;
    }

    /* Cuando el sidebar está abierto, oscurecemos el fondo */
    .sidebar-open .content-wrapper {
        pointer-events: none;
    }
}


/* Tarjetas para tablas en móvil */
@media (max-width: 768px) {

    .table-responsive table {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
    }

    .table-responsive thead {
        display: none !important;
    }

    .table-responsive tbody {
        display: block !important;
    }

    .table-responsive tbody tr {
        display: block !important;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        padding: 12px 16px;
    }

    .table-responsive tbody tr td {
        display: flex !important;
        justify-content: space-between;
        padding: 6px 0;
        border: none !important;
    }

    .table-responsive tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        margin-right: 10px;
    }

    .table-responsive tbody tr td:last-child {
        display: flex !important;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    table.table thead {
        display: none;
    }

    table.table tbody {
        display: block;
    }

    table.table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        padding: 12px 16px;
    }

    table.table tbody tr td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border: none !important;
    }

    table.table tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        margin-right: 10px;
    }

    table.table tbody tr td:last-child {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 10px;
    }
}


