/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2937;
  line-height: 1.5;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.15;
  color: #111827;
}

.page-subtitle {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 1rem;
}

/* =========================
   HEADER / FOOTER
========================= */
.site-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 28px 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.15;
}

.site-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.95;
}

.site-footer {
  text-align: center;
  padding: 18px 16px 28px;
  color: #6b7280;
  font-size: 0.92rem;
}

/* =========================
   CARDS
========================= */
.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.35rem;
  color: #111827;
}

.section-sub {
  margin-top: 0;
  margin-bottom: 18px;
  color: #6b7280;
  font-size: 0.95rem;
}

/* =========================
   TOOL GRID (INDEX)
========================= */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.tool-card {
  background: white;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.tool-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #111827;
}

.tool-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 0.97rem;
}

/* =========================
   FORMS
========================= */
.form-grid-2,
.form-grid-3,
.form-grid-4 {
  display: grid;
  gap: 16px;
}

.form-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 0.95rem;
}

.field small {
  margin-top: 6px;
  color: #6b7280;
  font-size: 0.82rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* =========================
   BUTTONS / LINKS
========================= */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.primary-btn,
.secondary-btn,
.link-btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

.primary-btn:active,
.secondary-btn:active,
.link-btn:active {
  transform: translateY(1px);
}

.primary-btn {
  background: #2563eb;
  color: white;
}

.primary-btn:hover {
  opacity: 0.92;
}

.secondary-btn {
  background: #e5e7eb;
  color: #111827;
}

.secondary-btn:hover {
  opacity: 0.92;
}

.link-btn {
  background: #111827;
  color: white;
  text-align: center;
}

.link-btn:hover {
  opacity: 0.92;
}

/* =========================
   RESULTS
========================= */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.result-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.result-box h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #111827;
}

.result-box ul {
  margin: 0;
  padding-left: 18px;
}

.result-box li {
  margin-bottom: 8px;
  color: #374151;
}

.result-box p {
  margin: 0 0 8px;
}

/* =========================
   SUMMARY TABLES / LISTS
========================= */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.summary-table th,
.summary-table td {
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  text-align: left;
  font-size: 0.95rem;
}

.summary-table th {
  background: #f3f4f6;
  color: #111827;
}

/* =========================
   COLLAPSIBLE PRICE AREA
========================= */
details.price-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
}

details.price-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  list-style: none;
}

details.price-panel summary::-webkit-details-marker {
  display: none;
}

details.price-panel[open] {
  padding-bottom: 18px;
}

.price-note {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 6px;
  margin-bottom: 14px;
}

/* =========================
   PRINT SHEET
========================= */
.print-sheet {
  display: none;
  background: white;
  color: black;
}

.print-sheet h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.print-sheet h2 {
  margin-bottom: 8px;
  margin-top: 0;
  font-size: 1.1rem;
}

.print-sheet p {
  margin: 4px 0;
  font-size: 0.95rem;
}

.print-block {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* =========================
   UTILITY
========================= */
.no-print {
  display: block;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .site-header {
    padding: 24px 16px;
  }

  .site-header h1 {
    font-size: 1.7rem;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .tool-card {
    min-height: auto;
    padding: 18px;
  }

  .button-row {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .link-btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   PRINT
========================= */
@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
    color: black;
    font-size: 11pt;
  }

  .no-print,
  .site-header,
  .site-footer,
  .container > *:not(.print-sheet) {
    display: none !important;
  }

  .print-sheet {
    display: block !important;
    padding: 0.35in 0.45in;
    width: 100%;
    max-width: 8.5in;
    margin: 0 auto;
  }

  .print-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  @page {
    size: letter;
    margin: 0.35in;
  }
}

/* About Me Styles */
.about-me-section {
  border-left: 5px solid #2563eb; /* Un borde azul para resaltar */
  background: #ffffff;
}

.about-text h2 {
  margin-top: 0;
  color: #1e3a8a;
  font-size: 1.5rem;
}

.about-text p {
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}