/* ═══════════════════════════════════════════════
   TOKENS
════════════════════════════════════════════════ */
:root {
  --gold:        #C9A96E;
  --gold-light:  #E8D5B0;
  --gold-dark:   #A07A45;
  --cream:       #FAF6F0;
  --blush:       #F0E6DC;
  --dark:        #2C1A10;
  --medium:      #6B4E3D;
  --muted:       #A89080;
  --white:       #FFFDF9;

  --serif:       'Playfair Display', Georgia, serif;
  --elegant:     'Cormorant Garamond', Georgia, serif;
  --sans:        'Lato', system-ui, sans-serif;

  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .3s;
}

/* ═══════════════════════════════════════════════
   RESET
════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════
   NAV
════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  padding: 1.6rem 2rem;
  transition: background var(--t) var(--ease), padding var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.nav.scrolled {
  background: rgba(250, 246, 240, .94);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 24px rgba(44,26,16,.08);
}
.nav ul { list-style: none; display: flex; justify-content: center; gap: 3rem; }
.nav a {
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color var(--t);
}
.nav.scrolled a { color: var(--dark); }
.nav a:hover   { color: var(--gold); }

/* ═══════════════════════════════════════════════
   HERO
   ▸ Reemplaza images/hero.jpg con la foto de los novios.
     Si el archivo no existe se muestra el gradiente.
════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2C1A10;
}

/* Carrusel horizontal de fondo del hero */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 2.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,8,2,.45) 0%,
    rgba(20,8,2,.65) 55%,
    rgba(20,8,2,.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem 1.5rem;
}

.pre-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: .04em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}

.amp {
  font-style: italic;
  color: var(--gold-light);
}

.wedding-date {
  font-family: var(--elegant);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: .28em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.ornament {
  font-size: 1.4rem;
  color: var(--gold-light);
  opacity: .7;
  margin: 1.2rem 0;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin: 1.8rem 0 2.2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}

.count {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(3.4rem, 7.5vw, 5.8rem);
  font-weight: 100;
  line-height: 1;
  letter-spacing: .18em;
  color: rgba(255,255,255,.95);
  text-shadow: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.count.tick {
  opacity: .4;
  transform: translateY(-6px);
}

.cd-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .56rem;
  font-weight: 200;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: .65rem;
  opacity: .6;
}

.cd-sep {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 100;
  color: var(--gold-light);
  opacity: .3;
  padding-bottom: 1.4rem;
  align-self: flex-start;
  margin-top: .3rem;
  letter-spacing: 0;
}

.hero-cta {
  display: inline-block;
  padding: .85rem 2.6rem;
  border: 1px solid rgba(232,213,176,.7);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: background var(--t), border-color var(--t);
}
.hero-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   SECTIONS — SHARED
════════════════════════════════════════════════ */
.section { padding: 6rem 2rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-pre {
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--dark);
  margin-bottom: 1.1rem;
}

.section-line {
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.section-desc {
  margin-top: 1.4rem;
  font-family: var(--elegant);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--medium);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   HISTORIA — COLLAGE
════════════════════════════════════════════════ */
.historia-section { background: var(--white); }

/* Base de todos los collages */
.collage {
  max-width: 1100px;
  margin: 0 auto 0;
  display: grid;
  gap: 8px;
  padding: 0 2rem;
}

/*
  Bloque A — 4 col
  [9 portrait·r1-3] [7 land·r1] [15 land·r1] [4 portrait·r1-3]
                    [6 land·r2] [11 land·r2]
*/
.collage-a {
  grid-template-columns: 1fr 1.4fr 1.4fr 1fr;
  grid-template-rows: 270px 270px;
}
.collage-a .ci:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.collage-a .ci:nth-child(2) { grid-column: 2; grid-row: 1; }
.collage-a .ci:nth-child(3) { grid-column: 3; grid-row: 1; }
.collage-a .ci:nth-child(4) { grid-column: 4; grid-row: 1 / 3; }
.collage-a .ci:nth-child(5) { grid-column: 2; grid-row: 2; }
.collage-a .ci:nth-child(6) { grid-column: 3; grid-row: 2; }

/*
  Bloque B — 3 col
  [12 portrait·r1-2] [20 land·r1]  [21 portrait·r1-2]
                     [13 land·r2]
  [18 land·r3]       [25 portrait·r3-4] [16 land·r3]
  (fila 3 sin portrait, solo paisajes)
*/
.collage-b {
  grid-template-columns: 1fr 1.6fr 1fr;
  grid-template-rows: 260px 260px 220px;
}
.collage-b .ci:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.collage-b .ci:nth-child(2) { grid-column: 2; grid-row: 1; }
.collage-b .ci:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.collage-b .ci:nth-child(4) { grid-column: 2; grid-row: 2; }
.collage-b .ci:nth-child(5) { grid-column: 1; grid-row: 3; }
.collage-b .ci:nth-child(6) { grid-column: 2; grid-row: 3; }
.collage-b .ci:nth-child(7) { grid-column: 3; grid-row: 3; }

/*
  Bloque C — 4 col
  [8 portrait·r1-3] [10 land·r1] [17 land·r1] [26 portrait·r1-3]
                    [19 land·r2] [23 land·r2]
  [14 portrait·r3]  [24 land·r3·2col        ]
*/
.collage-c {
  grid-template-columns: 1fr 1.4fr 1.4fr 1fr;
  grid-template-rows: 270px 270px 240px;
}
.collage-c .ci:nth-child(1) { grid-column: 1;     grid-row: 1 / 3; }
.collage-c .ci:nth-child(2) { grid-column: 2;     grid-row: 1; }
.collage-c .ci:nth-child(3) { grid-column: 3;     grid-row: 1; }
.collage-c .ci:nth-child(4) { grid-column: 4;     grid-row: 1 / 3; }
.collage-c .ci:nth-child(5) { grid-column: 2;     grid-row: 2; }
.collage-c .ci:nth-child(6) { grid-column: 1;     grid-row: 3; }
.collage-c .ci:nth-child(7) { grid-column: 2 / 4; grid-row: 3; }
.collage-c .ci:nth-child(8) { grid-column: 4;     grid-row: 3; }

/* Retratos: object-position arriba para no cortar cabezas */
.ci-portrait img { object-position: top center; }

/* Separador entre bloques */
.historia-divider {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.8rem 0;
}
.historia-divider span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .6;
}

.ci {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #e8e0d8;
}

.ci img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ci:hover img { transform: scale(1.0); }

/* Caption — always visible at bottom */
.ci-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(20,8,2,.82) 0%, transparent 100%);
  color: #fff;
}

