/* ==========================================================================
   PUTMA - PUENTES · TERRACERÍAS · MAQUINARIA
   Sitio Web Oficial Corporativo
   Estilos CSS3 Puros (Sin dependencias ni frameworks)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Corporativa PUTMA (Basada en el nuevo logotipo oficial) */
  --navy-950: #061527;
  --navy-900: #0a213d;
  --navy-800: #0e3056;
  --navy-700: #105490; /* Azul estructural principal del logo */
  --navy-600: #1568ab;
  --navy-500: #207bc4;
  
  /* Verde Lima Institucional del Logo */
  --green-700: #4e6e0b;
  --green-600: #5c820c; /* Verde accesible para textos */
  --green-500: #88be19; /* Verde lima vibrante exacto del logo */
  --green-400: #9cd126; /* Acentos claros y destacados */
  --green-300: #bde85b;
  --green-200: #d6f296;
  --green-100: #ebf7d0;
  --green-50:  #f5fae8;

  /* Aliases para compatibilidad */
  --orange-600: var(--green-600);
  --orange-500: var(--green-500);
  --orange-400: var(--green-400);
  --orange-300: var(--green-300);
  --orange-100: var(--green-100);
  --orange-50:  var(--green-50);

  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  /* Tipografías */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras y elevaciones */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(10, 33, 61, 0.1), 0 2px 4px -2px rgba(10, 33, 61, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10, 33, 61, 0.12), 0 4px 6px -4px rgba(10, 33, 61, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(10, 33, 61, 0.15), 0 8px 10px -6px rgba(10, 33, 61, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(10, 33, 61, 0.25);
  --shadow-orange: 0 10px 20px -5px rgba(136, 190, 25, 0.40);
  --shadow-accent: 0 10px 20px -5px rgba(136, 190, 25, 0.40);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Bordes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Dimensiones del contenedor */
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background-color: var(--gray-50);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Tipografía Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Contenedor Reutilizable */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Secciones Generales */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--orange-50);
  color: var(--orange-600);
  border: 1px solid var(--orange-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-tag.light {
  background-color: rgba(255, 255, 255, 0.12);
  color: #bde85b;
  border-color: rgba(255, 255, 255, 0.2);
}

.section-tag-dot {
  width: 8px;
  height: 8px;
  background-color: var(--orange-500);
  border-radius: 50%;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 680px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--green-500);
  color: var(--navy-950);
  font-weight: 800;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--green-400);
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(136, 190, 25, 0.48);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

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

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

.btn-outline-navy:hover {
  background-color: var(--navy-900);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-navy:hover {
  background-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(11, 30, 54, 0.08);
}

.header.scrolled {
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.brand-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

/* Intercambio de logotipo: mostrar siempre la versión oscura/azul */
.brand-logo .logo-dark {
  display: block;
}

.brand-logo .logo-light {
  display: none;
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--orange-500);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--orange-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Menú Hamburguesa */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-box {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background-color: var(--navy-900);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background-color: var(--navy-900);
}

/* ==========================================================================
   HERO PRINCIPAL
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-950);
  color: var(--white);
  padding: 210px 0 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(5, 13, 24, 0.94) 0%,
    rgba(11, 30, 54, 0.85) 50%,
    rgba(5, 13, 24, 0.92) 100%
  );
  z-index: 2;
}

.hero-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(rgba(136, 190, 25, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 3;
  opacity: 0.6;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
  color: var(--orange-400);
  display: block;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
}

/* Indicadores / Métricas del Hero */
.hero-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-indicator-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-indicator-icon {
  width: 28px;
  height: 28px;
  color: var(--orange-400);
  margin-bottom: 4px;
}

.hero-indicator-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}

.hero-indicator-desc {
  font-size: 0.85rem;
  color: var(--gray-300);
  line-height: 1.4;
}

/* ==========================================================================
   SECCIÓN QUIÉNES SOMOS
   ========================================================================== */
.about {
  background-color: var(--white);
}

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

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--orange-500);
  box-shadow: var(--shadow-xl);
  max-width: 280px;
}

.about-image-badge h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.about-image-badge p {
  color: var(--gray-300);
  font-size: 0.825rem;
  line-height: 1.4;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.75;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  background-color: var(--white);
  border-color: var(--orange-400);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.pillar-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: var(--orange-50);
  color: var(--orange-600);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.pillar-info p {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.services {
  background-color: var(--gray-50);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange-400);
  box-shadow: var(--shadow-xl);
}

.service-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 30, 54, 0.8) 0%, transparent 60%);
}

.service-card-icon {
  position: absolute;
  bottom: -20px;
  right: 24px;
  width: 52px;
  height: 52px;
  background-color: var(--orange-500);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  z-index: 2;
  border: 3px solid var(--white);
}

.service-card-body {
  padding: 32px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 12px;
  font-weight: 800;
}

.service-card-desc {
  font-size: 0.925rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
}

.service-card-link svg {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--orange-500);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN PROYECTOS / GALERÍA
   ========================================================================== */
