/* ===========================================================
   Flor de la Feria Sanarate
   Tema: Oscuro elegante con dorado (centrado + 2x2 + alturas iguales)
   Autor: Carlos Valladares
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&family=Playfair+Display:wght@600&display=swap');

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  overflow-x: hidden;
}

/* ---- Encabezado ---- */
header {
  text-align: center;
  padding: 35px 10px 25px;
  background: linear-gradient(135deg, #d4af37, #b8860b, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
}

/* ---- Layout general ---- */
main {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Selector ---- */
.selector {
  margin: 30px auto 40px;
  text-align: center;
}

.selector label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

select {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transition: all 0.3s;
  font-size: 16px;
  width: 250px;
}

select:hover,
select:focus {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  outline: none;
}

/* ===========================================================
   Candidatas - centrado perfecto y alturas iguales
   =========================================================== */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 10px;
}

.card {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 1 260px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* asegura uniformidad */
  align-items: center;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.08),
              0 0 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: brightness(0.95);
  transition: filter 0.3s;
}

.card:hover img { filter: brightness(1.05); }

.info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px 26px;
  text-align: center;
  width: 100%;
  min-height: 150px; /* 💛 iguala la parte inferior */
}

.info h3 {
  margin: 8px 0 12px;
  font-weight: 700;
  font-size: 16px;
  color: #ffd700;
  line-height: 1.4;
  min-height: 42px;
}

/* ---- Botón ---- */
.btn-vote {
  background: linear-gradient(45deg, #ffd700, #b8860b);
  border: none;
  color: #000;
  padding: 10px 0;
  width: 80%;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  animation: subtlePulse 3s infinite ease-in-out;
  display: block;
  margin: 0 auto;
}

.btn-vote:hover {
  background: linear-gradient(45deg, #ffdb58, #ffcc00);
  transform: scale(1.05);
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255,215,0,0.4); }
  50% { box-shadow: 0 0 14px rgba(255,215,0,0.6); }
}

/* ---- Footer ---- */
footer {
  text-align: center;
  margin: 60px 0 30px;
  color: #bbb;
  font-size: 14px;
}

footer a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s;
}

footer a:hover { color: #fff; }

/* ===========================================================
   Modal
   =========================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background: #141414;
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
  color: #fff;
  text-align: center;
  animation: scaleUp 0.3s ease forwards;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #ffd700;
  cursor: pointer;
  transition: transform 0.2s;
}

.close-btn:hover {
  transform: scale(1.2);
  color: #fff;
}

.modal-content h2 {
  color: #ffd700;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
  width: 100%;
  background: #222;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 6px;
}

.modal-content .check {
  text-align: left;
  margin-top: 10px;
  font-size: 14px;
}

.modal-content .btn-send {
  width: 100%;
  margin-top: 18px;
  background: linear-gradient(45deg, #ffd700, #b8860b);
  border: none;
  color: #000;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content .btn-send:hover {
  background: linear-gradient(45deg, #ffea80, #ffcc00);
  transform: scale(1.05);
}

@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes scaleUp { from {transform: scale(0.85);} to {transform: scale(1);} }

/* ===========================================================
   Responsividad
   =========================================================== */
@media (max-width: 900px) {
  .grid {
    gap: 24px;
    justify-content: center;
  }

  .card {
    flex: 0 1 calc(50% - 24px);
    max-width: 340px;
  }
}

@media (max-width: 600px) {
  .grid {
    gap: 20px;
  }

  .card {
    flex: 0 1 calc(50% - 16px);
    max-width: 100%;
  }

  .info h3 {
    font-size: 15px;
  }

  .btn-vote {
    width: 85%;
  }
}


