/*
Theme Name: BEA Consulting
Theme URI: https://beaconsulting.es
Author: BEA Consulting
Description: Tema corporativo ligero para consultoría B2B, responsive, multidioma y preparado para Kit Digital.
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: bea-consulting
*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@600;700;800&display=swap");

:root {
  --bg: #f7f4ee;
  --bg-alt: #f0ebe2;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #171717;
  --muted: #5f5a53;
  --line: #ddd4c7;
  --primary: #171717;
  --primary-2: #262626;
  --accent: #b56e28;
  --accent-2: #7a4d1f;
  --accent-soft: rgba(181, 110, 40, 0.12);
  --shadow: 0 24px 70px rgba(23, 23, 23, 0.11);
  --shadow-soft: 0 12px 30px rgba(23, 23, 23, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --ease: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at top left, rgba(181, 110, 40, 0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(23, 23, 23, 0.08), transparent 22%),
    linear-gradient(180deg, #fcfbf7 0%, #f7f4ee 42%, #f0ebe2 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not(.button):not(.brand):not(.nav-toggle):not(.lang-toggle):not(.map-link) {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.8rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.95rem, 4.3vw, 3.3rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.55rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 9999;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 251, 247, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 212, 199, 0.82);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--container), calc(100% - 1.5rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 56px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(221, 212, 199, 0.95);
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.05);
}

.brand img {
  width: clamp(130px, 14vw, 190px);
  height: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.site-nav {
  position: fixed;
  inset: 84px 0.75rem auto 0.75rem;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 59;
}

.js .site-nav {
  display: none;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}

.site-nav.is-open {
  display: grid;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  padding: 0.82rem 1rem;
  border-radius: 14px;
  color: var(--primary);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f4efe7;
}

.nav-cta {
  display: none;
}

.nav-toggle,
.lang-toggle,
.button {
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
}

.nav-toggle,
.lang-toggle {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
  padding: 0.82rem 1rem;
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.05);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle span {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.lang-toggle {
  min-width: 74px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.3rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(181, 110, 40, 0.18);
}

.button-secondary,
.button-ghost {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}

.button:hover,
.nav-toggle:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button:focus-visible,
.nav-toggle:focus-visible,
.lang-toggle:focus-visible,
.site-nav a:focus-visible,
.footer a:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner button:focus-visible,
.contact-card a:focus-visible,
.map-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(181, 110, 40, 0.14);
}

.hero,
.section,
.page-hero,
.kit-banner,
.footer {
  position: relative;
  scroll-margin-top: 110px;
}

.hero {
  overflow: clip;
  padding: 2.4rem 0 1.1rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 15px;
  background: rgba(181, 110, 40, 0.13);
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: 75px;
  background: rgba(23, 23, 23, 0.08);
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 212, 199, 0.95);
  box-shadow: var(--shadow-soft);
}

.hero-brand {
  max-width: 300px;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(221, 212, 199, 0.95);
}

.hero-brand img,
.hero-visual img {
  width: 100%;
  height: auto;
}

.hero-copy p {
  max-width: 64ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-proof,
.card-grid,
.split-grid,
.blog-grid,
.team-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.hero-proof {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.proof-card,
.feature-card,
.service-card,
.blog-card,
.contact-card,
.info-card,
.team-card,
.cta-panel {
  background: var(--surface);
  border: 1px solid rgba(221, 212, 199, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.proof-card {
  padding: 1rem;
}

.proof-card strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(181, 110, 40, 0.08), rgba(23, 23, 23, 0.05));
  border: 1px solid rgba(221, 212, 199, 0.95);
  box-shadow: var(--shadow);
}

.hero-visual-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.hero-visual-logo img {
  max-width: 360px;
  width: 100%;
  object-fit: contain;
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-2);
  background: rgba(181, 110, 40, 0.11);
}

.tag {
  margin-bottom: 0.9rem;
  color: var(--primary);
  background: rgba(23, 23, 23, 0.06);
}

.section {
  padding: 1.45rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(240, 235, 226, 0.72), rgba(247, 244, 238, 0.95));
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-header p,
.page-hero p,
.cta-panel p,
.kit-banner-copy p,
.footer-brand p,
.footer-contact,
.feature-card p,
.service-card p,
.blog-card p,
.contact-card p,
.team-card p,
.info-card li,
.footer-bottom p {
  color: var(--muted);
}

.page-hero {
  padding: 2.1rem 0 1rem;
}

.page-hero .section-inner {
  position: relative;
}

.page-hero .section-inner::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 1.4rem;
  background: linear-gradient(90deg, rgba(181, 110, 40, 0.18), rgba(221, 212, 199, 0));
}

.card-grid,
.blog-grid,
.team-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.split-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.service-card,
.feature-card,
.blog-card,
.contact-card,
.info-card,
.team-card {
  padding: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.service-card h3,
.service-card h2 {
  margin-bottom: 0.65rem;
}

.feature-card ul,
.info-card ul {
  display: grid;
  gap: 0.55rem;
}

.feature-card li,
.info-card li {
  position: relative;
  padding-left: 1.15rem;
}

.feature-card li::before,
.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.blog-card .meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(221, 212, 199, 0.95);
  font-size: 0.92rem;
  color: var(--accent-2);
  font-weight: 700;
}

.team-card figure {
  margin: 0 0 1rem;
}

.team-card img {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(181, 110, 40, 0.07), rgba(23, 23, 23, 0.03));
}

.team-card .role {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent-2);
  font-size: 0.94rem;
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1fr;
}

.contact-block {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: grid;
  gap: 0.5rem;
}

.contact-card h2,
.contact-card h3 {
  margin-bottom: 0;
}

.contact-card a {
  font-weight: 800;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
  background: #efebe4;
}

.map-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.35rem;
  color: var(--accent-2);
  font-weight: 800;
}

.cta-panel {
  padding: 1.4rem;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.98), rgba(38, 38, 38, 0.96)),
    linear-gradient(135deg, rgba(181, 110, 40, 0.12), rgba(122, 77, 31, 0.07));
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.08);
}

.cta-panel .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  color: #f4dcc0;
}

.cta-panel p,
.cta-panel .section-header p,
.cta-panel .tag {
  color: rgba(248, 251, 255, 0.82);
}

.cta-panel .button-secondary,
.cta-panel .button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.kit-banner {
  padding: 0 0 1rem;
}

.kit-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.98), rgba(38, 38, 38, 0.96)),
    linear-gradient(135deg, rgba(181, 110, 40, 0.12), rgba(122, 77, 31, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  color: #f8fbff;
}

.kit-banner-media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.kit-banner-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.kit-banner-copy {
  display: grid;
  gap: 0.1rem;
}

.kit-banner-copy .eyebrow {
  color: #f4dcc0;
  background: rgba(255, 255, 255, 0.12);
}

.kit-banner-copy h2,
.kit-banner-copy p {
  color: #fff;
}

.footer {
  padding: 1rem 0 6.5rem;
  background: #171717;
  color: #eef4fb;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-brand img {
  width: clamp(145px, 18vw, 210px);
}

.footer h3,
.footer h4 {
  margin-bottom: 0.85rem;
}

.footer-nav,
.footer-legal,
.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.footer-contact a,
.footer-nav a,
.footer-legal a {
  color: #d9e5f4;
}

.footer-bottom {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 0.75rem 0.75rem;
  z-index: 70;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(221, 212, 199, 0.95);
  box-shadow: var(--shadow);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--ease), opacity var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  margin-bottom: 0.45rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: #d9e5f4;
  font-size: 0.95rem;
}

.section-header,
.cta-panel,
.hero-copy,
.page-hero .section-inner,
.footer-brand,
.footer-grid > div,
.kit-banner-copy {
  animation: fadeUp 420ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(var(--container), calc(100% - 2rem));
  }

  .hero-proof,
  .card-grid,
  .blog-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .js .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding: 4.6rem 0 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.5rem;
  }

  .hero-copy {
    padding: 1.5rem;
  }

  .hero-copy p {
    font-size: 1.11rem;
  }

  .section {
    padding: 2rem 0;
  }

  .page-hero {
    padding-top: 3.4rem;
  }

  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr;
    align-items: start;
  }

  .kit-banner-grid {
    padding: 1.25rem;
  }

  .kit-banner-media img {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-grid,
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-card:nth-child(1) {
    grid-column: span 2;
  }

  .kit-banner-grid {
    padding: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
