:root {
  --brand: #1d4ed8;
  --brand-dark: #0f2a7a;
  --accent: #0ea5e9;
  --ink: #0b1221;
  --muted: #475569;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body) !important;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(1000px 500px at 5% 10%, rgba(29, 78, 216, 0.14), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f7f8fb 100%);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
  color: #0b1221;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.back-home-btn svg {
  width: 16px;
  height: 16px;
  color: #1d4ed8;
}

.back-home-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.back-home-text-short { display: none; }
.back-home-text-long { display: inline; }

@media (max-width: 700px) {
  .back-home-text-long { display: none; }
  .back-home-text-short { display: inline; }
  #mobile-topbar .mt-actions .back-home-btn {
    padding: 6px 10px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  }
}

.btn,
button.btn,
input[type="submit"],
input[type="button"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 78, 216, 0.2);
  padding: 10px 16px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-soft);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: transparent;
}

.card,
.panel,
.section-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid rgba(29, 78, 216, 0.25);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  body {
    background: #ffffff;
  }
}

/* Site footer refined: equal-width columns, hidden description, spaced contact lines */
.site-footer{
  margin-top: 28px;
  padding: 28px 20px;
  border-top: 1px solid #e6e9ee;
  background-color: #ffffff;
  background-image: url("../fondoonda.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}
.site-footer .inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  align-items: start;
  justify-items: stretch;
  position: relative;
}
.site-footer .inner > div{ width:100%; max-width:360px; }
.sf-brand{ display:flex; gap:12px; align-items:center; text-align:center; justify-content:center; min-width:0; }
.sf-logo{ display:block; background:transparent; border:none; padding:0; overflow:visible; flex:0 0 auto; }
.sf-logo img{ display:block; width:auto; height:120px; max-width:100%; margin:0; }
.sf-text{ display:none !important; }
.sf-col-title{ font-weight:800; color:#0b1633; font-size:0.96rem; margin:0 0 10px; text-align:left; }
.sf-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; text-align:left; }
.sf-list a{ color:var(--muted); text-decoration:none; font-size:0.95rem; line-height:1.5; }
.sf-list a:hover{ text-decoration:underline; color:#0b1633; }
.sf-contact-item{ display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:0.95rem; line-height:1.8; }
.sf-ic{ width:18px; height:18px; margin-top:2px; color:var(--brand); flex:0 0 auto; }
.sf-bottom{
  max-width:1180px; margin:18px auto 0; padding-top:12px; border-top:1px solid rgba(226,232,240,0.9);
  display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; color:#64748b; font-size:0.82rem; line-height:1.4; position:relative;
  text-align:right;
}
.sf-bottom a{ color:inherit; text-decoration:none; }
.sf-bottom a:hover{ text-decoration:underline; }
@media (max-width:900px){
  .site-footer .inner{ grid-template-columns: 1fr; }
  .sf-brand{ justify-content:center; text-align:center; }
  .sf-logo img{ height:72px; }
  .site-footer .inner > div{ max-width:100%; }
}
