/* ===== Reset & variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0e0f11;
  --dark-2: #17191c;
  --steel: #5a5f66;
  --steel-light: #8f949b;
  --bg: #f6f5f2;
  --bg-alt: #ede9e1;
  --white: #ffffff;
  --accent: #c9a24a;
  --accent-dark: #ab8636;
  --accent-light: #e0c481;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5a;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(14, 15, 17, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 15, 17, 0.16);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-nav: 'Montserrat', var(--font);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.skip-link {
  position: absolute;
  top: -100px; left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #171310;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  overflow-wrap: break-word;
  max-width: 100%;
}
.btn--primary { background: var(--accent); color: #171310; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn--outline-dark { background: transparent; color: var(--dark); border: 1.5px solid #ccc4b3; }
.btn--outline-dark:hover { background: rgba(20,15,10,0.05); border-color: var(--accent); transform: translateY(-2px); }

/* ===== CTA de fin de sección (páginas internas) ===== */
.page-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 48px; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; padding: 10px 18px; font-size: 0.78rem; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 26, 34, 0.0);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  padding: 14px 0;
}
.header.scrolled, .header--solid {
  background: rgba(20, 26, 34, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  padding: 10px 0;
}
.header__inner { display: flex; align-items: center; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo__mark {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.5);
  color: var(--accent);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__word { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.logo__word em { font-style: normal; color: var(--accent); }
.logo__tagline { color: rgba(255,255,255,0.55); font-family: var(--font-nav); font-size: 0.62rem; letter-spacing: 0.14em; overflow-wrap: break-word; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; font-family: var(--font-nav); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.07em; opacity: 0.8; transition: opacity 0.15s; overflow-wrap: break-word; white-space: nowrap; }
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg { position: absolute; inset: 0; opacity: 0.9; overflow: hidden; background: #141310; }
.hero__bg svg { width: 100%; height: 100%; }
.hero__bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,17,0.55) 0%, rgba(14,15,17,0.85) 75%, rgba(14,15,17,1) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding-top: 60px; }

.eyebrow {
  display: block;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-nav);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.eyebrow::before { content: ""; display: inline-block; width: 32px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent); }
.hero h1 {
  color: #fff;
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero__sub { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stat {
  position: absolute;
  right: 6%; bottom: 14%;
  z-index: 2;
  background: rgba(14, 15, 17, 0.55);
  border: 1px solid rgba(201, 162, 74, 0.4);
  backdrop-filter: blur(6px);
  padding: 22px 30px;
  text-align: center;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head);
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
}
.hero__stat span {
  display: block;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-nav);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-top: 4px;
  overflow-wrap: break-word;
}
@media (max-width: 780px) { .hero__stat { display: none; } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section__title { color: #fff; }
.section--dark .section__desc { color: rgba(255,255,255,0.65); }

.section__eyebrow {
  display: block;
  color: var(--accent-dark);
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.section__eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent-dark); }
.section--dark .section__eyebrow { color: var(--accent); }
.section--dark .section__eyebrow::before { background: var(--accent); }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; margin-bottom: 14px; }
.section__desc { color: var(--steel); max-width: 620px; margin-bottom: 40px; }

/* ===== Cards (productos) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* ===== Quicklinks (home) ===== */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.quicklink {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 3px solid var(--accent);
}
.quicklink:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quicklink h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; color: var(--dark); }
.quicklink p { color: var(--steel); font-size: 0.92rem; margin-bottom: 16px; }
.quicklink__arrow { font-family: var(--font-nav); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent-dark); }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__image {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--steel); font-size: 0.92rem; }

/* ===== Proyectos destacados (estilo minimalista, foto completa) ===== */
.featured__item {
  position: relative;
  height: 72vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.featured__item + .featured__item { margin-top: 4px; }
.featured__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,17,0.05) 40%, rgba(14,15,17,0.75) 100%);
}
.featured__overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 56px;
  text-align: center;
  color: #fff;
}
.featured__line { display: inline-block; width: 1px; height: 40px; background: var(--accent); margin-bottom: 18px; }
.featured__eyebrow {
  font-family: var(--font-nav);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.featured__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--steel); margin-bottom: 20px; }
.about__list { margin-bottom: 28px; }
.about__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.about__list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--accent-dark);
  transform: rotate(45deg);
}
.about__stats { display: grid; gap: 20px; }
.stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat__num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--accent-dark); }
.stat__label { color: var(--steel); font-family: var(--font-nav); font-size: 0.72rem; letter-spacing: 0.08em; overflow-wrap: break-word; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact__desc { color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 460px; }
.contact__list { margin-bottom: 24px; }
.contact__list li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.contact__list svg { flex-shrink: 0; color: var(--accent); }
.contact__list a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.15s; }
.contact__list a:hover { color: var(--accent); text-decoration: underline; }
.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background 0.15s, color 0.15s;
}
.social a:hover { background: var(--accent); color: #171310; }

.contact__form {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
  align-self: start;
}
.contact__form label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.contact__form input,
.contact__form textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  resize: vertical;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--accent); }
.label-optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.7; }

/* Campo trampa anti-spam: oculto visualmente pero accesible a bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact__status {
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
}
.contact__status.ok { color: #6fd88a; }
.contact__status.error { color: #f08a72; }
.contact__status.sending { color: rgba(255,255,255,0.6); }

/* ===== Footer ===== */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

.instagram-float {
  position: fixed;
  bottom: 92px; right: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(214, 36, 159, 0.4);
  z-index: 90;
  transition: transform 0.2s ease;
}
.instagram-float:hover { transform: scale(1.08); }

/* ===== Botones/iconos de Instagram junto al WhatsApp del header ===== */
.header__ig {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}
.header__ig:hover { background: var(--accent); color: #171310; }

.btn--instagram {
  background: transparent;
  border: 1.5px solid #d6249f;
  color: #d6249f;
}
.btn--instagram:hover { background: rgba(214,36,159,0.08); transform: translateY(-2px); }
.section--dark .btn--instagram,
.hero .btn--instagram { color: #fff; border-color: rgba(255,255,255,0.5); }
.section--dark .btn--instagram:hover,
.hero .btn--instagram:hover { background: rgba(255,255,255,0.1); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; }
  .contact__form { order: -1; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark-2);
    padding: 20px 24px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .hero { min-height: 100vh; }
}
