/* Revisión 05: miniaturas con espacio reservado, servicios y consulta breve. */
.hero{grid-template-columns:.94fr 1.06fr;column-gap:60px;align-items:center}
.hero h1{font-size:clamp(48px,6.6vw,94px)}
.hero-frame{align-self:center}
.hero-real>img{aspect-ratio:1280/853;object-fit:contain;height:auto;min-height:0}
.portfolio-context{max-width:78ch}
.portfolio-controls{margin-bottom:30px}
.portfolio-filters{display:flex;flex-wrap:wrap;gap:8px 22px;border-bottom:1px solid var(--line)}
.portfolio-filters button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:13px 0 12px;min-height:48px;font-size:13px;font-weight:600}
.portfolio-filters button[aria-pressed=true]{border-bottom-color:var(--orange);color:var(--ink)}
.portfolio-filters button:hover{color:var(--ink)}
.filter-count{display:inline-block;margin-left:5px;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--muted)}
.gallery-status{color:var(--muted);font-size:14px}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin-top:14px}
.gallery-hint{font-size:13px;color:var(--muted);margin-top:2px}
.portfolio-real{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 20px;columns:auto;align-items:start}
.photo-story{margin:0}
.photo-open{position:relative;cursor:zoom-in;display:block;aspect-ratio:3/4;background:#e8e1d5}
.photo-open::after{content:'↗';position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:36px;height:36px;background:var(--ivory);color:var(--ink);font-size:20px}
.photo-story img{width:100%;height:100%;aspect-ratio:3/4;object-fit:contain}
.photo-story figcaption{font-size:14px;line-height:1.5;margin-top:10px}
.portfolio-more{text-align:center;margin-top:38px}
.button-outline{background:transparent;color:var(--ink);border-color:var(--ink)}
.button-outline:hover{background:var(--ink);border-color:var(--ink)}
.portfolio-contact{margin-top:30px;text-align:center;max-width:none;font-size:14px;color:var(--muted)}
.portfolio-contact a{font-weight:650;color:var(--ink)}
.footer-contact{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:100%}
.footer-email{display:inline-flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere}
.footer-contact .instagram-link{gap:16px;padding:12px 16px;min-height:48px;font-size:13px;max-width:100%}
@media(max-width:600px){.footer-contact{margin-top:14px}}
body.viewer-open{overflow:hidden}
#photo-viewer{max-width:min(1100px,calc(100vw - 40px));width:max-content;max-height:calc(100dvh - 40px);padding:16px 22px 20px;border:0;background:var(--ink);color:var(--ivory);overflow:auto;overscroll-behavior:contain}
#photo-viewer::backdrop{background:rgba(0,0,0,.86)}
.viewer-top{display:flex;justify-content:space-between;align-items:center;gap:26px;margin-bottom:12px;font-size:12px}
.viewer-close{display:flex;align-items:center;gap:16px;padding:7px 0 7px 18px;border:0;min-height:44px;background:transparent;color:var(--ivory);font-size:14px}
.viewer-close span{font-size:26px;line-height:1}
#viewer-image{max-width:100%;width:auto;height:auto;max-height:calc(100dvh - 180px);object-fit:contain;margin:auto}
#viewer-caption{max-width:78ch;font-size:12px;line-height:1.6;margin-top:12px;color:var(--ivory)}
.viewer-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;border-top:1px solid #555;padding-top:8px}
.viewer-navigation button{background:transparent;border:0;color:var(--ivory);min-height:44px;padding:8px 0;font-size:13px}
.viewer-navigation button:disabled{opacity:.4;cursor:default}
.viewer-navigation p{font-size:12px;margin:0;white-space:nowrap}
#photo-viewer #viewer-image{max-height:calc(100dvh - 240px)}
.photo-open:focus-visible,.portfolio-filters button:focus-visible,.viewer-navigation button:focus-visible,.viewer-close:focus-visible{outline:3px solid var(--orange);outline-offset:5px}
@media(max-width:1100px){.hero{column-gap:36px}.hero-actions{gap:14px}.hero-actions .button{padding-inline:15px;gap:15px}}
/* Textos de apoyo legibles y enlaces de servicio con una acción explícita. */
.location,.hero-frame figcaption,.hero-bottom,.hero-bottom>a{font-size:13px}
.service-list article{grid-template-columns:.9fr 1.25fr 210px;gap:30px}
.service-list a{width:auto;height:auto;min-height:48px;padding:10px 14px;font-size:14px;line-height:1.5;display:flex;align-items:center;justify-content:space-between;gap:14px}
.service-list a span{font-size:22px}










.optional-details{margin-top:28px;border-block:1px solid #b9ae9e;padding-block:4px 12px}
.optional-details summary{font-size:15px;font-weight:650;cursor:pointer;padding:14px 0;min-height:48px;touch-action:manipulation}
.optional-details summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.optional-details summary:hover{color:#a83c1b}
.optional-details>p{font-size:14px;color:var(--muted);margin-bottom:20px}
.optional-details[open]{padding-bottom:24px}
.field>label{font-size:15px}
.field>label>span,.required-note,.field-hint,.field-error,.form-footnote,.form-note,.consent>p:first-child{font-size:13px}
.check-label,.field>.date-check{font-size:14px;min-height:44px}
.consent a span{white-space:normal}
.preview-note,.preview-note span{font-size:12px}
@media(max-width:1000px){.portfolio-real{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}.service-list article{grid-template-columns:1fr 1.3fr;gap:16px 30px}.service-list a{grid-column:2;justify-self:start}}
@media(max-width:899px){.hero{column-gap:26px}.portfolio-filters{gap:6px 20px}.portfolio-filters button{font-size:13px}}
@media(max-width:600px){
  .hero h1{font-size:clamp(57px,12.7vw,76px)}
  .hero-frame{margin-top:30px}
  .portfolio-real{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 14px}
  .photo-story{margin:0}
  .photo-story figcaption{font-size:13px}
  .photo-open::after{right:6px;bottom:6px;width:28px;height:28px;font-size:18px}
  .portfolio-filters{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
  .portfolio-filters button{text-align:left;min-height:54px;font-size:13px;line-height:1.5}
  .portfolio-context{margin-bottom:22px;font-size:14px}
  .portfolio-controls{margin-bottom:24px}
  .portfolio-contact{font-size:14px;text-align:left}
  .service-list article{display:block;padding:26px 0}
  .service-list a{position:static;display:inline-flex;width:auto;height:auto;margin-top:16px;padding:9px 14px;font-size:14px}
  .service-list p{font-size:14px}
  
  
  
  
  
  
  #photo-viewer{max-width:calc(100vw - 20px);padding:10px 12px 14px;max-height:calc(100dvh - 20px)}
  .viewer-top{gap:20px}
  #viewer-image{max-height:calc(100dvh - 180px)}
}

/* Soy Nacho: imagen y texto relacionados en cada tamaño, sin miniaturas desplazadas. */
#sobre-mi .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  grid-template-areas: "portrait intro" "portrait story" "dive diving" "dive contact";
  gap: 26px 90px;
  align-items: start;
}
#sobre-mi .about-grid > * { min-width: 0; margin: 0; }
#sobre-mi .about-intro { grid-area: intro; }
#sobre-mi .about-intro h2 { font-size: clamp(40px, 4vw, 56px); margin-bottom: 14px; }
#sobre-mi .about-intro p { font-size: 20px; line-height: 1.5; color: var(--ivory); }
#sobre-mi .about-portrait { grid-area: portrait; width: min(100%, 320px); }
#sobre-mi .about-portrait img { width: 100%; height: auto; aspect-ratio: 3/4; }
#sobre-mi .about-story { grid-area: story; padding-bottom: 24px; }
#sobre-mi .about-story p, #sobre-mi .about-diving p { font-size: 16px; line-height: 1.75; color: #d5cec3; max-width: 64ch; }
#sobre-mi .about-story p + p, #sobre-mi .about-diving p + p { margin-top: 16px; }
#sobre-mi .about-dive { grid-area: dive; width: min(100%, 360px); justify-self: end; }
#sobre-mi .about-dive img { width: 100%; height: auto; aspect-ratio: 8/7; }
#sobre-mi .about-diving { grid-area: diving; }
#sobre-mi .about-diving h3 { font-size: 28px; line-height: 1.2; color: var(--ivory); margin-bottom: 16px; }
#sobre-mi .about-diving .about-training { font-size: 14px; line-height: 1.75; }
#sobre-mi .about-contact { grid-area: contact; border-top: 1px solid #4c4943; padding-top: 18px; }
#sobre-mi .about-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ivory); font-size: 15px; }
#sobre-mi .about-contact a:hover { color: white; }
@media (min-width: 740px) and (max-width: 1100px) {
  #sobre-mi .about-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); column-gap: 40px; }
  #sobre-mi .about-intro p { font-size: 18px; }
}
@media (max-width: 739px) {
  #sobre-mi { padding-block: 56px; }
  #sobre-mi .about-grid {
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "portrait" "story" "dive" "diving" "contact";
    gap: 26px;
  }
  #sobre-mi .about-intro h2 { font-size: 44px; letter-spacing: -.045em; margin-bottom: 12px; }
  #sobre-mi .about-intro p { font-size: 18px; max-width: 26ch; }
  #sobre-mi .about-portrait, #sobre-mi .about-dive { width: 100%; justify-self: stretch; }
  #sobre-mi .about-story { padding-bottom: 10px; }
  #sobre-mi .about-diving h3 { font-size: 28px; }
  #sobre-mi .about-contact a { font-size: 14px; }
}

/* Las nuevas fotos conservan su firma inferior sin un icono encima. */
.recent-event .photo-open::after{display:none}
