/* Variables CSS para colores y tamaños */
@import url("css/estilos.css");

:root {
    --nosotros-primary-color: red;
    --nosotros-secondary-color: #091f5a;
    --nosotros-text-color: #333;
    --nosotros-light-color: #f8f9fa;
    --nosotros-spacing: 1rem;
    --nosotros-border-radius: 8px;
    --nosotros-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --nosotros-gallery-gap: 1.5rem;
}

/* Estilos base para la sección Nosotros */
.nosotros {
    font-family: Arial, sans-serif;
    color: var(--nosotros-text-color);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    margin-top: 100px;
    padding: var(--nosotros-spacing);
}


/* Añade estas nuevas reglas al archivo nosotros.css */

.nosotros-header {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: calc(var(--nosotros-spacing) * 2);
    padding: 2rem var(--nosotros-spacing);
    border-radius: var(--nosotros-border-radius);
    color: white;
    isolation: isolate;
}

.nosotros-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--nosotros-primary-color), var(--nosotros-secondary-color), var(--nosotros-secondary-color), var(--nosotros-primary-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

.nosotros-header-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    animation: particleMove 20s linear infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes particleMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 300px 300px, -300px -300px; }
}

.nosotros-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: textFadeIn 1.5s ease-out;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nosotros-slogan {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    animation: textFadeIn 1.5s ease-out 0.3s both;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto hover moderno */
.nosotros-header:hover .nosotros-header-bg {
    animation: gradientBG 8s ease infinite, pulse 4s ease infinite alternate;
}

@keyframes pulse {
    0% { filter: brightness(100%); }
    100% { filter: brightness(120%); }
}


.nosotros-content {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--nosotros-spacing) * 2);
    margin-bottom: calc(var(--nosotros-spacing) * 2);
}

.nosotros-history,
.nosotros-mision {
    flex: 1;
    min-width: 300px;
    padding: var(--nosotros-spacing);
    background-color: var(--nosotros-light-color);
    border-radius: var(--nosotros-border-radius);
    box-shadow: var(--nosotros-box-shadow);
}

.nosotros-subtitle {
    color: var(--nosotros-secondary-color);
    border-bottom: 2px solid var(--nosotros-primary-color);
    padding-bottom: calc(var(--nosotros-spacing) / 2);
    margin-bottom: var(--nosotros-spacing);
}

.nosotros-list {
    padding-left: var(--nosotros-spacing);
}

.nosotros-list li {
    margin-bottom: calc(var(--nosotros-spacing) / 2);
}

.nosotros-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nosotros-spacing);
    justify-content: center;
    margin-bottom: calc(var(--nosotros-spacing) * 2);
}

.nosotros-gallery-item {
    width: 300px;
    height: 200px;
    background-color: #ddd;
    border-radius: var(--nosotros-border-radius);
    box-shadow: var(--nosotros-box-shadow);
}

/* ... (mantén los estilos anteriores) ... */

.nosotros-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: var(--nosotros-gallery-gap);
    justify-content: center;
    margin-bottom: calc(var(--nosotros-spacing) * 2);
}

.nosotros-gallery-item {
    flex: 1 1 calc(33.333% - var(--nosotros-gallery-gap));
    min-width: 250px;
    height: 250px;
    border-radius: var(--nosotros-border-radius);
    box-shadow: var(--nosotros-box-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.nosotros-gallery-item:hover {
    transform: scale(1.03);
}

.nosotros-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.nosotros-gallery-item:hover img {
    transform: scale(1.1);
}
.nosotros-ver-gale{
   padding: 10px;
   background-color: var(--nosotros-primary-color);
   display: flex;
   justify-content: center;
   align-items: center;
   text-decoration: none;
   font-weight: bold;
   border-radius: 10px;
   max-width: 60%;
   color: var(--nosotros-light-color);
}
.nosotros-ver-gale:hover{
    background-color: var(--nosotros-secondary-color);
    transition: .3s ease;
    filter: drop-shadow( 0 0 5px var(--nosotros-primary-color));
}
/* SECCIÓN NOSOTROS - IDEAS */
.nosotros-seccion {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Bloque de 28+ años */
.nosotros-destacado {
    background: linear-gradient(135deg, var(--nosotros-secondary-color) 0%, #003366 100%);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.nosotros-destacado::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.nosotros-destacado::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.nosotros-marco {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.nosotros-numero {
    display: block;
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nosotros-texto {
    font-size: 1.5rem;
    display: inline-block;
    border-top: 2px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
}

/* Grid de tarjetas */
.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.nosotros-tarjeta {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e1e4e8;
}

.nosotros-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.nosotros-icono {
    width: 50px;
    height: 50px;
    background: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.nosotros-icono svg {
    width: 24px;
    height: 24px;
    fill: var(--nosotros-primary-color);
}

.nosotros-titulo {
    color: var(--nosotros-secondary-color);
    margin: 0.5rem 0 1rem;
    font-size: 1.25rem;
}

.nosotros-descripcion {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

#nosotros-ingles {
  background-color: #f4f8ff;
  padding: 40px 20px;
  border-radius: 12px;
  font-family: 'Segoe UI', sans-serif;
  color: #1a1a1a;
  max-width: 1200px;
  margin: 0 auto;
}

#nosotros-ingles .ingles-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#nosotros-ingles .ingles-texto {
  flex: 1 1 400px;
}

#nosotros-ingles .ingles-lista {
  list-style-type: '✔ ';
  padding-left: 20px;
  margin-bottom: 20px;
  margin-left: 200px;
}

#nosotros-ingles .ingles-lista li {
  margin: 8px 0;
  font-weight: 600;
  font-size: 16px;
}

#nosotros-ingles .ingles-hashtag {
  font-size: 18px;
  font-weight: bold;
  color: #0077cc;
  margin: 15px 0;
  text-align: center;
}

#nosotros-ingles .ingles-titulo {
  font-size: 22px;
  margin-top: 20px;
  color: #003366;
  text-align: center;
}

#nosotros-ingles .ingles-desc {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

#nosotros-ingles .ingles-img-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#nosotros-ingles .ingles-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#nosotros-ingles .ingles-img:hover {
  transform: scale(1.03);
}
.nosotros-history .btn-vermas {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--nosotros-primary-color); /* azul estilo botón */
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nosotros-history .btn-vermas:hover {
  background-color: var(--nosotros-secondary-color);
  transform: scale(1.05);
}
/* ───── Sección “Graduación” ───────────────────────── */
#container-graduacion {
  padding: 2rem 1rem;
}

