/* La Fototeca Lab — static web build
   Dark photographic theme, Montserrat typography */

:root {
  --bg: #14161a;
  --bg-2: #1b1e24;
  --bg-3: #22262e;
  --text: #e8e6e1;
  --muted: #9aa0aa;
  --accent: #d9a441;          /* amber — darkroom safelight */
  --accent-2: #7fb4c8;        /* cyanotype blue */
  --line: #2e333c;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 22, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand .brand-name { font-weight: 600; letter-spacing: .5px; font-size: 1.05rem; color: var(--text); }
.brand .brand-name small { display: block; font-weight: 300; font-size: .72rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

nav.main-nav ul { list-style: none; display: flex; gap: 26px; }
nav.main-nav a {
  color: var(--text); font-size: .86rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--text); border-radius: 6px; padding: 8px 10px; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--hero-img, none) center / cover no-repeat;
  background-attachment: fixed;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(20, 22, 26, .82);
}
.hero .hero-inner { position: relative; z-index: 1; padding: 60px 20px; max-width: 900px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 100;
  letter-spacing: 1px; margin-bottom: 24px;
}
.hero h1 strong { font-weight: 600; color: var(--accent); }
.hero p.lead { font-size: 1.25rem; font-weight: 300; color: var(--text); margin-bottom: 8px; }
.hero p.sub { font-size: 1rem; color: var(--muted); }
.hero.hero-page { min-height: 46vh; }

