/* recursos.css – Paleta Melocotón/Rosado, Overlay, Galería, Recursos, Redes Sociales, Footer & Lightbox */

/* 1. Variables de color */
:root {
  --rosado-light:   #FFD1DC;   /* rosado suave (overlay) */
  --melocoton:      #FFB997;   /* melocotón principal */
  --rosado:         #FF9AA2;   /* rosado intenso (franjas) */
  --text-dark:      #663C00;   /* texto oscuro */
  --overlay-alpha:  0.15;      /* 15% opacidad overlay */
  --stripe-alpha:   0.7;       /* 20% opacidad franjas */
}

/* 2. Reset y box‑sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 3. Fondo e overlay */
body.pagina-recursos {
  position: relative;
  font-family: 'Caveat', cursive;
  color: var(--text-dark);
  background: url("../assets/fondo-recursos.png") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}
.overlay-recursos {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,209,220,var(--overlay-alpha));
  backdrop-filter: blur(4px);
  pointer-events: none;
  z-index: 0;
}

/* 4. Header y navegación */
body.pagina-recursos header {
  position: relative; z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,154,162,var(--stripe-alpha));
}
body.pagina-recursos header h1 {
  font-size: 2.8rem;
  color: var(--text-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}
.nav-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn-recursos {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 30px;
  background: radial-gradient(circle at top left, var(--rosado-light), var(--melocoton));
  color: var(--text-dark);
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-recursos:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 5. Galería de fondos de pantalla */
.wallpapers-gallery {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
}
.wallpapers-gallery h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.wallpapers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.wallpapers-grid figure {
  background: var(--rosado-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin: 0 auto;
  max-width: 200px;
}
.wallpapers-grid figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.wallpapers-grid img {
  width: 100%;
  display: block;
}
.wallpapers-grid figcaption {
  padding: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* 6. Lista de otros recursos */
.resource-list {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(255,154,162,var(--stripe-alpha));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.resource-list h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
.resource-list ul {
  list-style: none;
}
.resource-list li {
  margin-bottom: 0.8rem;
}
.resource-list a {
  text-decoration: none;
  color: var(--rosado-light);
  font-weight: bold;
  transition: color 0.3s;
}
.resource-list a:hover {
  color: var(--melocoton);
}

/* 7. Sección “Síguenos” */
#redes {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 3rem auto 1rem;
  text-align: center;
}
#redes h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-decoration: none;
  color: var(--text-dark);
  background: rgba(255,154,162,var(--stripe-alpha));
  padding: 0.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.social-icon.square {
  border-radius: 6px;
}
.social-icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
}
.social-icon-label {
  font-size: 0.9rem;
}
.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background: rgba(255,154,162,1);
}

/* 8. Footer */
footer {
  position: relative; z-index: 1;
  background: rgba(255,154,162,var(--stripe-alpha));
  color: var(--text-dark);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.footer-section h3 {
  margin-bottom: 0.5rem;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.footer-section a:hover {
  color: var(--melocoton);
}
footer p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* 9. Lightbox Preview */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.lightbox.show {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
}

/* 10. Responsive */
@media (max-width: 768px) {
  .wallpapers-grid {
    grid-template-columns: 1fr 1fr;
  }
}
