/* ============================================================
   ESTILOS .gob.mx - Sistema NODESS-TecNM
   Paleta de colores de Gobierno de la República
   ============================================================ */

:root {
  /* Colores oficiales de Gobierno */
  --gob-neutral: #161a1d;
  --gob-primary: #9b2247;
  --gob-primary-dark: #611232;
  --gob-secondary: #1e5b4f;
  --gob-secondary-dark: #002f2a;
  --gob-accent: #a57f2c;
  --gob-accent-light: #e6d194;
  --gob-gray: #98989A;
  --gob-light: #f8f9fa;
  --gob-white: #ffffff;
  
  /* Fuentes */
  --font-sans: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.06);
  
  /* Border radius */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--gob-neutral);
  background-color: var(--gob-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================================
   HEADER .gob.mx
   ============================================================ */

.header {
  background-color: var(--gob-neutral);
  border-bottom: 2px solid var(--gob-primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-logo-text {
  display: none;
}

@media (min-width: 640px) {
  .header-logo-text {
    display: block;
  }
  .header-logo-text span {
    color: var(--gob-white);
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    letter-spacing: -0.025em;
  }
  .header-logo-text small {
    color: var(--gob-gray);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.header-nav a:hover {
  color: var(--gob-white);
}

.header-nav a.active {
  color: var(--gob-white);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gob-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn-login {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}

.header-actions .btn-login:hover {
  color: var(--gob-white);
}

.btn-primary {
  background-color: var(--gob-primary);
  color: var(--gob-white);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--gob-primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--gob-white);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  color: var(--gob-white);
}

.mobile-menu {
  display: none;
  background-color: var(--gob-secondary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-content a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu-content a:hover {
  color: var(--gob-white);
}

.mobile-menu-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.mobile-menu-content .btn-primary {
  text-align: center;
  justify-content: center;
}

/* ============================================================
   HERO .gob.mx (Blanco + Rosa)
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--gob-white) 0%, #fef2f6 100%);
  padding: 4rem 0;
  border-bottom: 1px solid #f0e6ea;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 0;
  }
}

.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(155, 34, 71, 0.1);
  color: var(--gob-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(155, 34, 71, 0.2);
  width: fit-content;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gob-neutral);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-title span {
  color: var(--gob-primary);
}

.hero-description {
  color: #4a4a4a;
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

/* ============================================================
   CONVOCATORIA CARD
   ============================================================ */

.convocatoria-card {
  background: var(--gob-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid #e5e5e5;
  box-shadow: var(--shadow);
  max-width: 64rem;
  margin: 0 auto;
}

.convocatoria-card .header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.convocatoria-card .header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gob-neutral);
}

.convocatoria-card .status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.convocatoria-card .status.abierta {
  background: #d1fae5;
  color: #065f46;
}

.convocatoria-card .status.cerrada {
  background: #fee2e2;
  color: #991b1b;
}

.convocatoria-card .status.en_evaluacion {
  background: #fef3c7;
  color: #92400e;
}

.convocatoria-card .fechas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.convocatoria-card .fechas-item {
  background: var(--gob-light);
  padding: 0.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.convocatoria-card .fechas-item label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gob-gray);
  display: block;
}

.convocatoria-card .fechas-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gob-neutral);
}

.convocatoria-card .descripcion {
  margin-top: 1rem;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.section-header .badge {
  color: var(--gob-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gob-neutral);
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header .divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--gob-primary);
  margin: 1rem auto 0;
  border-radius: 9999px;
}

.section-header p {
  color: #4a4a4a;
  font-size: 1.125rem;
  margin-top: 1rem;
}

.section-light {
  background-color: var(--gob-light);
}

/* ============================================================
   CARD GRID
   ============================================================ */

.card-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--gob-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon-primary {
  background: rgba(155, 34, 71, 0.1);
  color: var(--gob-primary);
}

.card-icon-secondary {
  background: rgba(30, 91, 79, 0.1);
  color: var(--gob-secondary);
}

.card-icon-accent {
  background: rgba(165, 127, 44, 0.1);
  color: var(--gob-accent);
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gob-neutral);
}

.card p {
  color: #4a4a4a;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.card-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gob-white);
}

.card-number-primary {
  background: var(--gob-primary);
}

.card-number-secondary {
  background: var(--gob-secondary);
}

.card-number-accent {
  background: var(--gob-accent);
}

.card-relative {
  position: relative;
}

/* ============================================================
   MAPA
   ============================================================ */

.mapa-section {
  background: var(--gob-white);
}

.mapa-container {
  background: var(--gob-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5e5e5;
  min-height: 500px;
  position: relative;
}

.mapa-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2rem;
  text-align: center;
  color: var(--gob-gray);
}

.mapa-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--gob-gray);
  margin-bottom: 1rem;
}

