:root {
  --brand-blue: #0b3d91;
  --brand-gold: #d4af37;
  --brand-white: #ffffff;
  --brand-dark: #10245e;
  --text-dark: #1a1a1a;
  --text-light: #f4f4f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: #f4f8ff;
  line-height: 1.5;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
}

.container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-dark));
  color: var(--brand-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 56px;
  height: auto;
  border: 2px solid var(--brand-white);
  border-radius: 8px;
  background: var(--brand-white);
  padding: 4px;
}

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
}

.brand p {
  margin: 0;
  font-size: 0.85rem;
  color: #e5e5ff;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--brand-white);
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  border-radius: 5px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
  border: 0;
  padding: 0.6rem 0.9rem;
  font-size: 1.2rem;
  color: var(--brand-white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  cursor: pointer;
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #051a42, #0d4a9d);
  color: var(--text-light);
  text-align: center;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
}

.hero p {
  max-width: 620px;
  margin: 1rem auto 1.8rem;
}

.cta {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
}

.content-section {
  padding: 2.2rem 0;
}

.content-section.alt {
  background-color: #eef3fb;
}

.content-section h3 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--brand-white);
  border: 1px solid #dce6f7;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(7, 33, 91, 0.08);
}

.site-footer {
  padding: 1.2rem 0;
  background: var(--brand-blue);
  color: var(--brand-white);
  text-align: center;
}

@media (max-width: 900px) {
  .grid-2, .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(11, 61, 145, 0.95);
    flex-direction: column;
    align-items: center;
    display: none;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Estilos para la página actual */
body {
  margin: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #10245e;
  background: #f4f8ff;
  line-height: 1.5;
  padding-bottom: 0;
}

div[style*="flex:1"] {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: #f4f8ff;
  color: #10245e;
}

.title {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image {
  flex: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

img {
  height: clamp(150px, 10vh, 300px);
  width: auto;
}

h1 {
  margin: 1.5rem 0 0.6rem;
  font-size: clamp(1.5rem, 7vh, 4rem);
}

section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 1.6rem 1rem;
  text-align: center;
  border-top: 1px solid #dce6f7;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1rem, 3vh, 1.3rem);
  color: #0b3d91;
}

h2 img {
  height: clamp(20px, 3vh, 28px);
  width: auto;
  margin-right: 0.5rem;
}

section div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

section a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

section a[href*="facebook"] {
  color: #1877F2;
}

section a[href*="instagram"] {
  color: #C13584;
}

section a[href*="x.com"] {
  color: #1DA1F2;
}

section img {
  height: clamp(20px, 3vh, 28px);
  width: auto;
}

footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #e7ecf7;
  color: #10245e;
}

footer p {
  margin: 0;
  font-size: clamp(0.8rem, 2vh, 1rem);
}

footer a {
  color: #d4af37;
  font-weight: 600;
}

@media (orientation: landscape) {
  div[style*="flex:1"] {
    flex-direction: row;
  }

  main {
    flex: 2;
  }

  section {
    flex: 1;
  }

  img {
    height: clamp(150px, 10vh, 300px);
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(2rem, 10vh, 5rem);
  }

  h2 {
    font-size: clamp(1.2rem, 5vh, 2rem);
  }

  p {
    font-size: clamp(0.9rem, 3vh, 1.2rem);
  }

  a {
    font-size: clamp(1rem, 4vh, 1.5rem);
  }

  section img {
    height: clamp(22px, 5vh, 35px);
  }

  footer {
    height: 45px;
  }
}

/* Media queries para reajustar elementos */
@media (max-width: 768px) {
  img {
    height: clamp(150px, 10vh, 300px);
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(1.2rem, 5vh, 2.5rem);
  }

  h2 {
    font-size: clamp(0.9rem, 2.5vh, 1.1rem);
  }

  p {
    font-size: clamp(0.7rem, 1.8vh, 0.9rem);
  }

  section img {
    height: clamp(18px, 3vh, 24px);
  }

  footer {
    height: 40px;
  }

  main {
    flex: 1;
  }

  section {
    flex: 0.6;
  }
}

@media (max-height: 600px) {
  img {
    height: clamp(120px, 10vh, 250px);
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(1rem, 4vh, 2rem);
  }

  h2 {
    font-size: clamp(0.8rem, 2vh, 1rem);
  }

  p {
    font-size: clamp(0.6rem, 1.5vh, 0.8rem);
  }

  section img {
    height: clamp(16px, 2.5vh, 20px);
  }

  footer {
    height: 35px;
  }

  main {
    flex: 1;
  }

  section {
    flex: 1;
  }
}

/* Media query para móvil pequeño */
@media (max-width: 480px) {
  img {
    height: clamp(15vh, 25vh, 35vh);
  }

  h1 {
    font-size: clamp(1rem, 3vh, 3.5rem);
  }

  h2 {
    font-size: clamp(0.8rem, 2.5vh, 1.2rem);
  }

  p {
    font-size: clamp(0.6rem, 2vh, 0.9rem);
  }

  section img {
    height: clamp(16px, 3vh, 22px);
  }

  footer {
    height: 35px;
  }

  main {
    flex: 3;
  }

  section {
    flex: 1;
  }
}

/* Media query para móvil/tablet medio */
@media (min-width: 481px) and (max-width: 768px) {
  img {
    height: clamp(150px, 10vh, 300px);
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(1.2rem, 6vh, 3rem);
  }

  h2 {
    font-size: clamp(0.9rem, 3vh, 1.3rem);
  }

  p {
    font-size: clamp(0.7rem, 2.2vh, 1rem);
  }

  section img {
    height: clamp(18px, 3.5vh, 25px);
  }

  footer {
    height: 40px;
  }

  main {
    flex: 3;
  }

  section {
    flex: 1;
  }
}

/* Media query para tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  img {
    height: clamp(150px, 10vh, 300px);
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(1.5rem, 8vh, 3.5rem);
  }

  h2 {
    font-size: clamp(1rem, 4vh, 1.4rem);
  }

  p {
    font-size: clamp(0.8rem, 2.5vh, 1.1rem);
  }

  section img {
    height: clamp(20px, 4vh, 28px);
  }

  footer {
    height: 45px;
  }

  main {
    flex: 3;
  }

  section {
    flex: 1;
  }
}

/* Media query para escritorio */
@media (min-width: 1025px) {
  img {
    height: clamp(20vh, 30vh, 40vh);
  }

  h1 {
    font-size: clamp(1rem, 6vh, 4.5rem) !important;
  }

  h2 {
    font-size: clamp(1.2rem, 4.5vh, 1.6rem);
  }

  p {
    font-size: clamp(0.9rem, 2.8vh, 1.2rem);
  }

  section img {
    height: clamp(22px, 4.5vh, 32px);
  }

  footer {
    height: 50px;
  }

  main {
    flex: 3;
  }

  section {
    flex: 1;
  }
}
