
/* =========================================
   TACO CLUB REWARDS
   DISEÑO RESPONSIVE
========================================= */

:root {
  --tc-orange: #EA5C19;
  --tc-orange-dark: #C94B10;

  --tc-black: #131313;
  --tc-black-soft: #1B1B1B;

  --tc-white: #FFFFFF;
  --tc-gray: #E9E9E9;
  --tc-text: #1A1A1A;

  --tc-success-bg: #E6F4EA;
  --tc-success-text: #1F6B3B;

  --tc-error-bg: #FDEAEA;
  --tc-error-text: #9F2D2D;

  --tc-shadow:
    0 20px 55px rgba(0, 0, 0, 0.35);
}

/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;

  min-height: 100vh;
  min-height: 100dvh;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color: var(--tc-text);

  background-color: #131313;

  overflow-x: hidden;
}

/* =========================================
   FONDO RESPONSIVE
========================================= */

/*
  El CSS está en /rewards/

  Por eso usamos ../images/
  para buscar los fondos en /images/
*/

body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -2;

  background-image:
    url("../images/fondos-formulario.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  pointer-events: none;
}

/* Capa oscura para mejorar el contraste */

.page-overlay {
  position: fixed;
  inset: 0;

  z-index: -1;

  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.50),
      rgba(0, 0, 0, 0.38)
    );

  pointer-events: none;
}

/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.page {
  position: relative;

  z-index: 1;

  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 36px 18px;
}

/* =========================================
   TARJETA DEL FORMULARIO
========================================= */

.card {
  width: 100%;
  max-width: 620px;

  background:
    rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 24px;

  overflow: hidden;

  border:
    1px solid rgba(255, 255, 255, 0.35);

  box-shadow: var(--tc-shadow);
}

/* =========================================
   BANNER RESPONSIVE
========================================= */

.banner-wrap {
  width: 100%;

  background: #131313;

  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.banner {
  display: block;

  width: 100%;
  max-width: 100%;

  height: auto;
  max-height: 220px;

  object-fit: contain;
  object-position: center;

  border-radius: 12px;
}

/* =========================================
   CONTENIDO
========================================= */

.content {
  padding: 28px;
}

.title-block {
  text-align: center;
}

.title-block h1 {
  margin: 0 0 12px;

  color: var(--tc-black);

  font-size: 29px;
  font-weight: 800;

  line-height: 1.2;
}

.title-block p {
  margin: 0 0 24px;

  color: #555555;

  font-size: 15px;
  line-height: 1.6;
}

/* =========================================
   MENSAJES
========================================= */

.notice {
  display: none;

  margin-bottom: 18px;

  padding: 14px 16px;

  border-radius: 12px;

  font-size: 14px;
  line-height: 1.5;
}

.notice.ok,
.notice.error {
  display: block;
}

.notice.ok {
  background: var(--tc-success-bg);
  color: var(--tc-success-text);
}

.notice.error {
  background: var(--tc-error-bg);
  color: var(--tc-error-text);
}

/* =========================================
   BOTONES
========================================= */

.btn {
  width: 100%;

  padding: 15px 18px;

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================================
   BOTÓN GOOGLE
========================================= */

.btn-google {
  background: #FFFFFF;
  color: #222222;

  border: 1px solid #DDDDDD;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  min-height: 52px;
}

.btn-google:hover {
  background: #F8F8F8;
  border-color: #EA5C19;
}

.google-icon {
  width: 28px;
  height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--tc-orange);
  color: white;

  font-weight: bold;
}

/* =========================================
   BOTÓN NARANJA
========================================= */

.btn-primary {
  background: linear-gradient(
    135deg,
    #EA5C19,
    #C94B10
  );

  color: white;

  margin-top: 8px;
}

.btn-primary:hover {
  background: #D45116;
}

/* =========================================
   TEXTOS AUXILIARES
========================================= */

.helper-text,
.mini-text {
  color: #666666;

  font-size: 13px;
  line-height: 1.6;
}

/* =========================================
   CUENTA GOOGLE
========================================= */

.account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  background: #F4F4F4;

  border-radius: 12px;

  padding: 14px 16px;

  margin-bottom: 24px;
}

.account-email {
  font-size: 14px;

  color: #222222;

  overflow-wrap: anywhere;
}

.link-btn {
  border: none;
  background: transparent;

  color: #EA5C19;

  text-decoration: underline;

  cursor: pointer;

  font-weight: 700;
}

/* =========================================
   REGISTRO
========================================= */

.form {
  display: grid;
  gap: 17px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;

  color: var(--tc-black);
}

.field input {
  width: 100%;
  min-width: 0;

  padding: 14px 15px;

  border-radius: 11px;
  border: 1px solid #D9D9D9;

  font-size: 16px;

  background: #FFFFFF;
  color: #222222;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:focus {
  border-color: #EA5C19;

  box-shadow:
    0 0 0 4px rgba(234, 92, 25, 0.12);
}

.field input[readonly] {
  background: #F7F7F7;
  color: #555555;
}

/* =========================================
   ACEPTACIÓN DE PRIVACIDAD
========================================= */

.check-row {
  display: flex;
  align-items: flex-start;

  gap: 10px;

  color: #444444;

  font-size: 14px;
  line-height: 1.6;
}

.check-row input {
  margin-top: 4px;

  accent-color: #EA5C19;
}

.check-row a {
  color: #C94B10;

  font-weight: 700;
  text-decoration: none;
}

.check-row a:hover {
  text-decoration: underline;
}

/* =========================================
   VISIBILIDAD DE PANELES
========================================= */

