/* Celestina Soluciones - Cotizaciones */
:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --accent: #ff6f00;
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --text: #212121;
  --text-light: #757575;
  --border: #e0e0e0;
  --success: #2e7d32;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.login-box {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.login-box .subtitle {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.login-box input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.login-box button {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.login-box button:hover {
  background: var(--primary-light);
}

.login-error {
  color: #c62828;
  margin-top: 12px;
  font-size: 0.85rem;
  display: none;
}

/* Propuesta Page */
.propuesta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.propuesta-header {
  background: var(--primary);
  color: white;
  padding: 40px;
  border-radius: 12px 12px 0 0;
  text-align: center;
}

.propuesta-header h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.propuesta-header .fecha {
  opacity: 0.8;
  font-size: 0.9rem;
}

.propuesta-header .empresa {
  font-size: 1.1rem;
  margin-top: 4px;
  opacity: 0.9;
}

.propuesta-body {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
}

.section {
  margin-bottom: 32px;
}

.section h2 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.section p {
  margin-bottom: 12px;
  color: var(--text);
}

/* Tabla de actividades */
.activities-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.activities-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.activities-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.activities-table tr:hover {
  background: #f8f9fa;
}

.activities-table .num {
  width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
}

/* Lista */
.req-list {
  list-style: none;
  padding: 0;
}

.req-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.req-list li:last-child {
  border-bottom: none;
}

.req-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Costos */
.costo-total {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  margin: 16px 0;
}

.costo-total .monto {
  font-size: 2rem;
  font-weight: 700;
}

.pagos-list {
  list-style: none;
  padding: 0;
}

.pagos-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

/* Footer */
.propuesta-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
}

.propuesta-footer .firma {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .propuesta-header {
    padding: 24px;
  }
  .propuesta-body {
    padding: 24px;
  }
  .activities-table {
    font-size: 0.8rem;
  }
  .activities-table th,
  .activities-table td {
    padding: 8px;
  }
}
