/* ==========================================
   TRABAJA CON NOSOTROS - PÁGINA COMPLETA
   ========================================== */

/* ==========================================
   BOTONES - Sin subrayado
   ========================================== */
[class*="btn-"],
[class*="btn-"]:hover,
[class*="btn-"]:focus,
[class*="btn-"]:active {
  text-decoration: none !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.trabaja-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 140px 0 100px;
  background: var(--color-gray-50);
  z-index: 1;
}

/* Imagen de fondo difuminada en blanco y negro */
.trabaja-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/imagenes/almacen_2.webp');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) blur(3px) opacity(0.15);
  z-index: 0;
}

.trabaja-hero-bg {
  display: none;
}

.trabaja-hero-overlay {
  display: none;
}

.trabaja-hero > .container {
  position: relative;
  z-index: 1;
}

[data-bs-theme="dark"] .trabaja-hero {
  background: var(--color-primary);
}

[data-bs-theme="dark"] .trabaja-hero::before {
  filter: grayscale(100%) blur(3px) opacity(0.08);
}

.trabaja-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.trabaja-hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInLeft 0.8s ease-out;
}

.trabaja-badge-top {
  align-self: flex-start;
}

.trabaja-hero-text {
  /* Contenedor de texto del hero */
}

.trabaja-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: 1.25rem;
}

[data-bs-theme="dark"] .trabaja-hero-title {
  color: var(--color-white);
}

.trabaja-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
}

[data-bs-theme="dark"] .trabaja-hero-subtitle {
  color: var(--color-gray-300);
}

.trabaja-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.trabaja-hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.6s both;
}

.trabaja-hero-visual {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 30px;
  padding: 50px 40px;
  border: 2px solid var(--color-gray-200);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  overflow: hidden;
  animation: floatPanel 6s ease-in-out infinite;
}

.trabaja-hero-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes floatPanel {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

[data-bs-theme="dark"] .trabaja-hero-visual {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(26, 45, 74, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.trabaja-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.trabaja-stat-item {
  text-align: center;
  padding: 25px 20px;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
  border-radius: 16px;
  border: 2px solid var(--color-gray-200);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.trabaja-stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-success) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.trabaja-stat-item:hover::before {
  opacity: 1;
}

.trabaja-stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: transparent;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.trabaja-stat-item:nth-child(1) {
  animation: fadeInScale 0.6s ease-out 0.2s both;
}

.trabaja-stat-item:nth-child(2) {
  animation: fadeInScale 0.6s ease-out 0.4s both;
}

.trabaja-stat-item:nth-child(3) {
  animation: fadeInScale 0.6s ease-out 0.6s both;
}

.trabaja-stat-item:nth-child(4) {
  animation: fadeInScale 0.6s ease-out 0.8s both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

[data-bs-theme="dark"] .trabaja-stat-item {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.25) 100%);
  border-color: rgba(37, 99, 235, 0.3);
}

.trabaja-stat-number {
  font-size: 2.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-accent), var(--color-success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.trabaja-stat-item:hover .trabaja-stat-number {
  -webkit-text-fill-color: var(--color-white);
  transform: scale(1.1);
}

.trabaja-stat-label {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

.trabaja-stat-item:hover .trabaja-stat-label {
  color: var(--color-white);
}

[data-bs-theme="dark"] .trabaja-stat-label {
  color: var(--color-gray-300);
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: var(--color-white);
}

.btn-hero-secondary {
  background: var(--color-white);
  color: var(--color-accent);
  border: 2px solid var(--color-gray-200);
}

.btn-hero-secondary:hover {
  background: var(--color-gray-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--color-accent);
}

/* ==========================================
   PERFIL SECTION
   ========================================== */
.perfil-section {
  padding: 120px 0;
  background: var(--color-white);
}

[data-bs-theme="dark"] .perfil-section {
  background: var(--color-gray-900);
}

.perfil-card {
  background: var(--color-gray-50);
  border-radius: 16px;
  padding: 30px 24px;
  height: 100%;
  transition: all 0.4s ease;
  border: 2px solid var(--color-gray-200);
}

[data-bs-theme="dark"] .perfil-card {
  background: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.perfil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--color-accent);
}

.perfil-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-success));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.perfil-card-icon i {
  font-size: 1.75rem;
  color: var(--color-white);
}

.perfil-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 18px;
}

