:root {
  /* colores extraídos del isologo real */
  --ink: #373435;        /* gris carbón del topo */
  --accent: #f58634;     /* naranja del círculo */
  --lime: #a3c93a;       /* verde lima, complementa al naranja */
  --cream: #faf7f2;      /* blanco cálido del fondo del logo */

  /* derivados de tinta */
  --ink-light: #4a4547;
  --text: var(--ink);
  --text-secondary: #6b6360;

  /* derivados de naranja */
  --accent-dark: #cc6a1f;
  --accent-light: #fbe3cc;

  /* derivados de crema */
  --surface: var(--cream);
  --surface-alt: #f2ece2;
  --border: #e6ddd0;

  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
}

.brand-text .tagline {
  font-size: 12px;
  color: var(--text-secondary);
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-secondary);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, opacity .12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover { opacity: .92; }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 200;
  cursor: zoom-out;
}

.lightbox-overlay.hidden { display: none; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Hero v2 — desestructurado */
.hero-v2 {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin-bottom: 16px;
}

.hero-diagonal {
  position: absolute;
  inset: 0;
  width: 68%;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.hero-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 64%;
  width: 5%;
  background: var(--accent);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

.hero-v2-inner {
  position: relative;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-v2-text { max-width: 480px; }

.hero-v2-text .eyebrow {
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #c3dd7e;
  margin-bottom: 18px;
}

.hero-v2-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.05;
  margin: 0;
}

.hero-v2-title .line {
  display: block;
  color: var(--cream);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero-v2-title-dark .line {
  color: var(--lime);
  transform: rotate(-2deg);
}

.hero-v2-rule {
  width: 220px;
  height: 3px;
  background: var(--accent);
  margin: 28px 0 20px;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero-v2-sub {
  color: #d9d5cc;
  font-size: 16px;
  max-width: 360px;
  margin-bottom: 28px;
}

.hero-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-tilt {
  display: inline-block;
  background: var(--accent);
  color: #1c1a1a;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 4px;
  transform: rotate(3deg);
}

.hero-v2-photo {
  position: absolute;
  top: 50px;
  right: 40px;
  width: 340px;
  height: 420px;
  border: 3px solid var(--accent);
  transform: rotate(-6deg);
  overflow: hidden;
  background: var(--ink);
}

.hero-v2-photo img { width: 100%; height: 100%; object-fit: cover; }



@media (max-width: 860px) {
  .hero-v2 { min-height: auto; }
  .hero-diagonal, .hero-stripe { width: 100%; clip-path: none; }
  .hero-v2-inner { padding: 40px 24px; }
  .hero-v2-title { font-size: 40px; }
  .hero-v2-photo { display: none; }
  .hero-v2-text { max-width: 100%; }
}

/* Sections */
section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.section-head .see-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Services grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-2x2 .card {
  padding: 36px 40px;
  min-height: 260px;
}

.grid-2x2 .card:nth-child(odd) { transform: rotate(-0.5deg); }
.grid-2x2 .card:nth-child(even) { transform: rotate(0.5deg); }
.grid-2x2 .card { transition: transform .15s ease; }
.grid-2x2 .card:hover { transform: rotate(0deg) scale(1.008); }

.card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.grid-3 .card:nth-child(even) .icon {
  background: rgba(163, 201, 58, 0.2);
  color: #5c7a1e;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p { font-size: 14px; color: var(--text-secondary); }

.card ul {
  margin-top: 14px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.card li { margin-bottom: 4px; }

/* Gallery */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9a978f;
  font-size: 12px;
  border: 1px dashed var(--border);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-item i { font-size: 22px; }

/* CTA banner */
.cta-banner {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 40px 0;
}

.cta-banner.accent-lime {
  background: var(--lime);
  color: #253006;
}

.cta-banner.accent-lime .btn-light {
  background: #253006;
  color: var(--lime);
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 24px;
}

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  z-index: 50;
}

.page-lead {
  color: var(--text-secondary);
  max-width: 520px;
  padding: 20px 0 8px;
}

/* Page hero — diagonal reducida para subpáginas, alterna naranja/lima */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  margin-bottom: 8px;
}

.page-hero-diagonal {
  position: absolute;
  inset: 0;
  width: 46%;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.page-hero.accent-orange .page-hero-diagonal { background: var(--accent); }
.page-hero.accent-lime .page-hero-diagonal { background: var(--lime); }

.page-hero-inner {
  position: relative;
  padding: 48px 0;
}

.page-hero-inner h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  transform: rotate(-1.5deg);
  transform-origin: left center;
  margin-bottom: 14px;
  max-width: 420px;
}

.page-hero.accent-orange h1 { color: #1c1a1a; }
.page-hero.accent-lime h1 { color: #253006; }

.page-hero-inner .tag-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  border-radius: 3px;
  transform: rotate(-3deg);
  margin-bottom: 14px;
}

.page-hero.accent-orange .tag-badge { background: #1c1a1a; color: var(--accent); }
.page-hero.accent-lime .tag-badge { background: #253006; color: var(--lime); }

@media (max-width: 860px) {
  .page-hero-diagonal { width: 100%; clip-path: none; }
  .page-hero-inner { padding: 32px 24px; }
  .page-hero-inner h1 { font-size: 30px; }
}

/* Rotación sutil y alternada en cards y fotos de galería */
.grid-3 .card:nth-child(odd) { transform: rotate(-0.6deg); }
.grid-3 .card:nth-child(even) { transform: rotate(0.6deg); }
.grid-3 .card { transition: transform .15s ease; }
.grid-3 .card:hover { transform: rotate(0deg) scale(1.01); }

.gallery-item:nth-child(3n+1) { transform: rotate(-1.2deg); }
.gallery-item:nth-child(3n+2) { transform: rotate(0.8deg); }
.gallery-item:nth-child(3n) { transform: rotate(-0.5deg); }
.gallery-item { transition: transform .15s ease; }
.gallery-item:hover { transform: rotate(0deg) scale(1.03); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 760px;
  margin: 0 auto;
}

.contact-info .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-info .item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(163, 201, 58, 0.2);
  color: #5c7a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info .item h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.contact-info .item p, .contact-info .item a { font-size: 14px; color: var(--text-secondary); }

form { display: flex; flex-direction: column; gap: 14px; }

label { font-size: 13px; font-weight: 600; color: var(--text); }

input, textarea {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--surface-alt);
}

textarea { resize: vertical; min-height: 110px; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Responsive */
@media (max-width: 860px) {
  .site-header { position: relative; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    z-index: 40;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero h1 { font-size: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2x2 { grid-template-columns: 1fr; }
  .grid-2x2 .card { min-height: auto; padding: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
