/*
Theme Name: DURÁN KRAFT
Theme URI: https://durankraft.com/
Author: Greenyflow
Description: Tema ligero para DURÁN KRAFT, centrado en sistemas de Pladur, aislamientos y acabados.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: duran-kraft
*/

:root {
  --paper: #eae6de;
  --paper-light: #f6f3ed;
  --ink: #24302b;
  --muted: #58635d;
  --line: #c6c9bd;
  --copper: #995535;
  --copper-light: #c58a66;
  --forest: #263a31;
  --white: #fff;
  --shadow: 0 24px 65px rgba(33, 42, 34, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body, button, input { font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; }
::selection { color: #fff; background: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
.whatsapp-float { position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 100; display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 18px; overflow: hidden; border-radius: 999px; background: #227c54; color: #fff; box-shadow: 0 7px 24px rgba(17, 54, 36, .28); font-size: .9rem; font-weight: 700; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease; }
.whatsapp-float::after { content: ""; position: absolute; inset: -70% auto -70% -50%; width: 34%; transform: translateX(-180%) rotate(22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent); pointer-events: none; animation: whatsapp-glint 6s ease-in-out infinite; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 29px rgba(17, 54, 36, .38); }
.whatsapp-float-icon { width: 29px; height: 29px; flex: none; }
@keyframes whatsapp-glint { 0%, 65%, 100% { transform: translateX(-180%) rotate(22deg); opacity: 0; } 70% { opacity: 1; } 82% { transform: translateX(650%) rotate(22deg); opacity: 0; } }
@media (max-width: 480px) { .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 58px; height: 58px; justify-content: center; padding: 12px; } .whatsapp-float-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float, .whatsapp-float::after { animation: none; transition: none; } .whatsapp-float::after { display: none; } }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 12px 16px; background: #fff; color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1392px, calc(100% - 88px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--copper); font-size: .72rem; font-weight: 700; letter-spacing: .19em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 1px; flex: 0 0 30px; background: currentColor; }
.section-heading { max-width: 740px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; text-wrap: balance; }
.section-lede { max-width: 500px; color: var(--muted); font-size: 1.07rem; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--copper); padding-bottom: 5px; font-size: .85rem; font-weight: 700; }
.text-link:hover { color: var(--copper); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; border: 1px solid var(--forest); padding: 15px 22px; background: var(--forest); color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.4; transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover { background: #18271f; box-shadow: 0 12px 24px rgba(23, 37, 28, .18); transform: translateY(-2px); }
.button.is-light { border-color: var(--paper-light); background: var(--paper-light); color: var(--ink); }
.button.is-light:hover { background: #fff; }
.button.is-disabled { opacity: .66; cursor: not-allowed; }
.button.is-disabled:hover { transform: none; box-shadow: none; }

/* Header */
.dk-reservas { max-width: 1000px; padding-block: 80px 120px; }
.dk-reservas-intro { max-width: 700px; margin-bottom: 40px; }
.dk-reservas h1 { margin: 16px 0 20px; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
.dk-reservas-intro p:last-child, .dk-reservas-note { color: var(--muted); }
.dk-reservas-form { display: grid; gap: 25px; padding: 34px; background: var(--paper-light); }
.dk-reservas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.dk-reservas-form label { display: grid; gap: 8px; font-weight: 650; }
.dk-reservas-form input, .dk-reservas-form textarea { width: 100%; border: 1px solid var(--line); padding: 13px 15px; background: white; color: var(--ink); font: inherit; }
.dk-reservas-form .button { justify-self: start; cursor: pointer; }
.dk-reservas-form .button:disabled { opacity: .6; cursor: wait; }
.dk-reservas-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 650px) { .dk-reservas-grid { grid-template-columns: 1fr; } .dk-reservas-form { padding: 22px; } }
.site-header { position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; font-size: .98rem; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--copper); color: var(--copper); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; letter-spacing: 0; }
.brand-logo { max-height: 55px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(17px, 2.5vw, 39px); }
.nav-links a { font-size: .83rem; font-weight: 650; transition: color .2s ease; }
.nav-links a:hover { color: var(--copper); }
.nav-links .nav-cta { display: inline-flex; border: 1px solid var(--ink); padding: 11px 17px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 48%) minmax(0, 52%); min-height: 690px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 78px 7% 84px 0; }
.hero h1 { max-width: 720px; margin: 27px 0 25px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(3.5rem, 5.45vw, 6.5rem); font-weight: 500; letter-spacing: -.062em; line-height: 1.04; text-wrap: balance; }
.hero h1 em { color: var(--copper); font-style: normal; }
.hero .section-lede { max-width: 530px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-figure { position: relative; min-height: 690px; overflow: hidden; background: #bdb5a9; }
.hero-figure img { width: 100%; height: 100%; min-height: 690px; object-fit: cover; object-position: center; }
.hero-figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16,25,17,.1), transparent 50%); }
.photo-index { position: absolute; z-index: 1; top: 27px; left: 27px; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .17em; text-shadow: 0 1px 5px #0008; }
.image-note { position: absolute; z-index: 1; right: 22px; bottom: 22px; max-width: 300px; padding: 12px 14px; background: rgba(246,243,237,.95); color: #39443d; font-size: .73rem; line-height: 1.45; }

/* Sections */
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10%; padding-block: 112px; border-bottom: 1px solid var(--line); }
.intro .section-heading { margin-top: 20px; }
.intro .section-lede { padding-bottom: 9px; }
.section { padding-block: 112px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.section-title .section-heading { margin-top: 18px; }
.section-title .section-lede { max-width: 320px; padding-bottom: 5px; font-size: .95rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.service-card { display: flex; flex-direction: column; min-height: 360px; border-top: 2px solid var(--copper); padding: 30px 27px 27px; background: var(--paper-light); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-number { color: var(--copper); font-size: .71rem; font-weight: 700; letter-spacing: .13em; }
.service-card h3 { margin: auto 0 18px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(1.65rem, 2.1vw, 2.15rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.service-card ul { padding-left: 18px; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.service-card li + li { margin-top: 8px; }
.service-card li::marker { color: var(--copper); }
.service-more { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: auto; padding: 12px 15px; border: 1px solid var(--forest); border-radius: 3px; background: var(--forest); color: var(--white); font-size: .84rem; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.service-more:hover, .service-more:focus-visible { background: var(--copper); border-color: var(--copper); color: var(--white); transform: translateY(-2px); }
.service-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.technical-band { position: relative; overflow: hidden; background: #d2d1c5; }
.technical-band::before { content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none; background-image: linear-gradient(#8a948a 1px, transparent 1px), linear-gradient(90deg, #8a948a 1px, transparent 1px); background-size: 42px 42px; }
.technical-band-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.detail-art { display: flex; align-items: center; justify-content: center; padding: 65px; }
.detail-art svg { width: min(100%, 560px); height: auto; filter: drop-shadow(0 20px 28px rgba(45,56,45,.11)); }
.detail-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 70px 8%; }
.detail-copy .section-heading { margin: 22px 0; }
.detail-copy .section-lede { margin-bottom: 26px; }

.advantage-section { padding-block: 112px; background: var(--forest); color: var(--paper-light); }
.advantage-section .eyebrow { color: var(--copper-light); }
.advantage-section .section-heading { margin: 19px 0 50px; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.advantage-grid article { border-top: 1px solid rgba(255,255,255,.4); padding-top: 20px; }
.advantage-grid span { color: var(--copper-light); font-size: .76rem; font-weight: 700; }
.advantage-grid h3 { margin: 42px 0 14px; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; }
.advantage-grid p { color: #d2d9d1; font-size: .88rem; line-height: 1.68; }
.step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step-number { color: var(--copper); font-size: .78rem; font-weight: 700; }
.step h3 { margin: 36px 0 12px; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.72rem; font-weight: 500; letter-spacing: -.03em; }
.step p { max-width: 270px; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* Contact and footer */
.contact { padding-block: 88px; background: #1f3028; color: var(--paper-light); }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.contact .eyebrow { color: var(--copper-light); }
.contact .section-heading { margin-top: 20px; }
.contact-email { margin-top: 22px; color: #d4ddd3; font-size: .92rem; }
.contact-email a { color: #fff; border-bottom: 1px solid var(--copper-light); }
.contact-email a:hover { color: var(--copper-light); }
.contact-preview-note { display: block; margin-top: 12px; color: #e7d5c7; font-size: .82rem; }
.site-footer { background: var(--paper-light); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; min-height: 94px; padding-block: 22px; color: var(--muted); font-size: .78rem; }
.footer-logo { width: 126px; height: 126px; object-fit: contain; background: #fff; }
.footer-info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-right: auto; }
.footer-inner strong { color: var(--ink); letter-spacing: .12em; }
.footer-info a:hover { color: var(--copper); text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--copper); text-decoration: underline; }

/* Default pages */
.page-shell { min-height: 55vh; padding-block: 85px 100px; }
.page-shell h1 { max-width: 900px; margin: 20px 0 32px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500; line-height: 1.1; }
.page-content { max-width: 850px; color: #354038; line-height: 1.8; }
.page-content a { color: var(--copper); text-decoration: underline; }
.page-content p, .page-content ul, .page-content ol { margin-bottom: 1.25em; }
.page-content h2, .page-content h3 { margin: 1.5em 0 .6em; line-height: 1.2; }
.page-content ul, .page-content ol { padding-left: 1.5em; }
.page-content > p:first-child { max-width: 760px; color: var(--muted); font-size: 1.2rem; line-height: 1.7; }
.page-content h2 { padding-top: .35em; border-top: 1px solid var(--line); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -.03em; }
.page-content h3 { font-size: 1.25rem; font-weight: 650; }
.page-content li { margin-bottom: .45em; }
.service-page-nav { margin-top: 75px; border-top: 1px solid var(--line); padding-top: 30px; }
.service-page-nav h2 { margin: 0 0 22px; font-size: 1.4rem; font-weight: 600; }
.service-page-nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
.service-page-nav-links a { display: inline-flex; justify-content: space-between; gap: 25px; min-width: 250px; border: 1px solid var(--line); padding: 18px; background: var(--paper-light); font-weight: 650; }
.service-page-nav-links a:hover { border-color: var(--copper); color: var(--copper); }

/* Motion: visible by default when JavaScript does not run. */
.has-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.has-js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.cursor-glow { position: fixed; z-index: 50; top: 0; left: 0; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(177,114,71,.14), transparent 67%); transform: translate3d(-50%, -50%, 0); transition: opacity .3s ease; }
.cursor-glow.is-active { opacity: 1; }
.cursor-ring { position: fixed; z-index: 51; top: 0; left: 0; width: 25px; height: 25px; border: 1px solid rgba(153,85,53,.75); border-radius: 50%; pointer-events: none; opacity: 0; transform: translate3d(-50%, -50%, 0); transition: width .25s ease, height .25s ease, opacity .25s ease, background .25s ease; }
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-over-link { width: 42px; height: 42px; background: rgba(153,85,53,.1); }

@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 310px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 45px; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 48px, 720px); }
  .nav { min-height: 74px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 12px 20px #1f2d241a; }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 13px 5px; }
  .nav-links .nav-cta { justify-content: center; margin-top: 8px; padding: 13px 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 75px 0; }
  .hero h1 { max-width: 700px; font-size: clamp(3.2rem, 9vw, 5.4rem); }
  .hero-figure, .hero-figure img { min-height: 520px; max-height: 680px; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding-block: 85px; }
  .section { padding-block: 85px; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .section-title .section-lede { max-width: 500px; }
  .technical-band-inner { grid-template-columns: 1fr; }
  .detail-art { padding: 60px 30px 10px; }
  .detail-copy { padding: 40px 0 75px; }
  .advantage-section { padding-block: 85px; }
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 25px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .brand { gap: 8px; font-size: .83rem; letter-spacing: .09em; }
  .brand-mark { width: 29px; height: 29px; }
  .hero-copy { padding-block: 62px; }
  .hero h1 { font-size: clamp(2.85rem, 11vw, 4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-figure, .hero-figure img { min-height: 410px; max-height: 540px; }
  .photo-index { top: 18px; left: 18px; }
  .image-note { right: 12px; bottom: 12px; left: 12px; max-width: none; }
  .intro, .section, .advantage-section { padding-block: 72px; }
  .section-heading { font-size: clamp(2.5rem, 10vw, 3.6rem); }
  .service-grid, .advantage-grid, .step-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .advantage-grid { row-gap: 34px; }
  .advantage-grid h3 { margin-top: 24px; }
  .step-grid { gap: 34px; }
  .step h3 { margin-top: 23px; }
  .contact { padding-block: 72px; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-shell { padding-block: 65px 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .has-js .reveal { opacity: 1; transform: none; }
  .cursor-glow, .cursor-ring { display: none; }
}
@media (pointer: coarse) {
  .cursor-glow, .cursor-ring { display: none; }
}