[data-bs-theme="dark"] .perfil-card-title {
  color: var(--color-white);
}

.perfil-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.perfil-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.perfil-list li i {
  font-size: 1.125rem;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.perfil-list li span {
  color: var(--color-gray-700);
}

[data-bs-theme="dark"] .perfil-list li span {
  color: var(--color-gray-300);
}

/* ==========================================
   CONOCE ORETANA SECTION
   ========================================== */
.conoce-section {
  padding: 120px 0;
  background: var(--color-gray-50);
}

[data-bs-theme="dark"] .conoce-section {
  background: var(--color-primary-light);
}

.conoce-content {
  animation: fadeInLeft 0.8s ease-out;
}

.conoce-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .conoce-text {
  color: var(--color-gray-300);
}

.conoce-features {
  margin: 3rem 0;
}

.conoce-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-success-light);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--color-gray-700);
  border-left: 4px solid var(--color-success);
}

.conoce-feature i {
  color: var(--color-success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

[data-bs-theme="dark"] .conoce-feature {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-gray-300);
}

.conoce-feature > div {
  flex: 1;
}

.conoce-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .conoce-feature h4 {
  color: var(--color-white);
}

.conoce-feature p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  margin: 0;
  line-height: 1.6;
}

[data-bs-theme="dark"] .conoce-feature p {
  color: var(--color-gray-400);
}

.btn-conoce {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-conoce::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-conoce:hover::before {
  left: 100%;
}

.btn-conoce:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: white;
}

.conoce-image-wrapper {
  animation: fadeInRight 0.8s ease-out;
}

