/* =========================================================
   DESIGN CO STUDIO — Hoja de estilos
   Minimalista: blanco y negro, un color de acento y el
   patrón hexagonal de la marca como detalle.
   Para cambiar el color de acento edita --acento.
   ========================================================= */
:root {
  --negro: #111111;
  --texto: #1d1d1d;
  --gris: #6b6b6b;
  --gris-claro: #f3f3f1;
  --linea: #e4e4e1;
  --blanco: #ffffff;
  --acento: #b5532f;          /* terracota — cámbialo aquí */
  --acento-hover: #97441f;
  --radio: 2px;
  --ancho: 1240px;
  --fuente: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; color: var(--negro); letter-spacing: -0.02em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 24px; }
.seccion { padding: 96px 0; }
.seccion--gris { background: var(--gris-claro); }
.etiqueta {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acento); margin-bottom: 14px;
}
.titulo-seccion { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 18px; }
.intro { font-size: 19px; color: var(--gris); max-width: 640px; }
.cabecera-seccion { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border: 1px solid var(--negro);
  background: var(--negro); color: var(--blanco);
  font: 600 14px/1 var(--fuente); letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--radio); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.boton:hover { background: var(--acento); border-color: var(--acento); }
.boton--claro { background: transparent; color: var(--negro); }
.boton--claro:hover { background: var(--negro); color: var(--blanco); border-color: var(--negro); }
.boton--blanco { background: var(--blanco); color: var(--negro); border-color: var(--blanco); }
.boton--blanco:hover { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.enlace-flecha { font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.enlace-flecha:hover { color: var(--acento); }

/* ---------- Encabezado ---------- */
.encabezado {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea);
}
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 26px; width: auto; }
.logo-texto { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.menu { display: flex; align-items: center; gap: 36px; }
.menu a { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.menu a:not(.boton)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--acento); transition: width .25s;
}
.menu a:not(.boton):hover::after, .menu a.activo::after { width: 100%; }
.menu .boton { padding: 11px 20px; font-size: 13px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--negro); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--blanco); border-bottom: 1px solid var(--linea); padding: 8px 24px 24px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu.abierto { transform: translateY(0); }
  .menu a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--linea); }
  .menu a::after { display: none; }
  .menu .boton { margin-top: 18px; width: auto; border-bottom: 1px solid var(--negro); padding: 14px 22px; }
  .menu-toggle.abierto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.abierto span:nth-child(2) { opacity: 0; }
  .menu-toggle.abierto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Portada ---------- */
.portada { position: relative; min-height: calc(100vh - 76px); display: flex; align-items: flex-end; color: var(--blanco); overflow: hidden; background: var(--negro); }
.portada__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.portada .contenedor { position: relative; z-index: 1; padding-bottom: 72px; }
.portada h1 { color: var(--blanco); font-size: clamp(44px, 8vw, 104px); max-width: 980px; letter-spacing: -0.035em; }
.portada p { font-size: clamp(17px, 2vw, 21px); max-width: 560px; margin: 24px 0 32px; color: rgba(255,255,255,.88); }
.portada .acciones { display: flex; gap: 14px; flex-wrap: wrap; }
.portada .boton--claro { color: var(--blanco); border-color: rgba(255,255,255,.7); }
.portada .boton--claro:hover { background: var(--blanco); color: var(--negro); }

/* ---------- Cifras / franja ---------- */
.franja { border-bottom: 1px solid var(--linea); }
.franja .contenedor { display: grid; grid-template-columns: repeat(4, 1fr); }
.franja div { padding: 28px 24px; border-left: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
.franja div:first-child { border-left: 0; padding-left: 0; }
.franja strong { display: block; font-size: 17px; color: var(--negro); }
@media (max-width: 760px) { .franja .contenedor { grid-template-columns: 1fr 1fr; } .franja div:nth-child(3) { border-left: 0; padding-left: 0; } .franja div { border-top: 1px solid var(--linea); } }

/* ---------- Catálogo ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 44px; border-bottom: 1px solid var(--linea); padding-bottom: 18px; }
.filtros button {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: 500 15px var(--fuente); color: var(--gris); position: relative;
}
.filtros button:hover { color: var(--negro); }
.filtros button.activo { color: var(--negro); font-weight: 700; }
.filtros button.activo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: var(--acento); }
.filtros sup { font-size: 11px; color: var(--gris); margin-left: 3px; font-weight: 500; }

.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
@media (max-width: 980px) { .rejilla { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rejilla { grid-template-columns: 1fr; gap: 40px; } }

.tarjeta { display: block; }
.tarjeta__foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gris-claro); }
.tarjeta__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s; }
.tarjeta__foto .alterna { position: absolute; inset: 0; opacity: 0; }
.tarjeta:hover .tarjeta__foto img { transform: scale(1.035); }
.tarjeta:hover .tarjeta__foto .alterna { opacity: 1; }
.tarjeta__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.tarjeta__info h3 { font-size: 19px; letter-spacing: -0.01em; transition: color .2s; }
.tarjeta:hover h3 { color: var(--acento); }
.tarjeta__meta { font-size: 13px; color: var(--gris); white-space: nowrap; }
.tarjeta__cat { font-size: 13px; color: var(--gris); margin-top: 4px; }
.vacio { color: var(--gris); padding: 40px 0; }

/* ---------- Servicios ---------- */
.servicios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .servicios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .servicios { grid-template-columns: 1fr; } }
.servicio__foto { aspect-ratio: 1 / 1; overflow: hidden; background: var(--linea); margin-bottom: 18px; }
.servicio__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.servicio:hover .servicio__foto img { transform: scale(1.04); }
.servicio h3 { font-size: 21px; margin-bottom: 8px; }
.servicio p { font-size: 15px; color: var(--gris); margin-bottom: 12px; }

