/**
 * Platea Concept Suites - Auth
 * Colores corporativos: ajusta las variables según www.plateaconceptsuites.com
 * Fuente: Dream Avenue
 */

@import url('https://db.onlinewebfonts.com/c/5da49843f66caf14799662bd12aa55a2?family=Dream+Avenue');

:root {
  /* Colores corporativos Platea Concept Suites */
  --pcs-bg: #353131;
  --pcs-bg-card: #3d3939;
  --pcs-bg-input: #454141;
  --pcs-border: #4a4646;
  --pcs-text: #FFFFFFBE;
  --pcs-text-muted: rgba(255, 255, 255, 0.65);
  --pcs-accent: #012E7F;
  --pcs-accent-hover: #0342b3;
  --pcs-accent-soft: rgba(1, 46, 127, 0.2);
  --pcs-error: #c75050;
  --pcs-success: #4a7c59;
  --pcs-font: "Dream Avenue", Georgia, serif;
  --pcs-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pcs-radius: 12px;
  --pcs-radius-sm: 8px;
  --pcs-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --pcs-transition: 0.25s ease;
}

.pcs-auth {
  font-family: var(--pcs-font-ui);
  color: var(--pcs-text);
  max-width: 420px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.pcs-auth-card {
  background: var(--pcs-bg-card);
  border: 1px solid var(--pcs-border);
  border-radius: var(--pcs-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--pcs-shadow);
}

.pcs-auth-title {
  font-family: var(--pcs-font);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1.75rem;
  text-align: center;
  color: #ffffff;
}

.pcs-auth-social {
  margin-bottom: 1.25rem;
}

.pcs-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-family: var(--pcs-font);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--pcs-radius-sm);
  border: 1px solid var(--pcs-border);
  cursor: pointer;
  transition: background-color var(--pcs-transition), border-color var(--pcs-transition), color var(--pcs-transition);
  text-decoration: none;
  color: var(--pcs-text);
  background: var(--pcs-bg-input);
}

.pcs-auth-btn:hover {
  background: #252530;
  border-color: #3a3a44;
  color: var(--pcs-text);
}

.pcs-auth-btn-google {
  background: var(--pcs-accent);
  border: 1px solid var(--pcs-accent);
  color: #ffffffbe;
}

.pcs-auth-btn-google:hover {
  background: #ffffffbe;
  border: 1px solid #012E7F;
  color: #012E7F;
}

.pcs-auth-google-icon {
  flex-shrink: 0;
}

.pcs-auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  gap: 1rem;
}

.pcs-auth-divider::before,
.pcs-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pcs-border);
}

.pcs-auth-divider span {
  font-size: 0.8rem;
  color: var(--pcs-text-muted);
  text-transform: lowercase;
}

.pcs-auth-form {
  margin: 0;
}

.pcs-auth-field {
  margin: 0 0 1.25rem;
}

.pcs-auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pcs-text-muted);
  margin-bottom: 0.4rem;
}

.pcs-auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--pcs-font-ui);
  font-size: 1rem;
  color: var(--pcs-text);
  background: var(--pcs-bg-input);
  border: 1px solid var(--pcs-border);
  border-radius: var(--pcs-radius-sm);
  transition: border-color var(--pcs-transition), box-shadow var(--pcs-transition);
  box-sizing: border-box;
}

.pcs-auth-input:focus {
  outline: none;
  border-color: var(--pcs-accent);
  box-shadow: 0 0 0 3px var(--pcs-accent-soft);
}

.pcs-auth-input::placeholder {
  color: var(--pcs-text-muted);
}

.pcs-auth-actions {
  margin: 1.5rem 0 0;
}

.pcs-auth-btn-primary {
  background: var(--pcs-accent);
  border: 1px solid var(--pcs-accent);
  color: #ffffffbe;
}

.pcs-auth-btn-primary:hover {
  background: #ffffffbe;
  border: 1px solid #012E7F;
  color: #012E7F;
}

