/* Colibrí Estudio Creativo — estilos
   Valores tomados del diseño de Figma (Montserrat, blanco/negro, pastilla de navegación,
   botones negros con radio 12). Cambia los tokens aquí para ajustar todo el sitio. */
:root {
  --ink: #202321;
  --black: #000;
  --white: #fff;
  --muted: rgba(0, 0, 0, .55);
  --band: rgba(0, 0, 0, .02);
  --pill: rgba(174, 159, 159, .14);
  --pill-border: rgba(174, 159, 159, .45);
  --verde: #31594D;      /* paleta de marca: usada para el foco de teclado */
  --crema: #F3EEE5;
  --terracota: #D4774D;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); font-size: 18px; line-height: 1.45; font-weight: 500; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 18px; padding: 12px 20px; border-radius: 12px; border: 2px solid var(--black); background: var(--black); color: var(--white); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--black); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand img { width: 185px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 40px; background: var(--pill); border: 1px solid var(--pill-border); backdrop-filter: blur(12px); }
.nav a, .nav button.nav__item { font: inherit; font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; padding: 10px 22px; border-radius: 40px; border: 0; background: transparent; cursor: pointer; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover, .nav button.nav__item:hover { background: rgba(0, 0, 0, .07); }
/* Botón presionado: la sección en la que estás */
.nav [aria-current="page"], .nav [aria-current="true"], .pill [aria-current="page"], .pill [aria-pressed="true"], .svc-btn[aria-pressed="true"] { background: var(--black) !important; color: var(--white) !important; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--pill-border); border-radius: 20px; padding: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); display: none; flex-direction: column; gap: 2px; }
.menu.open { display: flex; }
.menu a { border-radius: 14px; padding: 10px 16px; }
.socials { display: flex; gap: 20px; align-items: center; min-width: 30px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; opacity: .85; }
.socials a:hover { opacity: 1; }
.socials svg { width: 26px; height: 26px; fill: currentColor; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: var(--black); color: var(--white); border: 0; border-radius: 40px; padding: 10px 18px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--ink) url("../assets/img/hero-fondo.jpg") center / cover no-repeat; box-shadow: 0 5px 4px rgba(0, 0, 0, .15); }
.hero .wrap { padding-block: clamp(28px, 4vw, 40px); text-align: center; }
.hero h1 { font-size: clamp(30px, 5.2vw, 64px); line-height: 1.1; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.hero--footer { margin-top: 0; }

/* ---------- Inicio ---------- */
.rows { padding-block: 24px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 56px; }
.row h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; font-weight: 700; margin-bottom: 24px; }
.row p { max-width: 544px; }
.row__img { border-radius: var(--radius); overflow: hidden; }
.row__img img { width: 100%; height: auto; object-fit: cover; }
.row__img--iso { display: grid; place-items: center; }
.row__img--iso img { width: min(100%, 507px); }
.row--reverse .row__img { order: -1; }
.cta-band { background: var(--band); padding-block: 72px 80px; }
.cta-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.cta-band h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.cta-band__btn { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Portafolio ---------- */
.page-head { text-align: center; padding-block: 28px 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 36px); font-weight: 500; line-height: 1.2; }
.pill { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 6px; border-radius: 40px; background: var(--pill); border: 1px solid var(--pill-border); backdrop-filter: blur(12px); }
.pill a { font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; padding: 10px 28px; border-radius: 40px; transition: background .15s; }
.pill a:hover { background: rgba(0, 0, 0, .07); }
.gallery { padding-block: 56px 40px; }
.card { margin: 0; position: relative; }
.card button.card__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); transition: transform .35s; }
.card button:hover img { transform: scale(1.03); }
.card figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 22px; line-height: 1.2; }
.card figcaption span { font-weight: 500; font-size: 18px; }
/* Distribución propia por categoría */
.layout-mosaico { columns: 2 380px; column-gap: 32px; }           /* Fotografía: mosaico */
.layout-mosaico .card { break-inside: avoid; margin-bottom: 40px; }
.layout-cuadricula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }  /* Diseño gráfico: cuadrícula */
.layout-cuadricula .card button.card__open { aspect-ratio: 1; }
.layout-video { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }  /* Videografía: 16:9 con play */
.layout-video .card button.card__open { aspect-ratio: 16 / 9; position: relative; background: var(--ink); }
.layout-video .card button.card__open::after { content: ""; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23000'/%3E%3C/svg%3E") center / 40px no-repeat; }
.layout-editorial { display: flex; flex-direction: column; gap: 72px; }                 /* Eventos: filas editoriales */
.layout-editorial .card { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.layout-editorial .card:nth-child(even) { grid-template-columns: 1fr 1.5fr; }
.layout-editorial .card:nth-child(even) button.card__open { order: 2; }
.layout-editorial .card button.card__open { aspect-ratio: 3 / 2; }
.layout-editorial .card figcaption { flex-direction: column; margin: 0; font-size: clamp(26px, 3vw, 36px); }
.layout-editorial .card figcaption span { color: var(--muted); }
.empty { text-align: center; padding: 72px 20px; border: 2px dashed var(--pill-border); border-radius: var(--radius); color: var(--muted); }
.empty strong { display: block; color: var(--black); font-size: 24px; margin-bottom: 8px; }

/* Visor de imágenes */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: var(--white); }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox__stage { display: grid; gap: 12px; justify-items: center; }
.lightbox__stage img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 12px; }
.lightbox__stage p { font-weight: 600; text-align: center; }
.lightbox__stage .lightbox__msg { max-width: 560px; padding: 32px; background: var(--ink); border-radius: 16px; }
.lightbox__btn { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--black); font-size: 26px; cursor: pointer; }
.lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); font-size: 24px; cursor: pointer; }
.lightbox__btn[hidden] { display: none; }

