/* =============================================
   SISAC COMUNICACIONES - Estilos Principales
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --color-primary: #111111;
  --color-secondary: #1a1a1a;
  --color-accent: #e8b14a;
  --color-accent2: #c99a38;
  --color-light: #f4f4f4;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-white: #ffffff;
  --font-main: 'Montserrat', sans-serif;
  --font-alt: 'Raleway', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 36px rgba(0,0,0,0.18);
  --radius: 10px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Loader ---- */
#loader {
  position: fixed; inset: 0;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#loader img { width: 200px; animation: pulse 1.5s infinite; }
#loader.hide { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.97)} }

/* ---- Header ---- */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(8px);
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  transition: var(--transition);
}
header.scrolled {
  height: 80px;
  background: rgba(255, 255, 255, 1);
}
.header-logo img { height: 58px; width: auto; object-fit: contain; }
.header-logo svg { height: 58px; }

/* Nav */
nav ul {
  display: flex; gap: 36px; align-items: center;
}
nav ul li a {
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s;
}
nav ul li a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
nav ul li a:hover,
nav ul li a.active { color: var(--color-accent); }
nav ul li a:hover::after,
nav ul li a.active::after { transform: scaleX(1); }

/* Teléfono en header */
.header-phone a {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.header-phone a:hover { color: var(--color-text); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--color-text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: #111111;
  z-index: 999; padding: 40px 30px;
  flex-direction: column; gap: 28px;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--color-white); font-size: 1.4rem;
  font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--color-accent); }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 60%, #222222 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Línea decorativa amarilla en hero */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-content h1 {
  font-family: var(--font-alt);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-content h1 span { color: var(--color-accent); }
.hero-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 400;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-tagline {
  font-family: var(--font-alt);
  font-size: 1.3rem; font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 36px;
  font-style: italic;
  letter-spacing: 0.5px;
}
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #111111;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 42px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232,177,74,0.35);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: #f5c66a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,177,74,0.5);
}
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4); font-size: 0.8rem; letter-spacing: 2px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; display: block;
  width: 1px; height: 40px;
  background: rgba(232,177,74,0.4);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top}
  51%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom}
}

/* ---- Sections Generales ---- */
section { padding: 80px 20px; }
.section-title {
  text-align: center;
  font-family: var(--font-alt);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.section-title span { color: var(--color-accent); }
.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto 52px;
  line-height: 1.7;
}
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--color-accent), rgba(232,177,74,0.3));
  border-radius: 2px; margin: 14px auto 50px;
}

/* ---- Bienvenida ---- */
.welcome-section { background: var(--color-light); }
.welcome-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}
/* ---- Video-Bienvenida ---- */
.video-bg {
  position: relative;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; 
}

.video-bg .content {
  position: relative;
  z-index: 1;
}

/* ---- Servicios Grid ---- */
.services-section { background: var(--color-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--color-white);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--color-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  box-shadow: 0 8px 36px rgba(232,177,74,0.15);
  transform: translateY(-4px);
  border-color: rgba(232,177,74,0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card img {
  width: 90px; height: 90px;
  object-fit: contain;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-light);
  padding: 10px;
  transition: transform 0.3s;
}
.service-card:hover img { transform: scale(1.08); }

/* Íconos placeholder en service cards */
.service-icon-placeholder {
  transition: transform 0.3s;
}
.service-card:hover .service-icon-placeholder { transform: scale(1.08); }

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}
.btn-center {
  display: inline-block;
  margin: 40px auto 0;
}
.services-btn {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---- Features (Tú siempre eliges) ---- */
.features-section { background: #111111; }
.features-section .section-title { color: var(--color-white); }
.features-section .section-title span { color: var(--color-accent); }
.features-section .section-divider {
  background: linear-gradient(90deg, var(--color-accent), rgba(232,177,74,0.2));
}
.features-section .section-subtitle { color: rgba(255,255,255,0.55); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,177,74,0.3);
  transform: translateY(-4px);
}
.feature-card-icon {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 3.5rem;
  transition: var(--transition);
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--color-white); margin-bottom: 12px;
  text-align: center;
}
.feature-card p {
  color: rgba(255,255,255,0.60);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;

}
/* Variaciones por card */
.feature-card:nth-child(1) {
  border-top: 3px solid var(--color-accent);
}

