/*
Theme Name: B&M Branding
Theme URI: https://bmbranding.mx
Author: B&M Branding & Marketing
Description: Tema replica del sitio B&M Branding & Marketing: agencia consultora para PyMEs en Mexico. Datos que orientan, estrategias que venden.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bm-branding
Tags: dark, business, portfolio, one-column
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --background: #07090E;
  --foreground: #FFFFFF;
  --card: #111622;
  --card-foreground: #FFFFFF;
  --primary: #2B59C3;
  --primary-foreground: #FFFFFF;
  --secondary: #111622;
  --secondary-foreground: #FFFFFF;
  --muted: #111622;
  --muted-foreground: #94A3B8;
  --accent: #5495F7;
  --accent-foreground: #FFFFFF;
  --destructive: oklch(0.6 0.24 25);
  --border: #1E293B;
  --input: #1E293B;
  --ring: #5495F7;
  --radius: 0.5rem;
  --whatsapp: #25d366;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   LABELS DE SECCION
   ========================================================================== */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  margin-bottom: 3rem;
  max-width: 42rem;
}

.section-head p {
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 9, 14, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .brand-text {
    display: none;
  }
}

/* Navegacion desktop */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: 0.375rem;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .main-nav a:hover {
    color: var(--foreground);
    background: var(--muted);
  }

  .main-nav .menu-item {
    position: relative;
  }

  .main-nav .menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .main-nav .menu-item-has-children > a .chevron {
    transition: transform 0.2s ease;
    color: var(--muted-foreground);
  }

  .main-nav .menu-item-has-children:hover > a .chevron {
    transform: rotate(180deg);
  }

  .main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16rem;
    padding: 0.375rem;
    list-style: none;
    margin: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .main-nav .menu-item-has-children:hover .sub-menu,
  .main-nav .menu-item-has-children:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav .sub-menu a {
    border-radius: 0.375rem;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--accent-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: var(--radius);
    transition: opacity 0.15s ease;
    flex-shrink: 0;
  }

  .header-cta:hover {
    opacity: 0.9;
  }
}

/* Boton menu movil */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Menu movil */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  background: rgba(7, 9, 14, 0.97);
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
  max-height: calc(100vh - var(--header-h));
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
}

.mobile-nav > ul > li > a {
  font-size: 1.0625rem;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: var(--muted);
}

.mobile-nav .sub-menu {
  padding: 0 0 0.5rem 1rem;
  border-left: 1px solid var(--border);
  margin-left: 0.75rem;
}

