/* ====================================
   FLORES MADRIZ - Visitor Management System
   Design System & Global Styles
   ==================================== */

:root {
  /* Color Palette - Professional Gray */
  --gold-primary: #636c6f;
  --gold-light: #7a8387;
  --gold-dark: #4a5254;
  --beige-light: #f5f1e8;
  --beige-medium: #e8e0d0;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray-dark: #2d2d2d;
  --gray-medium: #6b6b6b;
  --gray-light: #e0e0e0;

  /* Semantic Colors */
  --success: #4caf50;
  --error: #f44336;
  --warning: #ff9800;

  /* Spacing System */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ====================================
   Reset & Base Styles
   ==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--white) 100%);
  color: var(--gray-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====================================
   Background Effects
   ==================================== */

body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ====================================
   Container & Layout
   ==================================== */

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* ====================================
   Header & Logo
   ==================================== */

.header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  animation: fadeInDown 0.8s ease;
}

.logo-container {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: inline-block;
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.logo {
  max-width: 300px;
  height: auto;
  display: block;
}

.header h1 {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  letter-spacing: 1px;
}

.header p {
  font-size: 1.1rem;
  color: var(--gray-medium);
  font-weight: 300;
}

/* ====================================
   Form Card
   ==================================== */

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.form-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  color: var(--gold-dark);
  margin-bottom: var(--spacing-md);
  text-align: center;
  font-weight: 600;
}

.form-subtitle {
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: var(--spacing-xl);
  font-size: 0.95rem;
}

/* ====================================
   Form Groups & Inputs
   ==================================== */

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.form-group:focus-within .form-label {
  color: var(--gold-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--gray-dark);
  background: var(--white);
  transition: all var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
  transform: translateY(-2px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-medium);
  opacity: 0.6;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Input Icons */
.form-group-with-icon {
  position: relative;
}

.form-group-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-medium);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-group-with-icon:focus-within .input-icon {
  color: var(--gold-primary);
}

.form-group-with-icon .form-input {
  padding-left: 2.75rem;
}

/* ====================================
   Buttons
   ==================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--white);
  box-shadow: var(--shadow-md);
  width: 100%;
  margin-top: var(--spacing-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  margin-left: var(--spacing-xs);
  transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ====================================
   Loading State
   ==================================== */

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ====================================
   Alerts & Messages
   ==================================== */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  animation: slideIn 0.3s ease;
  font-size: 0.95rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-error {
  background: rgba(244, 67, 54, 0.1);
  color: var(--error);
  border-left: 4px solid var(--error);
}

/* ====================================
   Animations
   ==================================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   Footer
   ==================================== */

.footer {
  text-align: center;
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-lg);
  color: var(--gray-medium);
  font-size: 0.875rem;
  animation: fadeInUp 1s ease;
}

.footer a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }

  .form-card {
    padding: var(--spacing-lg);
  }

  .logo {
    max-width: 200px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header p {
    font-size: 1rem;
  }

  .form-title {
    font-size: 1.5rem;
  }
}

/* ====================================
   Utility Classes
   ==================================== */

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeInUp 0.5s ease;
}/* ===========================================
   PARALLAX BACKGROUND - Agregar al final de styles.css
   =========================================== */

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -2;
}