/* =========================================================
   SON NUESTROS - Estilos Generales
   ========================================================= */

/* ============= BASE ============= */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  background: #E9E3D0; /* Arena papel */
  color: #3B2E25;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  color: #3A2F24; /* Marrón oscuro */
  font-weight: 700;
}

p { line-height: 1.6; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(57, 92, 107, 0.9); /* Azul acero translúcido */
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.logo a {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #3A2F24;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #EDEBE6;
  transition: color 0.3s ease;
}

.menu li a:hover { color: #FFF; }

/* =========================================================
   HERO (Portada principal con imagen de fondo)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: inset 0 -20px 30px rgba(0,0,0,0.15);

  /* Fondo satelital con parallax */
  background: url("../img/fondo/fondo.png") no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  background-position: center top -100px; /* 🔹 desplaza 100px hacia arriba */
}

/* Capa de gradiente global para oscurecer sutilmente */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* Contenedor de texto central con fondo translúcido */
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35); /* Fondo oscuro solo detrás del texto */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  backdrop-filter: blur(2px); /* Suaviza la textura debajo */
}

.hero-text h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: #FAF8F4; /* Beige cálido */
  text-shadow: 0 3px 8px rgba(0,0,0,0.75);
}

.hero-text p {
  font-size: 1.05rem;
  color: #FAF8F4;
  text-shadow: 0 3px 8px rgba(0,0,0,0.75);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Botón principal */
.btn {
  background: #3B2E25;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #46372B;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: scale(1.05);
}

/* =========================================================
   SECCIÓN: Historias / Excombatientes
   ========================================================= */
.historias {
  background: #EDE8DC;
  text-align: center;
  padding: 5rem 1rem;
}

.historias h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #3A2F24;
}

/* =========================================================
   SECCIÓN: Proyecto
   ========================================================= */
.proyecto {
  background: #F5F2EA;
  text-align: center;
  padding: 5rem 1rem;
}

.proyecto-box {
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.proyecto-box h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #3A2F24;
}

.proyecto-box p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Botón secundario */
.btn-secundario {
  background: transparent;
  color: #3A2F24;
  border: 2px solid #3A2F24;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background: #3A2F24;
  color: #fff;
}

/* =========================================================
   SECCIÓN: Retratos (imágenes tipo Polaroid)
   ========================================================= */
.retrato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
}

.retrato {
  display: block;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.retrato img {
  width: 100%;
  height: auto;
  max-width: 480px;
  transform-origin: center center;
  border-radius: 6px;
  filter: drop-shadow(0px 6px 10px rgba(0,0,0,0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.retrato:hover img {
  transform: scale(1.1) translateY(-10px);
  filter: drop-shadow(0px 14px 22px rgba(0,0,0,0.35));
}

/* Leve inclinación alternada tipo "foto sobre mesa" */
.retrato:nth-child(odd) img { transform: rotate(-1.5deg); }
.retrato:nth-child(even) img { transform: rotate(1.5deg); }

/* =========================================================
   PLACEHOLDER (cuando no hay imagen)
   ========================================================= */
.placeholder {
  background: #D9D3C7;
  color: #3A2F24;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  width: 280px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  opacity: 0.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { font-size: 1rem; }
  .cards-grid { gap: 1.2rem; }
}

/* =========================================================
   SECCIÓN: SOBRE NOSOTROS (versión plana ampliada)
   ========================================================= */
.intro {
  background: #E9E3D0; /* Fondo liso arena papel */
  padding: 6rem 5rem; /* 🔹 Más aire lateral */
  text-align: center;
}

.intro h1 {
  font-size: 2.6rem;
  color: #3A2F24;
  margin-bottom: 2rem;
  font-family: 'Merriweather', serif;
}

.intro p {
  font-size: 1.12rem;
  color: #3B2E25;
  line-height: 2; /* 🔹 Leve incremento para compensar el ancho mayor */
  max-width: 1100px; /* 🔹 Antes 850px, ahora más ancho */
  margin: 0 auto;
  text-align: justify; /* 🔹 Opcional: da apariencia editorial más cuidada */
}



/* ---- EQUIPO ---- */
.equipo {
  background: #F5F2EA;
  text-align: center;
  padding: 6rem 2rem;
}

.equipo h2 {
  font-size: 2rem;
  color: #3A2F24;
  margin-bottom: 1.5rem;
}

.equipo p {
  max-width: 850px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3B2E25;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.miembro img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

.miembro h3 {
  font-size: 1.2rem;
  color: #3A2F24;
  margin-bottom: 0.5rem;
}

.miembro p {
  font-size: 0.95rem;
  color: #4B3F36;
  line-height: 1.6;
}

/* ---- VIDEO ---- */
.video {
  background: #EDE8DC;
  text-align: center;
  padding: 6rem 2rem;
}

.video-box {
  max-width: 900px;
  margin: 0 auto;
}

.video-box h2 {
  font-size: 2rem;
  color: #3A2F24;
  margin-bottom: 1rem;
}

.video-box p {
  color: #3B2E25;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   SECCIÓN: LIBRO DIGITAL
   ========================================================= */
.libro-digital {
  text-align: center;
  padding: 7rem 2rem;
}

.libro-digital h2 {
  font-size: 2.3rem;
  color: #3A2F24;
  margin-bottom: 1.5rem;
  font-family: 'Merriweather', serif;
}

.libro-digital p {
  font-size: 1.1rem;
  color: #3B2E25;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.libro-digital .btn {
  background: #3B2E25;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.libro-digital .btn:hover {
  background: #46372B;
  transform: scale(1.07);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #395C6B; /* Azul acero del navbar */
  color: #EDEBE6;
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 1.5rem;
}

.footer h3 {
  font-family: 'Merriweather', serif;
  color: #FAF8F4;
  margin-bottom: 0.3rem;
}

.footer p {
  margin: 0.3rem 0;
  color: #EDEBE6;
  line-height: 1.5;
}

.footer-link {
  display: block;
  color: #EDEBE6;
  text-decoration: none;
  margin: 0.2rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   SECCIÓN: CRÓNICAS INDIVIDUALES
   ========================================================= */
.cronica {
  background: #E9E3D0;
  color: #3B2E25;
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
}

/* Encabezado */
.cronica-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cronica-header h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.4rem;
  color: #3A2F24;
  margin-bottom: 0.5rem;
}

.cronica-header .subtitulo {
  font-size: 1.1rem;
  color: #5A4E44;
}

/* Imagen destacada */
.cronica-img {
  text-align: center;
  margin: 2rem 0;
}

.cronica-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.cronica-img figcaption {
  font-size: 0.9rem;
  color: #5A4E44;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Texto */
.cronica-texto p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* Cita */
blockquote {
  background: #F5F2EA;
  border-left: 4px solid #3B2E25;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #3A2F24;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

blockquote span {
  display: block;
  font-size: 0.9rem;
  color: #5A4E44;
  margin-top: 0.5rem;
}

/* Footer */
.cronica-footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  color: #4A3E36;
  font-style: italic;
}
