* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0b0b;
  color: #ffffff;
  line-height: 1.5;
}

/* LOADER */

#loader {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-logo {
  width: 180px;
  max-width: 70vw;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
}

/* HERO */

.hero{
  height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  background:#000;

}

.hero-bg{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:linear-gradient(120deg,#000000,#1a1a1a,#000000,#1a1a1a);
  background-size:400% 400%;
  animation:industrialMove 15s ease infinite;

}

.hero-grid{
  position:absolute;
  width:100%;
  height:100%;
  background-image:linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:60px 60px;
  opacity:0.4;

}

.hero::after{

  content:"";
  position:absolute;
  width:800px;
  height:800px;
  background:radial-gradient(circle,rgba(230,57,70,0.2) 0%,transparent 70%);
  top:-200px;
  right:-200px;

}

@keyframes industrial {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.logo {
  margin-bottom: 24px;
}

.logo img {
  width: 420px;
  max-width: 90vw;
  display: block;
  margin: 0 auto;
}

.hero h1 {
  margin-top: 10px;
  font-size: 48px;
  line-height: 1.1;
}

.hero p {
  margin-top: 12px;
  font-size: 22px;
  color: #e7e7e7;
}

.btn {
  display: inline-block;
  margin-top: 26px;
  background: #e63946;
  padding: 14px 28px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  background: #ff4a57;
  transform: translateY(-2px);
}

/* SERVICES */

.services { 
  padding:120px 20px; text-align:center; 
} 

.services h2{ 
  font-size:42px; margin-bottom:60px; 
}

/* GRID */

.services-grid{ 
  display:grid; 
  grid-template-columns:repeat(4,1fr); 
  gap:30px;
  max-width:1200px;
  margin:40px auto 0;
}

@media (max-width:1000px){
  .services-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:600px){
  .services-grid{
    grid-template-columns:1fr;
  }
}

/* CARD */

.service-card{
  background:linear-gradient(145deg,#121212,#1c1c1c); 
  padding:35px;
  border-radius:12px;
  transition:all .3s ease; 
  border:1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
} 

.service-card h3{
  margin-top:10px;
  margin-bottom:10px;
}

.service-card p{
  opacity:.8;
}

/* ICON */ 

.service-icon{ 
  margin-bottom:15px;
  transition:0.3s;
}

.service-icon svg{
  width:32px;
  height:32px;
  fill:white;
}

.service-card:hover .service-icon svg{
  fill:#e63946;
}

/* HOVER */ 

.service-card:hover{ 
  transform:translateY(-10px); 
  box-shadow:0 20px 40px rgba(0,0,0,0.5); 
  border-color:#e63946; 
}

/* SECTIONS */

.services,
.empresas,
.cotizacion {
  padding: 100px 20px;
  text-align: center;
}

.services h2,
.empresas h2,
.cotizacion h2 {
  font-size: 38px;
  margin-bottom: 10px;
}

.empresas {
  background: #111111;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 28px;
}

.card p {
  color: #dddddd;
}

/* FADE */

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FORM */

form {
  max-width: 500px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 14px;
  border: none;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.45);
}

button {
  padding: 14px;
  background: #e63946;
  border: none;
  color: #ffffff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.25s ease;
}

button:hover {
  background: #ff4a57;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.bot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  color: #d9d9d9;
}

.form-status.is-error {
  color: #ff9fa7;
}

.form-status.is-success {
  color: #8df0b0;
}

/* FOOTER */

footer {
  padding: 30px 20px;
  text-align: center;
  background: #090909;
  color: #d2d2d2;
}

.footer{
  background:#0a0a0a;
  padding:80px 20px 40px;
  border-top:1px solid rgba(255,255,255,0.05);
}

.footer-container{
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:40px;
}

/* TITULOS */

.footer h3{
  font-size:26px;
  margin-bottom:10px;
}

.footer h4{
  margin-bottom:15px;
  font-size:18px;
}

/* LINKS */

.footer ul{
  list-style:none;
}

.footer ul li{
  margin-bottom:10px;
  opacity:.8;
}

/* CONTACTO */

.footer-contact p{
  opacity:.8;
  margin-bottom:8px;
}

/* BOTTOM */

.footer-bottom{
  margin-top:60px;
  text-align:center;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,0.05);
  opacity:.6;
}

/* WHATSAPP */

.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp:hover {
  background: #2fe06f;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .logo img {
    width: 280px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .services h2,
  .empresas h2,
  .cotizacion h2 {
    font-size: 30px;
  }

  .card h3 {
    font-size: 24px;
  }
}