.mobile-nav .sub-menu a {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.mobile-nav .mobile-cta {
  margin: 0.5rem 1rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  opacity: 0.9;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-outline-light {
  background: transparent;
  border-color: #1E293B;
  color: var(--foreground);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   CHIPS Y PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

.pill {
  display: inline-block;
  padding: 0.375rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--foreground);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-copy .badge {
  margin-bottom: 1.5rem;
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
}

.hero-copy h1 .accent-text {
  color: var(--accent);
}

.hero-copy > p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-visual > img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

.hero-float {
  position: absolute;
  bottom: 1.25rem;
  left: -1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
}

.hero-float strong {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}

.hero-float span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

@media (max-width: 1023px) {
  .hero-float {
    display: none;
  }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-band {
  background: var(--primary);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary-foreground);
  margin-bottom: 0.25rem;
}

.stat p {
  color: oklch(0.99 0.002 255 / 80%);
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================================================================
   SERVICIOS (cards)
   ========================================================================== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.35);
  transform: translateY(-2px);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.7rem;
  flex-shrink: 0;
}

.service-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.25rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin: 0;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.service-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   METODO
   ========================================================================== */
.alt-section {
  background: var(--muted);
}

.diferentiators {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .diferentiators {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-title {
  font-weight: 700;
  color: var(--foreground);
}

.item-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Prosa para contenido del editor (FAQ) */
.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}
.page-content p,
.page-content li {
  color: var(--muted-foreground);
  line-height: 1.75;
}
.page-content ul,
.page-content ol {
  padding-left: 1.25rem;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-block {
  background: var(--primary);
  border-radius: 1rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.cta-block h2 {
  color: var(--primary-foreground);
  margin-bottom: 1rem;
}

.cta-block > p {
  color: oklch(0.99 0.002 255 / 80%);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   PAGINAS INTERIORES
   ========================================================================== */
.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero > p {
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  max-width: 40rem;
}

/* ==========================================================================
   QUIENES SOMOS
   ========================================================================== */
.founders-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .founders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.founder-photo {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.founder-card h3 {
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.founder-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.philosophy-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.philosophy-card {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.philosophy-card.primary {
  background: var(--primary);
  border-color: transparent;
}

.philosophy-card.primary h3,
.philosophy-card.primary p {
  color: var(--primary-foreground);
}

.philosophy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.7rem;
  margin-bottom: 1rem;
}

.philosophy-icon.target {
  background: var(--accent);
  color: var(--accent-foreground);
}

.philosophy-icon.eye {
  background: var(--primary);
  color: var(--primary-foreground);
}

.values-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-card {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.value-num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ==========================================================================
   SERVICIOS (pagina)
   ========================================================================== */
.pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.service-block {
  padding: 4rem 0;
}

.service-block:nth-of-type(even) {
  background: var(--muted);
}

.service-block-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-block-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.service-block h2 {
  margin-bottom: 0.5rem;
}

.service-block-tagline {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.service-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .service-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.35);
}

.post-card .badge {
  align-self: flex-start;
  background: transparent;
}

.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.post-card:hover h3 {
  color: var(--accent);
}

.post-card p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin: 0;
  flex-grow: 1;
}

.post-card .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.featured-post {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .featured-post {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.featured-post .post-card {
  padding: 2rem;
}

.featured-quote {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 1rem;
  padding: 2.5rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

.single-post .section-head h1 {
  margin-bottom: 0.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.entry-content {
  max-width: 48rem;
  color: var(--muted-foreground);
}

.entry-content h2,
.entry-content h3 {
  color: var(--foreground);
  margin-top: 2.5rem;
}

.entry-content img {
  border-radius: 0.7rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   GLOSARIO
   ========================================================================== */
.glossary dl {
  margin: 0;
}

.glossary-item {
  display: grid;
  gap: 0.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.glossary-item:first-child {
  border-top: 1px solid var(--border);
}

.glossary-item dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--accent);
}

.glossary-item dd {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  margin-bottom: 1rem;
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.7rem;
  flex-shrink: 0;
}

.channel-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.channel-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.channel-card a:hover p {
  color: var(--accent);
}

/* Formulario */
.quote-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 0.4rem;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84, 149, 247, 0.25);
}

.form-success {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
}

.form-success h2 {
  margin-bottom: 0;
}

.form-success p {
  color: var(--muted-foreground);
  margin: 0;
}

.form-success a {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary);
  color: var(--primary-foreground);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--primary-foreground);
}

.footer-brand p {
  font-size: 0.875rem;
  color: oklch(0.99 0.002 255 / 70%);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.99 0.002 255 / 60%);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: oklch(0.99 0.002 255 / 85%);
  transition: opacity 0.15s ease;
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-col .contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col .contact-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: oklch(0.99 0.002 255 / 60%);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom a:hover {
  opacity: 0.7;
}

/* ==========================================================================
   ACCIONES FLOTANTES
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.fab:hover {
  transform: scale(1.05);
  opacity: 0.92;
}

.fab-whatsapp {
  background: var(--whatsapp);
}

.fab-chat {
  background: var(--primary);
}

/* Panel de chat */
.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  width: min(22rem, calc(100vw - 2.5rem));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
  overflow: hidden;
  z-index: 61;
  display: none;
}

.chat-panel.open {
  display: block;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
}

.chat-header h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--primary-foreground);
}

.chat-close {
  background: transparent;
  border: none;
  color: var(--primary-foreground);
  cursor: pointer;
  display: inline-flex;
  opacity: 0.8;
}

.chat-close:hover {
  opacity: 1;
}

.chat-body {
  display: grid;
  gap: 0.875rem;
  padding: 1.25rem;
}

.chat-bubble {
  background: var(--muted);
  border-radius: 0.7rem 0.7rem 0.7rem 0.125rem;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chat-chips .pill {
  font-size: 0.75rem;
  padding: 0.3125rem 0.75rem;
  cursor: pointer;
  background: var(--background);
}

.chat-chips .pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-cta {
  width: 100%;
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404-wrap {
  text-align: center;
  padding: 6rem 0;
}

.error-code {
  font-family: var(--font-body);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ==========================================================================
   BLOG / ARCHIVE utilidades
   ========================================================================== */
.page-navigation {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.page-navigation a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.page-navigation a:hover {
  background: var(--muted);
}

.no-posts {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted-foreground);
}

/* ==========================================================================
   RESPONSIVE EXTRA
   ========================================================================== */
@media (max-width: 639px) {
  .hero-actions .btn {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}
