:root{
  --maxw: 920px;
  --accent: #000;
  --body-bg: #fff;
  --gutter: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background:var(--body-bg);
  color:#111;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.05;
  padding:30px 14px;
  display:flex;
  justify-content:center;
}

.page{
  width:100%;
  max-width:var(--maxw);
  background:#fff;
  margin:0 auto;
}

/* HEADER */
header{
  padding:14px;
  text-align:center;
}
.logo{
  max-width:760px;
  margin:0 auto 6px;
}
.logo img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

/* TOOLS */
.tools{
  display:flex;
  justify-content:center;
  gap:12px;
  margin:10px 0 6px;
  flex-wrap:wrap;
}
.pill{
  padding:8px 18px;
  border-radius:18px;
  border:3px solid #000;
  font-weight:700;
  font-size:14px;
  min-width:56px;
  text-align:center;
  background:transparent;
}
.stripe{
  height:22px;
  width:260px;
  border-radius:4px;
  margin-left:8px;
  background: repeating-linear-gradient(45deg, #000 0 8px, transparent 8px 16px);
  align-self:center;
}

/* GRID DE COLORES */
.color-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:0;
  padding:0;
}

.color-grid .cell{
  aspect-ratio: 1 / 1; /* 🔥 cuadrados perfectos */
  position:relative;
  overflow:hidden;
  border-radius:0;
}

.cell img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* 3 COLUMNAS TEXTO */
.three-col{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  padding:14px 6px;
  align-items:start;
  text-align:left;
}
.col-title{
  font-family:"Anton", Impact, fantasy, sans-serif;
  font-size:26px;
  text-transform:uppercase;
  letter-spacing:1px;
  margin:0 0 8px;
}
.col p{
  margin:0;
  font-size:12.2px;
  text-align:justify;
  line-height:1.25;
}

/* FOTO Y EDICIÓN */
.main-heading{
  text-align:center;
  margin:26px 12px 6px;
  font-family:"Anton", Impact, sans-serif;
  font-size:34px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.main-paragraph{
  max-width:880px;
  margin:12px auto;
  text-align:justify;
  font-size:13px;
  line-height:1.25;
  padding:0 12px;
}

/* 2 BLOQUES GRANDES */
.two-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; /* 🔥 sin espacio entre ellos */
  padding: 0; /* 🔥 sin bordes */
  max-width: 760px;
  margin: 0 auto;
}

.two-wide .box {
  aspect-ratio: 1 / 1; /* 🔥 cuadrados perfectos */
  position: relative;
  overflow: hidden;
  background: #e6e6e600;
  border-radius: 0; /* por si acaso */
}

.two-wide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Center square container */
.center-square {
  width: 200px;
  height: 200px;
  margin: 2rem auto;
  /* conserva el fondo rojo si quieres */
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen rotante dentro del contenedor */
.center-square .rotor {
  width: 110%;            /* un pelín más para cubrir recortes bonitos */
  height: 110%;
  object-fit: cover;
  transform-origin: 50% 50%;
  animation: girar 6s linear infinite;
  will-change: transform;
}

@keyframes girar {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


@keyframes girar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* FOOTER */
footer{
  text-align:center;
  padding:22px;
  font-weight:700;
  text-transform: none;
  letter-spacing:1px;
  font-size:13px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

/* RESPONSIVE */
@media (max-width:900px){
  :root{--maxw:760px}
  .col-title{font-size:22px}
  .logo{max-width:640px}
}
@media (max-width:720px){
  .three-col{grid-template-columns:1fr}
  .two-wide{grid-template-columns:1fr}
  .color-grid{grid-template-columns: repeat(2, 1fr)}
  .logo{max-width:540px}
  .center-square{width:56%}
}
@media (max-width:420px){
  .color-grid{grid-template-columns:1fr}
  .pill{padding:6px 12px; font-size:13px}
  .main-heading{font-size:26px}
  .logo{max-width:420px}
}

/* Efecto lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.4s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox.show img {
  transform: scale(1);
}

/* Cursor visual para imágenes clickeables */
.zoomable {
  cursor: zoom-in;
}
