* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #e5d3b3;
  color: #fff;
}


.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 60px;
  align-items: center;
  background-color: #e5d3b3;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* FONDO TIPO TARJETA PARA EL ÁREA DE FOTOS */
.photo-collage {
  position: relative;
  height: 650px;
  width: 100%;

  /* Un tono apenas más oscuro que el fondo para que se note la diferencia */
  background-color: #d1bfa4;

  /* Bordes redondeados sutiles */
  border-radius: 15px;

  /* Sombra suave para dar profundidad */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

  /* Un borde finito para definir la tarjeta */
  border: 1px solid rgba(0, 0, 0, 0.05);

  /* Para que el zoom de las fotos se vea por fuera del fondo */
  overflow: visible;
}

.photo-frame {
  position: absolute;
  background: white;
  padding: 15px 15px 45px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo-frame:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 100 !important;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-caption {
  text-align: center;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #555;
  font-style: italic;
}

/* Posicionamiento individual de cada foto */
.photo1 {
  width: 300px;
  height: 350px;
  top: -140px;
  left: 50px;
  transform: rotate(-5deg);
  z-index: 5;
}

.photo2 {
width: 300px;
  height: 350px;
  top: -50px;
  right: 10px;
  transform: rotate(8deg);
  z-index: 4;
}

.photo4 {
  width: 300px;
    height: 350px;
  top: 280px;
  left: 50px;
  transform: rotate(-3deg);
  z-index: 3;
}

.photo3 {
width: 300px;
  height: 350px;
  top: 450px;
  right: 60px;
  transform: rotate(20deg);
  z-index: 2;
}

.photo6 {
  width: 300px;
    height: 350px;
  bottom: 20px;
  left: 150px;
  transform: rotate(-7deg);
  z-index:11;
}
.photo5 {
  width: 300px;
  height: 350px;
top: -290px;
  /* Subió bastante para equilibrar el hueco de arriba */
  left: 350px;
  /* Se desplaza al centro/derecha arriba */
  transform: rotate(5deg);
  /* Le damos una rotación opuesta a la foto 1 */
  z-index: 15;
}




/* === SECCIÓN DE TEXTO === */
.story-text {
  padding: 20px 40px;
}

.story-text h2 {
  font-size: 2em;
  color: #8b0000;
  margin-bottom: 30px;
  font-weight: 700;
  font-family: "Cabin", Georgia, serif;
 /*  border-bottom: 4px solid #D4AF37; */
  padding-bottom: 15px;
  display: inline-block;
}

.story-content {
font-size: 1.25rem;
    line-height: 1.6em;
    letter-spacing: 0.01em;
    font-family: "Lato", Georgia, serif;
    /*  margin-bottom: 20px;
  margin-top: 20px; */
    color: #3b2a1a;
    text-align: left;
  }

/* SVG */
.story-text img {
  width: 120px;

  height: auto;
  opacity: 0.9;
}

/* Ajustes finos */
.svg-izq {
  margin-right: 15px;
}

.svg-der {
  margin-left: 15px;
  transform: scaleX(-1);
}

.intro {
  font-size: 1.25rem;
  font-family: 'Cabin', sans-serif;
  color: #8B2635;
  margin-bottom: 25px;
  line-height:1.6em;
}

.story-content p {
  margin-bottom: 20px;
  
}

.story-content h2 {
  font-family: "Lato", Georgia, serif;
  font-size: 1.5em;
 color: #8b0000;
  
  position: relative;
  padding-left: 20px;
}

.story-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80px;
  background: #cfa20d;
}

.highlight {
  color:#8b0000;
  font-weight: bold;
  font-size: 1.1em;
}