/* Contenedor principal */
#container-graduacion .graduacion-detras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;           /* separa texto e imagen */
}

/* Texto a la izquierda */
#container-graduacion .texto-graduacion {
  flex: 1 1 50%;
  order: 1;            /* aparece primero (izquierda) */
}
.imgen-graduacion h2,h4{
    color: var(--nosotros-primary-color);
}
.texto-graduacion p{
    font-weight: bold;
}
#container-graduacion .texto-graduacion h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--nosotros-secondary-color);
}

/* Imagen a la derecha */
#container-graduacion .imgen-graduacion {
  flex: 1 1 50%;
  order: 2;       /* aparece a la derecha */
  text-align: center;  /* centra el h2/h4 y la foto */
}

#container-graduacion .imgen-graduacion img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  box-shadow: 0 0 10px var(--nosotros-primary-color);
  border-radius: 0.5rem;   /* opcional: esquinas redondeadas */
}

/* ─── Responsivo: móviles / tablets ───────────────── */
@media (max-width: 768px) {
  #container-graduacion .graduacion-detras {
    flex-direction: column;  /* apilar */
  }

  /* devolvemos el orden natural: imagen arriba, texto abajo */
  #container-graduacion .imgen-graduacion,
  #container-graduacion .texto-graduacion {
    order: unset;
  }
}

 
/* Responsive: apila en pantallas pequeñas */
@media (max-width: 768px) {
  #nosotros-ingles .ingles-container {
    flex-direction: column;
    text-align: center;
  }

  #nosotros-ingles .ingles-img-container {
    margin-top: 20px;
  }
  
#nosotros-ingles .ingles-lista {
  list-style-type: '✔ ';
  margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nosotros-numero {
        font-size: 4rem;
    }
    
    .nosotros-texto {
        font-size: 1.2rem;
    }
    
    .nosotros-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
    }
    
    .nosotros-destacado {
        padding: 2rem 1rem;
    }
    
    .nosotros-numero {
        font-size: 3rem;
    }
}
/* Estilos responsivos para la galería */
@media (max-width: 900px) {
    .nosotros-gallery-item {
        flex: 1 1 calc(50% - var(--nosotros-gallery-gap));
    }
}

@media (max-width: 600px) {
    .nosotros-gallery {
        flex-direction: column;
    }
    
    .nosotros-gallery-item {
        flex: 1 1 100%;
        height: 250px;
    }
    
    .nosotros-gallery-item img {
        object-fit: contain;
    }
}

@media (max-width: 400px) {
    .nosotros-gallery-item {
        height: 200px;
    }
}
/* Estilos responsivos */
@media (max-width: 768px) {
    .nosotros-title {
        font-size: 2rem;
    }
    
    .nosotros-slogan {
        font-size: 1.2rem;
    }
    
    .nosotros-content {
        flex-direction: column;
    }
    
    .nosotros-history,
    .nosotros-mision {
        width: 100%;
    }
    
    .nosotros-gallery-item {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .nosotros-title {
        font-size: 1.8rem;
    }
    
    .nosotros-slogan {
        font-size: 1rem;
    }
    
    .nosotros-subtitle {
        font-size: 1.2rem;
    }
}
}