/* Fondo general con efecto suave */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Quicksand', sans-serif !important;
  color: #2b2b2b;
  background: linear-gradient(120deg, #c3e8ff, #f2f6ff, #d5e4ff) !important;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Fondo decorativo con transparencia */
.fondo {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.5) 0%, transparent 70%);
  z-index: -1;
}

/* Encabezado */
.encabezado {
  text-align: center;
  padding: 2rem 1rem 1rem;
}


.testimonio-foto {
  width: 180px;          /* Tamaño más grande */
  height: 180px;
  object-fit: cover;     
  border-radius: 14px;   /* Bordes más suaves */
  display: block;
  margin: 1.2rem auto 0; /* Centrada con separación arriba */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonio-fotos-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.2rem 0;
  flex-wrap: wrap;
}

.testimonio-fotos-container .testimonio-foto {
  margin: 0;
}

.encabezado h1 {
  font-family: 'Playfair Display', serif !important;
  font-size: 2.2rem !important;
  color: #3d5c91 !important;
  margin-bottom: 0.5rem !important;
}

.encabezado h1 a {
  font-family: 'Playfair Display', serif !important;
  font-size: 2.2rem !important;
  color: #3d5c91 !important;
  text-decoration: none !important;
}

nav a {
  margin: 0 1rem;
  text-decoration: none !important;
  color: #3d5c91 !important;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #6796e6 !important;
}

/* Tarjeta central con efecto glass */
.contenido {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  padding: 2.5rem 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 1200px !important;
  width: 90% !important;
  animation: aparecer 1s ease forwards;
}

