   @font-face {
     font-family: "ToyotaType-Bold";
     src: url("https://www.toyotacredito.com.mx/Portal/Content/Fonts/ToyotaType-Bold.otf") format("opentype");
   }

   @font-face {
     font-family: "ToyotaType-Regular";
     src: url("https://www.toyotacredito.com.mx/Portal/Content/Fonts/ToyotaType-Regular.otf") format("opentype");
   }

   :root {
      --toyota-red: #eb0a1e;
      --toyota-dark: #1a1a1a;
      --toyota-gray: #6b7280;
      --toyota-light: #f5f5f5;
    }
 
    * { box-sizing: border-box; }
 
    body {
      font-family: 'ToyotaType-Regular', sans-serif;
      background: #fff;
      color: var(--toyota-dark);
      margin: 0;
    }
 
    /* ── Hero fade-in ── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-up { animation: fadeUp 0.7s ease both; }
    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.25s; }
    .delay-3 { animation-delay: 0.4s; }
    .delay-4 { animation-delay: 0.55s; }
 
    /* ── Navbar ── */
    .navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
 
    /* ── Hero ── */
    .hero-bg {
      position: relative;
      min-height: 420px;
      overflow: hidden;
      background: #111;
    }
    .hero-bg .hero-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: 0;
    }
    .hero-bg .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(105deg, #111 0%, #222 35%, transparent 55%);
      -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      z-index: 1;
    }
    .hero-bg .hero-fade-bottom {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 260px;
      background: linear-gradient(to top, #ffffff 0%, transparent 80%);
      z-index: 2;
      pointer-events: none;
    }
    .hero-bg .hero-content {
      position: relative;
      z-index: 2;
    }
 
    /* ── Plan badge ── */
    .plan-badge {
      border-left: 4px solid var(--toyota-red);
    }
 
    /* ── Red button ── */
    .btn-red {
      background: var(--toyota-red);
      color: #fff;
      font-family: 'Barlow Condensed', sans-serif;
      font-weight: 700;
      letter-spacing: .08em;
      transition: background .2s, transform .15s;
    }
    .btn-red:hover { background: #c00919; transform: translateY(-1px); }
    .btn-red:active { transform: translateY(0); }
 
    /* ── Feature icons row ── */
    .feature-icon {
      color: var(--toyota-red);
    }
 
    /* ── Form inputs ── */
    .form-input {
      border: 1.5px solid #d1d5db;
      border-radius: 4px;
      padding: 10px 14px;
      width: 100%;
      font-family: 'Barlow', sans-serif;
      font-size: 14px;
      color: #374151;
      outline: none;
      transition: border-color .2s;
      background: #fff;
    }
    .form-input:focus { border-color: var(--toyota-red); }
    .form-input::placeholder { color: #9ca3af; }
 
    select.form-input { appearance: none; cursor: pointer; }
 
    /* ── Video section ── */
    .video-wrapper {
      position: relative;
      overflow: hidden;
      border-radius: 12px;
      background: #111;
    }
    .play-btn {
      width: 64px; height: 64px;
      background: var(--toyota-red);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: transform .2s, background .2s;
    }
    .play-btn:hover { transform: scale(1.1); background: #c00919; }
 
    /* ── Social icons ── */
    .social-icon {
      width: 42px; height: 42px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      transition: transform .2s, opacity .2s;
    }
    .social-icon:hover { transform: scale(1.12); opacity: .9; }
 
    /* ── Fine print ── */
    .fine-print { font-size: 10.5px; line-height: 1.6; color: #6b7280; }
 
    /* ── Benefit card ── */
    .benefit-card {
      display: flex; align-items: flex-start; gap: 14px;
    }
    .benefit-icon-wrap {
      flex-shrink: 0;
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
    }
 
    /* ── Scroll reveal ── */
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.22s; }
    .reveal-delay-3 { transition-delay: 0.34s; }
 
    /* ── Scroll-to-top button ── */
    #scrollTop {
      position: fixed;
      bottom: 175px;
      right: 10px;
      width: 48px;
      height: 48px;
      background: var(--toyota-red);
      color: #fff;
      border: none;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(235,10,30,.35);
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
      transition: opacity .3s ease, transform .3s ease, background .2s;
      z-index: 999;
    }
    #scrollTop.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    #scrollTop:hover { background: #c00919; transform: translateY(-2px); }
    #scrollTop:active { transform: translateY(0); }
    @media (max-width: 767px) {
      #scrollTop {
        right: auto !important;   
        left: 10px !important;    
        bottom: 220px !important;  
        width: 44px;
        height: 44px;
      }

     #scrollTop:hover { 
       background: var(--toyota-red);
       transform: translateY(0); 
     }
    }
    .grecaptcha-badge {
       bottom: 100px !important;
     }
    @media (max-width: 767px) {
      .grecaptcha-badge {
       bottom: 220px !important;
      }
    }
    @media (max-width: 767px) {
      #myAliceWebChat > div {
        right: 10px !important;
        bottom: 150px !important;
      }
    }

/* 1. Ocultar el texto "Contáctanos" (el span) en móviles */
@media (max-width: 768px) {
  #myAliceWebChat > div span {
    display: none !important;
  }
}

/* 2. Controlar la aparición del chat completo al llegar al fondo en móviles */
@media (max-width: 768px) {
  #myAliceWebChat > div {
    /* Forzamos que se oculte usando !important para ganarle a sus estilos en línea */
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
    transition: opacity .3s ease, transform .3s ease !important;
  }
  
  /* Clase activa que inyectará el JavaScript al llegar abajo */
  #myAliceWebChat > div.show-chat-mobile {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
}