.pcs-auth-message {
  margin: 1rem 0 0;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.pcs-auth-message.pcs-auth-error {
  color: var(--pcs-error);
}

.pcs-auth-message.pcs-auth-success {
  color: var(--pcs-success);
}

.pcs-auth-logged-in {
  text-align: center;
  padding: 1rem;
  color: var(--pcs-text-muted);
}

.pcs-auth-logged-in a {
  color: var(--pcs-accent);
  text-decoration: none;
}

.pcs-auth-logged-in a:hover {
  text-decoration: underline;
}

.pcs-auth-register-info {
  max-width: 560px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: var(--pcs-bg-card);
  border: 1px solid var(--pcs-border);
  border-radius: var(--pcs-radius);
  font-size: 0.95rem;
  color: var(--pcs-text-muted);
}

.pcs-auth-register-info-text {
  margin: 0;
  line-height: 1.6;
}

/* Fondo de página para registro y login (#353131) */
.pcs-auth-page {
  background: var(--pcs-bg);
  min-height: 100vh;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Enlaces del texto de condiciones y política de privacidad */
.pcs-terms-checkbox-text a {
  color: var(--pcs-accent);
  text-decoration: underline;
}

.pcs-terms-checkbox-text a:hover {
  color: var(--pcs-accent-hover);
}

/* ----- Modal "Acceder / Registrarse" (Descuentos Platea) ----- */
.pcs-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}
.pcs-modal.pcs-modal-open {
  visibility: visible;
  opacity: 1;
}
.pcs-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.pcs-modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--pcs-bg-card);
  color: var(--pcs-text);
  border: 1px solid var(--pcs-border);
  border-radius: var(--pcs-radius);
  box-shadow: var(--pcs-shadow);
  padding: 2rem 2rem 2.5rem;
  margin: auto;
}
.pcs-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--pcs-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--pcs-radius-sm);
  transition: color var(--pcs-transition), background var(--pcs-transition);
}
.pcs-modal-close:hover {
  color: var(--pcs-text);
  background: var(--pcs-accent-soft);
}
.pcs-modal-box .pcs-auth-title {
  margin-top: 0;
  margin-bottom: 0.25rem;
}
.pcs-modal-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--pcs-text-muted);
}
.pcs-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.pcs-auth-forgot {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.pcs-auth-forgot a {
  color: #ffffff;
  text-decoration: none;
}
.pcs-auth-forgot a:hover {
  color: #ffffffbe;
  text-decoration: underline;
}
.pcs-auth-btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--pcs-accent);
  color: #ffffffbe;
  border: 1px solid var(--pcs-accent);
  border-radius: var(--pcs-radius-sm);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--pcs-transition), color var(--pcs-transition), border-color var(--pcs-transition);
  box-sizing: border-box;
  text-align: center;
}
.pcs-auth-btn-secondary:hover {
  background: #ffffffbe;
  border: 1px solid #012E7F;
  color: #012E7F;
}

/* ----- Teléfono con prefijo y bandera (intl-tel-input) ----- */
.iti {
  width: 100%;
  display: block;
}

/* Fuerza mismo alto/padding que el resto de campos de Elementor para el input de teléfono */
.iti--allow-dropdown input[type="tel"],
.iti input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem 0.75rem 3.25rem !important; /* deja sitio para la bandera */
  height: auto !important;
  line-height: 1.4 !important;
}

.iti__flag-container {
  height: 100%;
  top: 0;
  bottom: 0;
}

/* Bandera visual junto al label de país */
.pcs-country-flag-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pcs-country-flag-label .pcs-country-flag {
  font-size: 1rem;
  line-height: 1;
}

/* Centrar formularios de Elementor (aplica a todos los formularios Elementor) */
.elementor .elementor-widget-form .elementor-form {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Header: estado logueado (icono + nombre + salir) ----- */
.pcs-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pcs-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.pcs-user-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.pcs-user-name {
  white-space: nowrap;
}

.pcs-user-logout {
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
}

.pcs-user-logout:hover {
  opacity: 1;
  text-decoration: underline;
}

/* En móvil: mostrar solo el icono (manteniendo logout accesible) */
@media (max-width: 767px) {
  .pcs-user-name,
  .pcs-user-logout {
    display: none !important;
  }
}

/* ----- Estilo del botón del header (logueado / no logueado) ----- */
.pcs-auth-header-btn {
  font-family: var(--pcs-font) !important; /* Dream Avenue */
  font-size: 20px !important;
  font-weight: 700 !important;
  background: #002C73 !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background-color var(--pcs-transition), border-color var(--pcs-transition), color var(--pcs-transition);
}

/* Estado "no logueado": es un <a> */
a.pcs-auth-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
}

/* Estado "logueado": es un <span> que contiene links */
span.pcs-auth-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem;
}

span.pcs-auth-header-btn .pcs-user-profile,
span.pcs-auth-header-btn .pcs-user-logout {
  font-family: var(--pcs-font) !important; /* Dream Avenue */
  color: #ffffff !important;
  font-weight: 700 !important;
}

span.pcs-auth-header-btn .pcs-user-logout {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pcs-auth-header-btn:hover,
.pcs-auth-header-btn:focus,
.pcs-auth-header-btn:focus-within {
  background: #ffffffbe !important;
  color: #002C73 !important;
  border-color: #002C73 !important;
}

/* Refuerzo para el botón (a) cuando NO está logueado (Elementor puede sobreescribir colores) */
a.pcs-auth-header-btn:hover,
a.pcs-auth-header-btn:focus {
  color: #002C73 !important;
  border-color: #002C73 !important;
}

span.pcs-auth-header-btn:hover .pcs-user-profile,
span.pcs-auth-header-btn:hover .pcs-user-logout,
span.pcs-auth-header-btn:focus-within .pcs-user-profile,
span.pcs-auth-header-btn:focus-within .pcs-user-logout {
  color: #002C73 !important;
}