@keyframes aparecer {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.imagen {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 15px rgba(100,150,255,0.4);
  margin-bottom: 1rem;
}

.tarjeta h2 {
  color: #355c94;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.mensaje {
  font-family: 'Lora', serif;
  font-style: italic;
  color: #2b2b2b;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.firma {
  font-size: 0.95rem;
  color: #5b6e94;
  margin-bottom: 1.8rem;
}

/* Botones */
.botones a {
  display: inline-block;
  text-decoration: none !important;
  background: #6796e6 !important;
  color: #fff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: background 0.3s, transform 0.2s;
  border: none !important;
}

.botones a:hover {
  background: #3f6bd8 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #5b6e94;
}
/* === ESTILOS PARA TESTIMONIOS === */

body {
  background-color: #f6fbff;
  color: #2d3e5f;
  font-family: 'Lora', serif;
}

header {
  text-align: center;
  background-color: #d7e9ff;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header h1 {
  margin: 0.2em 0;
  font-family: 'Playfair Display', serif !important;
  font-weight: 600;
  font-size: 1.8rem;
}

header h1 a {
  font-family: 'Playfair Display', serif !important;
  text-decoration: none;
  color: #3f5c9a;
  cursor: default;
}

nav {
  margin-top: 0.8rem;
}

nav a {
  text-decoration: none;
  color: #3f5c9a;
  margin: 0 0.8rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #6ea8e6;
}

nav a.active {
  border-bottom: 2px solid #6ea8e6;
  padding-bottom: 2px;
  color: #2c4f87;
}

main {
  flex: 1;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  color: #2c4f87;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.testimonio {
  background-color: #ffffff;
  border-left: 4px solid #9ecae6;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}

.numero-testimonio {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a4a8a;
  opacity: 0.6;
}

.testimonio h3 {
  margin-top: 0;
  color: #1a4a8a;
  font-size: 1.2rem;
  font-weight: 600;
}

.fecha {
  font-size: 0.9rem;
  color: #6e8ab3;
  margin-bottom: 0.8rem;
}

.testimonio p {
  color: #000000;
  line-height: 1.7;
}

.testimonio .biografia {
  color: #5b6e94;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Estilos para el formulario de testimonios */
.formulario-testimonio {
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.formulario-testimonio h2 {
  color: #2c4f87;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.form-testimonio {
  background-color: #ffffff;
  border-left: 4px solid #9ecae6;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.campo-formulario {
  margin-bottom: 1.5rem;
}

.campo-formulario label {
  display: block;
  color: #1a4a8a;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.campo-formulario input[type="text"],
.campo-formulario textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d0e4f5;
  border-radius: 8px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: #1a1a1a;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.campo-formulario input[type="text"]:focus,
.campo-formulario textarea:focus {
  outline: none;
  border-color: #9ecae6;
}

.campo-formulario textarea {
  resize: vertical;
  min-height: 150px;
}

.nota-foto {
  text-align: center;
  color: #5b6e94;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem 0;
  font-style: italic;
}

.boton-enviar {
  background-color: #6796e6;
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  display: block;
  margin: 1.5rem auto 0;
}

.boton-enviar:hover {
  background-color: #3f6bd8;
  transform: translateY(-2px);
}

.boton-enviar:active {
  transform: translateY(0);
}

/* Estilos para la galería del artículo */
.galeria-articulo {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
}

.grid-articulo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
}

.imagen-articulo {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 3px solid #bcd8f7;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen-articulo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.imagen-articulo img:hover {
  transform: scale(1.02);
}

.agradecimiento {
  text-align: center;
  color: #5b6e94;
  font-size: 0.95rem;
  margin-top: 2rem;
  font-style: italic;
  padding: 0 1rem;
}

.imagen-centro {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 1rem;
}

.imagen-centro img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 3px solid #bcd8f7;
  display: block;
}

footer {
  text-align: center;
  background-color: #d7e9ff;
  padding: 1rem 0;
  color: #2d3e5f;
  font-size: 0.9rem;
  margin-top: auto;
}
/* === ESTILOS PARA FOTOS (AZUL CELESTE) === */

.galeria {
  max-width: 1200px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.galeria h2 {
  color: #2c4f87;
  text-align: center;
  margin-bottom: 1.8rem;
  font-size: 1.8rem;
}

.grid-fotos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
  padding: 1rem 0;
}

.collage-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s;
  border: 3px solid #bcd8f7;
  background-color: #fff;
  cursor: pointer;
}

.collage-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(100, 150, 255, 0.35);
  z-index: 10;
}

/* Tamaños diferentes para el efecto collage */
.collage-item.large {
  grid-row: span 2;
  grid-column: span 2;
}

.collage-item.medium {
  grid-row: span 1;
  grid-column: span 1;
}

.collage-item.small {
  grid-row: span 1;
  grid-column: span 1;
}

.collage-item.wide {
  grid-row: span 2 !important;
  grid-column: span 3 !important;
}

/* Ajustes para crear un diseño más orgánico */
.grid-fotos .collage-item:nth-child(1) {
  grid-row: span 2;
  grid-column: span 2;
}

.grid-fotos .collage-item:nth-child(2) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(3) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(4) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(5) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(6) {
  grid-row: span 2;
  grid-column: span 2;
}

.grid-fotos .collage-item:nth-child(6).wide {
  grid-row: span 2 !important;
  grid-column: span 3 !important;
}

.grid-fotos .collage-item:nth-child(7) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(8) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(9) {
  grid-row: span 2;
  grid-column: span 2;
}

.grid-fotos .collage-item:nth-child(10) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(11) {
  grid-row: span 1;
  grid-column: span 1;
}

.grid-fotos .collage-item:nth-child(12) {
  grid-row: span 1;
  grid-column: span 1;
}


footer {
  text-align: center;
  background-color: #d7e9ff;
  padding: 1rem 0;
  color: #2d3e5f;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ===== MEDIA QUERIES PARA MÓVIL ===== */
@media (max-width: 768px) {
  /* Grid de fotos - 1 columna en móvil con imágenes más grandes */
  .grid-fotos {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .grid-fotos img {
    height: 300px !important;
    width: 100% !important;
    max-width: 100%;
    object-fit: cover;
  }
  
  /* Ajuste especial para marialogo que es estrecha y alargada */
  .grid-fotos img[src*="marialogo"] {
    object-fit: contain !important;
    height: auto !important;
    max-height: 300px !important;
    background-color: #f8f9fa;
  }
  
  /* Galería más compacta en móvil */
  .galeria {
    padding: 0 0.5rem;
    margin: 1rem auto 2rem;
  }
  
  .galeria h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Títulos - mantener tipografía en móvil */
  .encabezado h1,
  .encabezado h1 a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
  }
  
  header h1,
  header h1 a {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.8rem !important;
  }
  
  /* Encabezado más compacto */
  .encabezado {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  header {
    padding: 1.5rem 1rem 0.5rem;
  }
  
  /* Navegación más compacta */
  nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Tarjeta del index más compacta */
  .tarjeta {
    padding: 1.5rem 1.5rem;
    width: 95% !important;
  }
  
  .contenido {
    padding: 1rem;
  }
  
  /* Imagen más pequeña en móvil */
  .imagen {
    width: 120px;
    height: 120px;
  }
  
  /* Botones más pequeños y apilados */
  .botones {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .botones a {
    width: 100%;
    margin: 0 !important;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Testimonios más compactos */
  .testimonio {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Fotos del testimonio 4 en móvil */
  .testimonio-fotos-container {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.8rem !important;
    flex-wrap: wrap !important;
  }
  
  .testimonio-fotos-container .testimonio-foto {
    width: 120px !important;
    height: 120px !important;
    margin: 0 !important;
    flex-shrink: 0;
  }
  
  main {
    padding: 1rem 0.5rem;
  }
  
  h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* Mensaje más legible */
  .mensaje {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Formulario de testimonios en móvil */
  .formulario-testimonio {
    margin-top: 2rem;
    padding: 1rem 0.5rem;
  }

  .form-testimonio {
    padding: 1.5rem;
  }

  .formulario-testimonio h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .campo-formulario {
    margin-bottom: 1.2rem;
  }

  .boton-enviar {
    width: 100%;
    padding: 0.85rem 1.5rem;
  }

  /* Galería del artículo en móvil - 1 columna */
  .grid-articulo {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .galeria-articulo {
    padding: 1rem 0.5rem;
    margin: 1rem auto;
  }
}
