:root {
  --max: 980px;
  --pad: 22px;

  --txt: #1f1f1f;
  --muted: #5f6368;/* antes #6b6b6b */
  --line: #e8e8e8;
  --bg: #ffffff;
  --soft: #f7f7f7;

  --radius: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);

  --focus: rgba(31, 31, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--txt);
  background: var(--bg);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Layout base */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 44px) var(--pad);
}

/* Links: discretos, pero vivos */
a {
  color: inherit;
  text-decoration-color: rgba(31, 31, 31, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: rgba(31, 31, 31, 0.6);
  text-decoration-thickness: 2px;
}

/* Fallback general */
:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Si el navegador soporta focus-visible, evitamos outline al click con ratón */
@supports selector(:focus-visible) {
  :focus { outline: none; }

  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 8px;
  }
}

/* Accesibilidad: skip link */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus,
.skip:focus-visible {
  left: var(--pad);
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* Tipografía */
h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.05rem);
  margin: 0;
}

h2 {
  font-size: 1.22rem;
  margin: 14px 16px 6px;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.06rem;
  margin: 0 0 6px;
  max-width: 62ch;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.rule {
  width: 46px;
  height: 1px;
  background: var(--line);
  margin: 14px 0 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding-bottom: clamp(18px, 2.6vw, 26px);
  border-bottom: 1px solid var(--line);
}

.hero__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Fallback (sin Grid) */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.hero__text { flex: 1 1 320px; }
.hero__img  { flex: 1 1 320px; }

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.card {
  width: 100%;
}

@media (min-width: 821px) {
  .card { width: calc(50% - 11px); }
}

/* Si hay Grid, úsalo */
@supports (display: grid) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card { width: auto; }
}

/* Grid y cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(0);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--soft);
}

.meta {
  margin: 0 16px 10px;
  color: var(--muted);
  font-style: italic;
}

.desc {
  margin: 0 16px 16px;
  max-width: 54ch;
  color: var(--txt);
}

.desc span {
  display: block;
  margin-top: 6px;
}

.desc span:first-child {
  margin-top: 0;
}

/* Colecciones (título encima de galería) */
.collection__head{
  padding-top: 26px;      /* separa del hero */
  margin-bottom: 10px;    /* acerca al grid */
}

.collection__head h2{
  margin: 0 0 6px;
}

/* Contacto */
.contact {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.subtle {
  opacity: 0.88;
}

/* Email: subrayado nativo (sin líneas raras) */
.email {
  color: var(--txt);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.email:hover {
  text-decoration-thickness: 2px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 26px;
}

.footer address {
  font-style: normal;
  margin: 0;
}


/* Hover sutil solo si el dispositivo lo soporta */
@media (hover: hover) {
  .card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
  }
}

/* Micro-animación de entrada (con delay incremental por --i) */
@media (prefers-reduced-motion: no-preference) {
  .hero__text,
  .hero__img,
  .card {
    opacity: 0;
    transform: translateY(6px);
    animation: rise 0.48s ease-out forwards;
  }

  .hero__text {
    animation-delay: 0.02s;
  }

  .hero__img {
    animation-delay: 0.06s;
  }

  /* Delay incremental: añade style="--i:0..n" en cada card */
  .card {
    animation-delay: calc(0.12s + (var(--i, 0) * 0.06s));
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Extra: un poco más de aire en pantallas grandes */
@media (min-width: 1100px) {
  .wrap {
    padding-left: calc(var(--pad) + 10px);
    padding-right: calc(var(--pad) + 10px);
  }

/* Language hint (global) */
.langhint{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: var(--max);
  margin: 0 auto;
}

.langhint__btn{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--txt);
  white-space: nowrap;
}

.langhint__close{
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.ig-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

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

.langhint[hidden] { display:none !important; }

}
.lang-hover {
  position: fixed;
  bottom: 20px;
  right: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.65;
  z-index: 1000;
}

.lang-label {
  cursor: default;
}

.lang-menu {
  display: inline-block;
  margin-left: 0.5rem;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-hover:hover .lang-menu {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.lang-menu a {
  text-decoration: none;
  color: inherit;
}

.lang-menu a:hover {
  text-decoration: underline;
}

.lang-menu strong {
  font-weight: 600;
}

.social-links{
  display:flex;
  gap: 16px;
}

.social-links svg{
  width:18px;
  height:18px;
  opacity: .55;
  transition:opacity .25s ease;
  transform:.25s ease;
}

.social-links svg:hover{
  opacity:1;
  transform:translateY(-1px);
}

.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
}