.mapa-placeholder h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gob-neutral);
}

.mapa-placeholder p {
  max-width: 24rem;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER .gob.mx
   ============================================================ */

.footer {
  background: var(--gob-neutral);
  border-top: 2px solid var(--gob-primary);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 2.5rem;
  width: auto;
}

.footer-brand-text span {
  color: var(--gob-white);
  font-size: 0.875rem;
  font-weight: 700;
  display: block;
}

.footer-brand-text small {
  color: var(--gob-gray);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p {
  color: var(--gob-gray);
  font-size: 0.875rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--gob-white);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer ul a {
  color: var(--gob-gray);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: var(--gob-white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gob-gray);
  font-size: 0.875rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.footer-contact-item a {
  color: var(--gob-gray);
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--gob-white);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--gob-gray);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--gob-white);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: var(--gob-gray);
  font-size: 0.75rem;
  margin: 0;
}

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

@media (max-width: 639px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-logo img {
    max-height: 200px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .convocatoria-card .fechas {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

/* Agregar al final del archivo style.css */

/* Mapa mejorado */
.mapa-container {
  background: var(--gob-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e5e5e5;
  min-height: 400px;
  position: relative;
}

.mapa-container .btn-primary {
  transition: all 0.3s ease;
}

.mapa-container .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(155, 34, 71, 0.4);
}

/* Badge de estado en convocatoria */
.convocatoria-card .header .status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.convocatoria-card .header .status.abierta {
  background: #d1fae5;
  color: #065f46;
}

.convocatoria-card .header .status.cerrada {
  background: #fee2e2;
  color: #991b1b;
}

.convocatoria-card .header .status.en_evaluacion {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================================
   ESTILOS DE AUTENTICACIÓN (Login / Register)
   ============================================================ */

.auth-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gob-white);
  position: relative;
  padding: 0;
  margin: 0;
}

/* ============================================================
   BOTÓN VOLVER AL INICIO - GLOBAL (ESQUINA SUPERIOR IZQUIERDA)
   ============================================================ */

.auth-back-link-global {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gob-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.auth-back-link-global:hover {
  background: rgba(0, 0, 0, 0.6);
  color: var(--gob-white);
  transform: translateX(-2px);
}

.auth-back-link-global svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.auth-back-link-global:hover svg {
  transform: translateX(-3px);
}

/* ============================================================
   GRID PRINCIPAL - SIN ESPACIOS EN BLANCO
   ============================================================ */

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--gob-white);
  margin: 0;
  padding: 0;
}

.auth-grid-reverse {
  direction: rtl;
}

.auth-grid-reverse > * {
  direction: ltr;
}

/* ============================================================
   LADO DE LA IMAGEN
   ============================================================ */

.auth-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
}

.auth-image-left {
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c7f1?auto=format&fit=crop&w=1400&q=80');
}

.auth-image-right {
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c7f1?auto=format&fit=crop&w=1400&q=80');
}

.auth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 26, 29, 0.92) 0%, rgba(0, 47, 42, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  width: 100%;
  height: 100%;
}

.auth-image-content {
  max-width: 480px;
  color: var(--gob-white);
}