/* === SECCIÓN CTA BODEGÓN STYLE === */
.cta-section {
  margin: 40px 0;
  padding: 40px 20px;
  background-color: #2a0a0e;
  /* Un bordeaux bien profundo */
  background-image: radial-gradient(circle, #3d0e14 0%, #2a0a0e 100%);
  border-top: 4px solid #F3A64B;
  /* Detalle en oro/fileteado */
  border-bottom: 4px solid #F3A64B;
  text-align: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

cite {
  display: block;
  /* Para que el margen funcione bien */
  color: #f7f7f7;
  font-family: 'Playfair Display', serif;
  /* Tipografía con más clase */
  font-size: 1.4em;
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.4;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}

.cta-button {
  font-family: 'Oswald', sans-serif;
  /* Tipografía de cartelera */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 5px 13px;
  text-decoration: none;
  background-color: #F3A64B;
  /* Naranja/Oro clásico */
  color: #2a0a0e !important;
  font-weight: 800;
  font-size:0.8em;
  text-transform: uppercase;
  border-radius: 4px;
  /* Menos redondeado para verse más rústico */
  border: 2px solid #fff;
  transition: all 0.3s ease;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #ffb861;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}/* ============================================================
   SECCIÓN: NUESTRA HISTORIA - COLLAGE DE FOTOS
   ============================================================ */

/* Contenedor principal del collage */
.photo-collage {
  position: relative;
  height: 600px;
  width: 100%;
}

/* Base de los marcos de las fotos (Efecto Polaroid) */
.photo-frame {
  position: absolute;
  background: white;
  padding: 15px 15px 45px 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
  /* Transición suave para caída y para el zoom */
  transition:
    opacity 0.8s ease-out,
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease,
    filter 0.3s ease;
  will-change: transform, opacity;
}

/* 1. ESTADO INICIAL (Ocultas arriba) */
.foto-historia {
  opacity: 0;
  /* Importante: Mantiene rotación mientras cae */
  transform: translateY(-120px) rotate(var(--rotacion, 0deg)) !important;
}

/* 2. ESTADO ACTIVO (Al entrar con scroll) */
.foto-activada {
  opacity: 1 !important;
  transform: translateY(0) rotate(var(--rotacion, 0deg)) !important;
}

/* 3. EFECTO ZOOM POTENTE (Al pasar mouse o tocar) */
/* El selector es más específico para que le gane a los estados anteriores */
.photo-collage .photo-frame.foto-historia:hover,
.photo-collage .photo-frame.foto-historia:active {
  /* Forzamos rotate(0deg) para que se ponga derecha */
  transform: translateY(-20px) rotate(0deg) scale(1.4) !important;
  z-index: 100 !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  filter: brightness(1.08);
  cursor: pointer;
}

/* Estilo de la imagen interna */
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  /* Evita que la imagen interfiera con el hover del marco */
}

/* Epígrafes (Texto bajo la foto) */
.photo-caption {
  text-align: center;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #444;
  font-style: italic;
  font-weight: bold;
}

/* ============================================================
   UBICACIONES ORIGINALES (No tocar el transform aquí)
   ============================================================ */
.photo1 {
  width: 300px;
  height: 350px;
  top: -140px;
  left: 50px;
}

.photo2 {
  width: 300px;
  height: 350px;
  top: -50px;
  right: 10px;
}

.photo3 {
  width: 300px;
  height: 350px;
  top: 280px;
  left: 50px;
}

.photo4 {
  width: 300px;
  height: 350px;
  top: 450px;
  right: 60px;
}

.photo5 {
  width: 300px;
  height: 350px;
  bottom: 20px;
  left: 150px;
}
.photo6 {
  width: 300px;
  height: 350px;
  bottom: 20px;
  left: 150px;
}
/* para icono de plato */
.cta-button {
  display: inline-flex;
  /* Alinea emoji y texto en una fila */
  align-items: center;
  /* Centra verticalmente */
  justify-content: center;
  /* Centra horizontalmente */
  gap: 10px;
  /* Espacio fijo entre emoji y texto */
  padding: 12px 25px;
  background-color: #f3a953;
  /* Tu color naranja */
  color: #000;
  /* Color de texto */
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #fff;
  /* El borde blanco que se ve en tu foto */
  white-space: nowrap;
  /* ¡CLAVE! Evita que se rompa en dos líneas */
  transition: transform 0.2s;
}

/* Estilo para el emoji */
.emoji-icon {
  font-size: 2rem;
  /* Tamaño del emoji */
  line-height: 1;
  /* Evita que el emoji deforme el alto del botón */
}

/* Estilo para el texto */
.button-text {
  font-size: 1rem;
  text-transform: uppercase;
}

/* Ajuste específico para celulares muy chicos */
@media (max-width: 400px) {
  .cta-button {
    padding: 10px 15px;
    gap: 6px;
  }

  .button-text {
    font-size: 0.9rem;
    /* Achica un pelín la letra si no entra */
  }
}


/* -------------------------------------------------- */







/* Ajuste para que se vea bien en móviles */
@media (max-width: 768px) {
  .photo-collage .photo-frame.foto-historia:hover,
    .photo-collage .photo-frame.foto-historia:active {
      /* Scale de 1.7 (70% más grande) para que ocupe la pantalla y se vea bien */
      transform: translateY(-10px) rotate(0deg) scale(1.7) !important;
      z-index: 999 !important;
      /* Asegura que quede por encima de todo el texto */
  }
}
/* Ajuste para móviles */
@media (max-width: 480px) {
  .photo-collage .photo-frame.foto-historia:hover,
  .photo-collage .photo-frame.foto-historia:active {
    /* Scale de 1.7 (70% más grande) para que ocupe la pantalla y se vea bien */
    transform: translateY(-10px) rotate(0deg) scale(1.7) !important;
    z-index: 999 !important;}
    /* Asegura que quede por encima de todo el texto */
  cite {
    font-size: 1.1em;
  }

  .cta-button {
    width: 80%;
  }
}

@media (max-width: 1200px) {
  .container {
      grid-template-columns: 1fr;
      /* El texto baja y las fotos quedan arriba solo */
      padding: 30px 20px;
    }

     .photo-collage {
       height: 550px;
       /* Reducimos la altura del área de fotos */
       max-width: 500px;
       margin: 0 auto 50px auto;
       /* Centramos el collage y damos espacio al texto abajo */
       transform: scale(0.9);
       /* Achicamos el collage entero proporcionalmente */
     }

  /* Ajuste de fotos para tablets */
  .photo-frame {
    width: 350px !important;
    height: 400px !important;
  }
.photo1 {
  top: 0;
  left: 10%;
}

.photo2 {
  top: 30px;
  right: 10%;
}

.photo3 {
  top: 270px;
  left: 5%;
}

.photo4 {
  top: 210px;
  right: 5%;
}

.photo5 {
  top: 140px;
  left: 25%;
}
.photo6 {
  top: -20px;
  /* Sube al nivel de la foto 1 y 2 */
  left: 45%;
  /* Se ubica en el medio de las dos superiores */
  z-index: 20;
  /* Que quede un poquito por encima */
}

.photo-caption {
  text-align: center;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  color: #555;
  font-style: italic;
}

.story-text {text-align: center;}
.story-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;}
.story-content {
  font-size: 1.8rem;line-height: 42px;
    letter-spacing: 0.01em;
}

 .intro {
   font-size: 1.05em; /* para texto de nuestrabhistoria tablet */
 }
}



@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
    /* Menos margen lateral para que el texto no se vea chico */
    gap: 50px;
  }

  .photo-collage {
    height: 450px;
    max-width: 100%;
  }

  /* Aquí estaba el error: fotos de 600px en pantallas de 300-400px */
  .photo-frame {
    width: 280px !important;
    height: 320px !important;
  }

  /* Reposicionamiento simplificado para móvil */
  .photo1 {
    top: 0;
    left: 10%;
  }

  .photo2 {
    top: 30px;
    right: 10%;
  }

  .photo3 {
    top: 180px;
    left: 5%;
  }

  .photo4 {
    top: 210px;
    right: 5%;
  }

  .photo5 {
    top: 40px;
    left: 25%;
  }