.ci-year {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}

.ci-caption p {
  font-family: var(--elegant);
  font-style: italic;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin-top: .2rem;
}

/* Placeholder shown when image fails to load */
.ci-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  pointer-events: none;
}
.ci-placeholder span { font-size: 2.2rem; opacity: .5; }
.ci-placeholder p {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  font-style: normal !important;
  margin-top: 0 !important;
}

/* ═══════════════════════════════════════════════
   GALERÍA
════════════════════════════════════════════════ */
.galeria-section { background: var(--dark); }
.galeria-section .section-pre  { color: var(--gold); }
.galeria-section .section-title { color: var(--gold-light); }
.galeria-section .section-line  { background: var(--gold); }

.galeria-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 8px;
}

/* layout pins */
.gi:nth-child(2) { grid-row: span 2; }   /* tall */
.gi:nth-child(5) { grid-column: span 2; } /* wide */
.gi:nth-child(8) { grid-column: span 2; } /* wide */

.gi {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  cursor: zoom-in;
}

.gi img {
  transition: transform .5s var(--ease), opacity .3s;
}
.gi:hover img { transform: scale(1.08); }

.gi-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: .35;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10,4,2,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: .5rem;
  transition: color var(--t);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-close { top: 1.4rem; right: 1.8rem; font-size: 1.4rem; }
.lb-prev  { left: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ═══════════════════════════════════════════════
   DETALLES DEL DÍA
════════════════════════════════════════════════ */
.detalles-section { background: var(--blush); }

.detalles-grid {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  max-width: 920px;
  margin: 0 auto;
}

.detalle-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
  flex: 1;
  min-width: 210px;
  max-width: 270px;
  border-radius: 3px;
  box-shadow: 0 6px 28px rgba(44,26,16,.07);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.detalle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,26,16,.12);
}
.detalle-icon {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detalle-icon svg {
  width: 58px;
  height: 58px;
  color: var(--gold);
  stroke: currentColor;
  transition: transform .3s var(--ease);
}
.detalle-card:hover .detalle-icon svg {
  transform: scale(1.1);
}

.detalle-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: .7rem;
}
.detalle-card p {
  font-family: var(--elegant);
  font-size: 1rem;
  color: var(--medium);
  line-height: 1.6;
}
.detalle-time {
  font-size: 1.45rem !important;
  color: var(--gold) !important;
  margin-top: .5rem !important;
  font-weight: 400 !important;
}

