:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --light: #ecf0f1;
  --dark: #2c3e50;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.calculator-grid {
  display: grid;
  /*grid-template-columns: 1fr 1fr;*/
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.input-section {
  background: #f8f9fa;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
}

.input-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--secondary);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

button {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.calculate {
  background: var(--secondary);
  color: white;
  flex: 2;
}

.clear {
  background: var(--accent);
  color: white;
  flex: 1;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.results-section {
  background: white;
  /*padding: 1.5rem;*/
  border-radius: 8px;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
}

.summary-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  h3 {
    margin-bottom: 1rem;
  }
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table th {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: left;
}

.schedule-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
}

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

.cashnecesario {
  background-color: #faebd7;
}
.atencion {
  background-color: #ffcccb;
  color: #c0392b;
}
/* Quitar flechas en Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quitar flechas en Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

@media (max-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .input-section {
    grid-template-columns: 1fr;
  }
}
