/* =========================================================
   Alcaraz Partners S.L. — Construcción y Reformas
   Hoja de estilos principal
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f4ef;
  --color-text: #1c1c1c;
  --color-muted: #5a5a5a;
  --color-line: #e6e2d9;

  --color-brand: #0f2a44;          /* azul noche corporativo */
  --color-brand-dark: #091a2c;
  --color-accent: #c8862a;         /* ocre construcción */
  --color-accent-dark: #a26d1e;
  --color-star: #f5b301;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(15, 42, 68, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 42, 68, 0.10);
  --shadow-lg: 0 20px 60px rgba(15, 42, 68, 0.18);

  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-accent); }

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

/* ================= Botones ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-brand);
}

/* ================= Header ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-brand);
}
.brand:hover { color: var(--color-brand); }
.brand-mark {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: .5px;
  border-radius: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; font-weight: 700; }
.brand-text small { color: var(--color-muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 2px;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--color-brand); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta { font-size: 14px; padding: 10px 16px; }
.phone-icon { font-size: 16px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-brand);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(9,26,44,.88) 0%, rgba(15,42,68,.75) 60%, rgba(200,134,42,.55) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900'><defs><pattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'><path d='M0 40h80M40 0v80' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/></pattern></defs><rect width='100%25' height='100%25' fill='%230f2a44'/><rect width='100%25' height='100%25' fill='url(%23p)'/></svg>");
  background-size: cover;
  background-position: center;
}
.hero-inner {
  padding: 110px 24px 120px;
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 780px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  padding: 6px 14px;
  border: 1px solid rgba(200,134,42,.5);
  border-radius: 999px;
  background: rgba(200,134,42,.12);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  margin: 18px 0 18px;
  color: #fff;
}
.hero h1 .accent { color: var(--color-accent); }
.hero .lead {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-badges {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}
.hero-badges li strong { color: var(--color-accent); font-weight: 700; margin-right: 6px; }

/* ================= Sección ================= */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-brand);
  margin: 14px 0 12px;
  line-height: 1.15;
}
.section-head p {
  color: var(--color-muted);
  font-size: 17px;
  margin: 0;
}
.stars-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-brand);
}
.stars {
  color: var(--color-star);
  letter-spacing: 2px;
  font-size: 20px;
}

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

/* ================= Tarjetas de servicios ================= */
.card-service {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.card-ico {
  width: 52px; height: 52px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(200,134,42,.12);
  color: var(--color-accent);
  border-radius: 12px;
  font-size: 24px;
  margin-bottom: 16px;
}
.card-service h3 {
  font-family: var(--font-serif);
  color: var(--color-brand);
  font-size: 22px;
  margin: 0 0 10px;
}
.card-service p {
  color: var(--color-muted);
  margin: 0;
  font-size: 15.5px;
}

/* ================= Zonas ================= */
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.zone-chip {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}
.zones-note {
  text-align: center;
  color: var(--color-muted);
  margin-top: 32px;
  font-size: 15px;
}

/* ================= Galería ================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-ph {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(15,42,68,.85), rgba(200,134,42,.7)),
    repeating-linear-gradient(45deg, #1e3a5f 0 12px, #16304d 12px 24px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
}
.gallery-ph::before {
  content: attr(data-label);
  display: block;
  max-width: 80%;
}
.gallery-item figcaption {
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--color-brand);
  font-weight: 600;
}
.gallery-note {
  text-align: center;
  color: var(--color-muted);
  margin-top: 28px;
  font-size: 14px;
}
.gallery-note code {
  background: #efeae0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ================= Reseñas ================= */
.review {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.review::before {
  content: "“";
  position: absolute;
  top: 4px; right: 16px;
  font-family: var(--font-serif);
  font-size: 72px;
  color: rgba(15,42,68,.08);
  line-height: 1;
}
.review .stars {
  font-size: 18px;
  letter-spacing: 3px;
}
.review p {
  margin: 0;
  color: var(--color-text);
  font-size: 15.5px;
}
.review footer {
  margin-top: auto;
  color: var(--color-muted);
  font-size: 14px;
  border-top: 1px dashed var(--color-line);
  padding-top: 12px;
}
.review footer strong { color: var(--color-brand); }

/* ================= Contacto ================= */
.contact .section-head { margin-bottom: 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--color-text);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  color: var(--color-text);
}
.contact-phone { background: linear-gradient(135deg, #0f2a44, #163c5e); color: #fff; border-color: transparent; }
.contact-phone:hover { color: #fff; }
.contact-phone .contact-info small,
.contact-phone .contact-info span { color: rgba(255,255,255,.75); }
.contact-wa { background: linear-gradient(135deg, #128c7e, #25d366); color: #fff; border-color: transparent; }
.contact-wa:hover { color: #fff; }
.contact-wa .contact-info small,
.contact-wa .contact-info span { color: rgba(255,255,255,.85); }
.contact-ico {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.contact-area .contact-ico {
  background: rgba(200,134,42,.15);
}
.contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.contact-info small { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-muted); }
.contact-info strong { font-size: 20px; margin: 2px 0; font-weight: 700; }
.contact-info span { font-size: 14px; color: var(--color-muted); }

.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}
.contact-form h3 {
  font-family: var(--font-serif);
  color: var(--color-brand);
  margin: 0 0 20px;
  font-size: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: 14px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: #fafaf7;
  transition: border-color .15s ease, background .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.contact-form button { width: 100%; margin-top: 10px; }
.form-note {
  font-size: 12.5px;
  color: var(--color-muted);
  text-align: center;
  margin: 14px 0 0;
}

/* ================= Footer ================= */
.site-footer {
  background: var(--color-brand-dark);
  color: rgba(255,255,255,.85);
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}
.footer-col h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 18px;
  margin: 0 0 14px;
}
.footer-col p { color: rgba(255,255,255,.7); font-size: 14.5px; }
.brand-footer .brand-mark { background: var(--color-accent); }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.65); }
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-list li {
  padding: 6px 0;
  font-size: 14.5px;
}
.footer-list a {
  color: rgba(255,255,255,.85);
}
.footer-list a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
}
.footer-bottom a { color: rgba(255,255,255,.8); }
.footer-bottom a:hover { color: var(--color-accent); }

/* ================= Botón flotante llamada ================= */
.floating-call {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 60px; height: 60px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  animation: pulse 2.2s infinite;
}
.floating-call:hover { background: var(--color-accent-dark); color: #fff; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,134,42,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(200,134,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,134,42,0); }
}

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
  }
  .nav.open a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .header-cta { display: none; }

  .hero-inner { padding: 80px 24px 90px; }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero-ctas .btn { width: 100%; }
}
