/* Pintura Sandra · Craft-Industrial Madrileña · CSS estático */
:root {
  --cream: #f4efe9;
  --paper: #fbf9f6;
  --sand: #e8ded2;
  --olive: #3d4a2e;
  --olive-deep: #27321e;
  --olive-soft: #596747;
  --gold: #b8965a;
  --ink: #24221f;
  --muted: #746e67;
  --line: rgba(61, 74, 46, .16);
  --white: #fff;
  --shadow: 0 22px 65px rgba(35, 31, 26, .12);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Outfit", Arial, sans-serif;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--body); font-weight: 300; line-height: 1.6; }
body.no-scroll { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { border: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -60px; padding: 10px 15px; color: var(--white); background: var(--olive); transition: top .2s ease; }
.skip-link:focus { top: 16px; }

/* Icons are drawn in CSS so the export has no icon dependency. */
.icon { display: inline-block; width: 18px; height: 18px; position: relative; flex: 0 0 auto; }
.icon-arrow::before { content: "→"; position: absolute; inset: -7px 0 0; font-size: 25px; line-height: 18px; }
.icon-down::before { content: "⌄"; position: absolute; inset: -6px 0 0; font-size: 23px; line-height: 18px; }
.icon-expand::before { content: "↗"; position: absolute; inset: -2px 0 0; font-size: 18px; }
.icon-phone::before { content: "⌕"; position: absolute; inset: 0; transform: rotate(-45deg); font-size: 24px; line-height: 17px; }
.icon-play { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; }
.icon-close::before, .icon-close::after { content: ""; position: absolute; top: 8px; left: 0; width: 20px; height: 1px; background: currentColor; }
.icon-close::before { transform: rotate(45deg); }
.icon-close::after { transform: rotate(-45deg); }
.icon-pin::before { content: "●"; position: absolute; top: -8px; left: 4px; font-size: 19px; }
.icon-whatsapp::before { content: "◔"; position: absolute; inset: -1px 0 0; font-size: 27px; line-height: 18px; font-weight: 500; }

/* Header */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; color: var(--white); transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.site-header.scrolled { color: var(--ink); background: rgba(244,239,233,.94); box-shadow: 0 8px 28px rgba(40, 34, 26, .08); backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--olive); overflow: hidden; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.brand-copy { display: grid; line-height: 1; gap: 5px; }
.brand-copy strong { font: 600 23px/1 var(--display); letter-spacing: -.02em; }
.brand-copy small { font-size: 10px; line-height: 1; color: currentColor; opacity: .58; letter-spacing: .2em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.main-nav > a:not(.nav-call) { opacity: .78; transition: opacity .2s ease, color .2s ease; }
.main-nav > a:not(.nav-call):hover { color: var(--olive); opacity: 1; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; color: var(--white); background: var(--olive); transition: transform .2s ease, background .2s ease; }
.nav-call:hover { background: var(--olive-deep); transform: translateY(-2px); }
.menu-toggle { display: none; width: 42px; height: 42px; color: currentColor; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease; }

/* Shared */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .2em; line-height: 1.2; text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,.55); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184,150,90,.18); }
.section { position: relative; padding: 132px 0; overflow: hidden; }
.section-heading { display: flex; align-items: flex-start; gap: 26px; margin-bottom: 60px; }
.section-number { margin-top: -11px; color: rgba(61,74,46,.12); font: 300 126px/.8 var(--display); user-select: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: clamp(42px, 6vw, 76px); line-height: .93; }
h2 em, h1 em { color: var(--olive); font-weight: 300; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font-size: 13px; font-weight: 500; letter-spacing: .02em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(35,31,26,.16); }
.button-primary { color: var(--white); background: var(--olive); }
.button-primary:hover { background: var(--olive-deep); }
.button-ghost { color: var(--white); border: 1px solid rgba(255,255,255,.52); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.18); }
.button-light { color: var(--olive); background: var(--white); }
.texture-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .29; background: url("assets/texture-bg.jpg") center/cover; mix-blend-mode: multiply; }
.texture-section > .container { position: relative; z-index: 1; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; min-height: 760px; height: 100svh; max-height: 980px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-image, .hero-shade, .hero-grain { position: absolute; inset: 0; }
.hero-image { background: url("assets/hero-bg.jpg") center/cover; transform: scale(1.02); animation: hero-drift 16s ease-in-out infinite alternate; }
.hero-shade { background: linear-gradient(90deg, rgba(19,22,14,.76) 0%, rgba(19,22,14,.42) 44%, rgba(19,22,14,.08) 100%); }
.hero-grain { opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.24'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.hero-content { position: relative; z-index: 1; padding-top: 68px; }
.hero-eyebrow { color: rgba(255,255,255,.84); animation: rise .65s .12s both; }
.hero h1 { max-width: 700px; margin: 0 0 24px; color: var(--white); font-size: clamp(64px, 10vw, 132px); line-height: .78; animation: rise .8s .2s both; }
.hero h1 em { color: #ead8bc; }
.hero-lead { max-width: 510px; margin-bottom: 35px; color: rgba(255,255,255,.78); font-size: clamp(16px, 2vw, 20px); line-height: 1.45; animation: rise .8s .32s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; animation: rise .8s .42s both; }
.hero-stats { display: flex; gap: clamp(22px, 5vw, 62px); margin-top: 76px; animation: rise .8s .56s both; }
.hero-stats div { display: grid; gap: 3px; }
.hero-stats strong { color: #ead8bc; font: 600 clamp(31px, 4vw, 47px)/.9 var(--display); }
.hero-stats span { color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .04em; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; display: grid; justify-items: center; gap: 2px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; transform: translateX(-50%); animation: float 2s ease-in-out infinite; }

/* Services */
.services-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 220px; padding: 28px 26px 25px; border: 1px solid var(--line); background: rgba(255,255,255,.56); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { border-color: rgba(61,74,46,.32); box-shadow: var(--shadow); transform: translateY(-6px); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 18px; color: var(--gold); border: 1px solid rgba(184,150,90,.5); font-size: 10px; letter-spacing: .1em; }
.service-card h3 { margin-bottom: 11px; font-size: 29px; line-height: .96; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Gallery */
.works-section { background: var(--cream); }
.photo-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.photo-card { position: relative; min-height: 240px; padding: 0; overflow: hidden; color: var(--white); background: var(--sand); cursor: pointer; text-align: left; }
.photo-large { grid-row: span 2; min-height: 515px; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(15,16,11,.58)); opacity: .75; transition: opacity .3s ease; }
.photo-card span { position: absolute; z-index: 1; left: 18px; bottom: 17px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.photo-card:hover img { filter: saturate(1.08); transform: scale(1.06); }
.photo-card:hover::after { opacity: 1; }
.subheading { display: flex; align-items: end; justify-content: space-between; margin: 78px 0 24px; }
.subheading .eyebrow { margin: 0; }
.subheading h3 { margin: 0; color: var(--olive); font-size: 48px; line-height: .85; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video-card { position: relative; min-height: 214px; padding: 0; overflow: hidden; color: var(--white); background: var(--olive-deep); cursor: pointer; text-align: left; }
.video-card video { width: 100%; height: 100%; min-height: 214px; object-fit: cover; opacity: .79; transition: transform .55s ease, opacity .3s ease; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.6)); pointer-events: none; }
.video-card:hover video { opacity: 1; transform: scale(1.06); }
.video-card small { position: absolute; z-index: 1; bottom: 14px; left: 15px; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.play-button { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; transform: translate(-50%, -50%); transition: background .25s ease, transform .25s ease; }
.play-button .icon { margin-left: 4px; }
.video-card:hover .play-button { background: rgba(255,255,255,.18); transform: translate(-50%, -50%) scale(1.1); }

/* About */
.about-section { position: relative; padding: 130px 0; overflow: hidden; color: var(--white); background: var(--olive); }
.about-section::after { content: "S"; position: absolute; right: 2%; bottom: -18%; color: rgba(255,255,255,.04); font: 700 440px/.8 var(--display); }
.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 90px; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy h2 em { color: #ead8bc; }
.about-copy p { max-width: 560px; color: rgba(255,255,255,.69); font-size: 16px; line-height: 1.7; }
.about-copy .button { margin-top: 22px; }
.promise-list { display: grid; gap: 12px; }
.promise-list > div { display: flex; align-items: center; gap: 15px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); color: rgba(255,255,255,.84); font-size: 14px; backdrop-filter: blur(8px); }
.check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--olive); background: #ead8bc; font-size: 13px; font-weight: 600; }

/* Contact */
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: start; }
.contact-copy > p { max-width: 420px; margin: 0 0 37px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--white); background: var(--olive); }
.whatsapp-icon { background: #25d366; }
.contact-line span:last-child { display: grid; gap: 2px; }
.contact-line small { color: var(--muted); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.contact-line strong { font: 600 23px/1 var(--display); }
.quote-form { display: grid; gap: 17px; padding: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.75); box-shadow: 0 18px 50px rgba(46,39,30,.06); }
.quote-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.quote-form input, .quote-form textarea { width: 100%; padding: 13px 14px; resize: vertical; color: var(--ink); border: 1px solid rgba(61,74,46,.17); border-radius: 0; outline: none; background: rgba(255,255,255,.62); font-size: 14px; font-weight: 300; letter-spacing: normal; text-transform: none; transition: border .2s ease, box-shadow .2s ease; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--olive-soft); box-shadow: 0 0 0 3px rgba(61,74,46,.11); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.optional { opacity: .55; letter-spacing: .04em; text-transform: lowercase; }
.form-submit { width: 100%; margin-top: 3px; cursor: pointer; }
.form-note, .form-success { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.form-success { display: none; color: var(--olive); font-weight: 500; }
.form-success.is-visible { display: block; }

/* Footer and WhatsApp */
.site-footer { padding: 28px 0; color: rgba(255,255,255,.55); background: #22241e; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand-footer { color: var(--white); }
.brand-footer .brand-mark { width: 36px; height: 36px; }
.brand-footer .brand-mark img { width: 31px; height: 31px; }
.brand-footer .brand-copy strong { font-size: 20px; }
.site-footer p, .footer-links { margin: 0; font-size: 11px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--white); }
.whatsapp-float { position: fixed; z-index: 18; right: 24px; bottom: 24px; display: grid; place-items: center; width: 61px; height: 61px; color: var(--white); border-radius: 50%; background: #25d366; box-shadow: 0 12px 27px rgba(37,211,102,.34); transition: transform .25s ease, box-shadow .25s ease; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 16px 35px rgba(37,211,102,.42); }
.whatsapp-float .icon { width: 31px; height: 31px; }
.whatsapp-tooltip { position: absolute; right: 74px; width: max-content; padding: 9px 12px; color: var(--ink); border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 22px rgba(0,0,0,.12); font-size: 11px; opacity: 0; pointer-events: none; transform: translateX(8px); transition: opacity .2s ease, transform .2s ease; }
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: none; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 35px; background: rgba(17,19,14,.92); animation: fade-in .2s ease; }
.lightbox-close { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 43px; height: 43px; color: var(--white); border: 1px solid rgba(255,255,255,.4); background: transparent; cursor: pointer; }
.lightbox-content { width: min(100%, 980px); max-height: calc(100vh - 80px); }
.lightbox-content img, .lightbox-content video { width: 100%; max-height: calc(100vh - 90px); object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.34); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -7px); } }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.07); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 920px) {
  .main-nav { gap: 19px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 48px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .nav-wrap { min-height: 68px; }
  .brand-copy strong { font-size: 20px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; inset: 68px 0 auto; display: grid; gap: 0; padding: 10px 16px 18px; color: var(--ink); background: rgba(244,239,233,.98); box-shadow: 0 18px 25px rgba(0,0,0,.08); transform: translateY(-20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav > a { padding: 15px 2px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-call { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .hero { min-height: 720px; }
  .hero-shade { background: linear-gradient(90deg, rgba(19,22,14,.78), rgba(19,22,14,.22)); }
  .hero-content { padding-top: 45px; }
  .hero h1 { font-size: clamp(62px, 18vw, 100px); }
  .hero-stats { gap: 23px; margin-top: 57px; }
  .hero-stats strong { font-size: 34px; }
  .hero-stats span { font-size: 9px; line-height: 1.2; }
  .section { padding: 93px 0; }
  .section-heading { gap: 0; margin-bottom: 38px; }
  .section-number { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 24px; }
  .photo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 270px 190px; }
  .photo-large { grid-column: span 2; grid-row: auto; min-height: 270px; }
  .photo-small { min-height: 190px; }
  .subheading { align-items: start; gap: 15px; margin-top: 60px; }
  .subheading h3 { font-size: 39px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .video-card { min-height: 180px; }
  .video-card video { min-height: 180px; }
  .about-section { padding: 95px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-section::after { font-size: 280px; right: -5%; bottom: -4%; }
  .quote-form { padding: 23px 18px; }
  .footer-wrap { flex-wrap: wrap; }
  .site-footer p { order: 3; width: 100%; }
}

@media (max-width: 460px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-stats { gap: 15px; }
  .hero-stats strong { font-size: 30px; }
  .hero-stats span { max-width: 72px; }
  .form-row { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card, .video-card video { min-height: 215px; }
  .footer-links { width: 100%; justify-content: space-between; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
