/*
Theme Name: Plastics Pallets MX
Theme URI: https://plasticspalletsmx.com
Description: Tema para Plastics Pallets MX - Tarimas Plásticas. Diseñado para usarse con Elementor.
Author: Plastics Pallets MX
Author URI: https://plasticspalletsmx.com
Template: hello-elementor
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: elementor, business, corporate, industrial
Text Domain: plastics-pallets-mx
*/

/* ============================================================
   VARIABLES DE COLOR - IDENTIDAD PLASTICS PALLETS MX
   ============================================================ */
:root {
  --color-navy:       #0D1B3E;   /* Azul marino oscuro (logo) */
  --color-blue:       #1E5FD8;   /* Azul royal (logo) */
  --color-blue-light: #3A7FFF;   /* Azul claro hover */
  --color-red:        #CC2222;   /* Rojo MX */
  --color-green:      #1A7A3C;   /* Verde MX */
  --color-white:      #FFFFFF;
  --color-gray-bg:    #F4F6FA;   /* Fondo claro secciones */
  --color-gray-text:  #6B7280;   /* Texto secundario */
  --color-text:       #1A1A2E;   /* Texto principal */
  --color-border:     #E2E8F0;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-navy);
}

/* ============================================================
   TIPOGRAFÍA GLOBAL
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  font-size: 1rem;
  color: var(--color-gray-text);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-navy   { color: var(--color-navy) !important; }
.text-blue   { color: var(--color-blue) !important; }

.bg-navy     { background-color: var(--color-navy) !important; }
.bg-blue     { background-color: var(--color-blue) !important; }
.bg-gray     { background-color: var(--color-gray-bg) !important; }
.bg-white    { background-color: var(--color-white) !important; }

.section-padding {
  padding: 80px 0;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn,
.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 95, 216, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}

/* ============================================================
   HEADER / NAVEGACIÓN (complementa Elementor Header)
   ============================================================ */
.site-header,
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(13, 27, 62, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(13, 27, 62, 0.15);
}

/* Topbar */
.topbar {
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.82rem;
  padding: 8px 0;
}

.topbar a {
  color: rgba(255,255,255,0.85);
  margin: 0 16px;
}

.topbar a:hover {
  color: var(--color-white);
}

/* Nav links */
.nav-menu a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  padding: 8px 16px;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--color-blue);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1A3A6E 60%, var(--color-blue) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-bg-pattern.svg') no-repeat center/cover;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero-section h1 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.15;
}

.hero-section h1 span {
  color: var(--color-blue-light);
}

.hero-section p {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   STATISTICS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-blue);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ============================================================
   SECCIÓN DE PRODUCTOS
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--color-gray-text);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(13, 27, 62, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 27, 62, 0.14);
  border-color: var(--color-blue);
}

.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 24px;
}

.product-card-tag {
  display: inline-block;
  background: var(--color-gray-bg);
  color: var(--color-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap 0.2s;
}

.product-card-link:hover {
  gap: 10px;
  color: var(--color-navy);
}

.product-card-link::after {
  content: '→';
  font-size: 1rem;
}

/* ============================================================
   INDUSTRIAS
   ============================================================ */
.industries-section {
  background: var(--color-navy);
  padding: 80px 0;
}

.industries-section .section-title,
.industries-section .section-eyebrow {
  color: var(--color-white);
}

.industries-section .section-eyebrow {
  color: var(--color-blue-light);
}

.industries-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.industry-card:hover {
  background: var(--color-blue);
  border-color: var(--color-blue);
  transform: translateY(-4px);
}

.industry-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.industry-card h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.industry-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  margin: 0;
}

/* ============================================================
   VENTAJAS / USP
   ============================================================ */
.features-section {
  background: var(--color-gray-bg);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--color-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-content h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature-content p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   SOBRE NOSOTROS
   ============================================================ */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  border-radius: 8px;
}

.about-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: 6px;
  text-align: center;
}

.about-img-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.about-img-badge span {
  font-size: 0.78rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FORMULARIO DE CONTACTO
   ============================================================ */
.contact-section {
  background: var(--color-gray-bg);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--color-blue);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form-wrap {
  background: var(--color-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(13, 27, 62, 0.08);
}

/* Estilos para formularios WordPress/CF7/WPForms */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(30, 95, 216, 0.12);
}

input[type="submit"],
.wpcf7-submit,
.wpforms-submit {
  background: var(--color-blue);
  color: var(--color-white);
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

input[type="submit"]:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover {
  background: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 27, 62, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,0.65);
}

.footer-col h5 {
  color: var(--color-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-blue);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--color-blue-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--color-blue);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   WHATSAPP FLOAT BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
  color: white;
}

/* ============================================================
   ELEMENTOR OVERRIDES
   ============================================================ */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}

.elementor-button.elementor-button-link {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-section { min-height: 100vh; padding: 100px 0 60px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .products-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
}
