/* -------------------------
   ESTILOS GENERALES
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
}

h1, h2 {
  font-family: 'Montserrat', sans-serif;
}

section {
  padding: 80px 10%;
}

/* -------------------------
   LAYOUT PRINCIPAL
-------------------------- */
.container {
  display: flex;
}

/* Sidebar izquierdo */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #fff;
  padding: 30px 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.sidebar .logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #000;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin-bottom: 20px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sidebar nav ul li a:hover {
  color: #ff4f8b; /* rosa */
}

/* Accesibilidad */
.sidebar nav ul li a:focus {
  outline: 2px solid #ff4f8b;
  outline-offset: 2px;
}

/* Contenido a la derecha */
.content {
  margin-left: 240px;            /* espacio para el sidebar */
  padding: 40px 40px 60px;
  max-width: 1400px;             /* evita que se estire infinito */
  flex: 1;
}

/* -------------------------
   HOME
-------------------------- */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
  background-color: #fff;
}

.home-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.home-text p {
  font-size: 1.2rem;
  color: #555;
}

/* -------------------------
   TÍTULOS DE SECCIÓN
-------------------------- */
.gallery-section h2,
.about .about-text h2,
.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* -------------------------
   GALERÍAS
-------------------------- */
.gallery img {
  width: 100%;
  height: auto;            /* object-fit tendría efecto si fijas altura */
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover general (todas las galerías) */
.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --------- Masonry (2D y 3D) --------- */
/* IMPORTANTE: el contenedor masonry NO debe ser grid */
.masonry {
  display: block;                /* fuerza columnas en lugar de grid */
  column-count: 3;               /* columnas en desktop */
  column-gap: 20px;              /* separación entre columnas */
}

.masonry-item {
  break-inside: avoid;           /* evita cortes entre columnas */
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;           /* separación vertical */
  display: block;
}

.masonry-item img {
  border-radius: 6px;            /* pulido visual */
}

/* Hover un poco más “suave” en masonry (nota: esto es opcional) */
.masonry-item img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Responsivo masonry */
@media (max-width: 1200px) {
  .masonry { column-count: 2; }
}
@media (max-width: 700px) {
  .masonry { column-count: 1; }
}

/* --------- AR: grid clásico --------- */
#ar .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* -------------------------
   MODAL (solo 2D y 3D)
-------------------------- */
.modal {
  display: none;                  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid #ffffff;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  border-radius: 8px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* -------------------------
   SOBRE MÍ
-------------------------- */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 250px;
  border-radius: 10px;
}

.about-text {
  max-width: 700px;
  text-align: left;
}

/* -------------------------
   CONTACTO
-------------------------- */
.contact h2 {
  margin-bottom: 20px;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #ff4f8b;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e04379;
}

/* -------------------------
   FOOTER
-------------------------- */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f7f7f7;
  color: #555;
}

