/* =========================================================
   CARINA SEOANE — Maestra Mayor de Obras
   ========================================================= */

:root {
  /* Paleta */
  --crema: #F7F1E6;
  --arena: #D9C8B0;
  --terracota: #C56A44;
  --terracota-dark: #A6512F;
  --carbon: #22211F;
  --oliva: #6B705C;
  --oliva-dark: #565A49;

  --texto: var(--carbon);
  --texto-suave: #55534E;
  --borde: rgba(34, 33, 31, 0.12);

  /* Tipografía */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, Segoe UI, sans-serif;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  /* Espaciado de sección */
  --section-pad: 96px;

  /* Sombra */
  --shadow-soft: 0 12px 32px rgba(34, 33, 31, 0.08);
  --shadow-card: 0 4px 16px rgba(34, 33, 31, 0.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 500; line-height: 1.2; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
svg { width: 100%; height: 100%; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--terracota);
  color: var(--crema);
}
.btn--primary:hover { background: var(--terracota-dark); }

.btn--secondary {
  background: transparent;
  color: var(--carbon);
  border-color: var(--carbon);
}
.btn--secondary:hover { background: var(--carbon); color: var(--crema); }

.btn--light {
  background: var(--crema);
  color: var(--terracota-dark);
}
.btn--light:hover { background: var(--carbon); color: var(--crema); }

.btn--olive {
  background: var(--oliva-dark);
  color: var(--crema);
}
.btn--olive:hover { background: var(--carbon); }

.btn--lg { padding: 16px 34px; font-size: 0.95rem; }
.btn--sm { padding: 10px 18px; font-size: 0.8rem; }
.btn--block { width: 100%; }

.icon-wa { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Section head helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracota);
  margin: 0 0 14px;
}
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 16px;
}
.section-text {
  font-size: 1.05rem;
  color: var(--texto-suave);
  max-width: 560px;
}
.section-note {
  margin-top: 14px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--texto-suave);
  border-left: 2px solid var(--arena);
  padding-left: 14px;
}

/* ---------- Placeholder images ---------- */
.placeholder-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--arena) 0 18px, #cdb99c 18px 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}
.placeholder-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34, 33, 31, 0.42);
}
.placeholder-img__label {
  position: relative;
  color: var(--crema);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  padding: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.placeholder-img__label em { font-weight: 400; font-style: italic; opacity: 0.85; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borde);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(34,33,31,0.06); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--terracota);
  flex-shrink: 0;
}
.brand__mark--light { color: var(--terracota); width: 30px; height: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--carbon);
}
.brand__role {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oliva);
  font-weight: 600;
}

.nav__list { display: flex; gap: 28px; }
.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texto);
  position: relative;
  padding: 4px 0;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--terracota); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracota);
  transition: width .2s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__link.is-active { color: var(--terracota); }
.nav__link.is-active::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--carbon);
  transition: transform .25s ease, opacity .25s ease;
  margin: 0 auto;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: var(--crema);
  border-top: 1px solid var(--borde);
}
.mobile-nav__list { display: flex; flex-direction: column; gap: 18px; }
.mobile-nav__link {
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-nav.is-open { display: flex; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 64px 0 var(--section-pad); }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  margin-bottom: 20px;
  color: var(--carbon);
}
.accent-dot { color: var(--terracota); }
.hero__rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--terracota);
  border-radius: 2px;
  margin-bottom: 22px;
}
.hero__text {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__img { aspect-ratio: 4 / 5; min-height: 380px; }
.hero__badge {
  position: absolute;
  right: 24px;
  top: 24px;
  background: var(--oliva-dark);
  color: var(--crema);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  max-width: 190px;
}
.hero__badge-icon {
  width: 26px;
  height: 26px;
  color: var(--terracota);
  margin-bottom: 10px;
}
.hero__badge-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
}
.hero__badge-text {
  font-size: 0.78rem;
  margin-top: 8px;
  opacity: 0.9;
  line-height: 1.4;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { padding: var(--section-pad) 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--arena);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--crema);
  color: var(--terracota);
  margin-bottom: 20px;
}
.service-card__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--carbon);
}
.service-card__text {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-bottom: 18px;
}
.service-card__link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracota);
  transition: opacity .2s ease;
}
.service-card__link:hover { opacity: 0.7; }

/* =========================================================
   DIFERENCIALES
   ========================================================= */
.differentiators { background: var(--oliva); color: var(--crema); padding: 64px 0; }
.differentiators__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.diff-item__icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--crema);
}
.diff-item__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.diff-item__text { font-size: 0.88rem; opacity: 0.88; }

/* =========================================================
   PUESTA A PUNTO
   ========================================================= */
