/* MIXED CSS PACK */
/* Template: rojasseguridadelectronica.com.ar/index.html */
/* Template mtime: 2025-09-22 16:47:01 */

/* external link (no embedded): https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css */
/* external link (no embedded): https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css */
/* external link (no embedded): https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap */
/* external link (no embedded): https://unpkg.com/aos@2.3.1/dist/aos.css */

/* ===== INLINE <style> BLOCK #1 ===== */
:root{
      --azul: #0f5bb5;
      --azul-2: #1b74e4;
      --azul-osc: #0b3f84;
      --azul-gradiente: linear-gradient(135deg, var(--azul) 0%, var(--azul-osc) 100%);
      --bg: #f5f7fb;
      --text: #0f172a;
      --muted: #64748b;
      --card: #ffffff;
      --shadow: 0 8px 24px rgba(15,91,181,.12);
      --shadow-hover: 0 12px 32px rgba(15,91,181,.18);
      --radius: 16px;
      --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    html{
      scroll-behavior:smooth;
      font-size: 16px;
    }
    
    body{
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      color:var(--text); 
      background:var(--bg);
      line-height: 1.6;
      overflow-x: hidden;
    }

    h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
      line-height: 1.2;
    }

    /* Navbar */
    .navbar{
      box-shadow: 0 2px 18px rgba(0,0,0,.06); 
      background:rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      transition: var(--transition);
      padding: 1rem 0;
    }
    
    .navbar.scrolled {
      padding: 0.5rem 0;
      box-shadow: 0 4px 20px rgba(0,0,0,.08);
    }
    
    .navbar-brand {
      font-weight: 800;
      font-size: 1.5rem;
      display: flex;
      align-items: center;
    }
    
    .navbar-brand span {
      background: var(--azul-gradiente);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .navbar .nav-link{
      font-weight:600;
      position: relative;
      margin: 0 0.25rem;
      transition: var(--transition);
    }
    
    .navbar .nav-link::after {
      content: '';
      position: absolute;
      width: 0;
      height: 2px;
      bottom: 0;
      left: 0;
      background: var(--azul-gradiente);
      transition: var(--transition);
    }
    
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
      width: 100%;
    }
    
    .btn-whats{
      background:#25d366;
      color:#fff;
      border:none;
      border-radius: 50px;
      padding: 0.5rem 1.25rem;
      font-weight: 600;
      transition: var(--transition);
      box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    
    .btn-whats:hover{
      background:#1fb457;
      color:#fff;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    }

    /* Hero */
    .hero{
      background: radial-gradient(1200px 600px at 80% -10%, rgba(27,116,228,.15), transparent 60%),
                  linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
      padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px);
      position: relative;
      overflow: hidden;
    }
    
    .hero::before {
      content: '';
      position: absolute;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: rgba(27, 116, 228, 0.05);
      top: 10%;
      right: 10%;
      filter: blur(60px);
      z-index: 0;
    }
    
    .hero h1{
      font-weight:800; 
      letter-spacing:-.3px;
      font-size: clamp(2.5rem, 5vw, 4rem);
      margin-bottom: 1.5rem;
    }
    
    .hero .lead{
      color:var(--muted); 
      font-size: clamp(1rem, 2vw, 1.25rem);
      margin-bottom: 2rem;
    }
    
    .badge-pill{
      background:rgba(27,116,228,.12);
      color:var(--azul-2);
      border-radius:50px;
      padding:10px 16px;
      font-weight:700;
      font-size:.85rem;
      display: inline-flex;
      align-items: center;
      margin-bottom: 1.5rem;
    }
    
    .hero-figure{
      border-radius: 20px;
      overflow:hidden;
      box-shadow:var(--shadow);
      background:#0a0f1a;
      aspect-ratio: 4/3;
      display:flex; 
      align-items:center; 
      justify-content:center;
      position: relative;
      transition: var(--transition);
    }
    
    .hero-figure:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }
    
    .hero-figure img{
      width:100%; 
      height:100%; 
      object-fit:cover;
    }

    /* Secciones */
    .section{
      padding: clamp(80px, 10vw, 120px) 0;
      position: relative;
    }
    
    .section-title{
      font-weight:800; 
      letter-spacing:-.2px;
      font-size: clamp(2rem, 4vw, 3rem);
      margin-bottom: 1rem;
    }
    
    .subtle{
      color:var(--muted);
      font-size: 1.1rem;
    }

    .feature{
      background:var(--card);
      border-radius:var(--radius);
      padding:24px;
      box-shadow:var(--shadow);
      height:100%;
      transition: var(--transition);
      border: 1px solid rgba(255, 255, 255, 0.8);
    }
    
    .feature:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }
    
    .feature i{
      font-size:2rem; 
      color:var(--azul);
      margin-bottom: 1rem;
    }

    /* Cards de servicio */
    .service-card{
      background:var(--card);
      border-radius:var(--radius);
      box-shadow:var(--shadow);
      padding:30px;
      height:100%;
      border:1px solid #e8eef9;
      transition: var(--transition);
      position: relative;
      overflow: hidden;
    }
    
    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: var(--azul-gradiente);
      transform: scaleX(0);
      transform-origin: left;
      transition: var(--transition);
    }
    
    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-hover);
    }
    
    .service-card:hover::before {
      transform: scaleX(1);
    }
    
    .service-card h3{
      font-size:1.25rem; 
      font-weight:800;
      margin-bottom: 1rem;
    }
    
    .pill{
      display:inline-block; 
      padding:8px 14px; 
      background:#eef5ff; 
      color:#195fbe; 
      border-radius:50px; 
      font-size:.85rem; 
      font-weight:700;
      margin-bottom: 1rem;
    }

    /* Por qué elegirnos (lista con check) */
    .check{
      display:flex; 
      gap:16px; 
      align-items:flex-start; 
      margin-bottom:20px;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.7);
      border-radius: var(--radius);
      transition: var(--transition);
    }
    
    .check:hover {
      background: white;
      box-shadow: var(--shadow);
    }
    
    .check i{
      color:#10b981; 
      margin-top:3px;
      font-size: 1.25rem;
    }

    /* Ticker / Carrusel de trabajos */
    .ticker-wrap{
      position:relative;
    }
    
    .ticker-viewport{
      overflow:hidden;
      border-radius:var(--radius);
      background:var(--card);
      box-shadow:var(--shadow);
    }
    
    .ticker-track{
      display:flex;
      gap:16px;
      padding:16px;
      scroll-behavior:smooth;
      scroll-snap-type: x mandatory;
      overflow-x:auto;
      -webkit-overflow-scrolling: touch;
    }
    
    .slide{
      flex: 0 0 auto;
      width: 500px;
      height: 500px;
      max-width: 82vw;
      max-height: 82vw;
      border-radius:12px;
      overflow:hidden;
      scroll-snap-align:center;
      background:#0a0f1a;
      position:relative;
      transition: var(--transition);
    }
    
    .slide:hover {
      transform: scale(1.02);
    }
    
    .slide img{
      width:100%; 
      height:100%; 
      object-fit:cover;
      transition: var(--transition);
    }
    
    .slide:hover img {
      transform: scale(1.05);
    }
    
    .ticker-controls{
      display:flex; 
      gap:12px; 
      align-items:center; 
      justify-content:center;
      margin-top:24px;
    }
    
    .ticker-btn{
      width:50px; 
      height:50px; 
      border-radius:50%; 
      border:1px solid #e5ecfb; 
      background:#fff;
      display:inline-flex; 
      align-items:center; 
      justify-content:center;
      box-shadow:var(--shadow);
      transition: var(--transition);
    }
    
    .ticker-btn:hover{
      background:var(--azul);
      color: white;
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

    /* FAQs */
    .faq-item{
      background:var(--card);
      border-radius:var(--radius);
      padding:24px;
      box-shadow:var(--shadow);
      border:1px solid #e8eef9;
      margin-bottom: 1rem;
      transition: var(--transition);
      cursor: pointer;
    }
    
    .faq-item:hover {
      box-shadow: var(--shadow-hover);
    }
    
    .faq-item.active {
      border-left: 4px solid var(--azul);
    }
    
    .faq-item .q{
      font-weight:800;
      margin-bottom: 0.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .faq-item .q i {
      transition: var(--transition);
    }
    
    .faq-item.active .q i {
      transform: rotate(180deg);
    }
    
    .faq-item .a{
      color:var(--muted);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    
    .faq-item.active .a {
      max-height: 200px;
    }

    /* Contacto */
    .contact-card{
      background:var(--card); 
      border-radius:var(--radius); 
      box-shadow:var(--shadow); 
      padding:30px; 
      border:1px solid #e8eef9;
      height: 100%;
      transition: var(--transition);
    }
    
    .contact-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-hover);
    }
    
    .btn-brand{
      background: var(--azul-gradiente);
      color:#fff; 
      border:none; 
      font-weight:700;
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      transition: var(--transition);
      box-shadow: 0 4px 12px rgba(15, 91, 181, 0.3);
    }
    
    .btn-brand:hover{
      color:#fff;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(15, 91, 181, 0.4);
    }
    
    .btn-outline-brand {
      border: 2px solid var(--azul);
      color: var(--azul);
      font-weight: 600;
      padding: 0.75rem 1.5rem;
      border-radius: 50px;
      transition: var(--transition);
    }
    
    .btn-outline-brand:hover {
      background: var(--azul);
      color: white;
      transform: translateY(-2px);
    }

    /* Footer */
    footer{
      background:#0b1930; 
      color:#dbe6ff;
      padding: 4rem 0 2rem;
    }
    
    footer a{
      color:#ffffff; 
      text-decoration:none;
      transition: var(--transition);
    }
    
    footer a:hover{
      color: #a8c6ff;
      text-decoration:underline;
    }
    
    .footer-logo {
      font-size: 1.75rem;
      font-weight: 800;
      margin-bottom: 1rem;
    }

    /* Utilities */
    .text-brand{
      background: var(--azul-gradiente);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .shadow-soft{
      box-shadow:var(--shadow);
    }
    
    .bg-gradient {
      background: var(--azul-gradiente);
    }
    
    .floating {
      animation: floating 3s ease-in-out infinite;
    }
    
    @keyframes floating {
      0% { transform: translate(0, 0px); }
      50% { transform: translate(0, -10px); }
      100% { transform: translate(0, 0px); }
    }

    /* En mobile: texto primero, imagen debajo en el hero */
    @media (min-width: 992px){
      .hero-col-text{order:1}
      .hero-col-img{order:2}
    }
    
    @media (max-width: 991.98px){
      .hero-col-text{order:1}
      .hero-col-img{order:2}
      .hero {
        text-align: center;
      }
      .badge-pill {
        justify-content: center;
      }
    }
    
    /* Scroll personalizado */
    ::-webkit-scrollbar {
      width: 8px;
    }
    
    ::-webkit-scrollbar-track {
      background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
      background: var(--azul);
      border-radius: 10px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
      background: var(--azul-osc);
    }

/* ===== INLINE <style> BLOCK #2 ===== */
/* === Fixes mobile overflow & hamburger visibility === */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
.navbar, .navbar * { max-width:100%; }
.navbar .navbar-toggler { margin-left:auto; }
.navbar-brand { 
  max-width: calc(100% - 56px); /* leave space for toggler */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
img, video, iframe { max-width:100%; height:auto; }
.row { margin-right: 0; margin-left: 0; } /* avoid accidental overflow on custom grids */
.container, .container-fluid { padding-right: 12px; padding-left: 12px; }
[class*="col-"] { padding-right: 12px; padding-left: 12px; }

/* Common culprits */
.ticker-wrap, .ticker-viewport, .ticker-track,
.carousel, .carousel-inner, .carousel-item,
.swiper, .swiper-wrapper, .swiper-slide {
  max-width:100vw; overflow:hidden;
}

/* Avoid fixed widths causing scroll on small screens */
*[style*="width:"]:not(canvas):not(svg) {
  /* If author set huge widths inline, let it shrink on mobile */
  max-width:100%;
}

/* Make offcanvas menus and dropdowns not push layout */
.offcanvas, .dropdown-menu { max-width:100vw; }

/* Prevent long links/text from overflowing */
a, p, h1, h2, h3, h4, h5, h6, span { word-break: break-word; }

/* ===== INLINE <style> BLOCK #3 ===== */
/* --- HERO: modo 'contain' para logos/imagenes con mucho texto --- */
.hero-figure.contain {
  background:#fff;                 /* fondo limpio para logos */
  aspect-ratio:auto;               /* liberamos la relación fija */
  min-height: clamp(220px, 32vw, 420px);
}

.hero-figure.contain img{
  width:100%;
  height:100%;
  object-fit: contain !important;  /* que entre completa */
  padding: clamp(12px,2.5vw,28px); /* margen respirable alrededor */
}

/* En general, subimos el límite de alto del hero para que no aplaste el contenedor */
@media (min-width: 992px){
  .hero-col-img .hero-figure{ max-height: 520px; }
}

/* Mobile: texto primero, sin animación y alto controlado */
@media (max-width: 991.98px){
  .floating{ animation: none !important; }          /* sacamos vaivén en phone */
  .hero-figure{ max-height: 360px; margin-top: 8px;}/* evita que tape la navbar */
  .hero-figure.contain img{ padding: 16px; }
}

/* Accesibilidad: si el usuario prefiere menos movimiento, apagamos animación */
@media (prefers-reduced-motion: reduce){
  .floating{ animation: none !important; }
}

/* ===== INLINE <style> BLOCK #4 ===== */
/* Limitar tamaño y centrar la imagen de "Quiénes somos" */
    .about-figure{
      width: clamp(280px, 85%, 560px);   /* evita que quede demasiado ancha */
      margin-inline: auto;               /* centrado simétrico */
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      background:#0a0f1a;
      aspect-ratio: 16/9;                /* proporción agradable */
    }
    .about-figure img{
      width: 100%;
      height: 100%;
      object-fit: cover;                  /* cambiá a contain si es logo */
      image-rendering: auto;
    }
    @media (min-width: 1200px){
      .about-figure{ width: min(520px, 80%); }
    }
    @media (max-width: 991.98px){
      .about-figure{
        width: 92%;
        aspect-ratio: 3/2;
      }
    }
    /* Si usás un logo con texto, podés sumar la clase "contain" al figure */
    .about-figure.contain img{ object-fit: contain; background:#fff; padding:14px; }

/* ===== INLINE <style> BLOCK #5 ===== */
/* Miniaturas: ver según contenido (sin recorte) */
    #trabajos .slide{
      flex: 0 0 auto;
      width: 500px; height: 500px;
      max-width: 82vw; max-height: 82vw;
      border-radius:12px; overflow:hidden;
      background:#000; display:flex; align-items:center; justify-content:center;
      cursor: zoom-in; transition: transform .25s ease;
    }
    #trabajos .slide:hover{ transform: scale(1.02); }
    #trabajos .slide img{
      width:100%; height:100%;
      object-fit: contain;          /* <<< sin recorte, respeta contenido */
      background:#000;
    }
  
    /* Modal de imagen */
    .img-modal{
      position: fixed; inset: 0; display: none;
      align-items: center; justify-content: center;
      background: rgba(0,0,0,.85);
      z-index: 1080;
    }
    .img-modal.is-open{ display: flex; }
    .img-modal__viewport{
      width: min(92vw, 1400px); height: min(92vh, 90vh);
      display:flex; align-items:center; justify-content:center;
      border-radius:12px; overflow:hidden; background:#000;
      box-shadow: 0 20px 50px rgba(0,0,0,.5);
    }
    .img-modal__viewport img{ max-width:100%; max-height:100%; object-fit: contain; }
  
    .img-modal__close, .img-modal__nav{
      position:absolute; border:none; outline:none;
      background: rgba(255,255,255,.12); color:#fff;
      width:44px; height:44px; border-radius:999px;
      display:flex; align-items:center; justify-content:center;
      backdrop-filter: blur(6px); transition: background .2s, transform .2s;
    }
    .img-modal__close{ top:18px; right:18px; z-index:2; }
    .img-modal__prev{ left:16px; }
    .img-modal__next{ right:16px; }
    .img-modal__nav:hover, .img-modal__close:hover{ background: rgba(255,255,255,.22); transform: translateY(-1px); }
  
    @media (max-width: 575.98px){
      .img-modal__nav{ width:40px; height:40px; }
    }

/* ===== INLINE <style> BLOCK #6 ===== */
.wa-float{
    position: fixed;
    right: 18px; bottom: 18px;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25D366; color: #fff; text-decoration: none;
    box-shadow: 0 12px 30px rgba(37,211,102,.45), 0 4px 12px rgba(0,0,0,.15);
    z-index: 1100;
    transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
    overflow: visible;
  }
  .wa-float:hover{
    transform: translateY(-2px);
    background: #1fb457;
    box-shadow: 0 16px 36px rgba(37,211,102,.55), 0 6px 16px rgba(0,0,0,.18);
  }
  .wa-float:active{ transform: translateY(0); }

  .wa-float i{
    font-size: 1.7rem;
    line-height: 1;
  }

  /* Badge (texto) que aparece al pasar el mouse en desktop */
  .wa-badge{
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: #0b1930; color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    opacity: 0; transform: translateX(10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .wa-float:hover .wa-badge{
    opacity: 1; transform: translateX(0);
  }

  /* Pulso */
  .wa-pulse{
    position: absolute; inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37,211,102,.45);
    animation: waPulse 2s infinite;
  }
  @keyframes waPulse{
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
    70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
  }

  /* Evitar que tape el contenido muy cerca del borde en pantallas chicas */
  @media (max-width: 575.98px){
    .wa-float{ right: 14px; bottom: 14px; width: 54px; height: 54px; }
    .wa-float i{ font-size: 1.6rem; }
    .wa-badge{ display: none; } /* en móvil no mostramos el badge */
  }

  /* Respeta Preferencias de movimiento reducido */
  @media (prefers-reduced-motion: reduce){
    .wa-float, .wa-badge{ transition: none; }
    .wa-pulse{ animation: none; }
  }

