/* ==========================================================================
   Duran Construcciones — paleta y tipografías de la web original
   (verde #80C28F, antracita #151922, Montserrat + Roboto Slab)
   ========================================================================== */
:root {
  --green: #80c28f;
  --green-600: #5fa970;
  --green-700: #3f8a52;
  --green-50: #f0f9f2;
  --ink: #151922;
  --ink-800: #1d2330;
  --ink-700: #2a3242;
  --muted: #5d6675;
  --line: #e4e8ee;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(21, 25, 34, .25);
  --shadow-lg: 0 30px 60px -20px rgba(21, 25, 34, .35);
  --font: 'Montserrat Variable', 'Montserrat', system-ui, sans-serif;
  --font-display: 'Roboto Slab', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-top: 48px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(128, 194, 143, .9); }
.btn-primary:hover { background: #93cfa0; box-shadow: 0 16px 30px -12px rgba(128, 194, 143, 1); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-glass { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-ghost-dark { color: var(--ink); border-color: rgba(21, 25, 34, .25); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-danger { background: #fff0f0; color: #b42318; border-color: #fcd0cd; }
.btn-danger:hover { background: #b42318; color: #fff; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn-sm { padding: .6em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; color: var(--green-700); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link .icon { transition: transform .25s var(--ease); }

.kicker {
  display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--green-700); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.hero .kicker, .page-hero .kicker, .section-dark .kicker { color: var(--green); }
.hero .kicker::before { display: none; }
.kicker-dark { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(128, 194, 143, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(128, 194, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(128, 194, 143, 0); } }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, height .3s, box-shadow .3s;
}
.has-hero .site-header { position: fixed; inset: 0 0 auto; background: transparent; backdrop-filter: none; }
.site-header.is-scrolled, .has-hero .site-header.is-scrolled {
  background: rgba(21, 25, 34, .82); backdrop-filter: saturate(160%) blur(14px);
  border-color: rgba(255, 255, 255, .08); height: 70px; box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: grid; }
.brand img { grid-area: 1 / 1; height: 50px; width: auto; transition: opacity .3s, height .3s; }
.is-scrolled .brand img { height: 42px; }
.brand-light { opacity: 0; }
.has-hero .brand-dark, .is-scrolled .brand-dark { opacity: 0; }
.has-hero .brand-light, .is-scrolled .brand-light { opacity: 1; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  position: relative; display: block; padding: 8px 14px; font-weight: 600; font-size: .95rem; border-radius: 999px;
  transition: color .2s, background .2s;
}
.main-nav ul a:hover { background: rgba(128, 194, 143, .15); }
.main-nav ul a.is-active { color: var(--green-700); }
.main-nav ul a.is-active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); transform: translateX(-50%); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.nav-phone .icon { color: var(--green); }
.has-hero .main-nav, .is-scrolled .main-nav { color: var(--white); }
.has-hero .main-nav ul a.is-active, .is-scrolled .main-nav ul a.is-active { color: var(--green); }
.header-cta { padding: .7em 1.25em; font-size: .88rem; }
.nav-toggle { display: none; }

@media (max-width: 1040px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .nav-toggle {
    display: grid; gap: 5px; margin-left: auto; width: 46px; height: 46px; place-content: center;
    border: 0; border-radius: 12px; background: rgba(128, 194, 143, .18); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .has-hero .nav-toggle, .is-scrolled .nav-toggle { color: var(--white); }
  .nav-open .nav-toggle { color: var(--white); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 36px;
    background: var(--ink); color: var(--white); margin: 0; opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .main-nav ul { flex-direction: column; text-align: center; gap: 4px; }
  .main-nav ul a { font-family: var(--font-display); font-size: 2rem; padding: 8px 20px; }
  .main-nav ul a.is-active::after { display: none; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  .nav-open { overflow: hidden; }
  .nav-open .brand { position: relative; z-index: 2; }
  .nav-open .brand-dark { opacity: 0; }
  .nav-open .brand-light { opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden; padding: calc(var(--header-h) + 40px) 0 40px;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover; background-position: center; opacity: 0; transform: scale(1.12);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 25, 34, .92) 0%, rgba(21, 25, 34, .65) 45%, rgba(21, 25, 34, .15) 100%),
    linear-gradient(0deg, rgba(21, 25, 34, .95) 0%, rgba(21, 25, 34, 0) 45%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(128, 194, 143, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 194, 143, .08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero-inner, .hero .container { position: relative; z-index: 2; }
.hero-inner { display: grid; grid-template-columns: 1fr 320px; align-items: end; gap: 40px; flex: 1; padding-bottom: 36px; }
.hero-copy { max-width: 720px; align-self: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); margin-bottom: 24px; }
.rotator { display: inline-grid; color: var(--green); vertical-align: bottom; }
.rotator span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%); filter: blur(6px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s;
}
.rotator span.is-active { opacity: 1; transform: none; filter: none; }
.rotator span.is-leaving { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px;
}
.hero-card-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin: 0; }
.hero-card-item { display: none; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; font-weight: 600; }
.hero-card-item.is-active { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; animation: fadeUp .6s var(--ease); }
.hero-card-item .icon { color: var(--green); margin-top: 3px; }
.hero-dots { display: flex; gap: 6px; margin-top: 10px; }
.hero-dots button { flex: 1; height: 4px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.hero-dots button.is-active::after { content: ''; position: absolute; inset: 0; background: var(--green); animation: progress 6s linear forwards; transform-origin: left; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-stats {
  list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats li { display: grid; }
.hero-stats strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); display: flex; align-items: center; gap: 6px; }
.hero-stats .star { color: #fbbc04; width: .8em; height: .8em; }
.hero-stats span { color: rgba(255, 255, 255, .65); font-size: .85rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-soft { background: var(--green-50); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }

/* Servicios (inicio) */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-tile {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate;
  background: var(--ink);
}
.service-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease), filter .5s; }
.service-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21, 25, 34, .05) 20%, rgba(21, 25, 34, .92) 100%); transition: background .4s; }
.service-tile:hover img { transform: scale(1.08); }
.service-tile:hover::before { background: linear-gradient(180deg, rgba(21, 25, 34, .2) 0%, rgba(21, 25, 34, .95) 90%); }
.service-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--green); color: var(--ink); margin-bottom: auto; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-tile h3 { font-size: 1.3rem; margin: 0; }
.service-more { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--green); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s, margin .4s; }
.service-tile:hover .service-more, .service-tile:focus-visible .service-more { max-height: 30px; opacity: 1; margin-top: 8px; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-tile { padding: 16px; }
  .service-tile h3 { font-size: 1.05rem; }
  .service-icon { width: 42px; height: 42px; }
  .service-more { display: none; }
}