/* Detalle de servicio */
.servicio-detalle { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 88px 0; border-top: 1px solid var(--linea); }
.servicio-detalle:first-of-type { border-top: 0; }
.servicio-detalle__foto { aspect-ratio: 4/5; overflow: hidden; background: var(--gris-claro); position: sticky; top: 100px; }
.servicio-detalle__foto img { width: 100%; height: 100%; object-fit: cover; }
.servicio-detalle h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.servicio-detalle h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); margin: 32px 0 12px; font-weight: 600; }
.lista-limpia { list-style: none; padding: 0; margin: 0; }
.lista-limpia li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--linea); position: relative; font-size: 16px; }
.lista-limpia li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--acento); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.servicio-detalle .acciones { margin-top: 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mini-proyectos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mini-proyectos a { aspect-ratio: 1; overflow: hidden; background: var(--gris-claro); }
.mini-proyectos img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.mini-proyectos a:hover img { opacity: .8; }
@media (max-width: 860px) { .servicio-detalle { grid-template-columns: 1fr; gap: 32px; padding: 64px 0; } .servicio-detalle__foto { position: static; aspect-ratio: 16/10; } }

/* ---------- Proceso ---------- */
.proceso { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: paso; }
.paso { padding: 28px 24px 8px 0; border-top: 1px solid var(--negro); counter-increment: paso; }
.paso::before { content: "0" counter(paso); display: block; font-weight: 700; font-size: 14px; color: var(--acento); margin-bottom: 16px; letter-spacing: .1em; }
.paso h3 { font-size: 18px; margin-bottom: 8px; }
.paso p { font-size: 15px; color: var(--gris); }
@media (max-width: 900px) { .proceso { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .proceso { grid-template-columns: 1fr; } }

/* ---------- Colaboradores ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 32px; }
.logos img { width: 100%; max-width: 130px; margin: 0 auto; filter: grayscale(1); opacity: .75; transition: opacity .2s; }
.logos img:hover { opacity: 1; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Equipo ---------- */
.equipo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.persona__foto { aspect-ratio: 4/5; overflow: hidden; background: var(--gris-claro); margin-bottom: 18px; }
.persona__foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.persona:hover .persona__foto img { filter: grayscale(0); }
.persona h3 { font-size: 20px; }
.persona .cargo { font-size: 14px; color: var(--acento); font-weight: 600; margin: 4px 0 10px; }
.persona p { font-size: 15px; color: var(--gris); }
@media (max-width: 760px) { .equipo { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Bloques de texto ---------- */
.dos-columnas { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.dos-columnas .grande { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--negro); font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 860px) { .dos-columnas { grid-template-columns: 1fr; gap: 24px; } }
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.valores h3 { font-size: 19px; margin-bottom: 10px; }
.valores p { color: var(--gris); font-size: 15px; }
@media (max-width: 760px) { .valores { grid-template-columns: 1fr; gap: 28px; } }

.linea-tiempo { border-top: 1px solid var(--linea); }
.evento { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--linea); }
.evento time { font-size: 14px; color: var(--gris); font-weight: 600; }
.evento h3 { font-size: 19px; margin-bottom: 4px; }
.evento p { color: var(--gris); font-size: 15px; margin: 0; }
@media (max-width: 560px) { .evento { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Ficha de proyecto ---------- */
.ficha-portada { position: relative; height: 78vh; min-height: 420px; background: var(--negro); overflow: hidden; }
.ficha-portada img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ficha-cabecera { padding: 64px 0 40px; }
.ficha-cabecera .volver { font-size: 14px; color: var(--gris); display: inline-block; margin-bottom: 28px; }
.ficha-cabecera .volver:hover { color: var(--acento); }
.ficha-cabecera h1 { font-size: clamp(38px, 6vw, 72px); max-width: 900px; }
.ficha-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--negro); border-bottom: 1px solid var(--linea); margin: 40px 0 0; }
.ficha-datos div { padding: 20px 20px 20px 0; }
.ficha-datos dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); margin-bottom: 6px; }
.ficha-datos dd { margin: 0; font-weight: 600; }
.ficha-texto { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding: 56px 0; }
.ficha-texto h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--acento); margin-bottom: 14px; font-weight: 600; }
.ficha-texto p { font-size: 16px; }
@media (max-width: 860px) { .ficha-texto { grid-template-columns: 1fr; gap: 28px; } }
.galeria { columns: 2; column-gap: 20px; }
.galeria button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 20px; cursor: zoom-in; background: var(--gris-claro); break-inside: avoid; }
.galeria img { width: 100%; transition: opacity .2s; }
.galeria button:hover img { opacity: .9; }
@media (max-width: 600px) { .galeria { columns: 1; } }

