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

:root {
  --slate:        #4d6272;
  --slate-dark:   #3d4f5d;
  --slate-footer: #5a6e7e;
  --cream:        #f5f2ec;
  --white:        #ffffff;
  --marble:       #e8e8ea;
  --marble-dark:  #d8d8da;
  --text:         #2c2c2c;
  --text-muted:   #8a8a9a;
  --gold:         #c9a94a;
  --radius:       18px;
  --radius-sm:    10px;
  --shadow:       0 4px 18px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 36px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--marble);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- NAVBAR (Restaurado a tu diseño sticky y tu HTML exacto) --------------- */
nav {
  background: var(--slate);
  border-radius: 50px;
  max-width: 1100px;
  width: calc(100% - 48px);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;        /* fixed desde el inicio */
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  box-shadow: var(--shadow);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.nav-hero {
  background: var(--slate); /* mismo color, sin transparencia */
  box-shadow: var(--shadow);
}

/* fuera del hero vuelve al color sólido normal */
nav.nav-solid {
  background: var(--slate);
  box-shadow: var(--shadow);
}

nav.sticky {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.2rem;
}
.nav-icons { display: flex; align-items: center; gap: 14px; }
.nav-n {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--cream);
  font-size: 1.15rem;
  opacity: 0.85;
}
.nav-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-icons svg {
  fill: var(--cream);
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-icons a:hover svg { opacity: 1; }


/* ══════════════════════════════════════
   HERO BANNER
══════════════════════════════════════ */
.hero-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.hero-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  display: inline-block;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  color: var(--slate-dark);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  width: fit-content;
}

/* ══════════════════════════════════════
   ABOUT / POLAROIDS
══════════════════════════════════════ */
.about-section {
  position: relative;
  background: var(--cream);
  border-radius: 30px 30px 0 0;  /* más pronunciado */
  margin-top: -30px;              /* sube más para tapar el borde del hero */
  z-index: 3;                     /* encima del hero-banner */
    padding: 60px 20px 80px; 
  display: flex;
  align-items: center;
  justify-content: center;
   min-height: 520px; 
  overflow: hidden;
}

/* Estrella SVG de fondo */
.star-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 480px; 
  pointer-events: none;
  z-index: 0;
}
.star-bg svg { width: 100%; height: auto; }

/* Polaroids */
.polaroid {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 4px;
  padding: 10px 10px 32px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.16);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.polaroid:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ccc;
  display: block;
}

/* Si la imagen no carga */
.polaroid img[src="about-photo.jpg"],
.polaroid img[src="final-photo.jpg"] {
  background: #c8d0d8;
  min-height: 130px;
}

.polaroid span {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--slate-dark);
  font-style: italic;
  text-align: center;
}

.polaroid-left {
  transform: rotate(-6deg) translateX(-40px);
}
.polaroid-right {
  transform: rotate(5deg) translateX(30px) translateY(-20px);
}

/* ══════════════════════════════════════
   WEEKS GRID
══════════════════════════════════════ */
.weeks-section {
  padding: 50px 32px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.weeks-title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Tarjeta de semana */
.week-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  text-decoration: none;
  color: var(--text-muted);
  box-shadow: 0 2px 14px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.75);
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Línea de acento superior en hover */
.week-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--slate), var(--slate-footer));
  opacity: 0;
  transition: opacity 0.22s;
  border-radius: 16px 16px 0 0;
}

.week-card:hover {
  background: rgba(255,255,255,0.96);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(77,98,114,0.15), 0 2px 6px rgba(0,0,0,0.06);
}
.week-card:hover::before { opacity: 1; }

/* Contenedor número + nombre */
.week-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.week-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  letter-spacing: -0.01em;
}

.week-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.35;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

/* Botón flecha circular */
.week-arrow {
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--slate);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 14px;
  transition: background 0.2s, transform 0.22s;
}

.week-card:hover .week-arrow {
  background: var(--slate-dark);
  transform: translateX(4px);
}

/* Tarjeta Final Proyect — ocupa 2 columnas */
.week-final {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(77,98,114,0.08) 0%, rgba(255,255,255,0.85) 60%);
}
.week-final .week-num {
  font-size: 1.6rem;
}
.week-final .week-name {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 1;
  color: var(--slate-dark);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  background: var(--slate-footer);
  padding: 46px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-section h4 {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 9px 28px;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.social-link:hover { opacity: 0.8; }

.ig-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ig-icon svg {
  fill: var(--white);
  width: 20px;
  height: 20px;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
══════════════════════════════════════ */
@media (max-width: 900px) {
  .weeks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .week-final { grid-column: span 3; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MÓVIL (≤600px)
══════════════════════════════════════ */
@media (max-width: 600px) {
  .weeks-section { padding: 36px 14px 60px; }
  .weeks-title { font-size: 1.5rem; margin-bottom: 24px; }

  .weeks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .week-final { grid-column: span 2; }

  .week-card { min-height: 120px; padding: 16px 14px 14px; }
  .week-num  { font-size: 1.5rem; }
  .week-name { font-size: 0.72rem; }
  .week-arrow { width: 28px; height: 28px; font-size: 0.78rem; }

  .polaroid { width: 130px; }
  .polaroid-left  { transform: rotate(-6deg) translateX(-24px); }
  .polaroid-right { transform: rotate(5deg) translateX(16px) translateY(-16px); }

  footer { grid-template-columns: 1fr; gap: 32px; }

  .hero {
    height: 64vw;
    max-height: 320px;
  }
}

@media (max-width: 360px) {
  .polaroid { width: 110px; }
  nav { padding: 9px 16px; }
  .nav-logo { font-size: 1rem; }
  .week-num { font-size: 1.25rem; }
}
