/* El Yazidi — hoja de estilos única */
:root {
  --stone: #8b7355;
  --stone-dark: #5c4a32;
  --sand: #c4b896;
  --lime: #f6f2ea;
  --ink: #2c2416;
  --muted: #6b6254;
  --accent: #a35a18;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(44, 36, 22, .10);
  --shadow-lg: 0 14px 40px rgba(44, 36, 22, .18);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: #fff; line-height: 1.65; font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--lime); }
.section.dark { background: var(--stone-dark); color: #fff; }
.section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.dark .eyebrow { color: var(--sand); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer;
  border: 2px solid transparent; transition: .25s ease; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7f4310; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--stone-dark); }
.btn-outline { border-color: var(--stone); color: var(--stone-dark); }
.btn-outline:hover { background: var(--stone); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(44, 36, 22, .94);
  backdrop-filter: blur(8px); color: #fff; transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a { padding: 10px 14px; font-size: .9rem; font-weight: 500; border-radius: 8px; color: rgba(255,255,255,.88); transition: .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"], .lang summary:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links .nav-cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav-links .nav-cta:hover { background: #7f4310; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center;
  color: #fff; background: var(--stone-dark) center/cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,24,14,.82) 0%, rgba(30,24,14,.45) 60%, rgba(30,24,14,.2) 100%); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 760px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #e8d3a8; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; margin-bottom: 36px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Franja de cifras / claims */
.strip { background: var(--lime); border-bottom: 1px solid #e7dfd0; }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 26px 0; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .92rem; color: var(--stone-dark); }
.strip svg { width: 28px; height: 28px; flex: none; color: var(--accent); }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--muted); }
.icon-badge { width: 54px; height: 54px; border-radius: 14px; background: var(--lime); color: var(--accent); display: grid; place-items: center; }
.icon-badge svg { width: 28px; height: 28px; }
.checks li { position: relative; padding: 5px 0 5px 26px; color: var(--muted); font-size: .94rem; }
.checks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.9); }
.dark .checks li { color: rgba(255,255,255,.85); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 18px; }
.split > div > p { color: rgba(255,255,255,.85); margin-bottom: 28px; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Proceso */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 600; }
.step p { color: var(--muted); font-size: .93rem; }

/* Proyectos destacados / galería */
.project-card { cursor: pointer; text-align: left; }
.project-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .thumb img { transform: scale(1.06); }
.count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,12,7,.95); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #e9e0cd; margin-top: 14px; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; transition: .2s; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 20px 28px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--accent); transition: .2s; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.contact-info { display: grid; gap: 18px; margin-top: 28px; }
.contact-info a, .contact-info div { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { width: 24px; height: 24px; flex: none; color: var(--sand); margin-top: 2px; }
.contact-info small { display: block; color: var(--sand); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--stone-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 2px solid #e3dccd; border-radius: 10px; font: inherit; background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,101,29,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-status { margin-top: 14px; font-weight: 600; color: #2f7a3e; display: none; }
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; }
.field input:user-invalid, .field select:user-invalid { border-color: #b3261e; }
html { overflow-wrap: break-word; }
.lightbox img { max-width: 100%; height: auto; }

/* CTA banner */
.cta-band { background: linear-gradient(120deg, var(--stone-dark), var(--stone)); color: #fff; text-align: center; padding: 64px 20px; border-radius: var(--radius); }
.cta-band h3 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { margin-bottom: 26px; color: rgba(255,255,255,.9); }

/* Page hero (interiores) */
.page-hero { background: linear-gradient(120deg, var(--stone-dark), var(--stone)); color: #fff; padding: 76px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 12px; }
.page-hero p { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.88); font-size: 1.1rem; }

/* Footer */
.site-footer { background: #1f1a10; color: rgba(255,255,255,.75); padding: 64px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: 'Inter', sans-serif; color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .84rem; text-align: center; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #2c2416; padding: 12px 20px 20px; display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  .split, .contact { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* ===== Extras: idioma, cifras y logo ===== */
.btn-primary:hover, .nav-links .nav-cta:hover { background: #7f4310; }
.nav-links { flex-wrap: nowrap; gap: 2px; }
.lang { position: relative; margin-left: 8px; }
.lang summary { list-style: none; cursor: pointer; padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font: 600 .82rem 'Inter', sans-serif; color: #fff; background: rgba(255,255,255,.08); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ' ▾'; font-size: .7rem; }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); background: #2c2416; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 6px; min-width: 150px; box-shadow: var(--shadow-lg); z-index: 5; }
.lang ul a { display: block; padding: 9px 12px; border-radius: 6px; font-size: .9rem; }
.lang ul a[aria-current] { color: var(--sand); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.stat b { display: block; font: 700 2.4rem 'Playfair Display', serif; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Logo El Yazidi (adaptado de elyazidi.es: tres cuadros + nombre + actividad) */
.logo { display: flex; flex-direction: column; gap: 5px; }
.logo-cuadros { display: flex; }
.logo-cuadros i { display: block; width: 24px; height: 24px; }
.logo-cuadros i:nth-child(1) { background: #c4b896; }
.logo-cuadros i:nth-child(2) { background: #a0926b; }
.logo-cuadros i:nth-child(3) { background: #8b7355; }
.logo1 { font: 700 1.4rem/1.1 'Montserrat', sans-serif; color: #fff; letter-spacing: .01em; }
.logo2 { font: 700 .8rem/1 'Montserrat', sans-serif; color: var(--sand); letter-spacing: .15em; }
.site-footer .logo1 { font-size: 1.15rem; }
@media (max-width: 1000px) { .nav-links a { padding: 10px 9px; font-size: .85rem; } }
@media (max-width: 820px) { .lang { margin: 8px 0 0; } .lang ul { position: static; margin-top: 6px; } }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Cabecera compacta */
.nav { min-height: 54px; }
.site-header .logo { gap: 3px; padding: 6px 0; }
.site-header .logo-cuadros i { width: 16px; height: 10px; }
.site-header .logo1 { font-size: 1.05rem; }
.site-header .logo2 { font-size: .6rem; }
.nav-links a { padding: 8px 12px; }
.menu-btn { width: 40px; height: 40px; }

/* Arquitectos colaboradores */
.section.archs { padding: 72px 0; border-top: 1px solid #e7dfd0; }
.section.archs .section-head { margin-bottom: 40px; }
.arch-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.arch-grid > .reveal { width: 230px; display: flex; }
.arch-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 18px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; transition: .3s; }
.arch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.arch-mono { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--accent); font: 700 1.2rem 'Montserrat', sans-serif; letter-spacing: .04em; border: 1px solid #e7dfd0; margin-bottom: 4px; }
.arch-card h3 { font-size: 1.1rem; line-height: 1.25; flex: 1; display: flex; align-items: center; }
.arch-card a { color: var(--accent); font-weight: 600; font-size: .9rem; }
.arch-card a:hover { text-decoration: underline; }
@media (max-width: 520px) { .arch-grid > .reveal { width: calc(50% - 10px); } .arch-card { padding: 24px 12px 20px; } .arch-card h3 { font-size: 1rem; } }