.visor { position: fixed; inset: 0; background: rgba(10,10,10,.95); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.visor.abierto { display: flex; }
.visor img { max-height: 90vh; max-width: 92vw; width: auto; }
.visor button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; padding: 16px; line-height: 1; }
.visor .cerrar { top: 8px; right: 12px; }
.visor .ant { left: 8px; top: 50%; transform: translateY(-50%); }
.visor .sig { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Llamada a la acción ---------- */
.cta { background: var(--negro); color: var(--blanco); padding: 104px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: var(--hex-blanco); background-size: 56px 97px; opacity: .06; }
.cta .contenedor { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--blanco); font-size: clamp(32px, 5vw, 60px); max-width: 720px; }
.cta p { color: rgba(255,255,255,.7); margin: 16px 0 0; max-width: 520px; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; gap: 48px; } }
.formulario { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.campo input, .campo select, .campo textarea {
  font: 16px var(--fuente); padding: 14px 0; border: 0; border-bottom: 1px solid #bdbdbd; background: transparent; color: var(--negro); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.campo select { background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--acento); }
.nota { font-size: 14px; color: var(--gris); grid-column: 1 / -1; margin: 0; }
@media (max-width: 560px) { .formulario { grid-template-columns: 1fr; } }
.datos-contacto { display: grid; gap: 0; }
.dato { padding: 22px 0; border-bottom: 1px solid var(--linea); }
.dato:first-child { border-top: 1px solid var(--negro); }
.dato span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gris); margin-bottom: 4px; }
.dato a, .dato strong { font-size: 18px; font-weight: 600; }
.dato a:hover { color: var(--acento); }
.mapa { margin-top: 28px; aspect-ratio: 4/3; background: var(--gris-claro); }
.mapa iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }

/* ---------- Encabezado de página interior ---------- */
.pagina-titulo { padding: 88px 0 56px; border-bottom: 1px solid var(--linea); position: relative; overflow: hidden; }
.pagina-titulo::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 45%; background-image: var(--hex-negro); background-size: 56px 97px; opacity: .06; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.pagina-titulo h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.035em; position: relative; }
.pagina-titulo p { position: relative; }

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: rgba(255,255,255,.7); padding: 72px 0 32px; font-size: 15px; position: relative; overflow: hidden; }
.pie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background-image: var(--hex-blanco); background-size: 56px 97px; opacity: .04; }
.pie .contenedor { position: relative; }
.pie__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.pie h4 { color: var(--blanco); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.pie a:hover { color: var(--blanco); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie__marca { color: var(--blanco); font-weight: 800; font-size: 26px; margin-bottom: 12px; letter-spacing: -0.02em; }
.pie__legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 56px; padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .pie__grid { grid-template-columns: 1fr 1fr; } .pie__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--negro); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.18); transition: background .2s, transform .2s;
}
.whatsapp:hover { background: #1f9e55; transform: translateY(-2px); }
.whatsapp svg { width: 28px; height: 28px; }

/* ---------- Utilidades ---------- */
.centro { text-align: center; }
.mt-48 { margin-top: 48px; }
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aparecer { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.aparecer.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aparecer { opacity: 1; transform: none; } * { transition: none !important; } }

/* Patrón hexagonal (SVG en línea) */
:root {
  --hex-negro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66L0 50V17L28 1l28 16v33L28 66zm0 0V98' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
  --hex-blanco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66L0 50V17L28 1l28 16v33L28 66zm0 0V98' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
}
