:root {
  --primary: #d34f25; /* El naranja de tu logo */
  --primary-dark: #b8431e;
  --dark: #1a1a1a;
  --light-bg: #f9f9f9;
  --white: #ffffff;
  --text-muted: #666;
  --glass: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* ANIMACION */
@keyframes efectoEntrada {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader-logo {
  width: 150px;
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0% {transform: scale(0.95); opacity: 0.7;}
  50% {transform: scale(1.05); opacity: 1;}
  100% {transform: scale(0.95); opacity: 0.7;}
}
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark);
  overflow-x: hidden;
  transition: efectoEntrada 0.8s ease-out;
}

/* HEADER CON EFECTO CRISTAL */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo img { height: 45px; }

.menu a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s;
}

.menu a:hover, .menu a.active {
  color: var(--primary);
}

.busqueda-wrapper { position: relative; }
#busqueda {
  padding: 10px 15px 10px 35px;
  border-radius: 25px;
  border: 1px solid #ddd;
  background: #f1f1f1;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}
#busqueda:focus {
  background: var(--white);
  border-color: var(--primary);
  width: 250px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: 0.5;
}

/* HERO SECTION - IMPACTO TOTAL */
main section {
  animation: efectoEntrada 1s ease-out;
}
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../img/200kva.1.jpg') no-repeat center center/cover; /* USA UNA FOTO DE ALTA CALIDAD */
  color: var(--white);
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 35px;
  opacity: 0.9;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

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

/* SECCIÓN DESTACADOS */
.destacados-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 { font-size: 32px; }
.linea {
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 15px auto;
  border-radius: 2px;
}

/* AJUSTE DEL GRID */
.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

/* CARDS ESTILO PREMIUM*/
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}
.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 20px;
  background: #fdfdfd;
}
.card h3 {
  padding: 20px 20px 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.btn-card {
    display: block !important;
    background-color: #d34f25 !important;
    color: #ffffff !important; 
    text-align: center !important;
    padding: 12px 20px !important;
    margin-top: 15px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.btn-card:hover {
    background-color: #b8431e !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(211, 79, 37, 0.4) !important;
    color: #ffffff !important;
}
.card-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* BOTÓN FLOTANTE */
.cotizacion-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(211, 79, 37, 0.4);
  z-index: 999;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cotizacion-flotante:hover {
  transform: scale(1.05) translateY(-5px);
  background: var(--primary-dark);
}

/* FOOTER */
.footer {
  background: #111111;
  color: #fff;
  padding: 60px 20px 20px;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}
.footer a, .footer a:visited, .footer a:active, .footer a:link {
  text-decoration: none;
  color: inherit !important;
}
.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap
}
.footer-logo{
  height: 45px;
  filter: brightness(0) invert(1); /* Filtro para logo */
  margin-bottom: 20px;
}
.footer-info {
  flex: 1;
  max-width: 400px;
}
.footer-info p {
  font-size: 14px;
  line-height: 1.6;
  color: #888;
}
.footer h4 {
  margin-bottom: 25px;
  font-size: 18px;
  position: relative;
}
footer h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: #d34f25;
  margin-top: 8px;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
}
.footer-contact h4 {
  margin-bottom: 20px;
  font-size: 18px;
}
.footer-contact p {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}
.footer-btn:hover {
  background: var(--primary);
  color: #fff !important;
}
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-direction: column;
    position: relative;
  }
  .menu {
    display: flex;
    margin: 15px 0;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .menu a {
    margin: 0 5px;
    font-size: 14px;
  }
  .busqueda-wrapper {width: 100%;}
  #busqueda {width: 100%;}
  /* HERO */
  .hero {height: 80vh;}
  .hero h1 {font-size: 32px;}
  .hero p {font-size: 16px;}
  .hero-buttons {flex-direction: column; gap: 15px;}
  .btn {width: 100%; text-align: center;}
  .destacados-section, .nosotros-container, .productos-section {padding: 40px 20px;}
  .grid-productos, .mvv-grid {grid-template-columns: 1fr; gap: 20px;}
  .cotizacion-flotante {
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 14px;
  }
}