@import url("variables.css");

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}

/* ---------- HEADER ---------- */

.header {
  border-bottom: 1px solid #ddd;
}


.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
}

/* ---------- MENÚ ---------- */

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu {
  display: none;
  flex-direction: column;
}

.menu a {
  padding: 1rem;
  text-decoration: none;
  color: var(--color-text);
  border-top: 1px solid #eee;
}

.menu.open {
  display: flex;
}

/* ---------- MAIN ---------- */

main {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

/* ---------- DESKTOP ---------- */

@media (min-width: 768px) {
  .menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
  }

  .menu-toggle {
    display: none;
  }

  .menu a {
    border: none;
  }
}
/* ---------- FORM RSVP ---------- */

/* ---------- FORMULARIO CONFIRMACIÓN ---------- */

form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
}


input,
select,
textarea {
  padding: 0.8rem 0.9rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.90rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 180, 150, 0.25);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* Botón enviar */

button[type="submit"] {
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: var(--color-primary);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

button[type="submit"]:hover {
  background: var(--color-secondary);
  color: white;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* ---------- HERO HOME ---------- */

.hero {
  height: 80vh;
  background-image: url("../images/hero/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.45);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  max-width: 90%;
}

.hero h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-date {
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
}

/* Desktop */
@media (min-width: 768px) {
  .hero h2 {
    font-size: 3.5rem;
  }

  .hero-text {
    font-size: 1.1rem;
  }
}
/* ---------- UBICACIÓN ---------- */

.location {
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.location h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.location-name {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.location-button {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.8rem 1.8rem;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
}

.map-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Desktop */
@media (min-width: 768px) {
  .location h2 {
    font-size: 2rem;
  }
}
/* ---------- COUNTDOWN ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop */
@media (min-width: 768px) {
  .countdown {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}


.countdown div {
  background: rgba(255,255,255,0.15);
  padding: 1rem;
  border-radius: 12px;
  min-width: 80px;
}

.countdown span {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
}

.countdown small {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* ---------- MODAL CONFIRMACIÓN ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 90%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ---------- ÁLBUM DE RECUERDOS ---------- */

.album {
  padding: 2rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.album h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.album-text {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.album-qr {
  margin: 2rem 0;
}

.album-qr img {
  width: 220px;
  max-width: 80%;
  border-radius: 12px;
}

.album-note {
  font-size: 0.85rem;
  opacity: 0.8;
}
.album-link {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.8rem;
  background: var(--color-primary);
  color: var(--color-text);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
}
.form-note {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
  font-style: italic;
}
/* ---------- SELECT (DESPLEGABLES) ---------- */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath fill='%23999' d='M7 10L0 0h14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;

  padding-right: 2.5rem;
  cursor: pointer;
}

select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 180, 150, 0.25);
}
/* ---------- BUSES ---------- */

.buses {
  padding: 2rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.buses h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.buses-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.bus-section {
  margin-bottom: 2.5rem;
}

.bus-section h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.bus-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.bus-list li {
  margin-bottom: 0.8rem;
}

.bus-list a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.bus-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
  font-style: italic;
}
/* ---------- BUSES · COLUMNAS ---------- */

.bus-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.bus-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
}

.bus-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.bus-place {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.bus-map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bus-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bus-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 500;
}

/* Desktop */
@media (min-width: 768px) {
  .bus-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ---------- HEADER SIMPLE ---------- */

.header {
  padding-left:2rem;
  padding-right:2rem;
  padding-top: 1.5rem;
}



/* Logo izquierda */
.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
}

/* Flor centrada */


/* Menú centrado */


.menu-centered a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
}
/* ---------- HEADER · AJUSTE MÓVIL FLOR ---------- */

/* ---------- HEADER · FLOR INLINE EN MÓVIL ---------- */



/* ---------- FOOTER FINAL ---------- */

.footer {
  /*margin-top: 4rem;*/
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
  opacity: 0.85;
}

.footer-floral {
  width: 90px;
  margin-bottom: 1.2rem;
  opacity: 0.7;
}

.footer-names {
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Desktop */
@media (min-width: 768px) {
  .footer-floral {
    width: 120px;
  }

  .footer-names {
    font-size: 1.2rem;
  }
}
/* ---------- HEADER · GRID DEFINITIVO ---------- */

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 1rem;
}

/* Título centrado */
.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

/* Logo */
.header-title .logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  white-space: nowrap;
}

/* Ramas */
.header-floral {
  width: 120px;
  opacity: 0.8;
}

.header-floral.left {
  transform: scaleX(-1);
}

/* Botón menú */
.menu-toggle {
  justify-self: end;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 767px) {
  .header-grid {
    grid-template-columns: auto auto;
  }

  .header-title {
    gap: 0.4rem;
  }

  .header-floral {
    width: 50px;
  }

  .header-title .logo {
    font-size: 1.3rem;
  }
}
/* ---------- HEADER DEFINITIVO ---------- */

.header {
  border-bottom: 1px solid #ddd;
  padding: 1.2rem 2rem;
}

/* Grid del header */
.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Centro: título */
.header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

/* Logo */
.header-title .logo {
  font-family: var(--font-title);
  font-size: 2rem;
  white-space: nowrap;
}

/* Ramas */
.header-floral {
  width: 140px;
  opacity: 0.8;
}

.header-floral.left {
  transform: scaleX(-1);
}

/* Menú hamburguesa */
.menu-toggle {
  justify-self: end;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

/* ---------- MÓVIL ---------- */

@media (max-width: 767px) {
  .header {
    padding: 1rem;
  }

  .header-title {
    gap: 0.4rem;
  }

  .header-floral {
    width: 55px;
  }

  .header-title .logo {
    font-size: 1.4rem;
  }
}