/* Sobre nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-main { border-radius: var(--radius); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.about-sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 6px solid var(--green-50); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; left: -18px; top: 28px; background: var(--ink); color: var(--white); border-radius: 14px;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: .85rem; font-weight: 600; line-height: 1.35;
  box-shadow: var(--shadow-lg);
}
.about-badge .icon { width: 30px; height: 30px; color: var(--green); }
.about-copy h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.about-copy > p { color: var(--muted); }
.about-copy .lead-strong { color: var(--ink); font-weight: 700; font-size: 1.08rem; border-left: 3px solid var(--green); padding-left: 14px; }
.pillars { display: grid; gap: 14px; margin-top: 30px; }
.pillar { display: flex; gap: 16px; background: var(--white); padding: 18px; border-radius: 14px; box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.pillar:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.pillar-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); flex: none; }
.pillar-icon .icon { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.1rem; margin-bottom: 2px; }
.pillar p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-badge { left: 10px; } }

/* Proyectos */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); }
.project-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover figure img { transform: scale(1.07); }
.project-count { position: absolute; right: 12px; top: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--white); background: rgba(21, 25, 34, .6); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-tags { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); font-weight: 700; margin-bottom: 8px; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 16px; }
.project-link { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .88rem; }
.project-link .icon { color: var(--green-600); transition: transform .3s var(--ease); }
.project-card:hover .project-link .icon { transform: translateX(4px); }
.projects-featured .project-card:first-child { grid-column: span 2; grid-row: span 2; }
.projects-featured .project-card:first-child figure { aspect-ratio: auto; flex: 1; min-height: 320px; }
.projects-featured .project-card:first-child h3 { font-size: 1.6rem; }
.projects-featured .project-card:first-child .project-body { flex: none; }
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-featured .project-card:first-child { grid-row: auto; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-featured .project-card:first-child { grid-column: auto; }
  .projects-featured .project-card:first-child figure { aspect-ratio: 4 / 3; min-height: 0; }
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: all .2s;
}
.chip span { font-size: .72rem; background: var(--green-50); color: var(--green-700); padding: 1px 8px; border-radius: 999px; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.is-active span { background: var(--green); color: var(--ink); }
.project-card.is-hidden { display: none; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Valores */
.values-section { overflow: hidden; }
.values { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.values-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.values-head p { color: rgba(255, 255, 255, .7); font-size: 1.08rem; }
.values-img { margin-top: 28px; border-radius: var(--radius); opacity: .85; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.value-card {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; transition: transform .4s var(--ease), border-color .4s;
}
.value-card::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(128, 194, 143, .25), transparent 70%); opacity: 0; transition: opacity .4s; }
.value-card:hover { transform: translateY(-6px); border-color: rgba(128, 194, 143, .5); }
.value-card:hover::after { opacity: 1; }
.value-card:nth-child(even) { transform: translateY(28px); }
.value-card:nth-child(even):hover { transform: translateY(22px); }
.value-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: rgba(255, 255, 255, .06); }
.value-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(128, 194, 143, .14); color: var(--green); margin-bottom: 22px; }
.value-icon .icon { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: rgba(255, 255, 255, .68); margin: 0; font-size: .95rem; }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
  .value-card:nth-child(even), .value-card:nth-child(even):hover { transform: none; }
}
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* Reseñas */
.reviews-section .section-head { margin-inline: auto; text-align: center; }
.reviews-section .kicker::before { display: none; }
.rating { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 10px 20px; background: var(--green-50); border-radius: 999px; }
.rating strong { text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.rating > span:last-child { color: var(--muted); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; color: #fbbc04; }
.stars .icon { width: 18px; height: 18px; }
.stars .star-off { color: #dde2e8; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 50s linear infinite; padding: 10px 0 20px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }
.review { width: 380px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.review blockquote { margin: 0; color: var(--ink-700); flex: 1; }
.review figcaption { display: flex; gap: 12px; align-items: center; }
.review figcaption strong { display: block; }
.review small { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: .78rem; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.reviews-verify { display: flex; justify-content: center; margin: 4px 0 0; padding: 0 16px; }
.reviews-verify a {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 10px 8px 8px; border-radius: 999px;
  font-size: .82rem; line-height: 1.35; color: var(--muted); background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 4px 14px -8px rgba(21, 25, 34, .25); cursor: pointer;
  transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease), color .2s;
}
.reviews-verify strong { color: var(--green-700); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(63, 138, 82, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.rv-google, .rv-arrow { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.rv-google { background: var(--green-50); color: var(--ink); }
.rv-google .icon { width: 14px; height: 14px; }
.rv-arrow { background: var(--green); color: var(--ink); transition: transform .25s var(--ease), background .2s; }
.rv-arrow .icon { width: 14px; height: 14px; transform: rotate(-45deg); }
.reviews-verify a:hover { border-color: var(--green); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(63, 138, 82, .55); transform: translateY(-1px); }
.reviews-verify a:hover strong { text-decoration-color: currentColor; }
.reviews-verify a:hover .rv-arrow { transform: translateX(2px); background: #93cfa0; }
.reviews-verify a:active { transform: translateY(0) scale(.98); }
@media (max-width: 560px) { .reviews-verify a { font-size: .78rem; text-align: left; } }
@media (max-width: 560px) { .review { width: 300px; } }

/* CTA + pie */
.cta-band { background: var(--green); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(21, 25, 34, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 25, 34, .15) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 64px 0; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer h3 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--white); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-cols { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--green); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact .icon { color: var(--green); margin-top: 3px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--white); transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--green); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 24px 0 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Cabeceras de página interior ---------- */
.page-hero {
  position: relative; color: var(--white); background: var(--ink) var(--bg) center / cover no-repeat;
  padding: calc(var(--header-h) + 90px) 0 90px; isolation: isolate;
}
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 25, 34, .94), rgba(21, 25, 34, .6)); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 820px; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-hero-sm { padding-bottom: 60px; }
.page-hero-project p { display: flex; gap: 8px; align-items: center; color: var(--green); font-weight: 600; }
.page-hero-404 { min-height: 80vh; display: flex; align-items: center; }
.page-hero-404 .hero-actions { margin-top: 30px; }
.big-404 { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: var(--green); margin: 0 0 10px !important; font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 18px; }
.crumbs a { color: var(--green); }

/* Página de servicios */
.services-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; scroll-margin-top: 100px; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-media .service-icon { position: absolute; left: 20px; bottom: -26px; border: 4px solid var(--white); width: 60px; height: 60px; }
.service-card-body { padding: 40px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h2 { font-size: 1.35rem; }
.service-card-body p { color: var(--muted); }
.service-card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1000px) { .services-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-list { grid-template-columns: 1fr; } }

/* ---------- Formulario ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-aside h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.form-aside > p { color: var(--muted); }
.contact-mini { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-mini li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact-mini .icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--white); color: var(--green-700); }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 36px; } }

.quote-form { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); scroll-margin-top: 100px; }
.quote-form h3 { font-size: 1.6rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fafbfc; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(128, 194, 143, .2); }
.field.has-error input, .field.has-error textarea { border-color: #d92d20; }
small[data-error] { color: #d92d20; font-size: .8rem; min-height: 0; }
small[data-error]:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green-600); margin-top: 3px; }
.check a { color: var(--green-700); font-weight: 600; text-decoration: underline; }
.quote-form .btn-block { margin-top: 18px; }
.quote-form button[disabled] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: .92rem; font-weight: 600; background: #fef3f2; color: #b42318; }
.form-alert.is-ok { background: var(--green-50); color: var(--green-700); }
.form-alert[hidden] { display: none; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }

/* Contacto */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 60px; }
.contact-card { padding: 26px; border-radius: var(--radius); background: var(--green-50); transition: transform .3s var(--ease), background .3s, color .3s; }
.contact-card:hover { transform: translateY(-5px); background: var(--ink); color: var(--white); }
.contact-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--green); color: var(--ink); margin-bottom: 18px; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-card h2 { font-size: 1.15rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .92rem; word-break: break-word; opacity: .8; }
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; scroll-margin-top: 90px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--green-50); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.8); }
.map-link { position: absolute; left: 16px; bottom: 16px; display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
@media (max-width: 1000px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* Detalle de proyecto */
.project-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
.gallery { columns: 3 220px; column-gap: 14px; }
.gallery-item { display: block; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; background: var(--green-50); cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.85); }
.project-aside { position: sticky; top: 96px; display: grid; gap: 24px; }
.info-card { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; }
.info-card h2 { font-size: 1.35rem; }
.info-card h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin: 22px 0 12px; }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { display: flex; gap: 8px; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.info-card dt .icon { color: var(--green); }
.info-card dd { margin: 2px 0 0; font-weight: 700; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: block; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(128, 194, 143, .14); color: var(--green); transition: background .2s, color .2s; }
.tag-list a:hover { background: var(--green); color: var(--ink); }
.project-aside .quote-form { box-shadow: var(--shadow); }
.project-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.pn { display: grid; gap: 4px; max-width: 45%; }
.pn small { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.pn span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; transition: color .2s; }
.pn:hover span { color: var(--green-700); }
.pn-next { text-align: right; margin-left: auto; }
.pn-next small { justify-content: flex-end; }
@media (max-width: 1000px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-aside { position: static; }
}
@media (max-width: 560px) { .gallery { columns: 2 140px; column-gap: 10px; } .gallery-item { margin-bottom: 10px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 14, 19, .95); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; animation: fadeIn .25s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lightbox button { background: rgba(255, 255, 255, .08); border: 0; color: var(--white); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; justify-self: center; transition: background .2s; }
.lightbox button:hover { background: var(--green); color: var(--ink); }
.lb-close { position: absolute; top: 18px; right: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* Textos legales */
.prose { max-width: 820px; color: var(--ink-700); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; color: var(--ink); }
.prose h3, .prose h4 { font-size: 1.2rem; margin-top: 1.5em; color: var(--ink); }
.prose h5 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 1em 0 .2em; color: var(--muted); }
.prose a { color: var(--green-700); text-decoration: underline; word-break: break-word; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Panel de administración ---------- */
.admin { background: #f5f7f9; }
.admin-bar { background: var(--ink); color: var(--white); }
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; font-weight: 600; font-size: .9rem; }
.admin-bar img { height: 40px; width: auto; }
.admin-main { padding: 40px 0 80px; }
.admin-head h1 { font-size: 2rem; margin-bottom: 4px; }
.admin-head p { color: var(--muted); }
.admin-list { display: grid; gap: 16px; }
.admin-item { background: var(--white); border-radius: 14px; padding: 22px; border: 1px solid var(--line); border-left: 5px solid var(--green); }
.admin-item.status-nueva { border-left-color: #f79009; }
.admin-item.status-cerrada { opacity: .7; border-left-color: var(--muted); }
.admin-item header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.admin-item h2 { font-size: 1.2rem; margin: 0 0 2px; }
.admin-meta { font-size: .82rem; color: var(--muted); margin: 0; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.admin-contact { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 10px; font-weight: 600; font-size: .9rem; }
.admin-contact a { display: inline-flex; gap: 6px; align-items: center; color: var(--green-700); }
.admin-desc { white-space: pre-wrap; background: #fafbfc; padding: 14px; border-radius: 10px; font-size: .93rem; }
.admin-item footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-status { display: flex; gap: 8px; }
.admin-status select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); }

/* Panel: navegación, formularios y proyectos */
.admin-bar-inner { gap: 20px; }
.admin-nav { display: flex; gap: 4px; margin-right: auto; }
.admin-nav a { padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, .75); }
.admin-nav a:hover { color: var(--white); }
.admin-nav a.is-active { background: rgba(128, 194, 143, .18); color: var(--green); }
.admin-user { display: flex; align-items: center; gap: 16px; font-size: .85rem; }
.admin-user a { color: rgba(255, 255, 255, .8); }
.admin-user small { display: block; font-size: .7rem; color: var(--green); font-weight: 600; }
.admin-user button { font: inherit; font-weight: 700; background: none; border: 1px solid rgba(255, 255, 255, .3); color: var(--white); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.admin-user button:hover { border-color: var(--green); }
.admin-head { margin-bottom: 24px; }
.admin-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.crumbs-admin { margin: 0 0 6px; font-size: .85rem; font-weight: 600; }
.crumbs-admin a { color: var(--green-700); }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; display: grid; gap: 14px; }
.admin-card h2 { font-size: 1.15rem; margin: 0; }
.admin-card h2 small { font-family: var(--font); font-size: .75rem; background: var(--green-50); color: var(--green-700); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }
.admin-narrow { max-width: 480px; }
.admin-login { max-width: 400px; margin: 40px auto; }
.admin-login h1 { font-size: 1.6rem; margin: 0; }
.admin-hint { font-size: .82rem; color: var(--muted); margin: 0; }
.field-error { color: #d92d20; font-size: .8rem; }
.check-inline { margin: 0; align-items: center; color: var(--ink); }
.check-inline input { margin-top: 0; }
.slug-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fafbfc; overflow: hidden; }
.slug-input em { font-style: normal; color: var(--muted); padding-left: 15px; font-size: .9rem; }
.field .slug-input input { border: 0; background: transparent; padding-left: 2px; }
.field .slug-input input:focus { box-shadow: none; }
.service-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; }
.cover-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.cover-preview { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #eef1f4; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .85rem; padding: 0; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview span { padding: 16px; }
.admin-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-gallery:empty { display: none; }
.admin-gallery li { position: relative; border-radius: 10px; overflow: hidden; background: #eef1f4; aspect-ratio: 4 / 3; cursor: grab; border: 3px solid transparent; }
.admin-gallery li.is-cover { border-color: var(--green); }
.admin-gallery li.is-cover::before { content: 'Portada'; position: absolute; top: 6px; left: 6px; background: var(--green); color: var(--ink); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 1; }
.admin-gallery li.is-dragging { opacity: .4; }
.admin-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-new img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 3px dashed var(--green); }
.ag-tools { position: absolute; inset: auto 0 0 0; display: flex; gap: 4px; justify-content: center; padding: 6px; background: linear-gradient(transparent, rgba(21, 25, 34, .8)); }
.ag-tools button { font: inherit; font-size: .72rem; font-weight: 700; border: 0; border-radius: 6px; padding: 4px 8px; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer; }
.ag-tools button:hover { background: var(--green); }
.ag-tools .ag-remove { background: #fff0f0; color: #b42318; }
.ag-tools .ag-remove:hover { background: #b42318; color: #fff; }
.admin-form-actions { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 0; background: #f5f7f9; padding: 14px 0; z-index: 2; }
.admin-danger { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-toolbar .filters { margin: 0; }
.admin-toolbar input[type=search] { font: inherit; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); min-width: 240px; }
.admin-projects { display: grid; gap: 12px; }
.admin-project { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.admin-project.is-draft { background: #fbfbfc; }
.admin-project.is-draft .admin-project-thumb img { filter: grayscale(.8); opacity: .7; }
.admin-project-thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef1f4; display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.admin-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-project h2 { font-size: 1.05rem; margin: 0 0 4px; }
.admin-project .admin-meta { margin: 2px 0; }
.admin-project-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge-muted { background: #eef1f4; color: var(--muted); }
.badge-dark { background: var(--ink); color: var(--green); }
.admin-table-wrap { overflow-x: auto; padding: 8px 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 800px) {
  .admin-bar-inner { height: auto; flex-wrap: wrap; padding: 10px 0; }
  .admin-nav { order: 3; width: 100%; overflow-x: auto; }
  .admin-project { grid-template-columns: 90px 1fr; }
  .admin-project-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cover-row { grid-template-columns: 1fr; }
}

/* Panel: reseñas */
.admin-warning { background: #fffaeb; border: 1px solid #fedf89; border-left: 5px solid #f79009; border-radius: 14px; padding: 18px 22px; margin-bottom: 18px; color: #7a2e0e; font-size: .9rem; }
.admin-warning > strong { display: block; font-size: 1rem; margin-bottom: 6px; color: #93370d; }
.admin-warning p { margin: 6px 0; }
.admin-warning ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .field-grid-3 { grid-template-columns: 1fr; } }
.admin-reviews { display: grid; gap: 12px; }
.admin-review { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; scroll-margin-top: 20px; }
.admin-review.is-draft { background: #fbfbfc; }
.admin-review.is-draft .admin-review-text { opacity: .6; }
.admin-review-order { display: grid; justify-items: center; gap: 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.admin-review-order button { font: inherit; font-size: .7rem; width: 30px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink); }
.admin-review-order button:hover:not(:disabled) { border-color: var(--green); background: var(--green-50); }
.admin-review-order button:disabled { opacity: .3; cursor: default; }
.admin-review-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 4px; }
.admin-stars { color: #f5a300; letter-spacing: 1px; }
.admin-review-text { margin: 0 0 4px; font-size: .92rem; color: var(--ink-700); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 800px) {
  .admin-review { grid-template-columns: 36px 1fr; }
  .admin-review .admin-project-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Panel: verificación en dos pasos */
.otp-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.admin-setup-2fa { max-width: 520px; margin: 30px auto; }
.admin-setup-2fa h1 { font-size: 1.5rem; margin: 0; }
.setup-steps { margin: 0; padding-left: 20px; display: grid; gap: 18px; font-size: .92rem; }
.setup-steps li::marker { font-weight: 800; color: var(--green-700); }
.qr-box { margin: 12px 0 8px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: block; width: fit-content; }
.qr-box img { display: block; image-rendering: pixelated; }
.setup-steps details summary { cursor: pointer; font-size: .85rem; color: var(--green-700); font-weight: 600; }
.secret-code { display: inline-block; margin-top: 6px; padding: 8px 12px; background: #f5f7f9; border-radius: 8px; font-size: .95rem; letter-spacing: .05em; user-select: all; word-break: break-all; }

/* ---------- Aviso de cookies ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cc {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(600px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--ink); color: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); font-size: .9rem; line-height: 1.6;
  opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cc.is-visible { opacity: 1; transform: none; }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 24px 0; }
.cc-head h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 800; color: var(--white); margin: 0; letter-spacing: 0; }
.cc-close { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; transition: background .2s, color .2s; }
.cc-close:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.cc-close .icon { width: 18px; height: 18px; }
.cc-text { margin: 10px 24px 18px; }
.cc-text strong { color: rgba(255, 255, 255, .9); font-weight: 600; }
.cc-prefs { margin: 0 24px 18px; display: grid; gap: 10px; }
.cc-cat { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
label.cc-cat { cursor: pointer; }
.cc-cat strong { color: var(--white); display: block; font-size: .92rem; }
.cc-cat p { margin: 2px 0 0; font-size: .8rem; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.cc-always { flex: none; font-size: .75rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.cc-switch { flex: none; position: relative; width: 44px; height: 24px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .2s; pointer-events: none; }
.cc-switch span[aria-hidden]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.cc-switch input:checked + span { background: var(--green); }
.cc-switch input:checked + span::after { transform: translateX(20px); }
.cc-switch input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.cc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 22px; }
.cc.is-expanded [data-cc-accept] { display: none; }
.cc-btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s;
}
.cc-btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .35); }
.cc-btn:active { transform: scale(.98); }
.cc-btn-primary { background: var(--green); border-color: var(--green); color: var(--ink); }
.cc-btn-primary:hover { background: #93cfa0; border-color: #93cfa0; }
.cc-btn[hidden] { display: none; }
.cc-chevron { width: 16px; height: 16px; flex: none; transition: transform .2s; }
.cc-btn[aria-expanded="true"] .cc-chevron { transform: rotate(180deg); }
.cc-links { display: flex; justify-content: center; gap: 24px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.cc-links a { color: rgba(255, 255, 255, .65); text-decoration: underline; text-underline-offset: 3px; }
.cc-links a:hover { color: var(--white); }
.cc-tab {
  position: fixed; left: 24px; bottom: 0; z-index: 39; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 9px;
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--ink); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0;
  border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .5); cursor: pointer; transform: translateY(4px); transition: transform .2s var(--ease), background .2s;
}
.cc-tab:hover, .cc-tab:focus-visible { transform: none; background: var(--ink-700); }
.cc-tab .icon { width: 16px; height: 16px; color: var(--green); }
.cc-tab[hidden] { display: none; }
@media (max-width: 600px) {
  .cc { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .cc-actions { grid-template-columns: 1fr; }
  .cc-head { padding: 20px 18px 0; }
  .cc-text, .cc-prefs { margin-left: 18px; margin-right: 18px; }
  .cc-actions { padding: 0 18px 18px; }
  .cc-tab { left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cc, .cc-tab { transition: none; } }

/* Mapa bloqueado hasta dar consentimiento */
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; text-align: center; color: var(--ink-700); font-size: .9rem; }
.map-consent p { margin: 0; max-width: 300px; }
.map-consent strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.map-consent-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--green-700); box-shadow: var(--shadow); }
.map-consent-icon .icon { width: 24px; height: 24px; }
.map-wrap.is-loaded .map-consent { display: none; }
.cc-prefs[hidden] { display: none; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose code { background: var(--green-50); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