.auth-image-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-image-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.auth-image-logo span {
  font-size: 1.125rem;
  font-weight: 700;
  display: block;
}

.auth-image-logo small {
  color: var(--gob-gray);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-image-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-image-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.auth-features svg {
  color: var(--gob-accent-light);
  flex-shrink: 0;
}

/* ============================================================
   LADO DEL FORMULARIO
   ============================================================ */

.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--gob-white);
  min-height: 100vh;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

.auth-form-container h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gob-neutral);
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  color: var(--gob-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-error svg {
  flex-shrink: 0;
}

.auth-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-success svg {
  flex-shrink: 0;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gob-neutral);
  margin-bottom: 0.375rem;
}

.auth-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-group svg {
  position: absolute;
  left: 0.75rem;
  color: var(--gob-gray);
  pointer-events: none;
  z-index: 1;
}

.auth-input-group input,
.auth-input-group select {
  width: 100%;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--gob-white);
  color: var(--gob-neutral);
  font-family: var(--font-sans);
  appearance: none;
}

.auth-input-group input:focus,
.auth-input-group select:focus {
  outline: none;
  border-color: var(--gob-primary);
  box-shadow: 0 0 0 3px rgba(155, 34, 71, 0.1);
}

.auth-input-group select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2398999A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.auth-file input[type="file"] {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  cursor: pointer;
}

.auth-file input[type="file"]::file-selector-button {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--gob-primary);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.2s;
}

.auth-file input[type="file"]::file-selector-button:hover {
  background: var(--gob-primary-dark);
}

.auth-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--gob-gray);
  margin-top: 0.25rem;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gob-primary);
  cursor: pointer;
}

.auth-checkbox label {
  font-size: 0.875rem;
  color: var(--gob-gray);
}

.auth-checkbox label a {
  color: var(--gob-primary);
  font-weight: 600;
}

.auth-checkbox label a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--gob-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.auth-btn:hover {
  background: var(--gob-primary-dark);
}

.auth-btn:active {
  transform: scale(0.98);
}

.auth-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gob-gray);
  margin-top: 1.5rem;
}

.auth-link a {
  color: var(--gob-primary);
  font-weight: 600;
}

.auth-link a:hover {
  text-decoration: underline;
}

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

@media (max-width: 1024px) {
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-grid-reverse {
    direction: ltr;
  }

  .auth-grid-reverse > * {
    direction: ltr;
  }

  .auth-image {
    min-height: 50vh;
    width: 100%;
  }

  .auth-image-content {
    max-width: 100%;
    text-align: center;
  }

  .auth-image-logo {
    justify-content: center;
  }

  .auth-features {
    align-items: center;
  }

  .auth-form {
    min-height: auto;
    padding: 2.5rem 1.5rem;
  }

  .auth-form-container {
    max-width: 100%;
  }

  .auth-back-link-global {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 640px) {
  .auth-image {
    display: none;
  }

  .auth-form {
    min-height: 100vh;
    padding: 2rem 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .auth-form-container {
    max-width: 100%;
    padding: 0;
  }

  .auth-form-container h2 {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 0.9rem;
  }

  .auth-field {
    margin-bottom: 1rem;
  }

  .auth-input-group input,
  .auth-input-group select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  }

  .auth-input-group svg {
    width: 16px;
    height: 16px;
    left: 0.625rem;
  }

  .auth-btn {
    font-size: 0.95rem;
    padding: 0.625rem;
  }

  .auth-checkbox label {
    font-size: 0.8rem;
  }

  .auth-back-link-global {
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
  }

  .auth-back-link-global svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 380px) {
  .auth-form {
    padding: 1.5rem 1rem;
  }

  .auth-form-container h2 {
    font-size: 1.25rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .auth-input-group input,
  .auth-input-group select {
    font-size: 0.8rem;
    padding: 0.4rem 0.625rem 0.4rem 2rem;
  }

  .auth-input-group svg {
    width: 14px;
    height: 14px;
    left: 0.5rem;
  }
}