/* ---------- Contacto y cotización ---------- */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 48px 72px; align-items: start; }
.svc-select { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.svc-btn { font: inherit; font-weight: 600; font-size: 18px; color: var(--ink); background: var(--pill); border: 1px solid var(--pill-border); border-radius: 40px; padding: 10px 22px; cursor: pointer; transition: background .15s; }
.svc-btn:hover { background: rgba(0, 0, 0, .07); }
.svc-panel { border-radius: var(--radius); overflow: hidden; background: var(--band); }
.svc-panel__img { aspect-ratio: 3 / 2; background: var(--crema); display: grid; place-items: center; }
.svc-panel__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-panel__img img.is-logo { width: 38%; height: auto; object-fit: contain; }
.svc-panel__body { padding: 28px 32px 32px; }
.svc-panel h2 { font-size: 30px; line-height: 1.2; margin-bottom: 12px; }
.svc-panel__price { margin-top: 18px; font-weight: 700; }
.svc-panel__link { display: inline-block; margin-top: 18px; font-weight: 600; }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 30px; line-height: 1.2; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: 16px; }
.field input, .field select, .field textarea { font: inherit; font-weight: 500; padding: 13px 14px; border: 1.5px solid rgba(0, 0, 0, .3); border-radius: 12px; background: var(--white); color: var(--black); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 15px; font-weight: 600; min-height: 1em; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__status { padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form__status.show { display: block; }
.form__status.ok { background: #e6f2ec; color: #1b4d38; }
.form__status.warn { background: #fff4e0; color: #6b4200; }
.form__status.bad { background: #fde8e6; color: #8c1d18; }
.hp { position: absolute; left: -9999px; }
.contact-list { display: grid; gap: 8px; margin-top: 8px; font-weight: 600; }

/* ---------- Pie ---------- */
.site-footer { background: var(--band); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; flex-wrap: wrap; }
.site-footer img { width: 160px; }
.site-footer nav { display: flex; gap: 28px; font-weight: 600; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.gallery-cta { text-align: center; padding-block: 24px 72px; }
.site-footer small { font-weight: 500; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .row, .quote, .layout-editorial .card, .layout-editorial .card:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .row--reverse .row__img, .layout-editorial .card:nth-child(even) button.card__open { order: 0; }
  .cta-band__grid { grid-template-columns: 1fr; gap: 32px; }
  .layout-cuadricula { grid-template-columns: repeat(2, 1fr); }
  .layout-video { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; min-height: 72px; }
  .brand img { width: 150px; }
  .nav { display: none; order: 5; width: 100%; flex-direction: column; align-items: stretch; border-radius: 24px; padding: 10px; }
  .nav.open { display: flex; }
  .nav a, .nav button.nav__item { justify-content: space-between; }
  .menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .menu.open { display: flex; }
  .socials { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .layout-cuadricula { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .pill a { font-size: 17px; padding: 9px 18px; }
  .lightbox__btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