.detalle-maps {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  padding: .45rem .9rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.detalle-maps svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.detalle-maps:hover {
  background: var(--gold);
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   RSVP FORM
════════════════════════════════════════════════ */
.rsvp-section { background: var(--cream); }

.rsvp-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label,
.form-group > label:first-child {
  display: block;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--medium);
  margin-bottom: .6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .82rem 1rem;
  border: 1px solid #D9C9BC;
  border-radius: 2px;
  background: var(--white);
  font-family: var(--elegant);
  font-size: 1.05rem;
  color: var(--dark);
  outline: none;
  appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.12);
}
.form-group input.error { border-color: #c0392b; }
.field-error {
  display: block;
  margin-top: .35rem;
  font-size: .78rem;
  color: #c0392b;
  font-family: var(--sans);
}

.form-group textarea { resize: vertical; }

/* Radio */
.radio-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.radio-group--4 { gap: 1.2rem; }

.radio-opt {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  font-family: var(--elegant) !important;
  font-size: 1.05rem !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--dark) !important;
}
.radio-opt input[type="radio"] { display: none; }
.radio-circle {
  width: 19px;
  height: 19px;
  border: 1.5px solid #C9A96E;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--t), box-shadow var(--t);
}
.radio-opt input:checked + .radio-circle {
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 1.05rem 2rem;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t) var(--ease);
  position: relative;
  margin-top: .5rem;
}
.btn-submit:hover     { background: var(--gold); }
.btn-submit:active    { transform: scale(.99); }
.btn-submit.loading .btn-text    { visibility: hidden; }
.btn-submit.loading .btn-loading { display: block; }
.btn-loading {
  display: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.btn-submit:not(.loading) .btn-loading { display: none; }

/* Success */
.rsvp-ok {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.ok-icon { font-size: 3.8rem; margin-bottom: 1.4rem; }
.rsvp-ok h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .9rem;
}
.rsvp-ok p {
  font-family: var(--elegant);
  font-size: 1.1rem;
  color: var(--medium);
}

/* ═══════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  text-align: center;
  padding: 3.2rem 2rem;
}
.footer-names {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: .4rem;
}
.footer-date {
  font-family: var(--elegant);
  font-size: 1rem;
  letter-spacing: .24em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.4rem;
}
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.22);
}

/* ═══════════════════════════════════════════════
   UTILITY
════════════════════════════════════════════════ */
.hidden { display: none !important; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger child reveals */
.collage .ci {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.collage.visible .ci:nth-child(1) { opacity:1; transform:none; transition-delay: .04s; }
.collage.visible .ci:nth-child(2) { opacity:1; transform:none; transition-delay: .10s; }
.collage.visible .ci:nth-child(3) { opacity:1; transform:none; transition-delay: .16s; }
.collage.visible .ci:nth-child(4) { opacity:1; transform:none; transition-delay: .22s; }
.collage.visible .ci:nth-child(5) { opacity:1; transform:none; transition-delay: .28s; }
.collage.visible .ci:nth-child(6) { opacity:1; transform:none; transition-delay: .34s; }
.collage.visible .ci:nth-child(7) { opacity:1; transform:none; transition-delay: .40s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Tablet: A y C pasan a 2 col, B mantiene 3 */
  .collage-a,
  .collage-c {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .collage-a .ci,
  .collage-c .ci {
    grid-column: unset !important;
    grid-row: unset !important;
    height: 220px;
  }
  /* retratos más altos en 2 col */
  .collage-a .ci.ci-portrait,
  .collage-c .ci.ci-portrait { height: 320px; }

  .collage-b {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 220px 220px 200px;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 180px);
  }
  .gi:nth-child(2) { grid-row: span 1; }
  .gi:nth-child(5),
  .gi:nth-child(8) { grid-column: span 1; }
}

@media (max-width: 640px) {
  .nav ul   { gap: 1rem; }
  .nav a    { font-size: .62rem; letter-spacing: .1em; }
  .form-row { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; gap: .9rem; }

  .collage-a .ci,
  .collage-b .ci,
  .collage-c .ci { height: 170px; }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 160px);
  }
}

@media (max-width: 420px) {
  .collage-a,
  .collage-b,
  .collage-c { grid-template-columns: 1fr; }
  .collage-a .ci,
  .collage-b .ci,
  .collage-c .ci { grid-column: 1 !important; height: 200px; }
  .ci:nth-child(1) { grid-row: 1; }
  .ci:nth-child(2) { grid-row: 2; }
  .ci:nth-child(3) { grid-row: 3; }
  .ci:nth-child(4) { grid-row: 4; }
  .ci:nth-child(5) { grid-row: 5; }
  .ci:nth-child(6) { grid-row: 6; }

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 140px);
  }

  .cd-sep { font-size: 1.8rem; }
  .countdown-item { min-width: 56px; }
}
