/* ==========================================================================
   Capa moderna sobre Fotos.css: cabecera con vidrio, portada, tarjetas,
   "Mejores momentos", filtros y visor sin parpadeo.
   ========================================================================== */
.fotos-page{
  background:
    radial-gradient(1100px 560px at 85% -8%, rgba(232,163,61,.09), transparent 60%),
    radial-gradient(900px 520px at -10% 24%, rgba(70,150,110,.07), transparent 55%),
    #0b0f0d;
  scroll-behavior:smooth;
}
.fotos-page img{max-width:100%}

/* ---------- Cabecera ---------- */
.fotos-header{
  box-sizing:border-box;gap:18px;
  background:rgba(11,15,13,.70);
  -webkit-backdrop-filter:saturate(1.5) blur(16px);backdrop-filter:saturate(1.5) blur(16px);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.fotos-nav{display:flex;gap:2px;margin-right:auto;margin-left:22px}
.fotos-nav a{padding:8px 15px;border-radius:999px;color:var(--fotos-muted);text-decoration:none;font-size:14px;font-weight:600;transition:background .2s,color .2s}
.fotos-nav a:hover,.fotos-nav a.is-active{color:var(--fotos-text);background:rgba(255,255,255,.08)}
.fotos-nav a.is-active{color:var(--fotos-accent)}
.fotos-account-button,.fotos-cart-button{border-radius:999px;transition:transform .15s,background .2s,border-color .2s}
.fotos-account-button:hover,.fotos-cart-button:hover{transform:translateY(-1px)}

/* ---------- Botones y chips ---------- */
.hm-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border-radius:999px;border:1px solid rgba(255,255,255,.28);
  color:#fff;text-decoration:none;font:600 15px "DM Sans",sans-serif;background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:transform .15s,background .2s,border-color .2s;cursor:pointer}
.hm-btn:hover{transform:translateY(-2px);border-color:var(--fotos-accent)}
.hm-btn-main{background:var(--fotos-accent);border-color:var(--fotos-accent);color:#0e1310}
.hm-btn-main:hover{filter:brightness(1.08)}
.hm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.hm-chip{padding:9px 16px;border-radius:999px;border:1px solid var(--fotos-line);background:transparent;color:var(--fotos-muted);font:600 13px "DM Sans",sans-serif;cursor:pointer;transition:all .2s}
.hm-chip:hover{color:var(--fotos-text);border-color:var(--fotos-muted)}
.hm-chip.is-active{background:var(--fotos-accent);border-color:var(--fotos-accent);color:#0e1310}
.hm-pill{display:inline-block;padding:7px 14px;border-radius:999px;background:rgba(232,163,61,.16);border:1px solid rgba(232,163,61,.45);color:var(--fotos-accent);font:700 12px "DM Sans",sans-serif;letter-spacing:.06em;text-transform:uppercase}

/* ---------- Portada ---------- */
.hm{color:var(--fotos-text);font-family:"DM Sans",system-ui,sans-serif}
.hm-wrap{box-sizing:border-box;width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.hm-hero{position:relative;overflow:hidden;min-height:min(80vh,720px);display:flex;align-items:flex-end;background:#0e1411}
.hm-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.02)}
.hm-hero-shade{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(11,15,13,.86) 0%,rgba(11,15,13,.45) 55%,rgba(11,15,13,.2) 100%),
  linear-gradient(180deg,rgba(11,15,13,.55) 0%,rgba(11,15,13,0) 35%,#0b0f0d 100%)}
.hm-hero.is-plain .hm-hero-shade{background:radial-gradient(900px 460px at 20% 30%,rgba(232,163,61,.18),transparent 60%),linear-gradient(180deg,#101713,#0b0f0d)}
.hm-hero-inner{position:relative;display:grid;grid-template-columns:1.45fr 1fr;gap:40px;align-items:end;padding-top:150px;padding-bottom:56px}
.hm-hero-copy h1{margin:18px 0 14px;font:600 clamp(36px,5.2vw,64px)/1.05 "Playfair Display",Georgia,serif;letter-spacing:-.01em;text-wrap:balance}
.hm-hero-copy p{margin:0 0 26px;max-width:560px;font-size:18px;line-height:1.6;color:#d3dad5}
.hm-actions{display:flex;flex-wrap:wrap;gap:12px}
.hm-hero-side{display:grid;gap:14px}
.hm-search{padding:18px;border-radius:18px;background:rgba(14,20,16,.62);border:1px solid rgba(255,255,255,.1);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.hm-search label{display:block;margin-bottom:10px;font-weight:700;font-size:14px}
.hm-search div{display:flex;gap:8px}
.hm-search input{flex:1;min-width:0;padding:12px 14px;border-radius:12px;border:1px solid var(--fotos-line);background:rgba(255,255,255,.06);color:var(--fotos-text);font:inherit;font-size:15px;outline:none}
.hm-search input:focus{border-color:var(--fotos-accent)}
.hm-search button{padding:0 18px;border:0;border-radius:12px;background:var(--fotos-accent);color:#0e1310;font:700 14px "DM Sans",sans-serif;cursor:pointer}
.hm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hm-stats div{padding:14px 12px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);text-align:center}
.hm-stats b{display:block;font:600 24px "Playfair Display",serif;color:var(--fotos-accent)}
.hm-stats span{font-size:12px;color:var(--fotos-muted)}

/* ---------- Secciones ---------- */
.hm-section{padding:60px 24px 4px}
.hm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:24px}
.hm-head h1,.hm-head h2{margin:6px 0 0;font:600 clamp(26px,3.4vw,38px)/1.1 "Playfair Display",Georgia,serif}
.hm-head a{color:var(--fotos-accent);text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap}
.hm-head a:hover{text-decoration:underline}
.hm-kicker{margin:0;color:var(--fotos-accent);font:700 12px "DM Sans",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.hm-lead{margin:12px 0 0;max-width:620px;color:var(--fotos-muted);font-size:17px;line-height:1.6}
.hm-page{padding-top:130px;padding-bottom:40px}
.hm-head-page{margin-bottom:34px}

/* ---------- Tarjetas de historias ---------- */
.hm-card{display:flex;flex-direction:column;overflow:hidden;border-radius:20px;background:var(--fotos-card);border:1px solid var(--fotos-line);
  color:inherit;text-decoration:none;transition:transform .25s,border-color .25s,box-shadow .25s}
.hm-card:hover{transform:translateY(-4px);border-color:rgba(232,163,61,.5);box-shadow:0 18px 40px rgba(0,0,0,.4)}
.hm-card-img{position:relative;aspect-ratio:16/10;background:#141a16;overflow:hidden}
.hm-card-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.hm-card:hover .hm-card-img img{transform:scale(1.05)}
.hm-tag{position:absolute;top:14px;left:14px;padding:6px 12px;border-radius:999px;background:rgba(11,15,13,.7);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.16);font:700 11px "DM Sans",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.hm-card-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.hm-card-body time{font-size:12px;color:var(--fotos-muted);letter-spacing:.04em}
.hm-card-body h3{margin:0;font:600 21px/1.25 "Playfair Display",Georgia,serif;text-wrap:balance}
.hm-card-body p{margin:0;color:#b9c3bc;font-size:15px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hm-more{margin-top:auto;padding-top:6px;color:var(--fotos-accent);font-weight:700;font-size:14px}
.hm-news{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}
.hm-card.is-big{grid-row:span 2}
.hm-card.is-big .hm-card-img{aspect-ratio:auto;flex:1;min-height:340px}
.hm-card.is-big h3{font-size:clamp(26px,3vw,36px)}
.hm-card.is-row{flex-direction:row}
.hm-card.is-row .hm-card-img{width:42%;aspect-ratio:auto;flex:none;min-height:170px}
.hm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px;margin-top:20px}
.hm-news + .hm-grid{margin-top:20px}

/* ---------- Cómo funciona ---------- */
.hm-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:30px}
.hm-steps div{padding:26px;border-radius:20px;background:var(--fotos-card);border:1px solid var(--fotos-line)}
.hm-steps b{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(232,163,61,.15);border:1px solid rgba(232,163,61,.45);color:var(--fotos-accent);font:600 18px "Playfair Display",serif}
.hm-steps h3{margin:16px 0 6px;font-size:18px}
.hm-steps p{margin:0;color:var(--fotos-muted);line-height:1.6;font-size:15px}

/* ---------- Historia (detalle) ---------- */
.hm-hero-article{min-height:min(62vh,540px)}
.hm-hero-article .hm-hero-inner{grid-template-columns:1fr;padding-top:150px;padding-bottom:44px}
.hm-hero-article h1{font-size:clamp(32px,4.6vw,56px)}
.hm-article{max-width:740px;margin:0 auto;padding:44px 24px 8px;font-size:18px;line-height:1.8;color:#d7ddd9}
.hm-article p{margin:0 0 1.2em}
.hm-article p:first-child::first-letter{float:left;padding:6px 10px 0 0;font:600 56px/0.9 "Playfair Display",serif;color:var(--fotos-accent)}

/* ---------- Catálogo y galería ---------- */
.fotos-cover{background:#141a16}
.fotos-cover .cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.fotos-match-card:hover .cover-img{transform:scale(1.05)}
.fotos-match-card{border-radius:20px}
.fotos-cover{border-radius:20px 20px 0 0}
.fotos-gallery{gap:12px}
.fotos-photo{border-radius:14px;overflow:hidden;background:#141a16;transition:transform .25s,box-shadow .25s}
.fotos-photo:hover{box-shadow:0 14px 34px rgba(0,0,0,.45)}
.fotos-photo img{transition:transform .45s}
.fotos-photo:hover .fotos-photo-preview img{transform:scale(1.04)}
.fotos-photo.is-selected{box-shadow:0 0 0 2px var(--fotos-accent),0 14px 34px rgba(0,0,0,.45)}
.fotos-sticky-cart{border-radius:999px}

/* ---------- Visor: sin parpadeo al cambiar de foto ---------- */
.fotos-preview-modal{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.swipe-slide{background-size:contain;background-position:center;background-repeat:no-repeat}
.swipe-slide img{opacity:0;transition:opacity .22s ease}
.swipe-slide img.is-loaded{opacity:1}

/* ---------- Pie ---------- */
.hm-footer{margin-top:80px;padding:44px 0 56px;border-top:1px solid rgba(255,255,255,.07);background:rgba(0,0,0,.2)}
.hm-footer .hm-wrap{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}
.hm-footer p{margin:10px 0 0;max-width:340px;color:var(--fotos-muted);font-size:14px;line-height:1.6}
.hm-footer-logo{display:inline-flex;align-items:center;gap:10px;font:700 14px "DM Sans",sans-serif;letter-spacing:.16em}
.hm-footer-logo span{width:8px;height:8px;border-radius:50%;background:var(--fotos-accent)}
.hm-footer nav{display:flex;flex-direction:column;gap:10px}
.hm-footer nav a{color:var(--fotos-muted);text-decoration:none;font-size:14px}
.hm-footer nav a:hover{color:var(--fotos-accent)}

/* ---------- Móvil ---------- */
@media (max-width:900px){
  .fotos-header{flex-wrap:wrap;row-gap:6px}
  .fotos-nav{order:3;width:100%;margin:0;overflow-x:auto;scrollbar-width:none}
  .fotos-nav::-webkit-scrollbar{display:none}
  .hm-hero-inner{grid-template-columns:1fr;padding-top:170px;gap:26px}
  .hm-news{grid-template-columns:1fr}
  .hm-card.is-big{grid-row:auto}
  .hm-card.is-big .hm-card-img{min-height:240px}
  .hm-card.is-row{flex-direction:column}
  .hm-card.is-row .hm-card-img{width:100%;aspect-ratio:16/10}
  .hm-steps{grid-template-columns:1fr}
  .hm-page{padding-top:160px}
  .hm-head{align-items:flex-start;flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}
}
