/* 
  Project: Protection Zone S.A.C. Web App
  Author: AI Assistant
*/

:root {
  /* Colors */
  --color-primary: #FF6600; /* Naranja corporativo */
  --color-primary-dark: #cc5200;
  --color-bg-light: #ffffff; /* Fondo blanco */
  --color-bg-gray: #f5f7fa; /* Gris claro para secciones informativas */
  --color-text-dark: #111111; /* Negro elegante */
  --color-text-muted: #555555;
  --color-border: #e0e0e0;
  
  /* Typography */
  --font-family-base: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --border-radius: 8px;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.bg-gray {
  background-color: var(--color-bg-gray);
}

.bg-dark {
  background-color: var(--color-text-dark);
  color: white;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 55px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}

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

/* Hero Section */
.hero {
  margin-top: var(--header-height);
  padding: 140px 0 120px;
  background-color: var(--color-text-dark);
  background-image: url('../assets/img/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(17, 17, 17, 0.85); /* Overlay */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #dddddd;
}

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

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--color-border);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-primary);
}

.service-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Sectors */
.sector-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  box-shadow: var(--shadow-md);
}

.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sector-card:hover img {
  transform: scale(1.1);
}

.sector-card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.sector-card:hover .sector-card-overlay {
  border-color: var(--color-primary);
}

.sector-card h4 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* Video Section */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* Testimonios */
.testimonials-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
  height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

.testimonial-card {
  min-width: 300px;
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: center;
  border-top: 4px solid var(--color-primary);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid #eee;
}

/* Logo Marquee */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-content img {
  display: inline-block;
  height: 60px;
  margin: 0 40px;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s;
}

.marquee-content img:hover {
  filter: grayscale(0%) opacity(1);
}

.cliente-nombre {
  display: inline-block;
  margin: 0 40px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  transition: color 0.3s;
}

.cliente-nombre:hover {
  color: var(--color-primary);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform var(--transition-fast);
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

/* Mobile Menu Toggle (hidden by default) */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-text-dark);
  cursor: pointer;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-primary);
}
.section-title p {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.text-primary { color: var(--color-primary); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-3 { gap: 1rem; }

.hero-detalle {
  padding: 180px 0 100px;
  text-align: left;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  max-width: 800px;
}

.detalle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

/* Responsividad */
@media (max-width: 992px) {
  .nav-menu {
    display: none; /* Will be toggled via JS */
  }
  .mobile-toggle {
    display: block;
  }
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-detalle {
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }

  .detalle-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Reset sticky on mobile */
  .detalle-grid > div:last-child > div {
    position: static !important;
  }
}
