/* ============================
   RESET + BASE
============================ */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  background: #f7f9fc;
  color: #1f2933;
}

/* ============================
   TIPOGRAFÍA
============================ */

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: 2.6rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.2em;
  max-width: 760px;
}

.lead {
  font-size: 1.15rem;
  color: #475569;
}

/* ============================
   LAYOUT GENERAL
============================ */

main.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

section {
  margin-bottom: 4rem;
}

/* ============================
   HERO
============================ */

.home-hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-video video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ============================
   CATEGORÍAS
============================ */

.home-categories h2 {
  margin-bottom: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: block;
  padding: 1.6rem;
  border-radius: 16px;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card p {
  font-size: 0.95rem;
  color: #475569;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

/* ============================
   BLOQUE AUTORIDAD
============================ */

.autoridad {
  background: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.autoridad p {
  font-size: 1.05rem;
}

/* ============================
   LISTAS
============================ */

ul {
  padding-left: 0;
  list-style: none;
  max-width: 760px;
}

ul li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* ============================
   RESPONSIVE
============================ */

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

  h1 {
    font-size: 2.2rem;
  }
}
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 84px;
  width: auto;
  display: block;
}
header {
  display: flex;
  align-items: center;
}

.logo {
  margin-right: 32px;
}
main.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.home-hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563;
}

.hero-video video {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

.side-nav {
  position: sticky;
  top: 100px;
}

.side-nav a {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  text-decoration: none;
  color: #0369a1;
  font-weight: 500;
}
/* =========================
   HEADER GLOBAL
   ========================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 84px;          /* 👈 lo que pedías */
  width: auto;
  display: block;
}

/* NAV */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #0284c7;
}

/* BOTÓN HAMBURGUESA (hidden desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  margin: 5px 0;
}
@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
}
/* =========================
   FOOTER
   ========================= */

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
}

/* ABOUT */
.footer-about h3,
.footer-nav h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* NAV */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: #38bdf8;
}

/* LEGAL */
.footer-legal {
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
/* =========================
   HOME CATEGORIES
   ========================= */

.home-categories {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.home-categories h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* CARD */
.category-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

/* IMAGE */
.category-image {
  height: 160px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.category-content {
  padding: 1.5rem;
}

.category-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.category-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}
