/* ==========================================================================
   CONSTRUCTORA J.B.A. S.P.A. - HOJA DE ESTILOS PRINCIPAL
   Tema: Estilo Bandera de Perú (Botones y Acentos Rojos Patrios + Fondos Blancos y Limpios)
   Diseño Premium, Moderno y 100% Responsive
   ========================================================================== */

:root {
  /* Paleta Corporativa Inspirada en la Bandera de Perú */
  --color-primary: #0b132b;          /* Azul medianoche industrial */
  --color-primary-light: #162038;    /* Slate profundo elegante */
  
  /* ROJO BANDERA DE PERÚ (Oficial Pantone 186 C / Rojo Vivo Republicano) */
  --color-secondary: #D91023;        /* Rojo Bandera de Perú */
  --color-secondary-hover: #b30919;  /* Rojo más intenso al interactuar */
  --color-secondary-light: #ff4d5a;  /* Rojo claro para texto sobre fondo oscuro */
  --color-accent: #e11d48;           /* Acento dinámico */
  
  --color-dark: #0f172a;             /* Texto principal oscuro */
  --color-light: #f8fafc;            /* Fondo blanco sutil */
  --color-white: #ffffff;            /* Blanco puro bandera */
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-500: #64748b;
  --color-gray-700: #334155;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #20ba59;

  /* Sombras y Elevaciones con reflejo Rojo */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(11, 19, 43, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 19, 43, 0.12);
  --shadow-xl: 0 20px 40px rgba(11, 19, 43, 0.18);
  --shadow-red: 0 8px 25px rgba(217, 16, 35, 0.38);

  /* Bordes y Transiciones */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-gray-700);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR DE CONTACTO
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary);
  color: #94a3b8;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 2px solid var(--color-secondary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.top-bar-contact a:hover {
  color: var(--color-secondary-light);
}

.top-bar-badge {
  background: rgba(217, 16, 35, 0.18);
  color: #ff8a93;
  border: 1px solid rgba(217, 16, 35, 0.4);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 1px solid var(--color-gray-200);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(217, 16, 35, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-secondary);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  line-height: 1.1;
}

.brand-title span {
  color: var(--color-secondary);
}

.brand-subtitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gray-500);
  font-weight: 600;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-gray-700);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--color-secondary);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
  font-size: 24px;
}

/* ==========================================================================
   BOTONES (ROJO BANDERA DE PERÚ + BLANCO)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #b30919 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e61427 0%, #9e0715 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 16, 35, 0.45);
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 1.8px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn-dark:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

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

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(11, 19, 43, 0.94) 0%, rgba(11, 19, 43, 0.82) 50%, rgba(15, 23, 42, 0.94) 100%),
    url('../images/destacadas/cliente-12.jpeg') center/cover no-repeat;
  filter: contrast(1.05);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(217, 16, 35, 0.16) 1.2px, transparent 1.2px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 16, 35, 0.22);
  color: #ff8a93;
  border: 1px solid rgba(217, 16, 35, 0.45);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(120deg, #ff4d5a, #D91023);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(217, 16, 35, 0.3);
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(217, 16, 35, 0.2);
  color: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text {
  font-size: 12.5px;
  color: #e2e8f0;
  font-weight: 600;
  line-height: 1.3;
}

/* Tarjeta Hero Lateral */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  border-top: 4px solid var(--color-secondary);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.hero-card-title {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-quick-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.hero-quick-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 16, 35, 0.4);
  transform: translateX(4px);
}

.quick-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(217, 16, 35, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary-light);
}

.quick-info h4 {
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 2px;
}

