/* ==================================================
   VARIABLES Y RESET - EL BÁRBARO
   ================================================== */
:root {
  --primary-orange: #ff6b35;
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --white: #ffffff;
  --light-grey: #f8f9fa;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.4s ease;
  --shadow-orange: 0 10px 30px rgba(255, 107, 53, 0.4);
  --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
}

/* ==================================================
   SPLASH SCREEN - CASCO VIKINGO
   ================================================== */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1a1a1a 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease, visibility 1s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  color: var(--white);
  animation: fadeInScale 1.2s ease;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.helmet-animation {
  margin-bottom: 2rem;
}

.helmet {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  animation: helmetFloat 2s infinite ease-in-out;
}

@keyframes helmetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.helmet-base {
  width: 120px;
  height: 100px;
  background: #7f8c8d;
  border-radius: 50% 50% 30% 30% / 60% 60% 20% 20%;
  position: absolute;
  bottom: 0;
  left: 15px;
  border: 4px solid #bdc3c7;
}

.helmet-horn {
  position: absolute;
  width: 30px;
  height: 80px;
  background: #95a5a6;
  border-radius: 40% 40% 0 0;
  top: 20px;
  border: 3px solid #bdc3c7;
  transform-origin: bottom center;
}

.helmet-horn.left {
  left: 25px;
  transform: rotate(-20deg);
}

.helmet-horn.right {
  right: 25px;
  transform: rotate(20deg);
}

.helmet-horn::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: #bdc3c7;
  border-radius: 50%;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ff6b35, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,107,53,0.3);
  border-radius: 50%;
  border-top-color: var(--primary-orange);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.splash-logo {
  height: 200px;
  width: auto;
  animation: fadeInScale 1.2s ease;
}

.helmet-animation,
.splash-title,
.splash-subtitle,
.loader {
  display: none !important;
}

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

/* ==================================================
   BOTÓN FLOTANTE WHATSAPP
   ================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 35px rgba(37,211,102,0.5);
  color: white;
}

/* ==================================================
   UTILIDADES
   ================================================== */
.text-primary {
  color: var(--primary-orange) !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff5722);
  color: var(--white);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 35px;
  transition: var(--transition);
  box-shadow: var(--shadow-orange);
  border-radius: 0;
  font-family: var(--font-heading);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5722, #ff6b35);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,107,53,0.6);
  color: var(--white);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 33px;
  transition: var(--transition);
  border-radius: 0;
  font-family: var(--font-heading);
}

.btn-outline-primary:hover {
  background: var(--primary-orange);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--primary-dark);
  text-transform: uppercase;
  border-left: 8px solid var(--primary-orange);
  padding-left: 20px;
}

.text-center .section-title {
  border-left: none;
  border-bottom: 4px solid var(--primary-orange);
  padding-left: 0;
  padding-bottom: 10px;
}

/* ==================================================
   NAVBAR
   ================================================== */
#mainNav {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 15px 0;
  border-bottom: 2px solid var(--primary-orange);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--white);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin: 0 10px;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  position: relative;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-orange);
  transition: width 0.3s;
}

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

#mainNav .btn-primary {
  padding: 8px 25px;
  font-size: 0.9rem;
}

/* ==================================================
   HERO CON VIDEO
   ================================================== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: 0;
  display: block !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: heroFade 1.5s ease;
}

@keyframes heroFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.2);
  backdrop-filter: blur(5px);
  border: 2px solid var(--primary-orange);
  color: var(--white);
  padding: 8px 25px;
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-section h1 {
  font-size: 5rem;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  font-weight: 900;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-30px) translateX(-50%); }
  60% { transform: translateY(-15px) translateX(-50%); }
}

.scroll-down {
  color: var(--white);
  font-size: 2.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.scroll-down:hover {
  color: var(--primary-orange);
  opacity: 1;
  transform: scale(1.2);
}

/* ==================================================
   ABOUT (ABEL)
   ================================================== */
.about-image-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 3px solid var(--primary-orange);
  max-width: 400px;
  margin: 0 auto;
}

.about-image-wrapper img {
  transition: transform 1s;
  width: 100%;
  height: auto;
  display: block;
}

.about-image-wrapper:hover img {
  transform: scale(1.1);
}

.about-experience {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: var(--primary-orange);
  color: var(--primary-dark);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-orange);
  animation: float 3s infinite;
  border: 2px solid #000;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.about-experience .years {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.about-experience .text {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ==================================================
   SERVICIOS DESTACADOS (3 PILARES)
   ================================================== */
.card-service-highlight {
  background: rgba(20,20,20,0.9);
  border: 3px solid var(--primary-orange);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-service-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255,107,53,0.1));
  opacity: 0;
  transition: opacity 0.5s;
}

.card-service-highlight:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 50px rgba(255,107,53,0.3);
  border-color: var(--white);
}

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

.icon-wrapper-large {
  width: 120px;
  height: 120px;
  background: rgba(255,107,53,0.2);
  border: 3px solid var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: var(--transition);
  transform: rotate(45deg);
}

.icon-wrapper-large i {
  font-size: 4rem;
  color: var(--primary-orange);
  transition: var(--transition);
  transform: rotate(-45deg);
}

.card-service-highlight:hover .icon-wrapper-large {
  background: var(--primary-orange);
  transform: rotate(90deg);
}

