/* Tipografías Nissan */
@font-face {
  font-family: 'Nissan Brand';
  src: url('NissanBrandW01-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nissan Brand';
  src: url('NissanBrandW01-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nissan Brand';
  src: url('NissanBrandW01-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nissan Global';
  src: url('Nissan-Global.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Design tokens */
:root {
  --font-sans: 'Nissan Global', 'Nissan Brand', Arial, sans-serif;
  --font-brand: 'Nissan Brand', 'Nissan Global', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --color-text: #000000;
  --color-muted: #000000;
  --color-primary: #000000;
  --color-primary-strong: #000000;
  --color-accent: #c5002f;
  --color-accent-hover: #a00026;
  --color-surface: #ffffff;
  --color-surface-2: #efefef;
  --color-surface-3: #efefef;
  --color-border: #efefef;
  --color-danger: #c5002f;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;

  --shadow-lg: 0 10px 30px rgba(24, 24, 25, 0.08);
  --container-max: 1152px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-muted);
  font-size: 16px;
  background: var(--color-surface);
  min-width: 320px;
}

h1, h2, h3, h4, h5, h6,
.font-bold,
.font-semibold,
.font-extrabold,
.font-black {
  font-family: var(--font-brand);
}

/* Solo hay Light / Regular / Bold en los .woff */
.font-light { font-weight: 300; }
.font-normal, .font-medium { font-weight: 400; }
.font-semibold,
.font-bold,
.font-extrabold,
.font-black { font-weight: 700; }

/* Subrayado animado (amarillo) para destacar mensajes */
.underline-animated-yellow {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
  isolation: isolate;
}

.underline-animated-yellow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.22em;
  background: rgba(250, 204, 21, 0.85); /* yellow-400 */
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  z-index: -1;
  animation: underline-yellow-sweep 2400ms cubic-bezier(.22, 1, .36, 1) infinite;
}

@keyframes underline-yellow-sweep {
  0%   { transform: scaleX(0.0); opacity: 0; }
  18%  { transform: scaleX(1.0); opacity: 1; }
  20%  { transform: scaleX(1.0); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .underline-animated-yellow::after { animation: none; transform: scaleX(1); }
}

@media (max-width: 639px) {
  body.has-mobile-firmar-cta {
    padding-bottom: 96px;
  }

  .mobile-firmar-cta {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
    transform: translate3d(0, 110%, 0);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
    will-change: transform, opacity;
  }

  .mobile-firmar-cta.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

a,
button {
  color: var(--color-muted);
  font-size: 16px;
  text-decoration: none;
  -webkit-transition-property: all;
  transition-property: all;
  -webkit-transition-duration: 0.15s;
  transition-duration: 0.15s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

a:hover,
button:hover {
  text-decoration: none;
  color: black;
}

/* CTA: asegurar texto blanco en hover */
a[class*="bg-accent-"]:hover,
button[class*="bg-accent-"]:hover,
a[class*="bg-brand-"]:hover,
button[class*="bg-brand-"]:hover {
  color: #fff !important;
}

.reset-p {
  padding: 0 !important;
}

h1,
h2,
h3,
h4,
h5 {
  padding: 0;
  margin: 0;
}

.bg-invert {
  background-color: var(--color-primary) !important;
}

.btn-accept {
  background-color: var(--color-accent) !important;
  color: #fff !important;
  border-color: var(--color-accent) !important;
}

.text-pretty p {
  padding-bottom: 20px;
}

.text-pretty p:last-child {
  padding-bottom: 0;
}


/* Form */

.legal span,
.legal span a {
  font-size: 12px !important;
}

.legal span {
  padding-top: 3px;
}

.legal.is-invalid span,
.legal.is-invalid small {
  padding-top: 16px;
  color: red;
  text-decoration: underline;
}

/* Form Wrap */

.form-main__inner {
  position: relative;
}

.form-main__inner::before {
  content: none;
}

.form-main__inner > * {
  position: relative;
  z-index: 1;
}


.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  animation: spin 2s linear infinite;
  margin: 50px auto 50px auto
}

.invalid-feedback {
  font-size: 11px;
  padding: 0px 10px;
  position: absolute;
  right: 10px;
  background: #8d0202;
  top: -6px;
  text-align: left;
  color: #fff;
  display: none;
  width: auto;
  font-family: 'open sans', sans-serif;
}

input.is-invalid,
select.is-invalid {
  border: solid 2px #f89898 !important;
}

.wait-please {
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0.5;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  position: absolute;
  text-align: center;
  vertical-align: middle;
  display: none;
  z-index: 1000;
}

.is-invalid~.invalid-feedback,
.is-invalid~.invalid-tooltip,
.was-validated :invalid~.invalid-feedback,
.was-validated :invalid~.invalid-tooltip {
  display: inline-block;
}



.hero {
  background-image: url("../img/bg-hero.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 546px;
  position: relative;
  isolation: isolate;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
}

.hero .container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
}

.hero .container .logo {
  margin-top: 30px;
}

.hero .container .claim {
  width: 100%;
  max-width: 779px;
}

.signature-data {
  max-width: 500px;
  margin: 0px auto 30px auto;
}

.signature-data .signature-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--color-primary-strong);
}

.signature-data .signature-number-2 {
  font-size: 22px;
  padding-bottom: 10px;
}

.signature-data .signature-number-2 span {
  font-weight: 900;
  color: var(--color-primary-strong);
}

.signature-data .signature-bar {
  display: inline-block;
  background: var(--color-surface-3);
  border-radius: 10px;
  width: 100%;
  border: 1px solid var(--color-primary-strong);
  height: 14px;
}

.signature-data .signature-progress {
  background: var(--color-primary-strong);
  height: 12px;
  display: block;
  border-radius: 10px 0 0 10px;
}

.signature-data .signature-percentage {
  font-weight: 600;
  color: var(--color-primary-strong);
  font-size: 24px;
}

.main-title {
  background: var(--color-primary);
  margin-bottom: 10px;
}

.main-title h3 {
  margin-top: 20px;
  font-size: 28px;
  letter-spacing: 0;
  line-height: 42px;
  font-weight: bold;
  color: #fff;
}

.main-title h4 {
  margin-bottom: 25px;
  color: #cbe5ff;
}

.ferror {
  font-size: 14px;
  color: var(--color-danger);
  display: block;
  border-radius: 40px;
  margin-top: 10px;
  padding: 0px 20px 0px 20px;
}

.ierror {
  border-color: #ffbfbf !important;
}

.bi {
  text-align: center;
}

.bi img {
  width: 100%;
}

.bi h4 {
  font-size: 46px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: solid 3px #0D79BF;
  margin-bottom: 20px;
  display: inline;
}

.bi span {
  display: block;
  padding-top: 40px;
}

.map img {
  width: 100%;
}

section.text-block p {
  padding-bottom: 20px;

  &:last-child {
    padding-bottom: 0;
  }
}


.footer {
  background: #0D79BF;
  text-align: center;
  padding: 30px;
}

.footer p {
  margin: 0px;
  color: #fff;
}

.footer ul {
  padding: 0px 0px 50px 0px;
  margin: 0px;
}

.footer ul li {
  display: inline-block;
  padding: 20px 10px;
}

.footer ul li a {
  color: #fff;
}

.testimonials {
  background-color: #F4F4F4;
  padding: 80px 40px;
  margin-bottom: 0px;
  position: relative;
  margin-top: 100px;
}

.testimonials .container:after {
  width: 307px;
  height: 254px;
  background-image: url(../img/blockquotes.svg);
  content: "";
  display: block;
  position: absolute;
  right: 5%;
  top: -20%;
}

.testimonials .container {
  max-width: 985px;
}

.testimonials .container span {
  font-family: 'Crimson Text', serif;
  font-size: 32px;
  color: #5c5c5c;
  position: relative;
  z-index: 43;
}

.testimonials h4 {
  font-weight: 300;
  margin-top: 20px;
  font-size: 18px;
  line-height: 24px;
  position: relative;
  padding-left: 104px;
  font-weight: 300;
  word-break: break-all;
  z-index: 43;
}

.testimonials h4:before {
  padding-left: 20px;
  width: 100px;
  height: 1px;
  content: '';
  margin-right: 20;
  top: 11px;
  left: 0px;
  position: absolute;
  display: inline-block;
  background-color: #0D79BF;
}

.tip {
  padding: 0px 3px;
  height: 280px;
  margin-bottom: 80px;
}

.tips {
  max-width: 985px;
}

.tips h2 {
  font-weight: 600;
  color: #0D79BF;
  margin: 160px auto 40px auto;
  text-align: center;
}

.tips h2:after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #c4e8ff;
  margin: 15px auto 0px auto;
}

.tips .tip-box {
  background: #F2F5FB;
  padding-top: 0px;
  padding-bottom: 30px;
  margin-bottom: 80px;
  max-height: 500px;
  height: 100%;
  text-align: center;
}

.tips .tip-box i {
  color: #ffffff;
  margin: 30px 0px 10px 0px;
  font-size: 36px;
  background: red;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 100%;
  text-align: center;
  background: #0D79BF;
}

.tips .tip-box h4 {
  font-size: 22px;
  color: #0D79BF;
  font-weight: 600;
  margin-bottom: 10px;
}

.tips .tip-box span {
  padding: 0px 20px;
  margin: auto;
  display: block;
  font-size: 14px;
  line-height: 16px;
  color: #0b4367;
}

.tips .tip-box img {
  max-width: 84px;
  padding-top: 40px;
}

.tips-2 {
  background: #F2F5FB;
  max-width: 100%;
  width: 100%;
  padding-top: 70px;
}

.tips-2 .tip-box {
  padding: 30px;
  margin-bottom: 80px;
  text-align: left;
  max-width: 985px;
  margin: auto;
}

.tips-2 .tip-box h4 {
  color: #0D79BF;
  font-size: 32px;
  padding-bottom: 20px;
  font-weight: 600;
}

.tips-2 .tip-box span {
  display: block;
  color: #0b4367;
  padding-bottom: 20px;
}

.layout {
  position: fixed;
  bottom: 0px;
  background-color: rgba(198, 198, 198, 0.8);
  width: 100%;
  color: black;
  padding: 20px;
}

.layout #cookies {
  max-width: 960px;
  margin: 0px auto;
}

.layout #cookies .sst_close {
  background-color: #40ab40;
  color: white;
  font-family: Arial;
  padding-bottom: 5px;
  padding-top: 5px;
  padding-left: 20px;
  padding-right: 20px;
  float: right;
  margin-top: 15px;
  border-radius: 5px;
}

