/* ==========================================================================
   Podas El Araucaria — sistema de diseño
   Paleta: negro cálido + blanco hueso + verde follaje
   Tipografía: Big Shoulders (display, vertical/estructural) + Work Sans (texto)
   ========================================================================== */

:root{
  --bg:        #0b0c0a;
  --bg-alt:    #121410;
  --panel:     #16180f8c;
  --ink:       #f4f3ee;
  --ink-muted: #a7a89b;
  --line:      #2a2c22;
  --green:     #5c9a3c;
  --green-2:   #79b955;
  --green-bright: #a3e065;
  --green-dim: #3d6829;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.96;
  margin: 0;
}

p{ margin: 0 0 1em; color: var(--ink-muted); max-width: 62ch; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section{ position: relative; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

::selection{ background: var(--green-dim); color: var(--ink); }

/* ---------- eyebrow / section head ---------- */
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.section-head .tag{
  color: var(--green-2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.section-head h2{
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.section-head p{ margin: 0.5rem 0 0; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  padding: 0.85em 1.6em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--green);
  color: #0b0c0a;
}
.btn-primary:hover{ background: var(--green-bright); }
.btn-primary:active{ transform: translateY(1px); }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--green-2); color: var(--green-bright); }

.btn-line{
  color: var(--green-2);
  border-bottom: 1px solid var(--green-dim);
  padding: 0.1em 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-line:hover{ color: var(--green-bright); border-color: var(--green-bright); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: linear-gradient(to bottom, rgba(11,12,10,0.92), rgba(11,12,10,0));
  transition: background 0.25s ease, padding 0.25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(11,12,10,0.92);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  border-color: var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand{ display: flex; align-items: center; gap: 0.65rem; }
.brand svg{ width: 34px; height: 34px; flex: none; }
.brand-text{
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-text b{ color: var(--green-2); font-weight: 700; }

.main-nav{ display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.main-nav a{
  font-size: 0.95rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a.active{ color: var(--green-2); }

.header-actions{ display: flex; align-items: center; gap: 0.9rem; }
.header-actions .tel{
  font-size: 0.92rem;
  color: var(--ink-muted);
  display: none;
}
.header-actions .tel:hover{ color: var(--green-bright); }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 861px){
  .header-actions .tel{ display: inline-block; }
}

@media (max-width: 860px){
  .main-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: #0e0f0c;
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.2rem; }
  .nav-toggle{ display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding-top: 6rem;
  overflow: clip;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-copy .kicker{
  color: var(--green-2);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.9rem;
}
.hero-copy h1{
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  color: var(--ink);
}
.hero-copy h1 em{
  font-style: normal;
  color: var(--green-2);
}
.hero-copy .lede{
  margin-top: 1.4rem;
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-muted);
}
.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.1rem;
}

.hero-stats{
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.8rem);
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-stats div b{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--ink);
}
.hero-stats div span{
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* the "height ruler" visual — a vertical rope/measuring motif that literally
   represents "poda en altura" (pruning at height). Ties the decorative
   device to the actual service specialty instead of using it as filler. */
.hero-visual{
  position: relative;
  height: min(72vh, 680px);
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.hero-visual img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
  filter: saturate(0.92) contrast(1.04);
}
.hero-visual::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,10,0.05) 0%, rgba(11,12,10,0.15) 55%, rgba(11,12,10,0.75) 100%),
              linear-gradient(90deg, rgba(11,12,10,0.55) 0%, rgba(11,12,10,0) 30%);
}
.height-ruler{
  position: absolute;
  left: 14px; top: 14px; bottom: 14px;
  width: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.height-ruler::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--green-bright) 0 4px, transparent 4px 9px);
  opacity: 0.85;
}
.height-ruler span{
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--green-bright);
  background: var(--bg);
  padding: 1px 5px;
  z-index: 1;
}
.hero-visual figcaption{
  position: absolute;
  left: 16px; bottom: 14px;
  right: 16px;
  z-index: 2;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.hero-visual figcaption b{ color: var(--ink); font-weight: 600; }

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; height: 46vh; min-height: 320px; }
  .hero{ padding-top: 5.5rem; }
}

/* ==========================================================================
   Marquee strip (services ticker under hero)
   ========================================================================== */
.strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 0.75rem 0;
}
.strip-track{
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  gap: 3rem;
}
.strip-track span{
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  white-space: nowrap;
}
.strip-track span::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--green-2);
  border-radius: 50%;
  display: inline-block;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .strip-track{ animation: none; flex-wrap: wrap; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about{ padding: clamp(4rem, 9vw, 7rem) 0; }
.about .wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-media{
  position: relative;
}
.about-media .frame{
  position: relative;
  border: 1px solid var(--line);
  padding: 14px;
}
.about-media img{ width: 100%; height: auto; }
.about-media .corner{
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--green-2);
}
.about-media .corner.tl{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.about-media .corner.br{ bottom: -1px; right: -1px; border-left: none; border-top: none; }

.about-copy .tag{
  color: var(--green-2);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.about-copy h2{
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 0.6rem 0 1.2rem;
}
.about-copy p{ font-size: 1.02rem; }

.pillars{
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
.pillar{
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.pillar h3{
  font-size: 1.15rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.pillar h3 span{ color: var(--green-2); margin-right: 0.5rem; font-family: var(--font-display); }
.pillar p{ margin: 0; font-size: 0.96rem; }

@media (max-width: 820px){
  .about .wrap{ grid-template-columns: 1fr; }
  .about-media{ order: 2; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services{ padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--bg-alt);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.2s ease;
}
.service-card:hover{ background: #171911; }
.service-card:hover .icon{ color: var(--green-bright); transform: translateY(-2px); }
.service-card .icon{
  color: var(--green-2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.service-card .icon svg{ width: 40px; height: 40px; }
.service-card h3{
  font-size: 1.3rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 700;
}
.service-card p{ font-size: 0.93rem; margin: 0; }

@media (max-width: 900px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .service-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   Trabajos / gallery
   ========================================================================== */
.work{ padding: clamp(4rem, 9vw, 7rem) 0; }

.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 8px;
}
.gallery button{
  padding: 0; border: none; background: none; cursor: zoom-in;
  position: relative; overflow: hidden; display: block;
  border-radius: 2px;
}
.gallery img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, filter .3s ease;
  filter: saturate(0.94);
}
.gallery button:hover img{ transform: scale(1.06); filter: saturate(1.05); }
.gallery button::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(163,224,101,0);
  transition: box-shadow .2s ease;
}
.gallery button:hover::after{ box-shadow: inset 0 0 0 1px var(--green-bright); }

.gallery .g-tall{ grid-row: span 2; }
.gallery .g-wide{ grid-column: span 2; }

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .gallery .g-wide{ grid-column: span 2; }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: 1fr; grid-auto-rows: 58vw; }
  .gallery .g-tall, .gallery .g-wide{ grid-column: span 1; grid-row: span 1; }
}

.video-row{
  margin-top: 3rem;
}
.video-row .section-sub{
  display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.4rem;
}
.video-row .section-sub h3{
  font-size: 1.4rem; color: var(--ink); text-transform: none; letter-spacing: 0;
}
.video-row .section-sub span{ color: var(--ink-muted); font-size: 0.9rem; }

.yt-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.yt-card{
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.yt-card iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.yt-card video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.yt-thumb{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0; border: none;
  background: #000;
  cursor: pointer;
  display: block;
}
.yt-thumb img{
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.35s ease;
}
.yt-card:hover .yt-thumb img{ opacity: 1; transform: scale(1.04); }
.play-btn{
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--green);
  color: #0b0c0a;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.play-btn svg{ width: 22px; height: 22px; margin-left: 2px; }
.yt-card:hover .play-btn{ background: var(--green-bright); transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 760px){
  .yt-grid{ grid-template-columns: 1fr; }
}

/* lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,7,5,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 88vh; border: 1px solid var(--line); }
.lightbox .lb-close{
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox .lb-close:hover{ border-color: var(--green-2); color: var(--green-bright); }
.lightbox .lb-nav{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: rgba(11,12,10,0.6);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}
.lightbox .lb-nav:hover{ border-color: var(--green-2); color: var(--green-bright); }
.lb-prev{ left: 18px; }
.lb-next{ right: 18px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact .wrap{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 4rem);
}

.contact-form .tag{ color: var(--green-2); font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.95rem; }
.contact-form h2{ font-size: clamp(2rem, 5vw, 2.8rem); margin: 0.5rem 0 1.4rem; }

.field{ margin-bottom: 1.2rem; }
.field label{
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85em 1em;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border-radius: 2px;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--green-2);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }

.form-note{
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.8rem;
}
.form-status{
  font-size: 0.9rem;
  margin-top: 0.9rem;
  color: var(--green-bright);
  display: none;
}
.form-status.is-visible{ display: block; }

.contact-info{ display: flex; flex-direction: column; gap: 1.7rem; }
.info-block{ border-top: 1px solid var(--line); padding-top: 1.2rem; }
.info-block .label{
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: var(--green-2);
  display: block;
  margin-bottom: 0.4rem;
}
.info-block a, .info-block p{ font-size: 1.02rem; color: var(--ink); margin: 0; }
.info-block a:hover{ color: var(--green-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
}
.site-footer .wrap{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer p{ margin: 0; font-size: 0.85rem; color: var(--ink-muted); }
.footer-social{ display: flex; gap: 1.2rem; }
.footer-social a{ color: var(--ink-muted); font-size: 0.85rem; }
.footer-social a:hover{ color: var(--green-bright); }

/* ==========================================================================
   Floating Call + WhatsApp CTAs
   ========================================================================== */
.fab{
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  z-index: 150;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  color: #0b0c0a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: background 0.15s ease, transform 0.15s ease;
}
.fab:hover{ background: var(--green-bright); transform: translateY(-2px); }
.fab svg{ width: 26px; height: 26px; }

.wa-float{ bottom: clamp(1rem, 3vw, 1.8rem); }
.tel-float{ bottom: calc(clamp(1rem, 3vw, 1.8rem) + 58px + 0.85rem); }

/* ==========================================================================
   Reveal on scroll (single, restrained effect)
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* utility */
.sr-only{
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}