:root {
  --color-background-page:       #1c1c1f;
  --color-text-primary:          #ffffff;
  --color-background-image-box:  #222327;
  --color-overlay-transparent:   #00000000;
  --color-overlay-hovered:       #00000080;
  --color-background-container:  #202125;
  --color-text-heading:          #e6e6e6;
  --color-text-subheading:       #8fb8ff;
  --color-divider:               #3a3a3f;
  --color-caption-background:    #0000002b;
  --layout-container-max-width:  960px;

  --tile-width: 300px;
  --tile-height: 250px;
  --tile-gap: 10px;
}

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

body {
  font-family: Raleway, sans-serif;
  background-color: var(--color-background-page);
  color: var(--color-text-primary);
}

/* encabezado (tal como lo tenías) */
.heading {
  color: var(--color-text-heading);
  font-size: 0.95em;
  line-height: 1.65em;
  letter-spacing: 0.3px;
}
h3 { font-size: 1.2em; color: var(--color-text-subheading); margin-bottom: 15px; font-weight: 600; }
p { margin-bottom: 10px; }
.heading strong { color: var(--color-text-primary); font-weight: 700; }

/* contenedor principal */
.main-container {
  max-width: var(--layout-container-max-width);
  margin: 0 auto;
  background-color: var(--color-background-container);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
}

/* -------------- NUEVO: wrapper centrador -------------- */
.gallery-wrapper {
  width: 100%;
  margin-top: 0;      /* opcional */
  display: inline-flex;        /* aquí está la clave */
  justify-content: center;
  align-items: center;
}

/* galería: inline-flex (encoge al contenido) + wrap + filas empezando a la izquierda */
.gallery-image {
  display: inline-flex;        /* aquí está la clave */
  flex-wrap: wrap;
  justify-content: flex-start; /* cada fila empieza a la izquierda */
  align-items: flex-start;
  gap: 10px;
}

/* caja de imagen */
.img-box {
  width: var(--tile-width);
  height: var(--tile-height);
  max-width: var(--tile-width);
  background-color: var(--color-background-image-box);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  display: block;
    border-radius: 12px;
}

/* imagen dentro del tile */
.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  transform: translateY(-5px);
  transition: transform 0.25s ease;
  background-color: transparent;
}

/* hover sutil */
.img-box:hover {
  border-color: rgba(143, 184, 255, 0.6);
  box-shadow: 0 0 8px rgba(143, 184, 255, 0.18);
  cursor: pointer;
}

/* caption siempre visible */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-caption-background);
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: left;
  text-align: left;
  gap: 2px;
  color: var(--color-text-primary);
}
.caption p { margin: 0; line-height: 1.2em; }
.caption > p:nth-child(2) { font-size: 0.85em; opacity: 0.6; }

/* separador */
hr {
  border: none;
  height: 1px;
  width: 90%;
  background-color: var(--color-divider);
  margin: 30px auto;
  border-radius: 2px;
  opacity: 0.8;
}

/* responsive: en pantallas pequeñas que el bloque sea full-width */

@media (max-width: 600px) {
  .heading { padding: 28px 14px; font-size: 0.93em; }

  /* en móvil queremos que el conjunto ocupe todo el ancho: cambiamos a flex normal */
  .gallery-image {
    display: flex !important;
    width: 100%;
    justify-content: center; /* centramos la fila única, si quieres que sean left-start pon flex-start */
    gap: 8px;
    flex-wrap: wrap;
  }

  .img-box { width: 100%; max-width: none; aspect-ratio: 16/10; height: auto; }
  .gallery-image img { transform: translateY(-3px); }
}

.align-left {
  align-self: flex-start;
  padding-left: 22px;
  padding-bottom: 22px;
}

.email-link {
  color: var(--color-text-subheading);
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
}

.email-link:hover {
  text-decoration: underline;
}

.responsive-columns {
  display: flex;
  justify-content: space-between; /* texto a la izquierda, imagen a la derecha */
  align-items: center;
  gap: 40px;
  padding: 30px;
  padding-bottom: 40px;
}

.responsive-columns .left {
  flex: 1; /* el texto ocupa el espacio restante */
}

.responsive-columns .right {
  flex: 0; /* la imagen solo ocupa su ancho natural */
}

.responsive-columns .right img {
  display: block;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  transform: translateY(50px); /* 🔽 baja un poco la imagen */
}

@media (max-width: 768px) {
  .responsive-columns {
    flex-direction: column;
  }

  .responsive-columns .right img {
        display: block;
        height: 240px;
        object-fit: cover;
        border-radius: 50%;
        transform: translateY(-30px); /* 🔽 baja un poco la imagen */
    }

    .responsive-columns .right {
        margin-bottom: -50px;
        flex: 0; /* la imagen solo ocupa su ancho natural */
    }
}

.cta-button {
  display: inline-block;
  background-color: #6290df;     /* color principal (naranja vivo) */
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 6px;
  margin-top: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background-color: #497ed9;    /* tono más oscuro al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}