/*
Theme Name: Silentec
Theme URI: https://silentec.com.ar
Author: Coardel S.A.
Description: Tema a medida de Silentec (marca de reposicion de Coardel). Convertido desde el sitio estatico original, diseno identico.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: silentec
*/

    /* FONTS */
    @font-face { font-family:'Gotham'; src:url('assets/fonts/GothamBook.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
    @font-face { font-family:'Gotham'; src:url('assets/fonts/Gotham-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }

    /* RESET */
    *, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
    html { scroll-behavior:smooth; font-size:16px; }
    body { font-family:'Montserrat','Gotham',system-ui,sans-serif; color:#1a1a1a; background:#2a2a2a; line-height:1.65; overflow-x:hidden; }
    img { max-width:100%; display:block; }
    a { text-decoration:none; color:inherit; }
    ul { list-style:none; }

    /* VARIABLES */
    :root {
      --primary: #1834ff;
      --primary-dark: #1028d4;
      --dark: #0a0a0a;
      --text: #1a1a1a;
      --gray: #666;
      --border: #e5e5e5;
      --bg: #f7f7f7;
      --white: #fff;
    }

    /* CONTAINER */
    .container { width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

    /* BUTTONS */
    .btn { display:inline-flex; align-items:center; gap:8px; padding:14px 32px; border-radius:4px; font-family:'Montserrat',sans-serif; font-weight:700; font-size:0.9rem; letter-spacing:0.06em; text-transform:uppercase; cursor:pointer; transition:all 0.25s ease; border:2px solid transparent; }
    .btn-primary { background:var(--primary); color:var(--white); }
    .btn-primary:hover { background:var(--primary-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(24,52,255,0.35); }
    .btn-outline { background:transparent; border-color:var(--white); color:var(--white); }
    .btn-outline:hover { background:var(--white); color:var(--primary); }
    .btn-outline-blue { background:transparent; border-color:var(--primary); color:var(--primary); }
    .btn-outline-blue:hover { background:var(--primary); color:var(--white); }

    /* =================== HEADER =================== */
    .site-header {
      position:fixed; top:0; left:0; right:0; z-index:900;
      background:#1a1a1a;
      transition:background 0.35s ease, box-shadow 0.35s ease;
    }
    .site-header.scrolled {
      background:var(--white);
      box-shadow:0 2px 20px rgba(0,0,0,0.1);
    }
    .header-topbar {
      background:var(--dark); color:#aaa; font-size:0.8rem; padding:8px 0;
    }
    .site-header.scrolled .header-topbar { display:none; }
    .header-topbar .container { display:flex; justify-content:center; align-items:center; gap:24px; }
    .header-topbar a { color:#ccc; transition:color 0.2s; }
    .header-topbar a:hover { color:var(--white); }

    .navbar { padding:0; height:65px; }
    .nav-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; height:65px; }

    .logo { overflow:hidden; height:65px; display:flex; align-items:center; }
    .logo img { width:220px !important; height:auto !important; max-width:none !important; }
    .logo .logo-white { display:block; }
    .logo .logo-dark  { display:none; }
    .site-header.scrolled .logo .logo-white { display:none; }
    .site-header.scrolled .logo .logo-dark  { display:block; }

    .nav-menu { display:flex; gap:8px; align-items:center; }
    .nav-menu a {
      padding:8px 16px; font-weight:700; font-size:0.85rem; letter-spacing:0.05em;
      text-transform:uppercase; color:rgba(255,255,255,0.85);
      transition:color 0.2s; border-radius:3px;
    }
    .nav-menu a:hover, .nav-menu a.active { color:var(--white); }
    .site-header.scrolled .nav-menu a { color:var(--text); }
    .site-header.scrolled .nav-menu a:hover,
    .site-header.scrolled .nav-menu a.active { color:var(--primary); }

    .header-cta { display:flex; align-items:center; gap:16px; }
    .header-phone { display:flex; align-items:center; gap:8px; font-weight:700; font-size:0.85rem; color:var(--white); transition:color 0.2s; }
    .header-phone:hover { color:rgba(255,255,255,0.7); }
    .site-header.scrolled .header-phone { color:var(--primary); }

    /* Hamburger */
    .nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
    .nav-toggle span { display:block; width:24px; height:2px; background:var(--white); transition:all 0.3s; border-radius:2px; }
    .site-header.scrolled .nav-toggle span { background:var(--dark); }
    .nav-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity:0; }
    .nav-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

    /* =================== VIDEOS SCROLL (hero + why unificados) =================== */
    .videos-scroll-wrapper { position:relative; height:600vh; background:var(--white); }
    .videos-stage {
      position:sticky; top:0; width:100%; height:100vh; overflow:hidden;
    }

    /* videos apilados, el segundo empieza invisible */
    .stage-video {
      position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
    }
    #whyVideo { opacity:0; }

    .stage-overlay {
      position:absolute; inset:0; background:rgba(0,0,0,0.28); z-index:1;
    }

    /* contenidos: apilados, transición por opacity */
    .stage-content {
      position:absolute; inset:0; z-index:2;
      display:flex; align-items:center;
      transition:opacity 0.6s ease;
    }
    .stage-content.hidden { opacity:0; pointer-events:none; }

    /* --- panel 1: hero --- */
    .hero-content { color:var(--white); max-width:780px; }
    .hero-tag {
      display:inline-block; font-family:'Gotham',sans-serif; font-size:0.75rem;
      letter-spacing:0.18em; text-transform:uppercase; color:rgba(255,255,255,0.65);
      margin-bottom:20px; border-left:3px solid var(--primary); padding-left:12px;
    }
    .hero-content h1, .hero-content h2 {
      font-weight:900; font-size:clamp(2.8rem, 6vw, 5.5rem); line-height:1.05;
      margin-bottom:20px;
    }
    .hero-content h1 span, .hero-content h2 span { color:var(--primary); }
    .hero-sub {
      font-family:'Gotham',sans-serif; font-weight:400;
      font-size:clamp(1rem, 2vw, 1.25rem); color:rgba(255,255,255,0.8);
      margin-bottom:40px; max-width:560px;
    }
    .hero-btns { display:flex; gap:16px; flex-wrap:wrap; }

    /* --- panel 2: why --- */
    .why-grid { max-width:720px; }
    .why-content .section-label { color:rgba(255,255,255,0.6); border-color:var(--primary); }
    .why-content .section-title { color:var(--white); }
    .why-content .section-desc { color:rgba(255,255,255,0.7); margin-bottom:40px; }
    .why-features { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:40px; }
    .why-feature {
      padding:28px 24px; border-radius:6px;
      background:rgba(255,255,255,0.07);
      border-left:3px solid var(--primary);
      backdrop-filter:blur(6px);
      transition:background 0.25s;
    }
    .why-feature:hover { background:rgba(255,255,255,0.12); }
    .why-feature-num {
      font-size:2.5rem; font-weight:900; color:var(--primary); line-height:1;
      margin-bottom:8px;
    }
    .why-feature h4 { font-size:0.95rem; font-weight:700; margin-bottom:6px; color:var(--white); }
    .why-feature p { font-size:0.85rem; color:rgba(255,255,255,0.55); }

    /* =================== SECTION LABELS =================== */
    .section-label {
      display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.2em;
      text-transform:uppercase; color:var(--primary); margin-bottom:14px;
      border-left:3px solid var(--primary); padding-left:10px;
    }
    .section-title {
      font-weight:900; font-size:clamp(1.8rem, 3.5vw, 2.8rem); line-height:1.1;
      margin-bottom:16px;
    }
    .section-desc { color:var(--gray); font-size:1.05rem; max-width:580px; }

    /* =================== PRODUCTS =================== */
    .products { background:#2a2a2a; padding:0; }

    /* imagen ocupa todo, header flota encima con el gradiente */
    .products-visual {
      position:relative; width:100%; overflow:hidden;
    }
    .products-header {
      max-width:1200px; margin:0 auto; padding:80px 24px 40px;
      display:flex; justify-content:space-between; align-items:flex-end;
      flex-wrap:wrap; gap:24px;
    }
    .products-header .section-label { color:rgba(255,255,255,0.55); }
    .products-header .section-title { color:var(--white); }
    .products-img {
      display:block; width:100%; height:auto;
      filter:brightness(0.78) contrast(0.95) saturate(0.5) grayscale(0.3);
    }
    /* gradiente superior removido — header ahora va arriba, no flotando */
    /* gradiente inferior: funde hacia la siguiente sección */
    .products-visual::after {
      content:''; position:absolute; bottom:0; left:0; right:0;
      height:40%; z-index:1;
      background:linear-gradient(to top, var(--dark), transparent);
    }

    /* contenedor de labels */
    .products-labels {
      position:absolute; inset:0; z-index:2;
    }
    .plabel {
      position:absolute; transform:translateX(-50%);
      text-align:center; color:var(--white);
      display:flex; flex-direction:column; align-items:center;
      transition:transform 0.25s ease;
    }
    .plabel:hover { transform:translateX(-50%) translateY(-4px); }
    .plabel-name {
      font-size:1.1rem; font-weight:900; letter-spacing:0.16em;
      text-transform:uppercase; color:var(--white); margin-bottom:6px;
    }
    .plabel-desc {
      font-size:0.82rem; font-weight:400; color:rgba(255,255,255,0.55);
      line-height:1.55; max-width:160px; margin-bottom:10px;
      text-wrap:balance;
    }
    .plabel-link {
      font-size:0.72rem; font-weight:700; letter-spacing:0.1em;
      text-transform:uppercase; color:var(--primary);
      margin-bottom:10px; transition:color 0.2s, letter-spacing 0.2s;
    }
    .plabel-link:hover { color:#fff; letter-spacing:0.14em; }
    /* línea con dot al final */
    .plabel-line {
      width:1px; background:linear-gradient(to bottom, var(--primary), rgba(24,52,255,0.3));
      position:relative;
    }
    .plabel-line::after {
      content:''; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%);
      width:5px; height:5px; border-radius:50%;
      background:var(--primary);
    }

    /* =================== STATS =================== */
    .stats {
      padding:64px 0; background:#b6b7b9; color:var(--text);
      position:relative;
    }
    .stats-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
    .stat-item {
      position:relative; padding:8px 28px; text-align:center;
    }
    .stat-item:not(:last-child)::after {
      content:''; position:absolute; top:50%; right:-12px; transform:translateY(-50%);
      width:1px; height:64px; background:rgba(0,0,0,0.18);
    }
    .stat-num { font-size:clamp(2.6rem, 5vw, 4rem); font-weight:900; color:var(--primary); line-height:1; letter-spacing:-0.02em; }
    .stat-label { font-size:0.82rem; color:var(--white); margin-top:14px; font-family:'Gotham',sans-serif; letter-spacing:0.06em; text-transform:uppercase; }

    /* =================== MISSION =================== */
    .mission { padding:96px 0; background:var(--white); }
    .mission-banner { display:none; }
    .mission-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:stretch; }
    .mission-image { position:relative; border-radius:6px; overflow:hidden; }
    .mission-image img { width:100%; height:100%; min-height:520px; object-fit:cover; display:block; }
    .mission-tag-img {
      position:absolute; bottom:28px; right:28px;
      background:var(--primary); color:var(--white);
      padding:20px 28px; border-radius:6px; max-width:220px;
      box-shadow:0 8px 32px rgba(24,52,255,0.4);
    }
    .mission-tag-img p { font-size:0.85rem; font-weight:700; line-height:1.4; }
    .mission-content .section-desc { margin-bottom:32px; }
    .mission-points { display:flex; flex-direction:column; gap:20px; margin-bottom:40px; }
    .mission-point { display:flex; gap:16px; align-items:flex-start; }
    .mission-point-dot {
      width:10px; height:10px; border-radius:50%; background:var(--primary);
      margin-top:8px; flex-shrink:0;
    }
    .mission-point p { font-size:0.95rem; color:var(--gray); }
    .mission-point strong { color:var(--text); }

    /* =================== CALIDAD =================== */
    .calidad { padding:96px 0; background:#bcbdbf; }
    .calidad-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:stretch; }
    .calidad-content p { color:var(--white); font-size:0.98rem; line-height:1.75; margin-bottom:16px; }
    .calidad-content .section-title { color:var(--white); }
    .calidad-content p:last-of-type { margin-bottom:32px; }
    .calidad-list { display:flex; flex-direction:column; gap:12px; margin-bottom:36px; list-style:none; padding:0; }
    .calidad-list li { display:flex; gap:12px; font-size:0.92rem; align-items:flex-start; color:var(--white); }
    .calidad-list li::before { content:'✓'; color:var(--primary); font-weight:900; flex-shrink:0; margin-top:1px; }
    .calidad-image { border-radius:6px; overflow:hidden; }
    .calidad-image img { width:100%; height:100%; min-height:420px; object-fit:cover; object-position:30% center; display:block; }
    @media (max-width:1024px) { .calidad-grid { gap:40px; } }
    @media (max-width:768px) {
      .calidad-grid { grid-template-columns:1fr; }
      .calidad-image img { height:280px; }
    }

    /* =================== CTA FINAL =================== */
    .cta-banner {
      padding:80px 0; background:var(--primary);
      background-image:linear-gradient(135deg, var(--primary) 0%, #0f20aa 100%);
    }
    .cta-inner { display:flex; justify-content:space-between; align-items:center; gap:40px; flex-wrap:wrap; }
    .cta-text h2 { font-size:clamp(1.6rem, 3vw, 2.4rem); color:var(--white); font-weight:900; margin-bottom:10px; }
    .cta-text p { color:rgba(255,255,255,0.78); font-size:1.05rem; }
    .cta-btns { display:flex; gap:16px; flex-shrink:0; flex-wrap:wrap; }

    /* =================== FOOTER =================== */
    .site-footer { background:var(--dark); color:#aaa; }
    .footer-top { padding:64px 0 48px; border-bottom:1px solid rgba(255,255,255,0.08); }
    .footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:48px; }
    .footer-brand img { height:26px; margin-bottom:20px; }
    .footer-brand p { font-size:0.88rem; line-height:1.7; color:#888; margin-bottom:24px; }
    .footer-brand .social-links { display:flex; gap:12px; }
    .footer-brand .social-links a { width:36px; height:36px; border-radius:50%; border:1px solid #333; display:flex; align-items:center; justify-content:center; color:#888; transition:all 0.2s; font-size:0.85rem; }
    .footer-brand .social-links a:hover { border-color:var(--primary); color:var(--white); background:var(--primary); }

    .footer-col h5 { color:var(--white); font-size:0.85rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:20px; }
    .footer-col ul li { margin-bottom:10px; }
    .footer-col ul li a { font-size:0.88rem; color:#888; transition:color 0.2s; }
    .footer-col ul li a:hover { color:var(--white); }

    .footer-contact-list { display:flex; flex-direction:column; gap:14px; }
    .footer-contact-item { display:flex; gap:10px; align-items:flex-start; font-size:0.88rem; }
    .footer-contact-item svg { width:16px; height:16px; stroke:#555; fill:none; stroke-width:2; flex-shrink:0; margin-top:3px; }
    .footer-contact-item span { color:#888; line-height:1.5; }
    .footer-contact-item a { color:#888; transition:color 0.2s; }
    .footer-contact-item a:hover { color:var(--white); }

    .footer-bottom { padding:20px 0; }
    .footer-bottom .container { display:flex; justify-content:space-between; align-items:center; font-size:0.8rem; color:#555; flex-wrap:wrap; gap:8px; }
    .footer-bottom a { color:#555; transition:color 0.2s; }
    .footer-bottom a:hover { color:#888; }

    /* =================== SCROLL TO TOP =================== */
    #scrollTop {
      position:fixed; bottom:32px; right:32px; width:44px; height:44px;
      background:var(--primary); color:var(--white); border:none; border-radius:50%;
      cursor:pointer; display:flex; align-items:center; justify-content:center;
      opacity:0; transform:translateY(12px); transition:all 0.3s; z-index:800;
      box-shadow:0 4px 16px rgba(24,52,255,0.4);
    }
    #scrollTop.visible { opacity:1; transform:translateY(0); }
    #scrollTop:hover { background:var(--primary-dark); }
    #scrollTop svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:2.5; }

    /* =================== RESPONSIVE =================== */
    @media (max-width: 1024px) {
      .why-grid { gap:40px; }
      .products-grid { grid-template-columns:repeat(2, 1fr); }
      .products-labels { display:none; }
      .products-header { flex-direction:column; align-items:flex-start; }
      .stats-grid { grid-template-columns:repeat(2, 1fr); gap:40px 24px; }
      .stat-item:nth-child(2)::after { display:none; }
      .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
    }
    @media (max-width: 768px) {
      .why-grid { grid-template-columns:1fr; }
      .why-image { display:none; }
      .why-features { grid-template-columns:1fr 1fr; }
      .mission-grid { grid-template-columns:1fr; }
      .mission-tag-img { display:none; }
      .mission-image img { height:300px; }
      .products-grid { grid-template-columns:1fr 1fr; }
      .cta-inner { flex-direction:column; text-align:center; }
      .footer-grid { grid-template-columns:1fr; gap:32px; }
      .nav-menu { display:none; flex-direction:column; gap:0; position:absolute; top:100%; left:0; right:0; background:var(--white); padding:16px 24px; box-shadow:0 8px 24px rgba(0,0,0,0.1); }
      .nav-menu.open { display:flex; }
      .nav-menu a { color:var(--text) !important; padding:12px 0; border-bottom:1px solid var(--border); width:100%; }
      .nav-toggle { display:flex; }
      .header-phone { display:none; }
    }
    @media (max-width: 480px) {
      .products-grid { grid-template-columns:1fr; }
      .stats-grid { grid-template-columns:1fr 1fr; }
      .stat-item::after { display:none; }
      .why-features { grid-template-columns:1fr; }
      .hero-btns { flex-direction:column; }
      .hero-btns .btn { width:100%; justify-content:center; }
    }

    /* ===== MÓVIL: un solo hero, video en bucle y texto que rota (cross-fade) ===== */
    @media (max-width: 768px) {
      html, body { overflow-x: hidden; }
      .videos-scroll-wrapper { height: 100vh; min-height: 540px; }
      .videos-stage { position: relative; height: 100vh; min-height: 540px; background: #000; }
      .stage-video { position: absolute; inset: 0; height: 100%; transition: opacity .6s ease; }
      #whyVideo { display: block; }
      .stage-overlay { opacity: 1; }
      .stage-content { position: absolute; inset: 0; }
      .hero-content { padding: 40px 0; }
      .hero-content h1, .hero-content h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    }
  