/* ==========================================================================
   REVAMP SAS - Estilos Principales
   Modern Industrial & Engineering Theme
   Bootstrap 5.3 + Custom CSS
   ========================================================================== */

:root {
  --primary-color: #0d2847;       /* Azul marino industrial profundo */
  --primary-dark: #07172c;        /* Navy casi negro */
  --primary-light: #163e6d;       /* Azul medio */
  --secondary-color: #0077b6;     /* Azul tecnológico / fluidos */
  --accent-color: #00b4d8;        /* Cyan moderno */
  --accent-red: #d90429;          /* Rojo corporativo ABC / Revamp */
  --accent-red-hover: #ef233c;    
  --dark-bg: #09131f;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #2b303a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --box-shadow-sm: 0 2px 8px rgba(13, 40, 71, 0.06);
  --box-shadow: 0 10px 25px rgba(13, 40, 71, 0.09);
  --box-shadow-lg: 0 20px 40px rgba(13, 40, 71, 0.14);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fw-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   TOPBAR SUPERIOR
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: var(--accent-color);
}

.top-badge-emergency {
  background: rgba(217, 4, 41, 0.2);
  color: #ff6b6b;
  border: 1px solid rgba(217, 4, 41, 0.4);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-badge-emergency .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ef233c;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 35, 60, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(239, 35, 60, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 35, 60, 0); }
}

/* ==========================================================================
   NAVBAR PRINCIPAL
   ========================================================================== */
.navbar-revamp {
  background: #ffffff;
  padding: 14px 0;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.navbar-revamp.scrolled {
  padding: 10px 0;
  box-shadow: var(--box-shadow);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 8px 16px !important;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
  background: rgba(0, 119, 182, 0.05);
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.btn-cta-nav {
  background: var(--accent-red);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.3);
  transition: var(--transition);
}

.btn-cta-nav:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 4, 41, 0.4);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 23, 44, 0.92) 0%, rgba(13, 40, 71, 0.88) 100%),
              url('../images/home1.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 216, 0.15);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: #90e0ef;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .text-highlight {
  color: #00b4d8;
  background: linear-gradient(90deg, #00b4d8, #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 620px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.hero-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(0, 180, 216, 0.4);
}

.hero-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-img-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-box:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(13, 40, 71, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 180, 216, 0.4);
  padding: 12px 18px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   METRIC STATS COUNTERS STRIP
   ========================================================================== */
.stats-strip {
  background: #ffffff;
  padding: 50px 0;
  box-shadow: var(--box-shadow-sm);
  position: relative;
  margin-top: -30px;
  border-radius: 20px;
  z-index: 20;
}

.counter-item {
  text-align: center;
  padding: 10px 15px;
  border-right: 1px solid var(--border-color);
}

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

.counter-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 6px;
}

.counter-number .suffix {
  color: var(--secondary-color);
}

.counter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

/* ==========================================================================
   SECCIÓN GENERALES
   ========================================================================== */
.section-py {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--secondary-color);
  background: rgba(0, 119, 182, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   TARJETAS DE SERVICIOS
   ========================================================================== */
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 35px 28px;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-lg);
  border-color: rgba(0, 119, 182, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 119, 182, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon-wrap img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.service-icon-wrap i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.service-card:hover .service-icon-wrap {
  background: var(--secondary-color);
  color: #fff;
  transform: scale(1.06);
}

.service-card:hover .service-icon-wrap i {
  color: #fff;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--primary-color);
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-list li {
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

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

/* ==========================================================================
   PRODUCTOS & TECNOLOGÍA
   ========================================================================== */
.product-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.product-box:hover {
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-6px);
}

.product-box-img {
  height: 240px;
  background: #eef2f6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

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

.product-box:hover .product-box-img img {
  transform: scale(1.05);
}

.product-box-body {
  padding: 30px;
}

.product-badge {
  background: rgba(0, 119, 182, 0.1);
  color: var(--secondary-color);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.specs-table {
  width: 100%;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.specs-table td {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border-color);
}

.specs-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.specs-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary-color);
}

/* ==========================================================================
   POSTVENTA & GARANTÍAS
   ========================================================================== */
.postventa-highlight-card {
  background: linear-gradient(135deg, #0d2847 0%, #163e6d 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 45px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.postventa-highlight-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.warranty-badge-big {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.warranty-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: #00b4d8;
  line-height: 1;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary-custom {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 11px 26px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #ffffff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 40, 71, 0.2);
}

.btn-accent-custom {
  background: var(--accent-red);
  color: #ffffff;
  font-weight: 600;
  border: 2px solid var(--accent-red);
  border-radius: 50px;
  padding: 11px 26px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.25);
}

.btn-accent-custom:hover {
  background: var(--accent-red-hover);
  color: #ffffff;
  border-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(217, 4, 41, 0.35);
}

.btn-outline-custom {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 11px 26px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-card-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.form-control-custom {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control-custom:focus {
  background-color: #ffffff;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.15);
  outline: none;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 119, 182, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding-top: 75px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

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

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

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

.footer-bottom {
  background: #050b12;
  padding: 22px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* ==========================================================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #ffffff;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.whatsapp-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-pulse 2s infinite;
  pointer-events: none;
}

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

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 991.98px) {
  .counter-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
  }
  .counter-item:last-child {
    border-bottom: none;
  }
  .hero-section {
    padding: 70px 0 60px;
  }
  .hero-img-box {
    margin-top: 40px;
  }
}
