
:root {
  --rojo-principal: #b01928;
  --rojo-oscuro: #7d111c;
  --negro: #111111;
  --texto-claro: #f7f7f7;
  --texto-suave: #dedede;
  --panel-fondo: rgba(0, 0, 0, 0.45);
  --panel-claro: rgba(255, 255, 255, 0.06);
  --max-width: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, var(--rojo-principal) 0, var(--rojo-oscuro) 35%, var(--negro) 100%);
  background-attachment: fixed;
  color: var(--texto-claro);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Brand bar with logo and gradient behind */
.brand-bar {
  padding: 0.4rem 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.85) 38%, var(--rojo-principal) 38%, var(--rojo-principal) 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.brand-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  max-height: 60px;
}

.brand-tagline {
  color: #ffffff;
  font-size: 1rem;
  text-align: right;
  font-weight: 500;
}

/* Header + nav */
header.site-header {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto-claro);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.9rem;
}

nav.main-nav a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--texto-claro);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background-color: var(--rojo-principal);
  border-color: var(--rojo-principal);
  transform: translateY(-1px);
}

main {
  max-width: var(--max-width);
  margin: 1.8rem auto 2.8rem;
  padding: 1.7rem 1.2rem 2.3rem;
  background-color: var(--panel-fondo);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-heading {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-weight: 750;
}

.page-subtitle,
.section-intro {
  font-size: 0.96rem;
  margin-bottom: 1rem;
  color: var(--texto-suave);
}

.band {
  height: 3px;
  border-radius: 999px;
  margin-bottom: 1rem;
  max-width: 280px;
  background: linear-gradient(90deg, var(--rojo-principal), var(--rojo-oscuro), var(--negro));
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.home-text {
  font-size: 0.98rem;
}

.home-card {
  background-color: var(--panel-claro);
  padding: 1rem;
  border-radius: 0.7rem;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-card h3 {
  margin-bottom: 0.4rem;
}

.home-card ul {
  list-style: disc;
  margin-left: 1.1rem;
}

.section {
  margin-bottom: 1.9rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.unit-list {
  list-style: none;
  font-size: 0.95rem;
}

.unit-item {
  margin-bottom: 1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  background-color: var(--panel-claro);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.unit-item-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.unit-item p {
  margin-left: 0.4rem;
}

.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.fees-table td {
  padding: 0.4rem 0.45rem;
  vertical-align: top;
}

.fees-table td:first-child {
  width: 70%;
}

.fees-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.fees-table tr:nth-child(odd) {
  background-color: var(--panel-claro);
}

.small-note {
  font-size: 0.86rem;
  margin-top: 0.5rem;
  color: var(--texto-suave);
}

.contact-box {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.9rem;
  font-size: 0.96rem;
}

.contact-row {
  margin-bottom: 0.3rem;
}

.contact-label {
  font-weight: 700;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.email-link {
  color: #ffd2d2;
  font-weight: 700;
  word-break: break-all;
}

footer.site-footer {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: var(--texto-suave);
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (max-width: 720px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .brand-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-tagline {
    text-align: left;
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    margin: 1.2rem auto 2.4rem;
  }
}