.layout #cookies a {
  text-decoration: underline;
}

.gracias-hero {
  height: 200px;
}

.gracias-hero .logo {
  margin-top: 60px !important;
}

.gracias {
  background: white;
  padding-top: 100px;
  padding-bottom: 100px;
}

.gracias h3 {
  font-size: 34px;
  color: #0D79BF;
  font-weight: 600;
  line-height: 35px;
}

.gracias h3:after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #c4e8ff;
  margin: 15px auto 0px auto;
}

.gracias p {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
}

.gracias i {
  display: block;
  font-size: 62px;
  margin-bottom: 30px;
  color: #4EC623;
}

.gracias .btn {
  background: #4EC623;
  border-radius: 40px;
  padding: 20px 60px;
  border: none;
  color: white;
  text-transform: uppercase;
  font-size: 22px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 900;
}

.gracias .btn:hover {
  background: #3e9e1c;
}

i.form-control-feedback {
  display: none !important;
}

.grecaptcha-badge {
  visibility: hidden;
}

@media (max-width: 992px) {
  .testimonials {
    margin-top: 0px;
  }

  .testimonials .container:after {
    top: 30px;
  }

  .bi {
    padding-top: 0px;
  }

  .bi h4 {
    font-size: 32px;
  }

  .bi .col-sm-5 {
    margin-bottom: 30px;
  }

  .main-title {
    padding: 20px;
  }

  .main-title h3 {
    margin-top: 0px;
    line-height: 28px;
    margin-bottom: 10px;
  }

  .main-title h4 {
    margin-bottom: 10px;
    line-height: 20px;
  }

  .hero {
    height: 446px;
  }

  .tips-2 {
    padding-top: 20px;
  }

  .tips-2 .tip-box {
    padding: 0px;
  }
}