/* ---------- Sections ---------- */
section { padding: 70px 20px; }
section.alt { background: var(--bg-2); }
.section-title {
  text-align: center; font-size: 1.9rem; font-weight: 300;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title span { color: var(--accent); font-weight: 600; }
.section-sub { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 40px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card .card-img { height: 200px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 24px; }
.card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; color: var(--accent); }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* ---------- Feature rows (No malgastes / Facilidad / Calidad) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.feature:last-child { margin-bottom: 0; }
.feature .feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.4rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.feature h3 span { color: var(--accent); }
.feature p { color: var(--muted); }
.feature:nth-child(even) .feature-img { order: 2; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.testimonial img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; border: 3px solid var(--accent); }
.testimonial blockquote { font-style: italic; color: var(--text); font-size: .95rem; margin-bottom: 18px; }
.testimonial .t-name { font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: .85rem; color: var(--accent); }
.testimonial .t-role { color: var(--muted); font-size: .8rem; letter-spacing: 1px; }

/* ---------- Content blocks (service pages) ---------- */
.content-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.content-block:last-child { margin-bottom: 0; }
.content-block:nth-child(even) .cb-img { order: 2; }
.content-block .cb-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.content-block h3 { font-size: 1.35rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.content-block h3 span { color: var(--accent); }
.content-block p { color: var(--muted); margin-bottom: 12px; }

/* ---------- Price tables ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg-3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption {
  caption-side: top; text-align: left; padding: 10px 0;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: .9rem; color: var(--accent);
}
.price-table th, .price-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .92rem; }
.price-table th { background: var(--bg-2); color: var(--text); letter-spacing: 1px; text-transform: uppercase; font-size: .78rem; }
.price-table td:first-child { text-align: left; color: var(--text); font-weight: 500; }
.price-table td { color: var(--muted); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(217, 164, 65, .06); }
.price-note { color: var(--muted); font-size: .85rem; font-style: italic; }

/* ---------- Pricing cards (perfil ICC) ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.tier {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s, border-color .25s;
}
.tier:hover { transform: translateY(-6px); border-color: var(--accent); }
.tier .tier-name { font-size: 1rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.tier .tier-price { font-size: 2.4rem; font-weight: 100; margin-bottom: 16px; }
.tier .tier-price small { font-size: 1rem; color: var(--muted); }
.tier ul { list-style: none; color: var(--muted); font-size: .92rem; }
.tier ul li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tier ul li:last-child { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3, .contact-form h3 { font-size: 1.2rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.contact-info h3 span, .contact-form h3 span { color: var(--accent); }
.contact-info p { color: var(--muted); margin-bottom: 14px; }
.contact-info .big-phone { font-size: 1.5rem; font-weight: 300; color: var(--text); margin: 10px 0 20px; }
.contact-info .big-phone a { color: var(--accent); }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-family: var(--font); font-size: .95rem; padding: 10px 12px;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.btn {
  display: inline-block; background: var(--accent); color: #14161a;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: .85rem;
  padding: 12px 28px; border: none; border-radius: 6px; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--accent-2); color: #14161a; }
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #14161a; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--bg-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { font-size: 1.6rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.cta-band h2 span { color: var(--accent); }
.cta-band p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #101216; border-top: 1px solid var(--line);
  padding: 50px 20px 20px; font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
footer h4 { font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
footer p, footer li { color: var(--muted); }
footer ul { list-style: none; }
footer li { margin-bottom: 8px; }
footer a { color: var(--muted); font-size: .85rem; }
footer a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center; color: var(--muted); font-size: .8rem;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px;
}
.social-links { display: flex; gap: 14px; margin-top: 14px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(20, 22, 26, .98); border-bottom: 1px solid var(--line);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  nav.main-nav li { border-bottom: 1px solid var(--line); }
  nav.main-nav li:last-child { border-bottom: none; }
  nav.main-nav a { display: block; padding: 12px 4px; }
  .hero { background-attachment: scroll; min-height: 60vh; }
  .feature, .content-block, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-img, .content-block:nth-child(even) .cb-img { order: 0; }
  section { padding: 50px 16px; }
  .price-table th, .price-table td { padding: 8px 10px; font-size: .82rem; }
}

/* ---------- 3D large-format camera (hero) ---------- */
.hero .hero-inner {
  display: grid; grid-template-columns: 1fr 360px; gap: 48px;
  align-items: center; text-align: left; max-width: 1100px;
}
.hero .hero-copy { max-width: 640px; }
.cam-wrap { justify-self: center; }
.cam-hint { text-align: center; color: var(--muted); font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 10px; }
.cam-scene {
  position: relative; width: 360px; height: 320px;
  perspective: 1200px; cursor: grab; touch-action: none; user-select: none;
}
.cam-scene:active { cursor: grabbing; }
.cam {
  position: absolute; left: 50%; top: 46%; width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(-24deg);
}
.cam-face { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.cam-face > div { position: absolute; }

/* Front & rear standards */
.std-front { background: linear-gradient(160deg, #2b2f35, #1a1d22); border: 1px solid #3a3d44; border-radius: 6px; }
.std-front .mount2 {
  left: 50%; top: 50%; width: 74px; height: 74px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #454952, #22252b 70%);
  border: 6px solid #2c3036;
}
.std-front .dial {
  left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d9a441, #8a6522);
  box-shadow: 0 0 0 2px #2c3036;
}
.std-front .knob2 { width: 16px; height: 16px; border-radius: 50%; background: #3a3d44; box-shadow: 0 0 0 2px #22252b; }
.std-front .k1 { left: 12px; bottom: 12px; }
.std-front .k2 { right: 12px; bottom: 12px; }
.std-back { background: #1a1d22; border: 1px solid #3a3d44; border-radius: 6px; }
.std-back .gg {
  left: 12px; top: 12px; right: 12px; bottom: 12px;
  border: 9px solid #2c3036; border-radius: 3px; background: #131b26;
  background-image: linear-gradient(rgba(127,180,200,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,180,200,.3) 1px, transparent 1px);
  background-size: 100% 50%, 50% 100%;
}

.rail-bottom { background: #15171b; }

/* Baseboard */
.base-top { background: #22252b; }
.base-front, .base-back, .base-right, .base-left, .base-bottom { background: #15171b; }

/* Bellows pleats */
.ring {
  border: 3px solid #191c21; border-radius: 2px;
  background: rgba(25,28,33,.28);
  box-shadow: inset 0 0 10px rgba(0,0,0,.4);
}

/* Lens */
.lens2 {
  width: 9px; height: 34px;
  background: linear-gradient(90deg, #22252b, #454952, #22252b);
  border: 1px solid #17191d;
}
.lens-glass2 {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(127,180,200,.8), rgba(28,38,58,.95) 45%, #0d0f13 85%);
  border: 3px solid #3a3d44;
  box-shadow: 0 0 12px rgba(127,180,200,.35);
}
.lens-glass2 .glint {
  left: 8px; top: 6px; width: 16px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.5); filter: blur(2px);
  animation: glint 4s ease-in-out infinite;
}
@keyframes glint { 0%, 100% { opacity: .25; } 50% { opacity: .8; } }

.cam-floor {
  position: absolute; left: 50%; bottom: 14px; width: 320px; height: 44px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%);
  filter: blur(6px);
}
@media (max-width: 860px) {
  .hero .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .cam-scene { width: 300px; height: 270px; }
}

/* ---------- Assembled large-format camera: extra detail ---------- */
.ring { background: #17191d; border: 2px solid #262a31; box-shadow: inset 0 0 12px rgba(0,0,0,.6); }
.board {
  left: 25px; top: 25px; width: 100px; height: 100px; border-radius: 4px;
  background: linear-gradient(160deg, #2b2f35, #1d2025); border: 2px solid #3a3d44;
}
.screw { width: 6px; height: 6px; border-radius: 50%; background: #454952; box-shadow: 0 0 0 1px #17191d; }
.screw.s1 { left: 31px; top: 31px; } .screw.s2 { right: 31px; top: 31px; }
.screw.s3 { left: 31px; bottom: 31px; } .screw.s4 { right: 31px; bottom: 31px; }
.std-front .dial { left: 34px; top: 34px; }
.carriage-front, .carriage-back, .carriage-right, .carriage-left, .carriage-bottom {
  background: linear-gradient(180deg, #2c3036, #1a1d22);
}
.carriage-top { background: #363a42; }
.barrel {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #454952, #22252b 70%);
  border: 4px solid #2c3036;
}
.lens-glass2 .aperture {
  left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #0d0f13; box-shadow: 0 0 0 2px #3a3d44;
}

.proc-explain { color: var(--muted); font-size: .95rem; }

/* Red bellows */
.ring { background: #6d1f26; border: 2px solid #8a2b31; box-shadow: inset 0 0 14px rgba(0,0,0,.55); }

/* Accesibilidad */
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--accent); color: #111; padding: 10px 16px; border-radius: 6px; z-index: 200; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero { background-attachment: scroll; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .glint { animation: none; }
}

/* CTA */
.hero-cta { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #141414; font-weight: 600; }
.btn.primary:hover { background: #e4b255; border-color: #e4b255; }
/* Hero en móvil: fixed causa scroll entrecortado en iOS */
@media (max-width: 860px) {
  .hero { background-attachment: local; }
}
