/* ========================= */
/* ===== RESET & BASE ====== */
/* ========================= */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía y body */
body {
  font-family: "Inter", "Poppins", "Montserrat", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #1c1f2c, #11141e);
  color: #ffffff;
  min-height: 100vh;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: #2161e7;
}

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Listas */
ul,
ol {
  list-style: none;
}

/* Tablas */
table {
  border-collapse: collapse;
  width: 100%;
}

/* Inputs y botones base */
input,
select,
button,
textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}

/* Contenedor genérico */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Agregando estilos comunes que se repetían en múltiples archivos */

/* Contenedor principal de calculadoras */
.container-calculadora-lees {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.estilos-calculadora-lees {
  padding: 32px 20px;
}

/* Header común */
.bienvenida-header {
  text-align: center;
  margin-bottom: 28px;
}

.bienvenida-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.bienvenida-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Títulos principales */
.main-title-calculadora-lees {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-align: center;
  margin-bottom: 24px;
}

/* Secciones comunes */
.section-title {
  padding: 12px;
  border-radius: 10px;
  margin: 28px 0 12px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #ffffff;
}

.section-title.blue {
  background: rgba(33, 97, 231, 0.2);
}

.section-title.green {
  background: rgba(0, 200, 100, 0.2);
}

.section-title.orange {
  background: rgba(255, 165, 0, 0.2);
}

.section-body {
  background: none;
  border: none;
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

/* Grid de inputs común */
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.input-group input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #2a2d3c;
  color: #fff;
  transition: 0.2s;
}

.input-group input:focus {
  border: 1px solid #2161e7;
  box-shadow: 0 0 8px rgba(33, 97, 231, 0.6);
}

/* Tablas de datos comunes */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: center;
  background: none;
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  color: #ffffff;
}

.data-table th {
  background: #1d2233;
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  background: rgba(37, 89, 246, 1);
}

/* Cards de resumen comunes */
.results-summary {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1;
  min-width: 220px;
  background: #2a2d3c;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.summary-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #ffffff;
}

.summary-card {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

/* Notas comunes */
.notes {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

/* Contenedor de tabla responsive */
.table-container {
  overflow-x: auto;
}