@media (max-width: 767px) {
  .tip {
    padding: 0px 3px;
    height: auto;
    margin-bottom: 10px;
  }

  .bi {
    padding-top: 80px;
  }

  .hero {
    height: 306px;
  }

  .hero .container .logo img {
    max-width: 100px;
    vertical-align: top;
    margin-top: 0px;
  }

  .form .lead .form-group {
    width: 100% !important;
  }

  .form .lead .form-group input {
    width: 100%;
  }

  .tips .tip-box {
    margin-bottom: 0px;
  }
}

@media (max-width: 458px) {
  .hero {
    height: 236px;
    overflow: hidden;
  }

  .logo img {
    max-width: 100px;
    vertical-align: top;
  }

  .main-title {
    padding: 20px;
  }

  .main-title h3 {
    font-size: 20px;
    line-height: 20px;
  }

  .main-title h4 {
    font-size: 14px;
    line-height: 14px;
  }

  .gracias-hero {
    height: 200px !important;
  }
}

/* Hero: imagen cover + copy sobre la misma imagen muy difuminada */
.ev-hero-visual {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.ev-hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.ev-hero-copy-bg {
  position: absolute;
  inset: -40px 0;
  background-size: cover;
  background-position: center bottom;
  filter: blur(48px) saturate(1.05) brightness(0.55);
  transform: scale(1.12);
}

.ev-hero-copy-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.62) 45%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

