:root {
  --griiis: #f2f2f2;
  --azul-panel: #101a33;
  --azul-panel-claro: #16213f;
  --dorado: #cda45e;
  --dorado-suave: #e6cf9f;
  --agua: #4fd1c5;
  --texto: #eef1f8;
  --texto-t: #93a0c2;
  --borde: rgba(205, 164, 94, 0.25);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--azul-noche);
  color: var(--texto);
  font-family: 'Work Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--texto);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;

  background: white;
  border-bottom: 1px solid #ddd;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.logo img {
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--dorado);
}

nav a {
  margin-left: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: .3s;
}

nav a:hover,
nav a.activo {
  background: #cda45e;
  color: white;
}

.portada {
  text-align: center;
  padding: 70px 20px 40px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--agua);
  margin-bottom: 14px;
}

.portada h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 12px;
}

.tagline {
  color: var(--texto-tenue);
  font-size: 1.1rem;
}

.galeria-espacio {
  max-width: 1100px;
  margin: 20px auto 50px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.marco-imagen {
  border: 1px solid var(--borde);
  border-radius: 24px;
  padding: 8px;
  background: var(--azul-panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.marco-imagen img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.contenido {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px 20px;
}

.bloque {
  background: var(--azul-panel);
  border: 1px solid var(--borde);
  border-radius: 26px;
  padding: 38px 42px;
  margin-bottom: 26px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.bloque .numero {
  display: inline-block;
  color: var(--dorado);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--dorado);
  padding-bottom: 4px;
}

.bloque h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.bloque p {
  color: var(--texto-tenue);
}


.valores {
  margin-top: 40px;
  text-align: center;
}

.titulo-valores {
  font-size: 1.8rem;
  margin-bottom: 26px;
  position: relative;
}

.titulo-valores::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--dorado);
  margin: 14px auto 0;
  border-radius: 3px;
}

.cards {
    column-count: 3;
    column-gap: 22px;
    padding: 30px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    transition: transform .25s ease, border-color .25s ease;
    break-inside: avoid;
    margin-bottom: 22px;
    height: auto;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #c62828;
}

.card h3 {
  color: #c62828;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  color: #333;
  font-size: .95rem;
}


footer {
  margin-top: 50px;
  background: var(--azul-panel);
  border-top: 1px solid var(--borde);
  padding: 22px;
  text-align: center;
  color: var(--texto-tenue);
  border-radius: 20px 20px 0 0;
}
.hero {
    background-image: url("Imageeneeeeeeeeee/COLEGIOOOOOOOOOO.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    min-height: 650px;

    display: flex;
    justify-content: flex-start;
    align-items: center;

    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}
.centro {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    width: 90%;
    margin: auto;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}
.centro img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

/* Texto */
.texto {
    flex: 1;
}

.texto h1 {
    font-size: 60px;
    margin-bottom: 15px;
    color: white;
}

.texto p {
    font-size: 22px;
    color: white;
}
.boton {
    background: #c62828;
    color: white;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.boton:hover {
    background: #a71d1d;
}
@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 3px;
        padding: 8px 12px;
    }

    .centro {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .centro img {
        width: 120px;
        height: 120px;
    }

    .texto h1 {
        font-size: 42px;
    }

    .texto p {
        font-size: 18px;
    }

    .bloque {
        padding: 28px 24px;
    }
    @media (max-width: 900px) {
    .cards {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .cards {
        column-count: 1;
        padding: 20px;
    }
}
}