.quick-info p {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   BARRA DE ESTADÍSTICAS Y CREDENCIALES
   ========================================================================== */
.stats-bar {
  background: var(--color-primary-light);
  color: var(--color-white);
  padding: 36px 0;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-bottom: 4px solid var(--color-secondary);
}

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-icon {
  font-size: 32px;
  color: var(--color-secondary-light);
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

/* ==========================================================================
   SECCIONES GENERALES (FONDOS BLANCOS / LIMPIOS)
   ========================================================================== */
.section {
  padding: 85px 0;
}

.section-bg-light {
  background-color: var(--color-light);
}

.section-bg-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
  background: rgba(217, 16, 35, 0.1);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.section-bg-dark .section-title {
  color: var(--color-white);
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

.section-bg-dark .section-subtitle {
  color: #94a3b8;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS / HISTORIA
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-images-wrapper {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-white);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-red);
  text-align: center;
  max-width: 180px;
}

.badge-years {
  font-size: 40px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
}

.badge-sub {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 4px;
}

.about-content h3 {
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--color-primary);
}

.about-text {
  font-size: 15.5px;
  color: var(--color-gray-700);
  margin-bottom: 24px;
  line-height: 1.7;
}

.company-identity-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-left: 5px solid var(--color-secondary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.company-identity-card p {
  font-size: 13.5px;
  color: var(--color-gray-700);
  margin: 4px 0;
}

.company-identity-card strong {
  color: var(--color-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.value-card-icon {
  font-size: 20px;
  color: var(--color-secondary);
  background: rgba(217, 16, 35, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.value-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--color-primary);
}

.value-card p {
  font-size: 12.5px;
  color: var(--color-gray-500);
  line-height: 1.4;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(217, 16, 35, 0.4);
}

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

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.service-card-title {
  font-size: 19px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card-text {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.service-items-list {
  margin-bottom: 20px;
}

.service-items-list li {
  font-size: 13px;
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.service-items-list li::before {
  content: '✓';
  color: var(--color-secondary);
  font-weight: bold;
}

.service-card-footer {
  border-top: 1px solid var(--color-gray-200);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-arrow {
  color: var(--color-secondary);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-arrow:hover {
  gap: 8px;
  color: var(--color-secondary-hover);
}

/* ==========================================================================
   SECCIÓN DESTACADA: ARRIENDO DE MAQUINARIAS Y HERRAMIENTAS
   ========================================================================== */
.rental-section {
  background: linear-gradient(180deg, #0b132b 0%, #111a36 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.rental-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(217, 16, 35, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.rental-banner-alert {
  background: rgba(217, 16, 35, 0.15);
  border: 1px solid rgba(217, 16, 35, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.rental-alert-text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: #ffccd0;
}

.rental-alert-icon {
  font-size: 26px;
  color: var(--color-secondary-light);
}

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

.rental-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.rental-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.rental-card.featured {
  border: 2px solid var(--color-secondary);
  background: rgba(255, 255, 255, 0.06);
}

.rental-card-image {
  position: relative;
  height: 230px;
  background-color: #030712;
  overflow: hidden;
}

.rental-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rental-card:hover .rental-card-image img {
  transform: scale(1.06);
}

.rental-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.rental-category-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.rental-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rental-card-title {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.rental-card-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 18px;
  line-height: 1.5;
}

.rental-specs {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rental-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.rental-spec-row .spec-name {
  color: #94a3b8;
}

.rental-spec-row .spec-val {
  color: var(--color-white);
  font-weight: 600;
}

.rental-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.rental-actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
}

/* ==========================================================================
   PROYECTOS EMBLEMÁTICOS & CLIENTES
   ========================================================================== */
.projects-slider-wrapper {
  margin-bottom: 60px;
}

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

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(217, 16, 35, 0.3);
}

.project-media {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-client-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 19, 43, 0.92);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  border-left: 3.5px solid var(--color-secondary);
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 13.5px;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-bottom: 14px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* Clientes / Marcas */
.clients-block {
  text-align: center;
  padding: 40px 0 20px;
}

.clients-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-500);
  font-weight: 700;
  margin-bottom: 30px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}

.client-badge-box {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.client-badge-box:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   GALERÍA INTERACTIVA DE FAENAS
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 12px rgba(217, 16, 35, 0.3);
}

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

.gallery-item {
  position: relative;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background-color: #0f172a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 19, 43, 0.92) 0%, rgba(11, 19, 43, 0.25) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--color-white);
  font-size: 13.5px;
  font-weight: 600;
}

.gallery-tag {
  color: var(--color-secondary-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & FORMULARIO
   ========================================================================== */
.contact-section {
  position: relative;
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info-panel {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--color-secondary);
}

.contact-info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217, 16, 35, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.contact-info-panel h3 {
  font-size: 26px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.contact-intro {
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

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

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(217, 16, 35, 0.2);
  color: var(--color-secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 15px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-details p,
.contact-details a {
  font-size: 13.5px;
  color: #94a3b8;
  display: block;
}

.contact-details a:hover {
  color: var(--color-secondary-light);
}

.emails-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(217, 16, 35, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 10px;
}

.emails-box span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-secondary-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.direct-wa-box {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wa-text h5 {
  color: var(--color-white);
  font-size: 14px;
  margin-bottom: 2px;
}

.wa-text p {
  color: #bbf7d0;
  font-size: 12px;
}

/* Panel del Formulario */
.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--color-secondary);
}

.form-card h3 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-card-subtitle {
  font-size: 14px;
  color: var(--color-gray-500);
  margin-bottom: 26px;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
}

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(217, 16, 35, 0.18);
}

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

.form-feedback {
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-feedback.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: flex;
}

.form-feedback.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: flex;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .spinner {
  display: inline-block;
}

.btn-submit.loading .btn-text {
  opacity: 0.8;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: #070d1e;
  color: #94a3b8;
  padding: 70px 0 25px;
  border-top: 4px solid var(--color-secondary);
}

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

.footer-col h4 {
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-about p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 13.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-contact-info p {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.floating-wa-btn {
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  position: relative;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-whatsapp-hover);
  color: var(--color-white);
}

.wa-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: wa-pulse-anim 2s infinite;
  z-index: -1;
}

@keyframes wa-pulse-anim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.floating-whatsapp:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(-4px);
}

/* ==========================================================================
   LIGHTBOX MODAL PARA FOTOS
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 13, 30, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

.lightbox-content {
  position: relative;
  max-width: 950px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--color-white);
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-title {
    font-size: 38px;
  }
  .services-grid,
  .rental-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-link {
    font-size: 17px;
    width: 100%;
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: 10px;
  }
  .nav-actions .btn {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 60px 0 80px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .services-grid,
  .rental-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .about-img-main {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
}