/* Motion & layout helpers */
.ev-hero-card {
  animation: ev-hero-in 700ms cubic-bezier(.22, 1, .36, 1) both;
}

.ev-vehicle-card {
  animation: ev-card-in 650ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ev-hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ev-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-hero-card,
  .ev-vehicle-card {
    animation: none;
  }
}

/* Badge / label (Future is Here, chips de coches) */
.ev-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #c5002f;
  color: #fff;
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Pegatinas DGT: borde blanco + radio completo */
.ev-eco-badge {
  border: 2px solid #ffffff !important;
  border-radius: 100% !important;
  box-sizing: border-box;
  background: #fff;
}
body.ev-offer-modal-open {
  overflow: hidden;
}

body.ev-offer-modal-open .mobile-firmar-cta {
  display: none !important;
}

.ev-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.ev-offer-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.ev-offer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 25, 0.62);
  backdrop-filter: blur(2px);
}

.ev-offer-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 1rem;
  box-shadow: 0 22px 60px rgba(24, 24, 25, 0.28);
  animation: ev-modal-in 220ms cubic-bezier(.22, 1, .36, 1);
}

.ev-offer-modal.is-open .ev-offer-modal__dialog {
  /* keep animation only on open */
}

.ev-offer-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #181819;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(24, 24, 25, 0.12);
}

.ev-offer-modal__close:hover {
  background: #fff;
}

.ev-offer-modal__body .ev-offer-wrap {
  box-shadow: none;
}

.ev-offer-modal__body .ev-offer-tips {
  display: none;
}

.ev-offer-modal__body .ev-offer-wrap > .grid {
  display: block;
}

.ev-offer-modal__body .form-main {
  width: 100%;
}

@keyframes ev-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-offer-modal,
  .ev-offer-modal__dialog {
    transition: none;
    animation: none;
  }
}