[hidden] {
  display: none !important;
}

/* =========================================
   BIENVENIDA SOCIO
========================================= */

.welcome-box {
  text-align: center;

  padding: 20px 10px 24px;
}

.welcome-symbol {
  width: 52px;
  height: 52px;

  margin: 0 auto 14px;

  border-radius: 50%;

  background: #EA5C19;
  color: #FFFFFF;

  font-size: 28px;

  display: grid;
  place-items: center;
}

.welcome-box h2 {
  margin: 0 0 10px;

  font-size: 24px;
  color: #131313;
}

.welcome-box p {
  overflow-wrap: anywhere;
}

.existing-info {
  color: #333333;
  font-size: 14px;
}

/* =========================================
   MIS TARJETAS
========================================= */

.my-wallet {
  margin-top: 20px;
}

.my-wallet h2 {
  margin-bottom: 8px;

  font-size: 23px;
  color: #131313;
}

.wallet-intro {
  color: #626262;

  font-size: 14px;
  line-height: 1.6;

  margin-bottom: 20px;
}

/* =========================================
   TARJETAS DE PUNTOS Y SELLOS
========================================= */

.rewards-wallet-card {
  background: #131313;
  color: #FFFFFF;

  border-radius: 18px;

  padding: 23px;

  margin-bottom: 18px;

  border: 1px solid #333333;

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.13);
}

.wallet-card-header {
  display: flex;
  align-items: center;

  gap: 14px;

  padding-bottom: 18px;

  border-bottom: 1px solid #393939;
}

.wallet-icon {
  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background: #EA5C19;

  display: grid;
  place-items: center;

  color: #FFFFFF;

  font-size: 23px;
  font-weight: bold;
}

.wallet-card-header h3 {
  margin: 0 0 6px;

  color: #FFFFFF;

  font-size: 18px;
}

.wallet-card-header p {
  margin: 0;

  color: #BBBBBB;
  font-size: 13px;
}

/* =========================================
   CONTENIDO DE TARJETAS
========================================= */

.wallet-card-body {
  padding: 20px 0;
}

.wallet-card-label {
  display: block;

  color: #EA5C19;

  text-transform: uppercase;

  font-size: 11px;
  font-weight: bold;

  letter-spacing: 1.4px;
}

.wallet-card-body p {
  margin: 10px 0 0;

  color: #E0E0E0;

  font-size: 14px;
  line-height: 1.6;
}

.rewards-wallet-card .wallet-action {
  margin: 0;

  background: #EA5C19;
  color: #FFFFFF;
}

/* =========================================
   ENLACE GOOGLE WALLET
========================================= */

.wallet-save-link {
  display: block;

  text-align: center;

  padding: 14px;

  margin-top: 12px;

  background: #FFFFFF;
  color: #131313;

  border-radius: 11px;

  font-size: 14px;
  font-weight: bold;

  text-decoration: none;

  overflow-wrap: anywhere;
}

.wallet-save-link:hover {
  background: #F3F3F3;
}

/* =========================================
   INFORMACIÓN DE REWARDS
========================================= */

.rewards-information {
  margin-top: 14px;

  background: #F6F6F6;

  border-radius: 15px;

  padding: 20px;
}

.rewards-information h3 {
  margin-top: 0;

  color: #131313;

  font-size: 17px;
}

.rewards-information p {
  color: #555555;

  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 900px) {

  .page {
    padding: 25px 16px;
  }

  .card {
    max-width: 600px;
  }

  .banner {
    max-height: 190px;
  }

}

/* =========================================
   TELÉFONOS
========================================= */

@media (max-width: 768px) {

  /* Cambiar fondo a versión móvil */

  body::before {
    background-image:
      url("../images/fondos-formulario2.png");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;
  }

  /* Capa oscura móvil */

  .page-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.40),
        rgba(0, 0, 0, 0.50)
      );
  }

  .page {
    align-items: flex-start;

    padding:
      18px 12px 28px;
  }

  .card {
    width: 100%;
    max-width: 100%;

    border-radius: 19px;
  }

  /* Banner más pequeño */

  .banner-wrap {
    padding: 9px;

    min-height: 0;
  }

  .banner {
    width: 100%;

    max-width: 100%;

    height: auto;
    max-height: 135px;

    object-fit: contain;

    border-radius: 9px;
  }

  .content {
    padding:
      21px 17px 25px;
  }

  .title-block h1 {
    font-size: 23px;
    line-height: 1.25;
  }

  .title-block p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .account-box {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
  }

  .welcome-box {
    padding: 16px 5px 20px;
  }

  .welcome-box h2 {
    font-size: 21px;
  }

  .my-wallet h2 {
    font-size: 21px;
  }

  .rewards-wallet-card {
    padding: 18px;

    border-radius: 15px;
  }

  .wallet-card-header {
    gap: 11px;
  }

  .wallet-card-header h3 {
    font-size: 16px;
  }

  .wallet-card-header p {
    font-size: 12px;
  }

  .wallet-icon {
    width: 40px;
    height: 40px;

    flex-basis: 40px;
  }

  .btn {
    min-height: 48px;
  }

}

/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 390px) {

  .page {
    padding: 12px 8px 22px;
  }

  .card {
    border-radius: 16px;
  }

  .content {
    padding: 17px 14px 22px;
  }

  .banner-wrap {
    padding: 7px;
  }

  .banner {
    max-height: 110px;
  }

  .title-block h1 {
    font-size: 21px;
  }

  .rewards-wallet-card {
    padding: 15px;
  }

}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

}
