@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F4F7FB;
  color: #1E293B;
  font-size: 16px;
  line-height: 1.6;
}

/* ── NAVBAR ── */
.navbar {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #185FA5;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: #64748B;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: #185FA5;
}

/* Menú hamburguesa */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #1E293B;
  font-size: 1.5rem;
  padding: 4px;
}

.navbar-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 0.75rem 1.5rem;
  gap: 0;
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile a {
  text-decoration: none;
  color: #64748B;
  font-size: 0.95rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #F1F5F9;
  transition: color 0.2s;
}

.navbar-mobile a:last-child {
  border-bottom: none;
}

.navbar-mobile a:hover {
  color: #185FA5;
}

/* ── HERO ── */
.hero {
  background: #185FA5;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: #85B7EB;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  color: #B5D4F4;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: #EF9F27;
  color: #412402;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #BA7517;
  color: #412402;
}

/* ── CONTAINER ── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── SECCIÓN ── */
.section {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #64748B;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── GRID DE TARJETAS ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
  display: block;
}

.tool-card:hover {
  border-color: #378ADD;
  transform: translateY(-2px);
}

.tool-card-icon {
  width: 40px;
  height: 40px;
  background: #E6F1FB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #185FA5;
}

.tool-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.25rem;
}

.tool-card p {
  font-size: 0.82rem;
  color: #64748B;
}

/* ── PÁGINA DE HERRAMIENTA ── */
.tool-page {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.tool-page h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.4rem;
}

.tool-page .tool-desc {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ── FORMULARIO ── */
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #1E293B;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #378ADD;
  box-shadow: 0 0 0 3px #E6F1FB;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid .full {
  grid-column: span 2;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-blue {
  background: #185FA5;
  color: #fff;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.btn-blue:hover {
  background: #0C447C;
}

/* ── RESULTADO ── */
.result-box {
  background: #F4F7FB;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.result-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.result-text {
  font-size: 0.95rem;
  color: #1E293B;
  line-height: 1.8;
  padding-left: 2em;
  text-indent: -2em;
}

.btn-copy {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #fff;
  color: #64748B;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.btn-copy:hover {
  border-color: #378ADD;
  color: #185FA5;
}

.btn-copy.copied {
  border-color: #1D9E75;
  color: #0F6E56;
  background: #E1F5EE;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #378ADD;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  background: #0C447C;
  color: #85B7EB;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  margin-top: 4rem;
}

/* ── SEO ── */
.seo-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 1rem;
  text-align: center;
}

.seo-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #185FA5;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.seo-content p {
  color: #64748B;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.seo-section {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.seo-card {
  margin-bottom: 1.25rem;
}

.seo-card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 0.75rem;
}

.seo-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #185FA5;
  margin: 1rem 0 0.4rem;
}

.seo-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ── ENLACES INTERNOS ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1rem 0.75rem;
  background: #F4F7FB;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-decoration: none;
  color: #1E293B;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

.related-card:hover {
  border-color: #378ADD;
  transform: translateY(-2px);
  color: #185FA5;
}

.related-card i {
  font-size: 1.4rem;
  color: #185FA5;
}

/* ── BENEFICIOS ── */
.benefits-section {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  padding: 1.25rem 1.5rem;
}

.benefits-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  width: 36px;
  height: 36px;
  background: #E6F1FB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #185FA5;
}

.benefit-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1E293B;
  margin: 0 0 2px;
}

.benefit-desc {
  font-size: 0.78rem;
  color: #64748B;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 1.25rem; }
  .navbar-links { display: none; }
  .navbar-toggle { display: block; }

  /* Hero */
  .hero { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.9rem; }

  /* Beneficios */
  .benefits-grid { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Herramientas */
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .section { padding: 2rem 1.25rem; }

  /* Tool page */
  .tool-page { margin: 1.5rem auto; padding: 0 1.25rem; }
  .tool-page h1 { font-size: 1.35rem; }

  /* Card */
  .card { padding: 1.25rem; }

  /* Formularios */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }

  /* SEO */
  .seo-section { padding: 0 1.25rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero h1 { font-size: 1.45rem; }

  /* Herramientas — 1 columna en pantallas muy pequeñas */
  .tools-grid { grid-template-columns: 1fr; }

  /* Tabs */
  .tabs { gap: 6px; }
  .tab { padding: 6px 12px; font-size: 0.8rem; }

  /* Related */
  .related-grid { grid-template-columns: 1fr 1fr; }

  /* Navbar */
  .navbar { padding: 0 1rem; }
  .navbar-logo { font-size: 1.1rem; }
}