/*
Theme Name: Pineo Industrial
Theme URI: https://pineoindustrial.com
Author: Pineo Industrial S.A.
Author URI: https://pineoindustrial.com
Description: Tema personalizado para Pineo Industrial — maquinaria industrial de costura, soldadura y bordado. Diseñado para rendimiento, SEO B2B y facilidad de edición.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: Proprietary
License URI: https://pineoindustrial.com
Text Domain: pineo
Tags: industrial, b2b, machinery, custom-theme, block-patterns, full-site-editing
*/

/* ============================================
   PINEO INDUSTRIAL DESIGN SYSTEM
   Converted from Lovable (React + Tailwind)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #1d1d1b;
  --color-accent: #106f9d;
  --color-accent-light: #1a8fc4;
  --color-muted: #706f6f;
  --color-background: #ffffff;
  --color-secondary: #f5f5f5;
  --color-border: #e0e0e0;
  --color-foreground: #1d1d1b;

  /* Functional */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Shadows */
  --shadow-soft: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 16px -4px rgba(0, 0, 0, 0.1);
  --shadow-elevated: 0 8px 32px -8px rgba(0, 0, 0, 0.15);
  --shadow-accent: 0 4px 20px -4px rgba(16, 111, 157, 0.3);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --container-padding: 1rem;
  --section-padding-y: 2.5rem;
  --radius: 0.5rem;
}

@media (min-width: 640px) {
  :root { --container-padding: 1.5rem; }
}
@media (min-width: 768px) {
  :root { --section-padding-y: 3.5rem; }
}
@media (min-width: 1024px) {
  :root {
    --container-padding: 2rem;
    --section-padding-y: 5rem;
  }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-white { color: #ffffff; }

.text-body-large {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-muted);
  line-height: 1.75;
}

.heading-display {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--font-display);
}

.heading-section {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  font-family: var(--font-display);
}

/* --- Layout --- */
.container-industrial {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* Grid system */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.5;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  filter: brightness(1.05);
  color: #ffffff;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}
.btn-primary:hover {
  opacity: 0.9;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  padding: 0.5rem;
}
.btn-ghost:hover { color: var(--color-foreground); }

/* --- Cards --- */
.card-industrial {
  background: var(--color-background);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}
.card-industrial:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.card-product {
  background: var(--color-secondary);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(224, 224, 224, 0.5);
}
.card-product:hover {
  border-color: rgba(16, 111, 157, 0.5);
  background: var(--color-background);
  box-shadow: var(--shadow-card);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-accent {
  background-color: rgba(16, 111, 157, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(16, 111, 157, 0.2);
}

.badge-sector {
  background-color: var(--color-secondary);
  color: var(--color-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* --- Section Label (the "Catálogo", "Sectores" labels) --- */
.section-label {
  display: block;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .container-industrial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
  min-width: 0;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo__img {
  height: 2rem;
  width: auto;
}
@media (min-width: 768px) {
  .site-logo__img { height: 2.5rem; }
}
@media (min-width: 1024px) {
  .site-header .container-industrial { height: 5rem; }
  .site-logo__img { height: 3rem; }
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(29, 29, 27, 0.8);
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--color-foreground); }
.nav-link:hover::after { width: 100%; }
.nav-link--active { color: var(--color-foreground); }
.nav-link--active::after { width: 100%; }

/* Header actions */
.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .header-actions { display: flex; }
}

/* Mobile menu */
.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-foreground);
  z-index: 60;
  position: relative;
}
@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 40;
  padding-top: 5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open {
  display: block;
}

.mobile-nav .container-industrial {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.25rem;
  color: var(--color-foreground);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: var(--font-display);
  border-radius: var(--radius);
  transition: background-color 0.2s;
}
.mobile-nav a:hover {
  background-color: var(--color-secondary);
}

.mobile-nav p {
  padding: 1.5rem 1.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.mobile-nav div[style*="padding-left"] a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
  padding: 0.75rem 1.25rem 0.75rem 2rem;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(29, 29, 27, 0.8);
  font-family: var(--font-body);
}

.nav-dropdown__content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated);
  padding: 0.5rem;
  padding-top: 0.5rem;
  margin-top: 0;
  z-index: 100;
}

.nav-dropdown__content::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.nav-dropdown:hover .nav-dropdown__content { display: block; }

.nav-dropdown__item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-foreground);
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 0.15s;
}
.nav-dropdown__item:hover { background-color: var(--color-secondary); }

/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}

.footer-brand p { color: rgba(255, 255, 255, 0.7); max-width: 20rem; line-height: 1.75; }

.footer-contact { list-style: none; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-social a:hover { color: #ffffff; }

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-background);
  max-width: 100vw;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    padding: 4rem 0;
  }
}

.hero__image-wrapper {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-elevated);
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
@media (min-width: 640px) {
  .hero__stats { gap: 2rem; }
}

.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--color-primary);
}

.hero__stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --- Search Bar --- */
.search-industrial {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}
.search-industrial:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-accent);
}
.search-industrial::placeholder { color: rgba(112, 111, 111, 0.6); }

.search-wrapper {
  position: relative;
  max-width: 36rem;
}
.search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  width: 1.25rem;
  height: 1.25rem;
}

