/* --- VARIABLES Y CONFIGURACIÓN BASE --- */
:root {
  --primary: #f39c12; /* Color de seguridad / alta visibilidad */
  --dark: #1e272c;    /* Gris oscuro profesional */
  --light: #f8f9fa;   /* Fondo claro */
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text);
  line-height: 1.6;
  background-color: var(--light);
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
  background-color: var(--dark);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(rgba(30, 39, 44, 0.85), rgba(30, 39, 44, 0.85)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=1200') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  margin-top: 60px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-custom {
  background-color: var(--primary);
  color: var(--dark);
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: transform 0.2s, background-color 0.3s;
  display: inline-block;
}

.btn-custom:hover {
  transform: translateY(-2px);
  background-color: #e67e22;
}

/* --- SECCIONES COMUNES --- */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
  color: var(--dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin: 10px auto 0;
}

/* --- SERVICIOS (GRID) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 4px solid var(--primary);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
}

/* --- SEGURIDAD Y CERTIFICACIONES --- */
.seguridad {
  background-color: var(--dark);
  color: white;
  max-width: 100%;
}

.seguridad .section-title {
  color: white;
}

.seguridad-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.certificados {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cert-badge {
  border: 2px solid var(--primary);
  padding: 15px 25px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
}

/* --- CONTACTO --- */
.contacto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.info-contacto h3 {
  margin-bottom: 20px;
}

.info-contacto p {
  margin-bottom: 15px;
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --- FOOTER --- */
footer {
  background-color: #111;
  color: #777;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-content h1 { font-size: 2rem; }
  .hero { height: 60vh; }
}