:root {
  --accent: #404c3e;
  --muted: #666;
  --bg-light: #f5f7ec;
  --border: #dac5a6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  line-height: 1.6;
  color: #111;
  background: var(--bg-light);
}

/* Header y carousel */
header {
  position: relative;
  width: 100%;
  height: 80vh;       /* altura inicial */
  min-height: 400px;  /* evita que sea demasiado pequeño en móviles */
  overflow: hidden;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slides img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* mantiene proporción y rellena todo el contenedor */
}

/* Hero text sigue igual que antes */
.hero-text {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 10;
  padding: 0 1rem;
  text-shadow: 
    0 2px 4px rgba(0,0,0,0.6),
    0 4px 8px rgba(0,0,0,0.5),
    0 6px 12px rgba(0,0,0,0.4);
}

.hero-text h1 {
  font-family: 'Parisienne', cursive;
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-text .meta {
  color: #f5f5f5;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.countdown .cell {
  background: rgba(0,0,0,.3);
  padding: .7rem 1rem;
  border-radius: .8rem;
  min-width: 70px;
  backdrop-filter: blur(4px);
  font-weight: bold;
  color: #fff;
}

/* Ajustes de tipografía responsivos (solo tamaño) */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 3.5rem; }
  .hero-text .meta { font-size: 0.95rem; }
}

@media (max-width: 820px) {
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text .meta { font-size: 0.9rem; }
  .countdown .cell { font-size: 0.9rem; padding: 0.6rem 0.8rem; }
}

@media (max-width: 500px) {
  .hero-text h1 { font-size: 2.2rem; }
  .hero-text .meta { font-size: 0.8rem; }
  .countdown .cell { font-size: 0.8rem; padding: 0.5rem 0.6rem; }
}
.site-width {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Carousel */
.carousel-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,.6);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background-color .3s;
  z-index: 5;
}
.carousel button:hover {
  background-color: rgba(255,255,255,.9);
}
.prev { left: 10px; }
.next { right: 10px; }

/* Main / Cards / Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.two-col {
  grid-template-columns: 1fr;
}
.card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.card img {
  width: 100%;
  display: block;
}
.card .inner {
  padding: 1.2rem;
}

section:first-of-type {
  padding-top: 3rem; /* ajustá el valor a tu gusto */
}


/* Botones unificados */
.btn,
button.btn {
  display: inline-block;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover,
button.btn:hover {
  background: #6f867c;
  transform: translateY(-2px);
}

.map-link {
  color: var(--accent);
  text-decoration: underline;
}

/* Form */
form label { display: block; font-weight: 600; margin: .5rem 0 .25rem; }
input[type=text],
input[type=email],
select,
textarea {
  width: 100%;
  padding: .6rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color .2s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}
.radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Títulos específicos sin tocar HTML */
h2:first-of-type {
  padding-top: 3rem; /* Confirmación de asistencia */
}

/* Si está en otra sección y es el último h2 */
section:last-of-type h2 {
  padding-top: 3rem; /* Armá la fiesta con nosotros */
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}

/* Responsive */
@media (min-width: 820px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  header { height: 100vh; }
  .hero-text h1 { font-size: 5rem; }
}

.info-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.info-sections .info-img {
  display: block;
  width: 20%;
  max-width: 36px;
  height: auto;
  margin-top: 1rem;
}
@media (min-width: 820px) {
  .info-sections {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
  .info-sections > div { flex: 1; padding: 0; }
}
@media (max-width: 820px) {
  .info-sections { flex-direction: column; gap: 2rem; }
  .info-sections .info-img { width: 30%; max-width: 60px; margin: 1rem auto 0; }
}

/* ===================== */
/* Momentos Únicos       */
/* ===================== */
.momentos-section {
  margin: 4rem 0;
  text-align: center;
}

.momentos-section h2 {
  text-align: left;
  margin-bottom: 2rem;
  color: var(--accent);
}

.momentos-carousel-container {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.momentos-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.momentos-slides img {
  flex: 0 0 auto;
  max-height: 360px; /* altura vertical */
  width: auto;       /* mantiene proporción */
  margin-right: 1rem;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.momentos-slides img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.momentos-carousel-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.6);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background-color 0.3s;
  z-index: 10;
}

.momentos-carousel-container button:hover {
  background-color: rgba(255,255,255,0.9);
}

.momentos-prev { left: 10px; }
.momentos-next { right: 10px; }

/* Responsive */
@media (max-width: 820px) {
  .momentos-slides img {
    max-height: 280px;
  }
}

@media (max-width: 500px) {
  .momentos-slides img {
    max-height: 200px;
    margin-right: 0.5rem;
  }
}

/* ==== Modal para ampliar imágenes ==== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  flex-direction: column;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-modal.show {
  display: flex;
}

.image-modal img:hover {
  transform: scale(1.02);
}

.momentos-slides img {
  cursor: pointer;
}

/* Botón de cerrar solo en mobile/touch */
.close-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 50%;
  z-index: 1010;
}

@media (hover: none) and (pointer: coarse) {
  .image-modal { cursor: default; }
  .close-btn { display: block; }
}