/* --- Section: Dark background --- */
.section-dark {
  background-color: var(--color-primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.section-dark h2,
.section-dark h3 { color: #ffffff; }
.section-dark p { color: rgba(255, 255, 255, 0.7); }

.section-dark .card-solution {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}
.section-dark .card-solution:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Section: Light gray background --- */
.section-light {
  background-color: var(--color-secondary);
}

.section-alt {
  background-color: rgba(245, 245, 245, 0.3);
}

/* --- Icon Box --- */
.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(16, 111, 157, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box--lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
}
.icon-box svg,
.icon-box img {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
}
.icon-box--lg svg { width: 1.75rem; height: 1.75rem; }

.icon-box--accent-dark {
  background: rgba(16, 111, 157, 0.2);
}

/* --- CTA Section --- */
.cta-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--color-secondary), rgba(245, 245, 245, 0.5), var(--color-background));
  border: 1px solid var(--color-border);
  overflow: hidden;
  padding: 2rem;
}
@media (min-width: 768px) { .cta-card { padding: 3rem; } }
@media (min-width: 1024px) { .cta-card { padding: 4rem; } }

.cta-card__decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(16, 111, 157, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}
.cta-card__decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12rem;
  height: 12rem;
  background: rgba(29, 29, 27, 0.05);
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
}

/* --- Product Card Image Hover --- */
.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-background));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.card-product:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background-color 0.3s;
}

.card-product:hover .product-overlay {
  background-color: rgba(29, 29, 27, 0.05);
}

.product-overlay__label {
  opacity: 0;
  background: var(--color-background);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-card);
  transition: opacity 0.3s;
}

.card-product:hover .product-overlay__label { opacity: 1; }

/* --- Sector Card Image Hover --- */
.sector-image-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.sector-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-industrial:hover .sector-image-wrapper img {
  transform: scale(1.05);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 1024px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --- Process Steps --- */
.process-step {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.process-step__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* --- Case Study Card --- */
.card-case {
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  transition: box-shadow 0.3s;
}
.card-case:hover { box-shadow: var(--shadow-card); }

.card-case__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}
.card-case__label--result { color: var(--color-accent); }

/* --- Contact Info --- */
.contact-info-item {
  display: flex;
  gap: 1rem;
}

/* --- Form --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-background);
  transition: all 0.3s;
  outline: none;
}
.form-input { height: 3rem; }
.form-input:focus,
.form-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-foreground); }
.breadcrumb span { color: var(--color-foreground); font-weight: 500; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animation-delay-100 { animation-delay: 100ms; }
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }

/* --- Utility --- */
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-12 { margin-top: 3rem; }
.pt-2 { padding-top: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.w-full { width: 100%; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border { border: 1px solid var(--color-border); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.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;
}

/* --- SVG Icons inline --- */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* --- WordPress specific --- */
.wp-block-group { max-width: 100%; }
.entry-content > * { max-width: var(--container-max); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { max-width: 100%; }
.entry-content > .alignwide { max-width: calc(var(--container-max) + 4rem); }

/* WordPress admin bar adjustment */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Desktop separator */
@media (min-width: 640px) {
  .desktop-separator { display: inline !important; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { color: #000; background: #fff; }
}

/* ============================================
   CONTACT FORM 7 — Integración con tema Pineo
   Añadir al final de style.css
   ============================================ */

/* Resetear estilos por defecto de CF7 */
.wpcf7 form { margin: 0; }
.wpcf7 .screen-reader-response { display: none; }

/* Inputs y textarea: heredan el look de .form-input / .form-textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-background);
  transition: all 0.3s;
  outline: none;
  color: var(--color-foreground);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select {
  height: 3rem;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* Placeholder */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

/* Labels */
.wpcf7 label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

/* Separación entre campos */
.wpcf7 p {
  margin-bottom: 1.5rem;
}
.wpcf7 p:last-of-type {
  margin-bottom: 0;
}

/* Grid de 2 columnas para nombre+email, teléfono+empresa */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .cf7-row {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Select: quitar flecha nativa y poner custom */
.wpcf7 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23706f6f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Botón de envío: estilo btn-accent */
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-accent);
  width: 100%;
}
@media (min-width: 768px) {
  .wpcf7 input[type="submit"] {
    width: auto;
  }
}
.wpcf7 input[type="submit"]:hover {
  filter: brightness(1.05);
}
.wpcf7 input[type="submit"]:active {
  transform: scale(0.98);
}

/* Spinner de envío */
.wpcf7 .wpcf7-spinner {
  margin-left: 1rem;
}

/* Mensajes de validación */
.wpcf7 .wpcf7-not-valid-tip {
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-top: 0.375rem;
  display: block;
}
.wpcf7 .wpcf7-not-valid {
  border-color: var(--color-error);
}

/* Mensaje de éxito / error global */
.wpcf7 .wpcf7-response-output {
  margin: 1.5rem 0 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.5;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--color-success);
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid var(--color-error);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

/* Checkbox de privacidad */
.wpcf7 .wpcf7-acceptance label {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted);
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 0.5rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Banner de título flotante */
.page-subheader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.2s ease;
}
body.admin-bar .page-subheader {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .page-subheader {
    top: 46px;
  }
}
.page-subheader.is-visible {
  height: 2.75rem;
  opacity: 1;
}
.page-subheader .container-industrial {
  height: 100%;
  display: flex;
  align-items: center;
}
.page-subheader #page-subheader-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Corrige que la cabecera principal no se quedaba fija al hacer scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
}
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}