.card-service-highlight:hover .icon-wrapper-large i {
  color: var(--primary-dark);
  transform: rotate(-90deg);
}

/* ==================================================
   SERVICIOS ESPECIALES CARDS
   ================================================== */
.card-service-special {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,107,53,0.3);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.card-service-special:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255,107,53,0.3);
  border-color: var(--primary-orange);
  background: rgba(255,255,255,0.1);
}

.icon-wrapper-special {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-orange), #ff5722);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(255,107,53,0.3);
}

.icon-wrapper-special i {
  font-size: 3rem;
  color: var(--white);
  transition: var(--transition);
}

.card-service-special:hover .icon-wrapper-special {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(255,107,53,0.5);
}

.card-service-special h3 {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.card-service-special p {
  font-size: 1rem;
  color: #ccc;
  font-weight: 400;
  line-height: 1.5;
}

/* ==================================================
   SERVICIOS CARDS (repuestos)
   ================================================== */
.card-service {
  background: var(--white);
  border: 2px solid #ddd;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 0;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff6b35, #ff5722);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.card-service:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 20px 40px rgba(255,107,53,0.2);
  border-color: var(--primary-orange);
}

.card-service:hover::before {
  transform: translateX(0);
}

.card-service h3 {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* ==================================================
   TARJETAS DE REPUESTOS MEJORADAS
   ================================================== */
.card-repuesto {
  background: var(--white);
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-repuesto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), #ff5722);
  z-index: 0;
}

.card-repuesto:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
  border-color: var(--primary-orange);
}

.icon-repuesto {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-orange), #ff5722);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(255,107,53,0.3);
}

.card-repuesto:hover .icon-repuesto {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(255,107,53,0.5);
}

.card-repuesto h3 {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-repuesto p {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

/* ==================================================
   PROCESO
   ================================================== */
#proceso {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.proceso-timeline {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.proceso-step {
  flex: 1;
  background: var(--white);
  border: 3px solid var(--primary-orange);
  padding: 40px 25px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  min-height: 350px;
  justify-content: space-between;
}

.proceso-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.25);
  border-color: #ff5722;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-orange), #ff5722);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
  transition: var(--transition);
}

.proceso-step:hover .step-icon {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.5);
}

.proceso-step h3 {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin: 15px 0;
}

.proceso-step p {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-orange);
  opacity: 0.15;
  font-family: var(--font-heading);
}

.proceso-connector {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-orange), #ff5722);
  margin-top: 50px;
  flex-shrink: 0;
}

.proceso-connector:last-of-type {
  display: none;
}

/* ==================================================
   CTA SECTION
   ================================================== */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('asset/Camioneta-Auxilio.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 200px 0;
  color: var(--white);
  position: relative;
  border-top: 4px solid var(--primary-orange);
  border-bottom: 4px solid var(--primary-orange);
}

.cta-section h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ==================================================
   CONTACTO
   ================================================== */
.map-container {
  border: 4px solid var(--primary-orange);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.social-links .btn-outline-primary {
  width: 55px;
  height: 55px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-width: 3px;
  transition: var(--transition);
  padding: 0;
}

.social-links .btn-outline-primary:hover {
  background-color: var(--primary-orange);
  color: var(--primary-dark);
  transform: scale(1.2) rotate(10deg);
  box-shadow: var(--shadow-orange);
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
  background: #000;
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  border-top: 4px solid var(--primary-orange);
}

.footer-link {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 900;
  transition: var(--transition);
  letter-spacing: 1px;
}

.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer .text-white i {
  transition: var(--transition);
  font-size: 1.5rem;
}

.footer .text-white i:hover {
  color: var(--primary-orange);
  transform: translateY(-5px) scale(1.2);
}

/* ==================================================
   ANIMACIONES ENTRADA
   ================================================== */
[data-animate] {
  opacity: 0;
  transition: opacity 1s, transform 1s;
}

[data-animate="fade-up"] {
  transform: translateY(80px);
}

[data-animate="fade-right"] {
  transform: translateX(-80px);
}

[data-animate="fade-left"] {
  transform: translateX(80px);
}

[data-animate="zoom-in"] {
  transform: scale(0.7);
}

[data-animate="flip-up"] {
  transform: perspective(600px) rotateX(20deg);
  transform-origin: bottom;
}

[data-animate="step"] {
  transform: scale(0.3) rotate(-10deg);
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ==================================================
   MEDIA QUERIES
   ================================================== */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  .brand-text {
    font-size: 1.4rem;
  }
  .navbar-logo {
    height: 40px;
  }
  .step-circle {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  .proceso-timeline {
    flex-direction: column;
  }
  .proceso-step {
    min-height: 280px;
    margin-bottom: 20px;
  }
  .proceso-connector {
    display: none;
  }
  .cta-section {
    padding: 100px 0;
  }
  .cta-section h2 {
    font-size: 2.2rem;
  }
  .about-experience {
    padding: 15px;
  }
  .about-experience .years {
    font-size: 2.5rem;
  }
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 30px;
    bottom: 20px;
    right: 20px;
  }
  .icon-wrapper-large {
    width: 100px;
    height: 100px;
  }
  .icon-wrapper-large i {
    font-size: 3rem;
  }
}