/* .photo6 {
  top: 340px;
  left: 50%;
} */

/* La 6 a la derecha y un poco más abajo */

.photo6 {
  top: 40px;
  left: 25%;
}
  .story-text {
    font-size: 1.5rem;
    padding: 0;
    /* Eliminamos el padding excesivo */
    text-align: center;
  }

  .story-content {
    font-size: 1.5rem;
    text-align: left;
    /* El texto queda mejor alineado a la izquierda para leer */
  }

  .svg-izq,
  .svg-der {
    width: 60px;
    display: none;
    /* SVGs más pequeños para que no empujen el título */
  }
}

@media (max-width: 480px) {
  .photo-collage {
    height: 380px;
  }

  .photo-frame {
    width: 150px !important;
    height: 190px !important;
    padding: 8px 8px 25px 8px;
    /* Marco más fino */
  }
/* Fila 1 */
  .photo1 { top: 10px; left: 5%; }
  .photo2 { top: 30px; right: 5%; }

  /* Fila 2 */
  .photo3 { top: 150px; left: 5%; }
  .photo4 { top: 170px; right: 5%; }

  /* Fila 3 - Aquí es donde antes se tapaban */
  .photo5 { top: 290px; left: 10%; }
  .photo6 { top: 150px; right: 50%; }

  .photo-caption {
    font-size: 10px;
  }

  .story-text h2 {
    font-size: 1.6em;
  }

  .intro {
    font-size: 1.05em;
  }

  .cta-section {
    padding: 20px;
  }

  cite {
    font-size: 1.5rem;
  }
}