.conoce-image {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   FORMULARIO SECTION
   ========================================== */
.formulario-section {
  padding: 120px 0;
  background: var(--color-white);
}

[data-bs-theme="dark"] .formulario-section {
  background: var(--color-gray-900);
}

.formulario-header {
  margin-bottom: 60px;
}

.formulario-card {
  background: var(--color-gray-50);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

[data-bs-theme="dark"] .formulario-card {
  background: var(--color-primary);
}

.trabaja-form .form-label {
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

[data-bs-theme="dark"] .trabaja-form .form-label {
  color: var(--color-white);
}

.trabaja-form .form-control,
.trabaja-form select {
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid var(--color-gray-300);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--color-white);
}

[data-bs-theme="dark"] .trabaja-form .form-control,
[data-bs-theme="dark"] .trabaja-form select {
  background: var(--color-primary-light);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.trabaja-form .form-control:focus,
.trabaja-form select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 40px;
  border: 2px dashed var(--color-gray-300);
  border-radius: 12px;
  background: var(--color-white);
  text-align: center;
  justify-content: center;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .file-upload-info {
  background: var(--color-primary-light);
  border-color: rgba(255, 255, 255, 0.2);
}

.file-upload-info:hover {
  border-color: var(--color-accent);
  background: var(--color-gray-100);
}

[data-bs-theme="dark"] .file-upload-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.file-upload-info i {
  font-size: 2rem;
  color: var(--color-accent);
}

.file-upload-info span {
  color: var(--color-gray-600);
  font-weight: 500;
}

[data-bs-theme="dark"] .file-upload-info span {
  color: var(--color-gray-300);
}

/* Checkbox - Estilo presupuesto */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-group:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.checkbox-label {
    font-size: 15px !important;
    color: #000000 !important;
    cursor: pointer;
    flex: 1;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checkbox-label a {
    color: #10b981;
    text-decoration: underline;
    font-weight: 600;
}

.checkbox-label a:hover {
    color: #059669;
}

[data-bs-theme="dark"] .checkbox-group {
    background: var(--color-gray-800);
    border-color: var(--color-gray-600);
}

[data-bs-theme="dark"] .checkbox-group:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

[data-bs-theme="dark"] .checkbox-group input[type="checkbox"] {
    accent-color: #10b981;
}

[data-bs-theme="dark"] .checkbox-label {
    color: var(--color-gray-300) !important;
}

.btn-form-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-form-submit:hover::before {
  left: 100%;
}

.btn-form-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ==========================================
   DUDAS SECTION
   ========================================== */
.dudas-section {
  padding: 80px 0 120px;
  background: var(--color-gray-50);
}

[data-bs-theme="dark"] .dudas-section {
  background: var(--color-primary-light);
}

.dudas-card {
  background: var(--color-gray-50);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  border: 2px solid var(--color-gray-200);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dudas-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--color-success);
}

.dudas-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.dudas-text {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 0;
  line-height: 1.6;
}

.btn-dudas {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-dudas::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-dudas:hover::before {
  left: 100%;
}

.btn-dudas:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  color: white;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   TARJETAS FLIP MODERNAS - Hero
   ========================================== */
.flip-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  align-items: stretch;
  position: relative;
}

.flip-card {
  position: relative;
  perspective: 1000px;
  width: 100%;
  height: 100%;
  cursor: default;
  contain: layout size;
  isolation: isolate;
  overflow: visible;
  pointer-events: none;
}

.flip-card-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  transform-origin: center center;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  margin: 0;
}

/* FRENTE de la tarjeta */
.flip-card-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.flip-card-front::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.flip-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  position: relative;
  z-index: 1;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.flip-card-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
}

.flip-card-label {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
}

.flip-hint {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  position: relative;
  z-index: 1;
  opacity: 0.8;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* REVERSO de la tarjeta */
.flip-card-back {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  position: relative;
  overflow: hidden;
}

.flip-card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.flip-card-back-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.flip-card-back-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

.flip-card-back-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* Hover effects */
.flip-card:hover .flip-card-front {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-icon {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

/* Modo oscuro */
[data-bs-theme="dark"] .flip-card-front {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

[data-bs-theme="dark"] .flip-card-label {
  color: #e2e8f0;
}

[data-bs-theme="dark"] .flip-hint {
  color: #94a3b8;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES TOAST
   ============================================ */

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    animation: slideInToast 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: right center;
}

.toast.removing {
    animation: slideOutToast 0.3s ease-in-out forwards;
}

/* Animaciones */
@keyframes slideInToast {
    from {
        transform: translateX(calc(100% + 40px)) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 40px)) scale(0.95);
        opacity: 0;
    }
}

/* Barra de progreso */
.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: currentColor;
    opacity: 0.15;
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Icono del toast */
.toast-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    position: relative;
    overflow: hidden;
}

.toast-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0.1;
}

.toast-icon i {
    position: relative;
    z-index: 1;
}

/* Contenido del toast */
.toast-content {
    flex: 1;
    padding-top: 2px;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Botón de cerrar */
.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    padding: 0;
    margin-top: -2px;
}

.toast-close:hover {
    background: #f1f5f9;
    color: #475569;
    transform: scale(1.1);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Toast de éxito - Verde */
.toast.toast-success {
    color: #10b981;
}

.toast.toast-success .toast-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    animation: successPulseAnim 0.6s ease-out;
}

@keyframes successPulseAnim {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Toast de error - Rojo */
.toast.toast-error {
    color: #ef4444;
}

.toast.toast-error .toast-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    animation: errorShakeAnim 0.5s ease-out;
}

@keyframes errorShakeAnim {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}

/* Toast de advertencia - Amarillo */
.toast.toast-warning {
    color: #f59e0b;
}

.toast.toast-warning .toast-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

/* Toast de información - Azul */
.toast.toast-info {
    color: #3b82f6;
}

.toast.toast-info .toast-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}

/* =================================================================
   BOTÓN VACIAR FORMULARIO
   ================================================================= */

.btn-clear-form {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.btn-clear-form:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-clear-form i {
    font-size: 16px;
}

/* Efecto de brillo en botón vaciar */
.btn-clear-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-clear-form:hover::before {
    left: 100%;
}

/* Asegurar que el texto esté por encima del efecto */
.btn-clear-form > * {
    position: relative;
    z-index: 2;
}

