/* cooryc.com · estilos de la portada y de las páginas legales.
   Misma identidad que /maps: Archivo, azul COORYC, tinta, bandas oscuras con esquinas redondeadas. */
:root {
  --blue: #0145fd; --blue-dark: #0037d6; --sky: #15b1f9; --cyan: #26ecfb; --violet: #784eff;
  --ink: #0a1033; --muted: #4f5b7a; --paper: #f4f6ff; --white: #fff;
  --line: #d5dbf0; --line-strong: #8a94b8; --tint: #e8edff;
  --max: 1240px;
  --r: 28px;
  --lift: 0 0 0 1px rgba(10, 16, 51, .06), 0 34px 70px -34px rgba(4, 9, 40, .45);
  --fast: .15s ease-out;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 Archivo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 28px; border: 1.6px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--fast), border-color var(--fast), color var(--fast), transform var(--fast); }
.btn:active { transform: scale(.985); }
.btn:hover { background: var(--ink); color: #fff; }
.btn.main { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.main:hover { background: var(--violet); border-color: var(--violet); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── Cabecera ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: block; line-height: 0; border-radius: 6px; }
.logo img { height: 30px; width: auto; }
.top ul { display: flex; gap: 4px; list-style: none; padding: 0; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .97rem; font-weight: 600; text-decoration: none; transition: color var(--fast), background var(--fast); }
.top nav a:hover { color: var(--blue); }
.top nav a[aria-current] { background: var(--tint); color: var(--blue); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.6px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: .97rem; font-weight: 600; cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .top nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(4, 9, 40, .35); }
  .top nav.open { display: block; }
  .top ul { flex-direction: column; gap: 0; }
  .top nav a { display: flex; min-height: 52px; padding: 0 8px; border-radius: 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .top li:last-child a { border-bottom: 0; }
}

/* ── Portada con vídeo ── */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 780px); padding: 120px 0 84px; overflow: hidden; border-radius: 0 0 36px 36px; background: var(--ink); color: #fff; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 51, .9) 0%, rgba(10, 16, 51, .62) 48%, rgba(10, 16, 51, .12) 100%),
              linear-gradient(0deg, rgba(10, 16, 51, .55) 0%, rgba(10, 16, 51, 0) 45%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 13em; font-size: clamp(2.5rem, 6.2vw, 5.25rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.hero .lead { max-width: 33em; margin-top: 26px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: #dfe5fd; }
.hero .btn:not(.main) { border-color: rgba(255, 255, 255, .85); color: #fff; }
.hero .btn:not(.main):hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero :focus-visible { outline-color: var(--cyan); }
.video-btn { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(10, 16, 51, .45); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background var(--fast); }
.video-btn:hover { background: rgba(10, 16, 51, .75); }
.video-btn svg { width: 18px; height: 18px; }
.video-btn .i-play, .video-btn.paused .i-pause { display: none; }
.video-btn.paused .i-play { display: block; }

/* ── Productos: una ficha ancha, foto a la izquierda y texto a la derecha ── */
.products h2, .services h2 { margin-bottom: 48px; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 14px; border-radius: var(--r); background: var(--white); box-shadow: var(--lift); }
.pic { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 18px; background: #fff; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex-direction: column; align-items: flex-start; padding: 40px clamp(28px, 5vw, 72px); }
.product h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.product p { max-width: 30em; margin-top: 18px; color: var(--muted); font-size: 1.12rem; }
.product .btn { margin-top: 32px; }

/* ── Qué hacemos: rejilla de ocho celdas separadas por líneas ── */
.services { background: var(--white); border-block: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.service { display: flex; flex-direction: column; padding: 30px 28px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; transition: background var(--fast); }
.service:hover { background: var(--paper); }
.service svg { width: 30px; height: 30px; margin-bottom: 22px; color: var(--blue); }
.service p { margin: 12px 0 22px; color: var(--muted); font-size: 1rem; }
.service a { margin-top: auto; align-self: flex-start; color: var(--blue); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.service a:hover { color: var(--violet); }
.service.cta { justify-content: flex-end; background: var(--blue); color: #fff; }
.service.cta:hover { background: var(--blue); }
.service.cta h3 { font-size: 1.5rem; font-weight: 800; }
.service.cta p { color: #dfe7ff; }
.service.cta .btn { margin-top: 0; align-self: flex-start; min-height: 48px; padding: 10px 22px; border-color: #fff; background: #fff; color: var(--ink); text-decoration: none; }
.service.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Quiénes somos: banda en tinta con trama de relleno de impresión 3D ── */
.about { padding: 104px 0 0; }
.about-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 32px 64px; padding: 80px 72px; overflow: hidden; border-radius: 36px; color: #fff;
  background:
    radial-gradient(70% 110% at 100% -10%, rgba(120, 78, 255, .85) 0%, rgba(120, 78, 255, 0) 60%),
    radial-gradient(60% 100% at -5% 115%, rgba(1, 69, 253, .85) 0%, rgba(1, 69, 253, 0) 60%),
    var(--ink); }
.about-card::before { content: ""; position: absolute; inset: 0; background: url("../img/trama.svg") 0 0 / 150px auto; opacity: .13; }
.about-card > * { position: relative; }
.about-card p { font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 600; line-height: 1.32; letter-spacing: -.015em; }
.about :focus-visible { outline-color: var(--cyan); }

/* ── Contacto ── */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px 64px; align-items: start; }
.contact .intro p { max-width: 28em; margin-top: 20px; color: var(--muted); font-size: 1.12rem; }
.datos { display: grid; gap: 18px; margin-top: 36px; padding: 0; list-style: none; }
.datos li { padding-left: 18px; border-left: 3px solid var(--sky); }
.datos b { display: block; font-size: .92rem; font-weight: 400; color: var(--muted); }
.datos a { font-weight: 600; text-underline-offset: 4px; }
.datos a:hover { color: var(--blue); }
form { display: grid; gap: 18px; padding: 36px; border-radius: var(--r); background: var(--white); box-shadow: var(--lift); }
label { display: grid; gap: 6px; font-size: .97rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; transition: border-color var(--fast), box-shadow var(--fast); }
input:hover, textarea:hover { border-color: var(--muted); }
input:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1, 69, 253, .25); }
textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.check a { color: var(--blue); }
.opt { font-weight: 400; color: var(--muted); }
form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-msg.ok { background: #e3f7ea; color: #135c2e; }
.form-msg.error { background: #fde8e8; color: #8a1c1c; }

/* ── Pie ── */
footer { padding: 32px 0; background: var(--white); border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
footer img { height: 24px; width: auto; }
footer ul { display: flex; gap: 6px 20px; flex-wrap: wrap; padding: 0; list-style: none; }
footer a:hover { color: var(--blue); }

/* ── Páginas legales ── */
.page-head { padding: 72px 0 64px; border-radius: 0 0 36px 36px; color: #fff;
  background:
    radial-gradient(70% 140% at 96% -30%, rgba(120, 78, 255, .8) 0%, rgba(120, 78, 255, 0) 62%),
    radial-gradient(60% 120% at -6% 130%, rgba(1, 69, 253, .78) 0%, rgba(1, 69, 253, 0) 60%),
    var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.legal { max-width: 760px; padding: 64px 0 96px; line-height: 1.7; }
.legal h2 { margin: 44px 0 12px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal a { color: var(--blue); }
.legal > :first-child { margin-top: 0; }
.pending { padding: 16px 20px; border-left: 4px solid var(--violet); background: var(--white); color: var(--muted); }

@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { grid-template-columns: minmax(0, 1fr); padding: 64px 48px; }
}
@media (max-width: 820px) {
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .hero { min-height: min(84vh, 700px); padding: 96px 0 64px; border-radius: 0 0 24px 24px; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 16, 51, .88) 0%, rgba(10, 16, 51, .6) 60%, rgba(10, 16, 51, .45) 100%); }
  .video-btn { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .products h2, .services h2 { margin-bottom: 32px; }
  .product, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .product-body { padding: 28px 12px 14px; }
  .about { padding-top: 72px; }
  .about-card { padding: 48px 28px; border-radius: 24px; }
  form { padding: 24px 20px; }
  form .btn { justify-self: stretch; }
  .page-head { padding: 48px 0 44px; border-radius: 0 0 24px 24px; }
  .legal { padding: 44px 0 72px; }
}
@media (max-width: 560px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 26px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