.feature-card:nth-child(2) {
  border-top: 3px solid rgba(255,255,255,0.2);
}

.feature-card:nth-child(3) {
  border-top: 3px solid rgba(232,177,74,0.5);
}
.feature-card:nth-child(1) .feature-card-icon {
  background: linear-gradient(135deg, #1a3a6e, #2e7dc5);
  color: rgba(255,255,255,0.4);
}

.feature-card:nth-child(2) .feature-card-icon {
  background: linear-gradient(135deg, #0a1628, #1a3a6e);
  color: rgba(232,177,74,0.5);
}

.feature-card:nth-child(3) .feature-card-icon {
  background: linear-gradient(135deg, #1e4d8c, #0a1628);
  color: rgba(255,255,255,0.3);
}

/* ---- Garantía ---- */
.warranty-section { background: var(--color-light); }
.warranty-content {
  max-width: 800px; margin: 0 auto; text-align: center;
}
.warranty-content p {
  color: var(--color-text-light); font-size: 1rem; line-height: 1.8; margin-bottom: 16px;
}
.warranty-content .warranty-highlight {
  font-weight: 700; color: var(--color-primary);
}
.btn-download {
  display: inline-block;
  background: #111111;
  color: var(--color-white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.btn-download:hover {
  background: var(--color-accent);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,177,74,0.35);
}

/* ---- Marcas ---- */
.brands-section { background: var(--color-white); }
.brands-grid {
  display: flex; flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: center;
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 150px;

  background: var(--color-light);
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 10px 16px;

  transition: var(--transition);
  opacity: 0.9;
}
.brand-item:hover {
  filter: grayscale(0); opacity: 1;
  box-shadow: 0 4px 16px rgba(232,177,74,0.2);
  border-color: var(--color-accent);
  transform: scale(1.04);
}
.brand-item img {
  width: auto;
  height: 40px; 
  max-width: 100%;
  object-fit: contain;
}
.brand-text {
  font-weight: 700; font-size: 0.85rem;
  color: var(--color-primary); letter-spacing: 0.5px;
}

/* Slider de marcas */
.brands-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}

.brands-track {
  display: flex;
  gap: 40px;
  width: max-content;
}

.brand-item {
  min-width: 150px;
  flex-shrink: 0;
}

/* ---- Footer ---- */
footer {
  background: #111111;
  color: rgba(255,255,255,0.70);
  padding: 64px 40px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px; margin: 0 auto;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 6px; }
.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 18px; letter-spacing: 0.5px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--color-accent); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.9rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-social {
  display: flex; gap: 12px; margin-top: 20px;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.65);
  transition: var(--transition); font-size: 1rem;
}
.footer-social a:hover {
  background: var(--color-accent);
  color: #111111;
  transform: scale(1.1);
}
.footer-bottom {
  max-width: 1100px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.50); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--color-accent); }

/* ---- WhatsApp Flotante ---- */
.whatsapp-float {
  position: fixed; bottom: 38px; right: 38px;
  z-index: 999;
  background: #25d366;
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: waBounce 3s ease infinite 2s;
}
.whatsapp-float:hover { background: #1ebe5a; transform: scale(1.12); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes waBounce { 0%,90%,100%{transform:scale(1)} 95%{transform:scale(1.1)} }

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed; bottom: 28px; left: 28px;
  z-index: 999;
  background: #111111;
  color: var(--color-white);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer; border: none;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover {
  background: var(--color-accent);
  color: #111111;
  transform: translateY(-3px);
}

/* ---- Animations on Scroll ---- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  header { padding: 0 22px; }
  nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  header { padding: 0 16px; }
  section { padding: 60px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float { bottom: 18px; right: 18px; }
  .scroll-top { bottom: 18px; left: 18px; }
}