/* ===== Colores y tipografía (cambia aquí tu color de marca) ===== */
:root {
  --accent: #F2A900;
  --black: #141414;
  --dark: #1F1F1F;
  --bg: #F4F3EF;
  --white: #FFFFFF;
  --text: #1B1B1B;
  --muted: #3A3935;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 24px; }
p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.strong { font-weight: 600; }

/* ===== Header ===== */
.header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.logo { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 28px; }
.logo span { color: var(--accent); }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo img { height: 56px; width: auto; display: block; }
.logo .logo__text { color: var(--white); font-size: 26px; letter-spacing: 1px; line-height: 1; }
.about__logo { height: 80px; width: auto; align-self: flex-start; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: #E6E6E6; text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav__phone { color: var(--accent) !important; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }

/* ===== Botones ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 16px 28px; border-radius: 4px; transition: opacity .2s; }
.btn:hover { opacity: .88; }
.btn--accent { background: var(--accent); color: var(--black); }
.btn--outline { color: var(--white); border: 1px solid #8A8A8A; }
.btn--dark { background: var(--black); color: var(--white); }

/* ===== Hero ===== */
.hero { background: var(--dark); color: var(--white); padding: 88px 0; }
.hero__text { display: flex; flex-direction: column; gap: 20px; }
.hero__lead { font-size: 20px; color: #D6D6D6; }
.hero__img { min-width: 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: #333; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 2px; font-size: 14px; text-transform: uppercase; margin-bottom: 8px; }
.kicker--dark { color: #5E5C56; }

/* ===== Secciones ===== */
.section { padding: 88px 0; }
.section--white { background: var(--white); }
.section__head { text-align: center; margin-bottom: 40px; }
.about__img { height: 340px; object-fit: cover; border-radius: 6px; background: #DDD; }
.section p { color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.card { background: var(--bg); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.card img { height: 170px; width: 100%; object-fit: cover; border-bottom: 4px solid var(--accent); background: #E3E1DA; }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card__body p { font-size: 15px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card__list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--black); }

.feature { background: var(--white); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-family: var(--body); text-transform: none; font-size: 18px; }
.feature p { font-size: 15px; }
.feature svg { width: 36px; height: 36px; fill: none; stroke: var(--black); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Galería de proyectos ===== */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item { display: block; border-radius: 6px; overflow: hidden; background: #DDD; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }
.lightbox p { color: #FFF; text-align: center; margin-top: 12px; font-size: 16px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #FFF; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__close svg { width: 24px; height: 24px; fill: none; stroke: var(--black); stroke-width: 2.5; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .gallery__item img { transition: none; } }

/* ===== CTA ===== */
.cta { background: var(--accent); padding: 64px 0; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { flex: 1 1 520px; color: var(--black); font-weight: 800; }

/* ===== Contacto ===== */
.contact { background: var(--white); padding: 96px 0; position: relative; }
.contact__grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact__info { flex: 1 1 400px; display: flex; flex-direction: column; gap: 32px; }
.contact .kicker { color: #B07A00; margin-bottom: -16px; }
.contact h2 { font-size: clamp(36px, 4.5vw, 56px); }
.contact__group { display: flex; flex-direction: column; gap: 8px; padding-left: 4px; }
.contact__group h3 { font-family: var(--body); text-transform: none; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.contact__group p { color: #5E5C56; font-size: 18px; }
.contact__group a { color: #5E5C56; text-decoration: none; word-break: break-word; }
.contact__group a:hover { color: var(--black); text-decoration: underline; }

.form { flex: 1 1 460px; background: var(--white); border-left: 1px solid #E6E4DE; padding: 0 0 0 48px; display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 17px; margin-top: 14px; color: var(--text); }
.req { color: #C8102E; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 14px; border: 1px solid #BDBBB4; border-radius: 4px; background: #F5F7FA; color: var(--text); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--black); background: #FFF; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 40px; }
.form__row > div { display: flex; flex-direction: column; gap: 8px; }
.phone { display: flex; }
.phone__prefix { display: flex; align-items: center; padding: 0 12px; border: 1px solid #BDBBB4; border-right: 0; border-radius: 4px 0 0 4px; background: #F5F7FA; font-size: 15px; white-space: nowrap; }
.phone input { border-radius: 0 4px 4px 0; min-width: 0; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px !important; margin-top: 18px !important; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--black); }
.consent a { color: var(--black); }

/* ===== Páginas simples (gracias / aviso) ===== */
.page { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.page h1 { margin-bottom: 24px; }
.page h2 { font-size: 26px; margin: 32px 0 12px; }
.page p, .page li { color: var(--muted); font-size: 17px; margin-bottom: 12px; }
.form__actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.form__actions .btn:disabled { opacity: .6; cursor: wait; }
.form__actions .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; padding: 16px 40px; }

.footer { background: var(--black); color: #BDBDBD; font-size: 14px; padding: 24px 0; }
.footer a { color: #BDBDBD; }

@media (max-width: 760px) {
  .form { border-left: 0; border-top: 1px solid #E6E4DE; padding: 32px 0 0; }
  .form__actions .btn { width: 100%; }
}

/* ===== Botón flotante WhatsApp ===== */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; }

/* ===== Móvil ===== */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 12px; }
  .nav.is-open { display: flex; }
  .hero, .section, .contact { padding-top: 56px; padding-bottom: 56px; }
  .about__img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
