/* ==========================================================================
   Constructora Sarsuri — Design System
   Paleta inspirada en la bandera de Israel: azul profundo + blanco + grises
   ========================================================================== */

:root {
  --blue: #003F87;
  --blue-600: #003573;
  --blue-700: #002a5c;
  --blue-50: #eaf1fa;
  --white: #ffffff;
  --bg: #fafbfc;
  --surface: #ffffff;
  --muted: #f4f6f9;
  --ink: #0f1623;
  --ink-soft: #2b3445;
  --gray: #5a6478;
  --gray-soft: #8b95a8;
  --line: #e5e9f0;
  --shadow-sm: 0 1px 2px rgba(15, 22, 35, .06);
  --shadow-md: 0 8px 24px -10px rgba(15, 22, 35, .12);
  --shadow-lg: 0 24px 60px -20px rgba(0, 63, 135, .25);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-brand: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: flex; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADINGS */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.2vw, 4.2rem); letter-spacing: -.02em; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }

p { color: var(--ink-soft); }
.lead { font-size: 1.08rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--blue); }
.eyebrow.light { color: rgba(255,255,255,.85); }

/* HEADER */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.95); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-brand);
  color: var(--ink);
  transition: opacity .2s;
}
.brand:hover { opacity: .82; }
.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-brand);
}
.brand-name span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.brand-name strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}
.nav-menu a {
  font-family: var(--font-brand);
  letter-spacing: .02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-menu a {
  display: inline-block;
  padding: 10px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--blue); background: var(--blue-50); }
.nav-menu .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  margin-left: 6px;
}
.nav-menu .nav-cta:hover { background: var(--blue-600); color: var(--white); }

.brand-light .brand-name span { color: rgba(255,255,255,.65); }
.brand-light .brand-name strong { color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 2;
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; order: 2; }
  .nav { width: 100%; order: 3; flex-basis: 100%; }
  .nav-wrap { flex-wrap: wrap; }
  .nav-menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px 16px; font-size: 1rem; }
  .nav-menu .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .2s, background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-block { width: 100%; }

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 720px) {
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-stats { padding-top: 1.5rem; gap: 22px 32px; }
  .hero-actions { margin-bottom: 2.4rem; }
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 42, 92, .85) 0%, rgba(0, 63, 135, .55) 60%, rgba(0, 63, 135, .35) 100%),
    url('assets/hero.jpg') center/cover no-repeat;
  z-index: -1;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero h1 { color: var(--white); max-width: 18ch; margin-bottom: 1.4rem; }
.hero h1 .accent { color: #cfe0f3; font-style: italic; font-weight: 600; }
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.hero .eyebrow { color: #9ec1e8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.hero-stats {
  display: flex;
  gap: clamp(20px, 5vw, 60px);
  list-style: none;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.75); letter-spacing: .06em; text-transform: uppercase; }

/* SECTIONS */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-muted { background: var(--muted); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; } }

.features { list-style: none; margin-top: 1.5rem; display: grid; gap: 12px; }
.features li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 500; }
.features svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), transparent 60%);
  opacity: .04; pointer-events: none;
}
.about-card-inner h3 { color: var(--blue); margin-bottom: 8px; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.about-card-inner > p { margin-bottom: 0; }
.about-card-inner hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }

/* CARDS / SERVICIOS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue);
  border-radius: 12px;
  margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--blue); color: var(--white); }
.card h3 { margin-bottom: 10px; font-family: var(--font-sans); font-weight: 700; font-size: 1.15rem; }
.card p { font-size: .95rem; }

/* PORTFOLIO */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s;
}
.project:hover img { transform: scale(1.06); opacity: .8; }
.project-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px 22px;
  background: linear-gradient(to top, rgba(15, 22, 35, .92), transparent);
  color: var(--white);
  transform: translateY(8px);
  transition: transform .35s var(--ease);
}
.project:hover .project-info { transform: translateY(0); }
.project-info h3 { color: var(--white); font-family: var(--font-sans); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.project-info p { color: rgba(255,255,255,.78); font-size: .88rem; margin: 0; }

/* CAROUSEL */
.carousel { max-width: 800px; margin: 0 auto; overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.testimonial {
  flex: 0 0 100%;
  padding: 40px clamp(20px, 4vw, 50px);
  text-align: center;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 28px;
}
.testimonial p::before { content: "“"; color: var(--blue); font-size: 1.4em; line-height: 0; vertical-align: -0.2em; margin-right: 4px; }
.testimonial p::after { content: "”"; color: var(--blue); font-size: 1.4em; line-height: 0; vertical-align: -0.4em; margin-left: 2px; }
.testimonial footer { display: flex; flex-direction: column; gap: 4px; }
.testimonial strong { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
.testimonial span { font-size: .85rem; color: var(--gray); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}
.carousel-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  border: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1;
  transition: background .2s, color .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  transition: background .2s, transform .2s;
}
.carousel-dots button[aria-selected="true"] { background: var(--blue); transform: scale(1.3); }

/* CONTACT — paleta bandera de Israel */
.contact-section {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}
.contact-section h2, .contact-title { color: var(--white); }
.contact-lead { color: rgba(255,255,255,.88); margin-bottom: 2.2rem; font-size: 1.05rem; }

.contact-info { list-style: none; display: grid; gap: 18px; }
.contact-info li { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: var(--white);
  flex: none;
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 2px; }
.contact-info a { color: var(--white); font-weight: 500; transition: color .2s; }
.contact-info a:hover { color: #b9d3ee; }

.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.contact-form h3 { margin-bottom: 22px; font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .96rem;
  background: var(--muted);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 63, 135, .12);
}
.form-note { margin-top: 12px; font-size: .82rem; color: var(--gray); text-align: center; }

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-tag { color: rgba(255,255,255,.6); margin-top: 14px; font-size: .92rem; max-width: 36ch; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: .82rem; letter-spacing: .14em; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-links li { color: rgba(255,255,255,.7); font-size: .94rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: .84rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .55);
  z-index: 50;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
