:root {
      --azul-principal: #003B70;
      --azul-oscuro: #002548;
      --amarillo-marca: #FFC72C;
      --amarillo-hover: #e5b020;
      --blanco: #ffffff;
      --gris-fondo: #f4f6f9;
      --texto-oscuro: #1c252e;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; }
    body { background-color: var(--gris-fondo); color: var(--texto-oscuro); }

    /* Barra Superior de Contacto */
    .top-bar {
      background-color: var(--azul-oscuro);
      color: var(--blanco);
      padding: 8px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
    }
    .top-bar a { color: var(--amarillo-marca); text-decoration: none; font-weight: bold; }

    /* Navegación */
    nav {
      background-color: var(--azul-principal);
      padding: 12px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .logo-container { display: flex; align-items: center; gap: 12px; }
    .logo-container img { height: 50px; border-radius: 50%; border: 2px solid var(--amarillo-marca); }
    .brand-title { color: var(--blanco); font-size: 1.4rem; font-weight: 900; }
    .brand-title span { color: var(--amarillo-marca); }

    /* Redes y Llamar */
    .nav-actions { display: flex; align-items: center; gap: 12px; }
    .btn-call {
      background-color: var(--amarillo-marca);
      color: var(--azul-oscuro);
      padding: 10px 18px;
      border-radius: 6px;
      font-weight: bold;
      text-decoration: none;
      transition: 0.3s;
    }
    .btn-call:hover { background-color: var(--amarillo-hover); }

    .social-icon {
      width: 32px; height: 32px;
      display: inline-flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.1); border-radius: 50%; color: white; text-decoration: none;
    }

    /* Video Header / Hero */
    .hero-video-container {
      position: relative;
      width: 100%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }
    .hero-overlay {
      position: absolute; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0, 37, 72, 0.75);
      z-index: 2;
    }
    .hero-content {
      position: relative; z-index: 3; max-width: 800px; padding: 20px;
    }

    /* ================= CONTENEDOR DE CONTENIDO DETALLADO DEL SERVICIO ================= */
    .service-content-container {
      max-width: 900px;
      margin: 40px auto;
      padding: 50px 40px;
      background-color: #ffffff;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 37, 72, 0.08);
      border-top: 6px solid #FFC72C;
    }

    .service-content-container h1 {
      color: #002548;
      font-size: 2.1rem;
      font-weight: 800;
      margin-bottom: 20px;
      line-height: 1.25;
    }

    .service-content-container h2 {
      color: #002548;
      font-size: 1.5rem;
      font-weight: 700;
      margin-top: 35px;
      margin-bottom: 15px;
      border-left: 4px solid #FFC72C;
      padding-left: 12px;
    }

    .service-content-container h3 {
      color: #002548;
      font-size: 1.2rem;
      font-weight: 700;
      margin-top: 25px;
      margin-bottom: 10px;
    }

    .service-content-container p {
      font-size: 1.02rem;
      color: #475569;
      margin-bottom: 20px;
      line-height: 1.7;
    }

    .service-content-container a {
      color:  white;
      font-weight: 600;
      text-decoration: underline;
    }

    .service-content-container a:hover {
      color: white;
    }

    /* Botón de Retorno a Cotización */
    .back-to-quote-container {
      text-align: center;
      margin-top: 10px;
      padding-top: 20px;
      border-top: 1px solid #e2e8f0;
    }

    .btn-back-quote {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: #003B70;
      color: #ffffff;
      text-decoration: none;
      padding: 14px 30px;
      border-radius: 8px;
      font-weight: 800;
      font-size: 1rem;
      box-shadow: 0 4px 15px rgba(0, 59, 112, 0.25);
      transition: background 0.3s, transform 0.2s;
    }

    .btn-back-quote:hover {
      background: #002548;
      color: #FFC72C;
      transform: translateY(-2px);
    }

    /* ================= ESTILOS FAQ / PREGUNTAS FRECUENTES ================= */
    .faq-container {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .faq-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

    .faq-item[open] {
      background: #ffffff;
      border-color: #003B70;
      box-shadow: 0 4px 15px rgba(0, 37, 72, 0.08);
    }

    .faq-question {
      padding: 18px 22px;
      font-size: 1.05rem;
      font-weight: 700;
      color: #002548;
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background 0.2s;
    }

    .faq-question::-webkit-details-marker { display: none; }
    .faq-question:hover { background: #edf2f7; color: #003B70; }
    .faq-icon { font-size: 1rem; opacity: 0.6; transition: transform 0.3s ease; }
    .faq-item[open] .faq-icon { transform: rotate(45deg); opacity: 1; }
    .faq-answer {
      padding: 0 22px 20px 22px;
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.6;
      border-top: 1px solid #f1f5f9;
      margin-top: 5px;
      padding-top: 15px;
    }

    /* ================= SECCIÓN COTIZACIÓN RÁPIDA ================= */
    .cotizar-card {
      background: #ffffff;
      padding: 25px 25px;
      border-radius: 14px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      text-align: left;
      max-width: 580px;
      margin: 0 auto;
    }
    .form-group { margin-bottom: 14px; }
    .form-group label {
      display: block; color: #002548; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.6px; margin-bottom: 5px;
    }
    .form-control {
      width: 100%; padding: 9px 12px; border: 1.5px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem; color: #1e293b; background-color: #f8fafc;
    }
    .form-control:focus { outline: none; border-color: #003B70; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(0, 59, 112, 0.15); }
    .form-group-checkbox {
      display: flex; align-items: center; gap: 8px; margin-bottom: 18px; background: #f1f5f9; padding: 9px 12px; border-radius: 6px; cursor: pointer;
    }
    .form-group-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: #002548; cursor: pointer; }
    .form-group-checkbox label { color: #002548; font-weight: 700; font-size: 0.85rem; cursor: pointer; margin: 0; }
    
    .btn-cotizar-submit {
      width: auto; min-width: 200px; margin: 0 auto; background: #066629; color: #ffffff; border: none; padding: 11px 22px; border-radius: 6px; font-size: 0.95rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25); transition: background 0.3s, transform 0.2s;
    }
    .btn-cotizar-submit:hover { background: #256b40; transform: translateY(-2px); }

    /* ================= WIDGETS FLOTANTES ================= */

        .floating-widget-stack {
      position: fixed;
      bottom: 25px;
      right: 25px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: flex-end;
    }

    .floating-btn-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    /* Botón Circular General */
    .floating-circle-btn {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-decoration: none;
    }

    .floating-circle-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    /* Estilo Botón Chatbot (Azul corporativo) */
    .btn-chatbot {
      background-color: #002548;
      color: #ffffff;
      border: 2px solid #FFC72C;
    }

    /* Estilo Botón WhatsApp (Verde Oficial) */
    .btn-whatsapp {
      background-color: #066629;
    }

    /* Tooltip / Cartel Emergente al pasar el mouse */
    .floating-tooltip {
      position: absolute;
      right: 70px;
      background: #002548;
      color: #ffffff;
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      white-space: nowrap;
      opacity: 0;
      visibility: hidden;
      transform: translateX(10px);
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      pointer-events: none;
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Mostrar Tooltip al hacer Hover */
    .floating-btn-wrapper:hover .floating-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }

    .chat-box {
      position: fixed;
      bottom: 95px;
      right: 25px;
      width: 360px;
      max-width: 90vw;
      height: 480px;
      background: #efeae2;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      overflow: hidden;
      z-index: 10000;
      display: none;
      flex-direction: column;
      border: 2px solid #002548;
    }

    .chat-header {
      background-color: #c7c7c7;
      color: #ffffff;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .chat-header-title { font-size: 1.05rem; font-weight: 700; color: #002548; }

    .chat-header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .online-tag {
      background-color: #066629;
      color: white;
      font-size: 0.75rem;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 12px;
      margin-right: 8px;
    }

    .btn-minimize {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 28px;
      height: 28px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 1.1rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-minimize:hover {
      background: rgba(255, 255, 255, 0.4);
    }

    .chat-body {
      flex: 1;
      padding: 14px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background-color: #efeae2;
    }

    .chat-msg-bot {
      background: #ffffff !important;
      color: #111b21 !important;
      padding: 10px 14px;
      border-radius: 0px 12px 12px 12px;
      max-width: 85%;
      align-self: flex-start;
      font-size: 0.88rem;
      line-height: 1.4;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .chat-msg-user {
      background: #d9fdd3 !important;
      color: #111b21 !important;
      padding: 10px 14px;
      border-radius: 12px 0px 12px 12px;
      max-width: 85%;
      align-self: flex-end;
      font-size: 0.88rem;
      line-height: 1.4;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    /* Opciones Píldoras */
    .chat-option-container {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 6px;
      align-items: flex-start;
    }

    .chat-option-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
      margin-top: 6px;
    }

    .chat-option-btn {
      background: #ffffff;
      color: #002548;
      border: 1.5px solid #002548;
      padding: 7px 14px;
      border-radius: 20px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

    .chat-option-btn:hover {
      background: #d9fdd3 !important;
      color: #002548 !important;
      border-color: #002548 !important;
      transform: translateX(4px);
    }

    .chat-input-area {
      background: #f0f2f5;
      padding: 10px;
      display: flex;
      gap: 8px;
      align-items: center;
      border-top: 1px solid #e0e0e0;
    }

    .chat-input-area input {
      flex: 1;
      padding: 8px 14px;
      border: 1px solid #cccccc;
      border-radius: 20px;
      outline: none;
      font-size: 0.88rem;
      background: #ffffff;
    }

    .chat-input-area button {
      background: #066629 !important;
      color: white !important;
      border: none;
      width: 38px;
      height: 38px;
      min-width: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    }
    
        /* ================= RESPONSIVE PARA CELULARES ================= */
    @media screen and (max-width: 900px) {
      /* Hacemos que el contenedor de la nav permita acomodar elementos en columna */
      nav {
        flex-direction: column;
        padding: 10px 15px;
        gap: 10px;
      }
      /* Fila superior: Logo a la izquierda */
      .logo-container {
        align-self: flex-start;
      }
      
      /* MODIFICACIÓN: Ya no usamos position absolute para que no tape el logo, y ocultamos el botón de llamada */
      nav .nav-actions {
        display: none !important;
      }

      /* Fila inferior: Los enlaces de navegación visibles y con scroll horizontal limpio si no caben */
      nav .nav-links {
        display: flex !important;
        width: 100%;
        justify-content: center;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
      }
      /* Reducimos un poquito el tamaño de los textos de los enlaces para que entren bien */
      nav .nav-links a {
        font-size: 0.85rem !important;
      }
      /* Ocultamos los íconos secundarios de redes */
      nav .social-icon {
        display: none !important;
      }
    }
    /* Evita desbordamientos horizontales en dispositivos móviles */
    html, body {
      max-width: 100%;
      overflow-x: hidden;
    }
