/* ============================================================
   SPYPHONE - HOJA DE ESTILOS PRINCIPAL
   ------------------------------------------------------------
   Organizada en secciones:
     1. Variables y reset base
     2. Layout / grid (compatibilidad Bootstrap-like)
     3. Header + NAV (compartido en todas las paginas)
     4. Botones y elementos comunes
     5. Secciones de contenido (part-one ... part-eight)
     6. Footer (compartido en todas las paginas)
     7. Boton flotante de WhatsApp
     8. Utilidades y marcas / logos
     9. Responsive
   NOTA: Los estilos originales del sitio viven en tu archivo
   ./archivos/style.css . Este CSS complementa y organiza lo que
   estaba embebido (inline y en <style>) dentro del HTML.
   ============================================================ */

/* =========================================================
   1. VARIABLES Y RESET BASE
   ========================================================= */
:root {
  --color-primary: #cc0f37;      /* rojo SpyPhone */
  --color-primary-dark: #af144c; /* rojo/vino degradado */
  --color-primary-alt: #da0c2d;
  --color-dark: #333333;
  --color-light: #ffffff;
  --color-grey: #e5e5e5;
  --color-text: #444444;
  --radius: 30px;
  --font-base: "SF UI Display", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-light);
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  color: var(--color-dark);
  line-height: 1.3;
}

/* =========================================================
   2. LAYOUT / GRID (compatibilidad con clases Bootstrap)
   ========================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > [class^="col"],
.row > [class*=" col"] {
  padding: 0 15px;
}

.col { flex: 1 0 0%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }

@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* =========================================================
   3. HEADER + NAV  (compartido en TODAS las paginas)
   ========================================================= */
.whiteHeader {
  background: var(--color-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 100;
}

.header__info {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 24px;
  background: #f7f7f7;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.header__info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-dark);
}

.header__info img { width: 16px; height: 16px; }

.navbar {
  display: flex;
  align-items: center;
  padding: 12px 24px;
}

.navbar .row {
  width: 100%;
  align-items: center;
  margin: 0;
}

#logo img { max-height: 46px; width: auto; }

.navbar-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.ml-auto { margin-left: auto; }

.nav-item .nav-link {
  display: block;
  padding: 10px 14px;
  color: var(--color-dark);
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-item .nav-link:hover,
.nav-item.current-menu-item .nav-link,
.nav-item.active .nav-link {
  color: var(--color-primary);
}

/* Boton hamburguesa (mobile) */
.navbar-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggler span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =========================================================
   4. BOTONES Y ELEMENTOS COMUNES
   ========================================================= */
.cst-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-alt));
  color: var(--color-light);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cst-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(204, 15, 55, 0.3);
  color: var(--color-light);
}

.cst-button.button-black {
  background: var(--color-dark);
}

.title-1 {
  position: relative;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.title-1 strong { color: var(--color-primary); }
.title-1 .t-shape { width: 28px; height: auto; }

/* =========================================================
   5. SECCIONES DE CONTENIDO
   ========================================================= */
.main { display: block; }

.main-slider {
  position: relative;
  padding: 40px 0 80px;
  background: linear-gradient(135deg, #fdf2f5 0%, #ffffff 60%);
  overflow: hidden;
}

.box-slider .row { align-items: center; }

.slider__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-dark);
}

.slider__title strong { color: var(--color-primary); }

