/* PLACNER® — Hoja de estilos principal */

:root {
  --accent: #e2231a;
  --accent-dark: #b5121a;
  --ink: #1a1a1a;
  --black: #111111;
  --black-deep: #0a0a0a;
  --gray-50: #fafafa;
  --gray-100: #f0f0f0;
  --gray-300: #cccccc;
  --gray-500: #777777;
  --maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-outline.dark { border-color: var(--ink); color: var(--ink); }
.btn-outline.dark:hover { background: rgba(0,0,0,0.05); }
.btn-sm { padding: 11px 22px; font-size: 13px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(226,35,26,0.08); color: var(--accent);
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.chip-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 64px; width: auto; display: block; }
.footer .brand-logo { height: 58px; }

.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; color: #e6e6e6; text-transform: uppercase; letter-spacing: 0.04em; }
.nav-link { position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }

/* ---------- Hero genérico ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background: var(--black); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -2%; width: 104%; height: 104%;
  object-fit: cover; opacity: 0.6;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,8,8,0.93) 18%, rgba(8,8,8,0.55) 60%, rgba(8,8,8,0.2) 100%);
}
.hero-content { position: relative; max-width: 640px; display: flex; flex-direction: column; gap: 24px; padding: 90px 0; }
.hero h1 { font-size: 64px; font-weight: 800; line-height: 0.98; color: #fff; }
.hero p.lead { font-size: 18px; line-height: 1.6; color: #d9d9d9; max-width: 540px; }

/* ---------- Sello "+30 años" ---------- */
.anniversary-badge {
  position: absolute; z-index: 5; right: 56px; bottom: 44px;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 3px solid rgba(255,255,255,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: rotate(-8deg);
}
.anniversary-badge .big { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; line-height: 1; }
.anniversary-badge .small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.3; margin-top: 2px; }
@media (max-width: 640px) {
  .anniversary-badge { width: 92px; height: 92px; right: 20px; bottom: 20px; }
  .anniversary-badge .big { font-size: 26px; }
  .anniversary-badge .small { font-size: 8.5px; }
}

/* ---------- Estadística destacada (stats-band) ---------- */
.stat-highlight { background: var(--accent); border-radius: 8px; padding: 18px 20px; margin: -10px 0; }
.stat-highlight .num { color: #fff; font-size: 40px; }
.stat-highlight .label { color: rgba(255,255,255,0.9); font-weight: 600; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; animation: bounce 1.8s ease-in-out infinite; }
.scroll-cue span { color: rgba(255,255,255,0.6); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fade-up-1 { animation: fadeUp 0.8s ease 0.05s both; }
.fade-up-2 { animation: fadeUp 0.8s ease 0.2s both; }
.fade-up-3 { animation: fadeUp 0.8s ease 0.35s both; }
.fade-up-4 { animation: fadeUp 0.8s ease 0.5s both; }
@keyframes bounce { 0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.6; } 50% { transform: translateY(10px) translateX(-50%); opacity: 1; } }

/* scroll reveal (IntersectionObserver añade .is-visible) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--black); color: #fff; }
.section-light { background: var(--gray-50); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-header h2 { font-size: 42px; font-weight: 800; margin-top: 12px; }
.section-header.center { flex-direction: column; align-items: center; text-align: center; }

/* Ventajas sobre fondo oscuro con imagen */
.ventajas-wrap { position: relative; background: #0c0c0c; overflow: hidden; }
.ventajas-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.3); }
.ventajas-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,0.4), rgba(12,12,12,0.92)); }
.ventajas-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.glass-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px); border-radius: 6px; padding: 32px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.glass-card:hover { background: rgba(255,255,255,0.11); transform: translateY(-4px); }
.glass-card h3 { font-size: 19px; font-weight: 700; color: #fff; }
.glass-card p { font-size: 14px; color: #bbb; line-height: 1.55; margin: 0; }
.icon { color: var(--accent); }

/* Tarjetas de producto */
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.card-product { position: relative; overflow: hidden; border-radius: 4px; display: block; height: 420px; }
.card-product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-product:hover img { transform: scale(1.06); }
.card-product .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%);
}
.card-product h3 { color: #fff; font-size: 27px; font-weight: 700; margin: 0 0 10px 0; }
.card-product h3 .mm { font-size: 17px; font-weight: 600; color: #ddd; }
.card-product p { color: #ddd; font-size: 14px; margin: 0 0 14px 0; line-height: 1.5; }
.reveal-link { position: relative; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.reveal-link svg { transition: transform 0.25s ease; }
.card-product:hover .reveal-link svg { transform: translateX(4px); }

/* Cifras de confianza */
.stats-band { background: var(--accent); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; text-align: center; }
.stats-grid .num { font-size: 46px; font-weight: 800; color: #fff; }
.stats-grid .label { font-size: 12.5px; color: #ffd9d6; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* Split imagen/texto */
.split { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--black); }
.split.reverse { flex-direction: row-reverse; }
.split-img { flex: 1 1 520px; min-height: 440px; position: relative; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.78); transition: transform 0.6s ease; }
.split-img:hover img { transform: scale(1.04); }
.split-text { flex: 1 1 460px; padding: 70px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #fff; }
.split-text h2 { font-size: 34px; font-weight: 800; max-width: 440px; }
.split-text p { font-size: 15px; line-height: 1.7; color: #bbb; max-width: 440px; margin: 0; }
.split-figs { display: flex; gap: 32px; margin-top: 10px; }
.split-figs .num { font-size: 28px; font-weight: 800; color: var(--accent); }
.split-figs .label { font-size: 12px; color: #999; }

/* Proyectos grid */
.projects-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; height: 440px; }
.projects-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.proj-card { position: relative; overflow: hidden; border-radius: 4px; flex: 1; height: 100%; }
.proj-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.proj-card:hover img { transform: scale(1.06); }
.proj-card .label {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0) 55%);
  color: #fff; font-weight: 700; font-size: 15px;
}

/* CTA final con fondo */
.cta-final { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta-final img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-final .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0.88), rgba(8,8,8,0.93)); }
.cta-final .inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-final h2 { font-size: 40px; font-weight: 800; color: #fff; max-width: 640px; }
.cta-final p { font-size: 16px; color: #ccc; max-width: 540px; margin: 0; }

/* Footer */
.footer { background: var(--black-deep); color: #999; font-size: 14px; }
.footer .container { padding-left: 36px; padding-right: 36px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid #222; padding: 20px 0; font-size: 12px; color: #666; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-bottom .footer-legal { font-size: 12px; }
.footer-bottom .footer-legal a { color: #777; }
.footer .brand-text .name { color: #fff; }

/* ---------- Páginas interiores (producto, empresa, etc.) ---------- */
.page-hero {
  position: relative; padding: 180px 0 80px; background: var(--black); color: #fff; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.page-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,0.55), rgba(8,8,8,0.92)); }
.page-hero .inner { position: relative; max-width: 760px; }
.page-hero h1 { font-size: 52px; font-weight: 800; }
.breadcrumb { font-size: 13px; color: #aaa; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.spec-card { background: #fff; border: 1px solid var(--gray-100); border-radius: 6px; padding: 28px; }
.spec-card .num { font-size: 32px; font-weight: 800; color: var(--accent); font-family: 'Barlow Condensed', sans-serif; }
.spec-card .label { font-size: 13.5px; color: var(--gray-500); margin-top: 6px; }

.app-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 40px; }
.app-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.app-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gallery-grid img { border-radius: 4px; width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a { overflow: hidden; border-radius: 4px; display: block; }
.gallery-grid a:hover img { transform: scale(1.06); }

.download-list { display: flex; flex-direction: column; gap: 0; }
.download-item {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; border: 1px solid var(--gray-100); border-radius: 6px; margin-bottom: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.download-item:hover { border-color: var(--accent); transform: translateX(4px); }
.download-item .meta { display: flex; align-items: center; gap: 16px; }
.download-item .icon-badge {
  width: 44px; height: 44px; border-radius: 6px; background: rgba(226,35,26,0.08); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.download-item .name { font-weight: 600; font-size: 15px; }
.download-item .size { font-size: 12.5px; color: var(--gray-500); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #555; }
.form-field input, .form-field textarea, .form-field select {
  font-family: inherit; font-size: 15px; padding: 13px 14px; border: 1.5px solid var(--gray-100);
  border-radius: 4px; outline: none; transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--accent); }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 28px; }
.contact-info-item .icon-badge {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(226,35,26,0.08); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.map-embed { border-radius: 6px; overflow: hidden; border: 1px solid var(--gray-100); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.team-note { background: var(--gray-50); border-radius: 6px; padding: 40px; }

/* ---------- Preguntas frecuentes (FAQ) ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--gray-100); padding: 22px 0; }
.faq-item:first-child { border-top: 1px solid var(--gray-100); }
.faq-item h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.faq-item p { font-size: 15px; line-height: 1.7; color: #555; margin: 0; }

/* ---------- Checkbox de consentimiento (formulario) ---------- */
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.form-checkbox label { font-size: 13.5px; color: #555; line-height: 1.5; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-checkbox label a { color: var(--accent); text-decoration: underline; }

/* ---------- Páginas legales ---------- */
.legal-content { max-width: 760px; }
.legal-content h2 { font-size: 24px; font-weight: 800; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 15px; line-height: 1.75; color: #444; margin: 0 0 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content ul li { margin-bottom: 6px; }
.legal-notice-box { background: var(--gray-50); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 4px; font-size: 14px; color: #555; margin-bottom: 28px; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 999;
  max-width: 620px; margin: 0 auto; background: var(--black-deep); color: #ddd;
  border-radius: 8px; padding: 20px 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.6; flex: 1 1 320px; color: #bbb; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .cards-grid-3, .ventajas-grid, .spec-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; height: auto; }
  .projects-col { flex-direction: row; height: 220px; }
  .proj-card { height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .hero h1, .page-hero h1 { font-size: 42px; }
  .section-header h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .cards-grid-3, .ventajas-grid, .spec-grid, .stats-grid, .footer-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero h1, .page-hero h1 { font-size: 34px; }
  .split-text { padding: 48px 24px; }
  .navbar .container { padding-top: 12px; padding-bottom: 12px; }
}

/* Menú móvil */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200; background: var(--black);
  flex-direction: column; padding: 24px; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { align-self: flex-end; background: none; border: none; color: #fff; cursor: pointer; padding: 10px; }
.mobile-menu a { color: #fff; font-size: 20px; font-weight: 700; padding: 18px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); text-transform: uppercase; }
