:root{
  --forest: #1B3A2F;
  --leaf: #2D6A4F;
  --leaf2: #40916C;
  --gold: #E3A008;
  --gold2: #F1B94E;
  --sky: #2E86AB;
  --cream: #F7F4EA;
  --bark: #3F3325;
  --ink: #1E2A22;
  --line: rgba(27,58,47,0.14);

  /* Color propio de la página Proyectos */
  --nav: RGB(100, 162, 200);      /* azul (en Mi entorno es #2a8d00) */
  --fondo: RGB(200, 162, 200);    /* fondo un poco distinto al crema de Mi entorno */
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--fondo);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2{
  font-family: 'Times New Roman', Times, serif;
  color: var(--forest);
  margin: 0 0 0.5em;
  line-height: 1.08;
}

/* ===== BARRA DE NAVEGACIÓN (igual que Mi entorno, solo cambia el color) ===== */

.barra-navegadora{
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--nav);
    padding: 15px 30px;
    border-radius: 40px;
    margin: 20px;
    font-size: 30px;
}

.barra-navegadora a{
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.barra-navegadora a:not(.logo):hover{
    background-color: #f1f1f1;
    color: var(--nav);
    font-size: 39px;
    text-align: center;
}

.barra-navegadora .logo img{
    height: 60px;
    transition: all 0.3s;
    font-size: 40px;
}

.logo-colegio{
    margin-left: 16px;
}

.logo-colegio img{
    border-radius: 50%;
}

/* Respaldo por si interactivo.css no está cargado en esta página */
.nav-links{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle{
  display: none;
}

@media (max-width: 1024px){
  .barra-navegadora{
    padding: 10px 15px;
    border-radius: 20px;
    margin: 10px;
    font-size: 14px;
  }
  .barra-navegadora a{ padding: 4px 8px; font-size: 13px; }
  .barra-navegadora a:not(.logo):hover{ font-size: 13px; }
  .barra-navegadora .logo img{ height: 35px; }
  .logo-colegio{ margin-left: 10px; }
}

@media (max-width: 600px){
  .barra-navegadora{
    padding: 8px 10px;
    font-size: 12px;
  }
  .barra-navegadora a{ padding: 3px 6px; font-size: 11px; }
  .logo-colegio{ margin-left: 6px; }
}

@media (max-width: 480px){
  .barra-navegadora .logo img{ height: 32px; }
  .logo-colegio{ margin-left: 4px; }
}

/* ===== PROYECTOS ===== */

body > section{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 48px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 26px rgba(27, 58, 47, 0.10);
}

body > section:first-of-type{
  margin-top: 40px;
}

body > section:last-of-type{
  margin-bottom: 90px;
}

/* El contenedor de texto "desaparece" para que el título y el párrafo
   se ubiquen directamente en la cuadrícula */
body > section [class$="-texto"]{
  display: contents;
}

/* Título: grande y centrado */
body > section h2{
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0;
}

/* Párrafo */
body > section p{
  grid-row: 2;
  grid-column: 2;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.7;
  color: #3C4A40;
  text-align: center;
}

/* Foto */
body > section [class$="-foto"]{
  grid-row: 2;
  grid-column: 1;
}

body > section [class$="-foto"] img{
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(223, 128, 7, 0.18);
}

/* Video: abajo, centrado y grande */
body > section [class$="-video"]{
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  max-width: 900px;
  margin-top: 8px;
}

body > section [class$="-video"] video{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(27, 58, 47, 0.25);
}

/* Proyectos pares: foto a la derecha y párrafo a la izquierda */
body > section:nth-of-type(even) [class$="-foto"]{
  grid-column: 2;
}

body > section:nth-of-type(even) p{
  grid-column: 1;
}

.boton{
  display: flex;
  width: fit-content;   /* el botón mide solo lo que mide su texto */
  margin: 0 auto;       /* lo centra */
  background: #0e77da;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
  text-align: center;
  justify-content: center;
}

.boton:hover{
  background: #F1B94E;
  color: #1B3A2F;
  transform: translateY(-2px);
}

/* Lo coloca debajo del video, centrado (funciona si el botón está dentro de
   un div .contenedor-boton o directamente dentro de la sección) */
body > section .contenedor-boton,
body > section > .boton{
  grid-column: 1 / -1;
  grid-row: 4;
  justify-self: center;
}

/* ===== RESPONSIVE (tablets y teléfonos) =====
   Mismos puntos de corte que Index.css: 1024px, 768px y 480px.
   Todo lo de arriba (escritorio) queda igual. */

/* TABLETS (hasta 1024px) */
@media (max-width: 1024px){
  html, body{ overflow-x: hidden; }

  body > section{
    margin: 0 20px 40px;
    padding: 36px 28px;
    column-gap: 32px;
  }
  body > section p{ font-size: 1.05rem; }
  body > section [class$="-foto"] img{ height: 280px; }

  .boton{ font-size: 1.5rem; }
}

/* TABLETS PEQUEÑAS Y MÓVILES GRANDES (hasta 768px) */
@media (max-width: 768px){
  /* Una sola columna: título, foto, párrafo, video y botón */
  body > section{
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 30px 20px;
  }
  body > section h2,
  body > section p,
  body > section [class$="-foto"],
  body > section [class$="-video"],
  body > section:nth-of-type(even) p,
  body > section:nth-of-type(even) [class$="-foto"],
  body > section .contenedor-boton,
  body > section > .boton{
    grid-column: 1;
  }
  body > section h2{ grid-row: 1; font-size: 2.2rem; }
  body > section [class$="-foto"]{ grid-row: 2; }
  body > section p{ grid-row: 3; font-size: 1rem; }
  body > section [class$="-video"]{ grid-row: 4; margin-top: 0; }
  body > section .contenedor-boton,
  body > section > .boton{ grid-row: 5; }

  body > section [class$="-foto"] img{ height: 240px; }
  body > section [class$="-video"] video{ border-radius: 14px; }

  .boton{
    font-size: 1.2rem;
    padding: 10px 24px;
  }

  /* Respaldo: que los enlaces del menú no se salgan de la barra */
  .nav-links{
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
}

/* MÓVILES (hasta 480px) */
@media (max-width: 480px){
  body > section{
    margin: 0 12px 32px;
    padding: 24px 16px;
    row-gap: 20px;
    border-radius: 18px;
  }
  body > section h2{ font-size: 1.8rem; }
  body > section p{ font-size: 0.95rem; }
  body > section [class$="-foto"] img{
    height: 200px;
    border-radius: 14px;
  }
  body > section [class$="-video"] video{ border-radius: 12px; }

  body > section .contenedor-boton{ width: 100%; }
  .boton{
    width: 80%;
    max-width: 320px;
    font-size: 1rem;
    padding: 10px 16px;
  }
}

.Adriana-foto img{
  object-fit: contain;
  height: auto;
  max-height: 500px;
  background: #fff;
}

/* Última foto (Pinki Pop): mostrar la parte de arriba para que no corte la cabeza */
.Adriana-foto img{
  object-position: center top;
}

/* Última foto (Pinki Pop): sin espacios sobrantes, mostrando la parte de arriba */
.Adriana-foto img{
  object-fit: cover;
  object-position: center 20%;
}