.part { padding: 70px 0; position: relative; }
.part-two { background: #fafafa; }
.part-four { background: #fafafa; }

.forwho {
  text-align: center;
  padding: 20px;
}

.forwho img { width: 64px; height: 64px; margin-bottom: 12px; }
.forwho strong { display: block; font-size: 1.15rem; margin-bottom: 8px; color: var(--color-dark); }

/* Tabs de funciones */
.nav-link.list-2 {
  cursor: pointer;
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  transition: background 0.2s;
}

.nav-link.list-2:hover,
.nav-link.list-2.active { background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

.nav-link.list-2 .icon { position: relative; display: inline-block; margin-bottom: 8px; }
.nav-link.list-2 .icon .icon-bgr { position: absolute; inset: 0; margin: auto; width: 70px; height: auto; z-index: 0; }
.nav-link.list-2 .icon img { position: relative; width: 40px; height: 40px; z-index: 1; }
.nav-link.list-2 strong { display: block; font-size: 0.8rem; color: var(--color-dark); }

.tab-content .tab-pane { display: none; }
.tab-content .tab-pane.show.active { display: block; }

/* Pasos */
.step { text-align: center; padding: 16px; }
.step .block strong { display: block; font-size: 1.1rem; color: var(--color-primary); margin-bottom: 12px; }
.step .dot { width: 40px; margin: 0 auto 12px; }

/* App / características */
.single-app { display: flex; align-items: center; gap: 16px; padding: 14px 0; }
.single-app img { width: 48px; height: 48px; }
.single-app h3 { margin: 0; font-size: 1.05rem; }

/* Productos / precios */
.products { gap: 0; }
.product-single { padding: 15px; }
.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.product .onsale {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.woocommerce-loop-product__title { font-size: 1.2rem; margin: 10px 0 4px; }
.product .price { color: var(--color-primary); font-weight: 800; font-size: 1.15rem; }
.product .grey { color: #999; font-size: 0.9rem; }

/* =========================================================
   6. FOOTER (compartido en TODAS las paginas)
   ========================================================= */
footer.container-fluid {
  padding: 0;
  margin-top: 40px;
}

footer .row { margin: 0; }

.footer-white {
  background: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

#logo-footer img { max-width: 180px; }

.signature { color: #999; font-size: 0.85rem; }

.footer-black {
  background: var(--color-dark);
  color: #ddd;
  padding: 40px 32px;
  position: relative;
}

.footer-black a { color: #ddd; }
.footer-black a:hover { color: var(--color-light); }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.contact-line img { width: 16px; height: 16px; vertical-align: middle; }

.footer-black .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-black .primary .menu { font-weight: 600; }
.footer-black .footer .menu { font-size: 0.85rem; opacity: 0.85; }

.footer-black hr { border: 0; border-top: 1px solid rgba(255,255,255,0.15); margin: 20px 0; }

/* =========================================================
   7. BOTON FLOTANTE DE WHATSAPP
   ========================================================= */
#phone {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

#phone .phone-box {
  background: var(--color-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

#phone .phone-box a { color: #fff; display: block; line-height: 1.2; }
#phone .phone-box span { font-size: 0.75rem; opacity: 0.8; }
#phone .phone-box strong { font-size: 1rem; }
#phone .phone-icon svg { width: 56px; height: 56px; }

/* =========================================================
   8. UTILIDADES Y MARCAS / LOGOS
   ------------------------------------------------------------
   (Extraido del <style> embebido del HTML original)
   ========================================================= */
.brand-logo {
  filter: brightness(0) saturate(100%) invert(18%) sepia(87%) saturate(7441%) hue-rotate(338deg) brightness(92%) contrast(96%);
  transition: filter 0.3s ease;
}

.brand-logo:hover {
  filter: brightness(0) saturate(100%) invert(18%) sepia(87%) saturate(7441%) hue-rotate(338deg) brightness(92%) contrast(96%) drop-shadow(0 2px 4px rgba(204, 15, 55, 0.3));
}

.recentcomments a {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
}

.brand-item p { margin-top: 12px; font-weight: bold; color: var(--color-dark); font-size: 0.95rem; }
.brand-item img { width: 72px; height: 72px; object-fit: contain; }

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Elementos decorativos (formas/lineas) no deben tapar el contenido */
.wave-static, .waves, .fingerprint-1, .fingerprint-2, .fingerprint-3,
.fingerprint-3a, .fingerprint-5, .fingerprint-blur, .dots-3, .line,
.shape, .shape1, .shape2, .shape3, .shape4, .shape5, .shape6,
.plus1, .plus2, .slider-line-1, .slider-line-2 {
  pointer-events: none;
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .navbar-toggler { display: flex; order: -1; }

  .navbar-collapse {
    flex-basis: 100%;
    display: none;
  }

  .navbar-collapse.show { display: block; }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__info { justify-content: center; }

  .footer-white { text-align: center; align-items: center; }
}
