/* =======================
   VARIABLES
========================== */
:root {
  --color-primario: #167cff;
  --color-secundario: #00bcd4;
  --color-fondo: #f4f7fa;
  --color-texto: #333;
  --color-texto-claro: #eee;
  --color-titulo: #ffff;
  --color-sombra: rgba(0, 0, 0, 0.1);
  --color-blur: rgba(255, 255, 255, 0.15);
}

/* =======================
   GLOBAL STYLES
========================== */
body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
}

h1, h2, h3 {
  letter-spacing: 0.5px;
}

p {
  line-height: 1.8;
}

/* =======================
   HEADER GENERAL
========================== */
header {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =======================
   NAVIGATION
========================== */
nav {
  display: flex;
  gap: 30px;
  padding: 10px 40px;
  background: var(--color-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 60px;
  box-shadow: 0 8px 25px var(--color-sombra);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInNav 0.3s ease-in-out;
}

nav a {
  color: var(--color-titulo);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 30px;
  transition: 0.3s ease;
}

nav a:hover {
  background-color: var(--color-primario);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 124, 255, 0.4);
  transform: translateY(-1px);
}

/* Responsive nav toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #1a1a3d;
  border-radius: 2px;
}

/* =======================
   HERO SECTION
========================== */
.hero-section {
  position: relative;
  height: 400px;
  background: url('../imagenes/portada.jpg') center/cover no-repeat;
}

.hero-section .overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section h1 {
  color: #fff;
  font-size: 3em;
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

/* =======================
   TEXT CONTAINER
========================== */
.container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 40px;
  background: linear-gradient(to right, #0a0a23, #1a1a3d);
  color: var(--color-texto-claro);
}

.text-content {
  max-width: 1000px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.7;
}

.text-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--color-secundario);
}

.text-content p {
  font-size: 1.1em;
  color: #ddd;
  margin-bottom: 20px;
}

/* =======================
   SECTION: LOGO
========================== */
.section-logo {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--color-sombra);
}

.section-logo h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #1a1a3d;
}

.section-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--color-sombra);
}

/* =======================
   SECTION: MISIÓN Y VISIÓN
========================== */
.section-mv {
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 30px;
  background-color: #f9f9f9;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.section-mv .text-content {
  color: #333;
  line-height: 1.8;
}

.section-mv h2 {
  font-size: 2em;
  color: var(--color-primario);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primario);
}

.section-mv p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #555;
}

/* =======================
   SECTION: TEAM
========================== */
.team-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.team-member {
  background: linear-gradient(to bottom, #ffffff, #f1faff);
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--color-sombra);
  padding: 2rem;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--color-secundario);
}

.team-member h3 {
  margin: 0.5rem 0;
  font-size: 1.4rem;
  color: var(--color-secundario);
}

.especialidad {
  font-weight: bold;
  color: #555;
  margin-bottom: 0.5rem;
}

.presentacion {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #666;
}

.capacidades {
  list-style: none;
  padding: 0;
  margin: 0;
}

.capacidades li {
  background-color: #e0f7fa;
  margin: 5px 0;
  padding: 0.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.capacidades li:hover {
  background-color: #b2ebf2;
}

/* =======================
   SECTION: FOOTER
========================== */
.footer {
  display: flex;
  padding: 30px 20px;
  background-color: #222;
  color: var(--color-texto-claro);
  font-family: 'Arial', sans-serif;
  font-size: 14px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-column h3,
.footer-column h4 {
  color: #5dade2;
  margin-bottom: 10px;
}

.footer-column p,
.footer-column a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.5;
}

.footer-column a:hover,
.redes a:hover {
  color: #4db6e6;
  text-decoration: underline;
}

.redes a {
  display: inline-block;
  margin-right: 15px;
  color: #ccc;
  transition: color 0.3s ease;
}

/* =======================
   BOTÓN
========================== */
.btn-mas-info {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--color-primario);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-mas-info:hover {
  background-color: #0d5fcc;
  transform: scale(1.05);
}

/* =======================
   ANIMACIONES
========================== */
@keyframes fadeInNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =======================
   MEDIA QUERIES
========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100px;
    right: 30px;
    flex-direction: column;
    gap: 15px;
    padding: 20px 30px;
    display: none;
    background-color: rgba(22, 124, 255, 0.95);
    color: white;
  }

  nav.active {
    display: flex;
  }

  nav a {
    font-size: 18px;
    color: white;
  }

  nav a:hover {
    background-color: white;
    color: var(--color-primario);
  }

  .section-logo,
  .section-mv {
    padding: 40px 20px;
    margin: 40px 20px;
  }

  .section-logo h2,
  .section-mv h2 {
    font-size: 1.6em;
  }

  .section-mv p {
    font-size: 1em;
  }

  .team-section {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 20px;
  }
}
