/* =========================
   RESET + BASE
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #e0f2fe;
  color: #0f172a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

/* =========================
   BREADCRUMB
========================= */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #64748b;
}

.breadcrumb a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER
========================= */
.app-header {
  margin-bottom: 2.5rem;
}

.app-header h1 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-weight: 600;
}

.subtitle {
  font-size: 0.95rem;
  color: #475569;
}

/* =========================
   PANELS
========================= */
.panel {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}

.panel:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0369a1;
}

.panel h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #0284c7;
  font-weight: 600;
}

/* =========================
   FORM ELEMENTS
========================= */
label {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
}

input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  color: #0f172a;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* =========================
   BUTTONS
========================= */
button {
  margin-top: 1.5rem;
  padding: 0.7rem 1.2rem;
  background-color: #0284c7;
  border: none;
  border-radius: 0.6rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* =========================
   RESULTS & NOTES
========================= */
.result {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0369a1;
}

.note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #475569;
}

/* =========================
   TABLE
========================= */
.table-wrapper {
  margin-top: 3.5rem;
}

.acid-base-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.acid-base-table th,
.acid-base-table td {
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

/* Secciones */
.acid-base-table .section th {
  background-color: #f0f9ff;
  color: #0369a1;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Contenido */
.acid-base-table .content td {
  background-color: #ffffff;
}

/* Hover */
@media (hover: hover) {
  .acid-base-table .content:hover td {
    background-color: #f8fafc;
  }
}

.acid-base-table strong {
  color: #0284c7;
  font-weight: 600;
}

.acid-base-table sub,
.acid-base-table sup {
  font-size: 0.7em;
  color: #475569;
}

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

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 4.5rem;
  padding: 3rem 1.25rem;
  border-top: 1px solid #cbd5e1;
  text-align: center;
  background-color: #e0f2fe;
}

.footer-nav {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: #0284c7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 0.75rem;
  color: #475569;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem 3rem;
  }

  .acid-base-table th,
  .acid-base-table td {
    padding: 0.85rem 0.75rem;
    font-size: 0.8rem;
  }

  .acid-base-table .section th {
    font-size: 0.85rem;
  }
}

/* =========================
   LANGUAGE SWITCHER
========================= */
.language-switcher {
  text-align: right;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.language-switcher a {
  color: #64748b;
  text-decoration: none;
  margin-left: 0.4rem;
  font-weight: 500;
}

.language-switcher a:hover {
  color: #0284c7;
}


.seo-panel details {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.seo-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.seo-panel h2,
.seo-panel h3 {
  margin-top: 1rem;
}