.tune-up { padding: var(--section-pad) 0; background: var(--arena); }
.tune-up__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.tune-up__img { min-height: 360px; aspect-ratio: 4/5; }
.tune-up__list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 32px;
  margin: 28px 0 34px;
}
.tune-up__list li {
  font-size: 0.92rem;
  font-weight: 500;
  padding-left: 22px;
  position: relative;
}
.tune-up__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--terracota);
}

/* =========================================================
   PROCESO
   ========================================================= */
.process { padding: var(--section-pad) 0; }
.process__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.process__item {
  border-top: 2px solid var(--terracota);
  padding-top: 20px;
}
.process__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--arena);
  margin-bottom: 10px;
}
.process__title {
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--carbon);
}
.process__text {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects { padding: var(--section-pad) 0; background: var(--crema); }
.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.projects__all {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracota);
  padding-bottom: 4px;
  transition: opacity .2s ease;
}
.projects__all:hover { opacity: 0.7; }
.projects .section-note { margin: 0 0 40px; }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.project-card__img { aspect-ratio: 3/4; border-radius: 0; min-height: 0; }
.project-card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(34,33,31,0) 0%, rgba(34,33,31,0.78) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.project-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.project-card__location {
  font-size: 0.76rem;
  color: rgba(247,241,230,0.8);
}

/* =========================================================
   SOBRE MÍ + CTA
   ========================================================= */
.about-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.about-cta__col {
  padding: var(--section-pad) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.about-cta__col--about { background: var(--crema); }
.about-cta__col--cta { background: var(--terracota); }
.about-cta__img { min-height: 320px; aspect-ratio: 4/5; }
.about__text {
  font-size: 1rem;
  color: var(--texto-suave);
  margin-bottom: 16px;
  max-width: 480px;
}
.about__text:last-child { margin-bottom: 0; }

.about-cta__cta-inner { max-width: 400px; }
.about-cta__call {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.92rem;
  color: rgba(247,241,230,0.92);
}
.about-cta__call-rule { width: 22px; height: 1px; background: rgba(247,241,230,0.5); }
.about-cta__call strong { font-weight: 700; color: #fff; }
.about-cta__call:hover { color: #fff; }

/* =========================================================
   ZONA
   ========================================================= */
.zone { padding: var(--section-pad) 0; background: var(--arena); }
.zone__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.zone__list li {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--carbon);
}

/* =========================================================
   CTA (texto reutilizado dentro de .about-cta__col--cta)
   ========================================================= */
.cta__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--crema);
  margin-bottom: 14px;
}
.cta__text {
  font-size: 1rem;
  color: rgba(247,241,230,0.9);
  margin-bottom: 26px;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: var(--section-pad) 0; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:not(.contact-card--static):hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--terracota);
}
.contact-card__icon { width: 26px; height: 26px; color: var(--terracota); }
.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--oliva);
}
.contact-card__value { font-size: 0.95rem; font-weight: 500; color: var(--carbon); word-break: break-word; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--carbon); color: var(--crema); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 24px 48px;
}
.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__name { font-family: var(--font-heading); font-size: 1.15rem; margin: 0; }
.footer__role {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arena);
  margin-top: 4px;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--arena);
  margin-bottom: 18px;
}
.footer__list { display: flex; flex-direction: column; gap: 12px; }
.footer__list a, .footer__list li {
  font-size: 0.88rem;
  color: rgba(247,241,230,0.82);
}
.footer__list a:hover { color: var(--terracota); }

.footer__list--icons li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__list-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--terracota);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,241,230,0.25);
  color: var(--crema);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.footer__social-link svg { width: 16px; height: 16px; }
.footer__social-link:hover {
  background: var(--terracota);
  border-color: var(--terracota);
  color: var(--crema);
}

.footer__bottom {
  border-top: 1px solid rgba(247,241,230,0.12);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(247,241,230,0.6);
  text-align: center;
}
.footer__credit a {
  color: rgba(247,241,230,0.8);
  font-weight: 600;
  transition: color .2s ease;
}
.footer__credit a:hover { color: var(--terracota); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__list { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .differentiators__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

@media (max-width: 860px) {
  .hero__inner,
  .tune-up__inner {
    grid-template-columns: 1fr;
  }
  .about-cta { grid-template-columns: 1fr; }
  .about-cta__col { padding: 56px 32px; }

  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 18px; }
  .header__inner { padding: 14px 18px; }

  .hero { padding: 40px 0 var(--section-pad); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__img { min-height: 300px; }
  .hero__badge { position: static; margin-top: 20px; max-width: none; }

  .services__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr; gap: 24px; }
  .differentiators__grid { grid-template-columns: 1fr; gap: 28px; }
  .tune-up__list { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 40px; }

  .projects__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about-cta__col { padding: 48px 20px; gap: 24px; }
  .zone__list { gap: 8px; }
}
