/*
 * Página de inicio (index). Requiere css/common.css antes: usa variables :root del sitio.
 */
/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 550px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/home/hero.webp') left center / cover no-repeat;
}

.error {
  background: url('../img/home/whiteRabbit.webp') left center / cover no-repeat;
}

.error-content {
  margin-bottom: 20rem!important;
}

.aviso { font-size: 1.3rem!important; padding-bottom: 4rem; }
.aviso span { font-size: 2rem!important; font-weight: 700; }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 2rem;
  max-width: 840px;
  margin-bottom: 10.6rem;
}

.hero-content p { font-size: 1rem; line-height: 1.85; }

.hero-content strong,
.hero-content b {
  color: inherit;
  font-weight: 700;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Workshop */
.workshop {
  position: relative;
  padding: 5rem 0 15rem;
  overflow: hidden;
}

.workshop-bg {
  position: absolute;
  inset: 0;
  background: url('../img/home/bg-workshop.webp') center top / 100% no-repeat;
}

.workshop-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
}

.workshop .container { position: relative; z-index: 2; }

.workshop-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 3rem;
}

.workshop-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.workshop-subtitle {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--color-accent-light);
  line-height: 1.45;
  align-self: center;
  text-align: right;
}

.workshop-text {
  font-size: 0.95rem;
  line-height: 1.85;
}

.workshop-text p + p { margin-top: 1rem; }

.workshop-text a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s, background 0.2s;
}

.workshop-text a:hover {
  color: var(--color-white);
  background: var(--color-link);
  text-decoration: none;
}

/* Feature cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.feature-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.feature-card:hover img { transform: scale(1.06); }

.feature-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: var(--color-white);
  text-align: center;
  transition: background 0.4s ease;
}

.feature-card:hover .feature-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.58) 55%, rgba(0,0,0,0.28) 100%);
}

.feature-card-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.feature-card-overlay p {
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 1
}

.feature-card-overlay strong,
.feature-card-overlay b {
  color: inherit;
  font-weight: 700;
}

.feature-card-overlay .plus-icon {
  margin-top: 1rem;
  font-size: 1.6rem;
  opacity: 0.8;
}

.feature-card:hover .plus-icon { opacity: 1; }

/* Recuerdos */
.recuerdos {
  background: var(--color-bg-cream);
  padding: 8rem 0 6rem;
}

.recuerdos-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.recuerdos-text { text-align: right; }

.recuerdos-text h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.recuerdos-text h2 strong {
  font-weight: 700;
  color: inherit;
}

.recuerdos-text p {
  font-size: 1rem;
  line-height: 1.85;
  padding-left: 1.8rem;
}

.recuerdos-text a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s, background 0.2s;
}

.recuerdos-text a:hover {
  color: var(--color-white);
  background: var(--color-link);
  text-decoration: none;
}

.recuerdos-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  margin-top: -13rem;
  margin-right: -4rem;
}

.recuerdos-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.recuerdos-carousel img.active { opacity: 1; }

/* Blog */
.blog {
  padding: 5rem 0;
  background: var(--color-white);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text-emphasis);
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: block;
  background: var(--color-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-content { padding: 2rem 1.8rem 2.2rem; }

.blog-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  min-height: 3.5em;
  margin-bottom: 0.6rem;
  transition: color 0.3s;
  color: var(--color-text-emphasis);
  
}

.blog-card:hover .blog-card-content h3 { color: var(--color-accent); }

.blog-card-content p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

a.page-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: var(--color-white) !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

a.page-btn:hover {
  filter: brightness(1.08);
}


/* Responsive */
@media (max-width: 960px) {
  .hero-content { max-width: 600px; }

  .workshop { padding: 3.5rem 0 6rem; }
  .workshop-title { font-size: 2rem; letter-spacing: 0.2em; text-align: left; }
  .workshop-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .workshop-subtitle { text-align: left; }

  .feature-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
  }
  .feature-cards::-webkit-scrollbar { display: none; }
  .feature-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 0;
  }

  .recuerdos { padding: 3rem 0 4rem; }
  .recuerdos-grid { grid-template-columns: 1fr; }
  .recuerdos-text { text-align: left; }
  .recuerdos-text p { padding-left: 0; }
  .recuerdos-carousel { margin-top: 0; margin-right: 0; }

  .blog-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 1.5rem 1.5rem;
    gap: 3rem;
  }
  .blog-cards::-webkit-scrollbar { display: none; }
  .blog-card {
    flex: 0 0 calc(100vw - 3rem);
    scroll-snap-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: none;
  }
  .blog-card:hover {
    transform: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 640px) {
  .hero-content { margin-bottom: 4rem; padding: 0 1.2rem; }
  .hero-bg::after { background: rgba(0, 0, 0, 0.5); }
  .workshop-title { font-size: 1.7rem; margin-bottom: 2rem; color: var(--color-text-emphasis); font-weight: 500; }
  .workshop-subtitle { font-size: 1.5rem; font-weight: 500; padding-bottom: 1rem; }
  .recuerdos-text h2 { font-size: 2rem; }
  .blog-title { font-size: 1.25rem; }
  a.page-btn { padding: 1.1rem 2rem 1rem; font-size: 1.1rem; letter-spacing: 0;}
  .error-content { margin-bottom: 12rem!important;}
  .error { background: url('../img/home/whiteRabbit_small.webp') left center / cover no-repeat; }
  .aviso { font-size: 1.1rem!important; padding-bottom: 2rem; }
.aviso span { font-size: 1.7rem!important; font-weight: 700; }
}


