/* Reset básico: Elimina márgenes y rellenos predeterminados */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f7fa;
}

a {
  text-decoration: none;
}

/* Header profesional: Estilo de la barra de navegación superior */
header {
  background-color: #0b1c3d;
  color: #fff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav {
  max-width: 1600px; /* Ampliado para dar mÃ¡s espacio a los lados */
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px; /* MÃ¡s espacio a los lados */
}

@media(max-width: 1024px) {
  .logo {
    height: 100px;
  }

  header {
    position: relative;
  }

  .nav ul {
    gap: 15px;
  }
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0; /* Evita que el logo y el tÃ­tulo se encojan */
}

.logo {
  height: 150px;
  width: auto;
}

.nav h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav ul li a {
  color: white;
  font-weight: 700;
  padding: 8px 12px;
  transition: 0.3s;
  white-space: nowrap;
}

.nav ul li a:hover {
  background-color: #2563eb;
  border-radius: 6px;
}

.nav .btn-socio {
  background-color: #2563eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: 0.3s;
}

.nav .btn-socio:hover {
  background-color: #1e4db7;
}

/* Hero mejorado: Cabecera con imagen destacada de las escuelas VCF */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('../img/Escoles\ VCF/fotoescolesvcfcopia.jpg') center/cover no-repeat;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 28, 61, 0.5);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

/* Sección información: Detalle sobre el proyecto Escoles VCF */
#escoles-info {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#escoles-info h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 30px;
  text-align: center;
}

.section-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.section-content .text {
  flex: 1;
  min-width: 280px;
  width: 100%;
  margin: 0 auto;
}

.section-content .text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.section-content .text p a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.section-content .text p a:hover {
  color: #1e4db7;
  border-bottom-color: #1e4db7;
}

/* Features */


.video-container {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  margin-top: -60px;
  /* ALINEA EL VIDEO CON EL TEXTO   */
}

.video-container video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #cbd5e1;
  border-radius: 10px;
}

/* Sección galería: Muestra de fotos del proyecto */
#galeria {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

#galeria h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 35px;
  text-align: center;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 280px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-item:hover img {
  transform: scale(1.12);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 28, 61, 0.95), transparent);
  padding: 25px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

.galeria-overlay p {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Sección de beneficios: Ventajas de participar en el proyecto */
.benefits {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.benefits h3 {
  font-size: 2.2rem;
  color: #0b1c3d;
  margin-bottom: 40px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.benefit-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #f5f7fa;
}

.benefit-card i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 15px;
}

.benefit-card h4 {
  font-size: 1.2rem;
  color: #0b1c3d;
  margin-bottom: 10px;
}

.benefit-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer: Pie de página de la sección */
footer {
  background-color: #0b1c3d;
  color: #cbd5f5;
  padding: 50px 20px;
  text-align: center;
}

footer a {
  color: #2563eb;
}

.social-links a { color: #ffffff;
  margin: 0 15px;
  font-size: 30px;
}

.social-links a:hover {
  color: #ffffff;
}

/* Tablet Responsive: Ajustes para pantallas de tamaño medio */
@media(max-width: 1024px) {

  .features,
  .section-content {
    flex-wrap: wrap;
    gap: 30px;
  }

  .galeria-grid {
    gap: 15px;
  }
}

/* Small Mobile: Ajustes para móviles pequeños */
@media(max-width: 430px) {
  .hero {
    padding: 30px 15px;
  }

  .features {
    padding: 0 10px;
  }

  .galeria-grid {
    gap: 10px;
  }
}

/* Responsive General: Ajustes para móviles */
@media(max-width: 1024px) {
  .nav ul {
    gap: 15px;
  }

  .nav ul li a {
    font-size: 0.9rem;
    padding: 5px 8px;
  white-space: nowrap;
}

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .categories-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .features {
    flex-direction: column;
  }

  .section-content {
    flex-direction: column;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .video-container {
    margin-top: -20px;
    height: auto;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile en horizontal: Ajustes para vista apaisada */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 320px;
    padding: 20px 20px;
  }

  .logo {
    height: 80px;
  }

  header {
    position: relative;
  }

  .video-container {
    height: auto;
  }
}