.projects {
  background-color: var(--white);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--gray-200);
  color: var(--navy-900);
}

.filter-btn.active {
  background-color: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

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

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--navy-900);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity var(--transition-fast);
}

.project-card:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 13, 24, 0.95) 0%, rgba(5, 13, 24, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: all var(--transition-fast);
}

.project-card-badge {
  align-self: flex-start;
  background-color: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.project-card-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.project-card-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-300);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.project-card:hover .project-card-action {
  opacity: 1;
  transform: translateY(0);
  color: #bde85b;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 13, 24, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-container {
  position: relative;
  max-width: 960px;
  width: 100%;
  background-color: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--navy-700);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 65vh;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background-color: var(--orange-500);
  border-color: var(--orange-500);
  transform: rotate(90deg);
}

.lightbox-details {
  padding: 24px 28px;
  background-color: var(--navy-900);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lightbox-badge {
  display: inline-block;
  background-color: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SECCIÓN MAQUINARIA
   ========================================================================== */
.machinery {
  background-color: var(--gray-50);
}

.machinery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.machinery-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.machinery-showcase img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.machinery-showcase-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background-color: var(--orange-500);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-orange);
}

.machinery-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.machinery-card-item {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.machinery-card-item:hover {
  border-color: var(--orange-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.machinery-card-icon {
  width: 40px;
  height: 40px;
  color: var(--orange-500);
  margin-bottom: 12px;
}

.machinery-card-item h4 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.machinery-card-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN POR QUÉ PUTMA (VALORES / DIFERENCIADORES)
   ========================================================================== */
.why-putma {
  background-color: var(--navy-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-putma-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.why-putma .section-title {
  color: var(--white);
}

.why-putma .section-subtitle {
  color: var(--gray-300);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.why-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
  position: relative;
}

.why-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--orange-500);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5);
}

.why-card-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(136, 190, 25, 0.18);
  color: var(--orange-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(136, 190, 25, 0.32);
}

.why-card h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.925rem;
  color: var(--gray-300);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN PROCESO DE TRABAJO
   ========================================================================== */
.process {
  background-color: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 40px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--orange-500) 0, var(--orange-500) 10px, transparent 10px, transparent 20px);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 8px;
}

.process-number {
  width: 72px;
  height: 72px;
  background-color: var(--white);
  border: 3px solid var(--navy-900);
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.process-step:hover .process-number {
  background-color: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-orange);
}

.process-step h3 {
  font-size: 1.05rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ==========================================================================
   CALL TO ACTION (CTA)
   ========================================================================== */
.cta {
  position: relative;
  background-color: var(--navy-950);
  padding: 100px 0;
  color: var(--white);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.65);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 13, 24, 0.92) 0%, rgba(11, 30, 54, 0.85) 100%);
  z-index: 2;
}

.cta-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--gray-200);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.contact {
  background-color: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

.contact-form-card {
  background-color: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--orange-500);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background-color: var(--gray-50);
  color: var(--gray-900);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--orange-500);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(136, 190, 25, 0.18);
}

.form-control.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
  font-weight: 500;
}

.form-control.error + .form-error {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: none;
  font-size: 0.95rem;
}

.form-alert.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-alert.error-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-block {
  background-color: var(--navy-900);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.contact-info-block h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(136, 190, 25, 0.22);
  color: var(--orange-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-content h4 {
  color: var(--gray-300);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-detail-content p,
.contact-detail-content a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.contact-detail-content a:hover {
  color: var(--orange-400);
}

.contact-highlight-block {
  background-color: var(--white);
  border: 2px dashed var(--orange-300);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-highlight-block h4 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.contact-highlight-block p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--navy-950);
  color: var(--gray-300);
  padding-top: 80px;
  padding-bottom: 36px;
  border-top: 1px solid var(--navy-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--gray-400);
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--orange-500);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-300);
}

.footer-contact-item svg {
  color: var(--orange-400);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ==========================================================================
   BOTONES FLOTANTES (WHATSAPP & VOLVER ARRIBA)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: all var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba59;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 32px;
  width: 46px;
  height: 46px;
  background-color: var(--navy-900);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 989;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--orange-500);
  transform: translateY(-4px);
}

/* ==========================================================================
   ANIMACIONES DE SCROLL & INTERSECTION OBSERVER
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MÓVILES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-indicators {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .machinery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid,
  .projects-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-timeline::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .brand-logo img {
    height: 130px;
  }

  .hero {
    padding-top: 230px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 180px 32px 40px 32px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right var(--transition-normal);
    z-index: 1000;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    color: var(--navy-900);
    font-size: 1.1rem;
  }

  .header-actions .btn {
    display: none;
  }

  .services-grid,
  .projects-grid,
  .why-grid,
  .machinery-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-indicators {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }
}

/* ==========================================================================
   NUEVA SECCIÓN CLIENTES (Premium & Responsive)
   ========================================================================== */
.clients {
  background-color: var(--white);
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.clients-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.clients-img {
  max-width: 100%;
  height: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all var(--transition-normal);
}

.clients-img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .clients {
    padding: 50px 0;
  }
}
