/* VARIABLES DE COLOR */
:root {
  --primary-color: #00aaff;
  --secondary-color: #0077b6;
  --light-bg: #e6f7ff;
  --text-dark: #333;
  --text-light: #444;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  
  height: 90px;
  background-color: #0074a8;
  padding: 0 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Varela Round", sans-serif; /* Agregar la fuente */
}

.navbar a {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0 8px;
  white-space: nowrap;
}

.logo-link img.logo-nav {
  max-height: 95px;
  width: auto;
  display: block;
}

/* Contenedor Principal */
.main-content {
  background: url('2.png') no-repeat center center;
  background-size: cover;
  min-height: calc(100vh - 90px); /* Ajuste automático basado en la altura del navbar */
  padding: 20px;
}

/* SECCIÓN NOSOTROS */
.about-us {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
}

.about-us h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: white;
}

.about-us .subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.valores {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
  position: relative;
}

/* BLOQUE GENERAL DE VALORES */
.valor {
  flex: 1 1 250px;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.valor:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.valor img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.valor h3 {
  color: #0074a8;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.valor p {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-light);
}

/* PANEL EXPANDIDO - Estilo para escritorio */
.panel-expandido {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 15px;
  gap: 15px;
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
  position: relative;
  /* Por defecto visible solo en escritorio si lo agregas */
}

/* IMAGEN */
.panel-expandido img {
  width: 22%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-right: 10px;
}

/* CONTENIDO */
.panel-expandido .contenido {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 73%;
}

/* TITULO */
.panel-expandido h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 2px solid #0033cc;
  padding-bottom: 4px;
}

/* DESCRIPCION */
.panel-expandido .descripcion p {
  font-size: 1rem;
  font-family: 'Georgia', serif;
  color: var(--secondary-color);
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* MEDIA QUERY: ESTILO PANEL EXPANDIDO EN MÓVILES (SOLO CUANDO TIENE .activo) */
@media screen and (max-width: 768px) {
  .panel-expandido {
    display: none; /* Oculto por defecto en móviles */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
  }

  /* Solo mostrar el panel fullscreen cuando tiene la clase .activo */
  .panel-expandido.activo {
    display: flex !important;
  }

  .panel-expandido img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin-right: 0 !important;
  }

  .panel-expandido .contenido {
    width: 100% !important;
  }

  .panel-expandido h3 {
    font-size: 1.3rem !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .panel-expandido .descripcion p {
    font-size: 1rem !important;
    text-align: justify !important;
    margin-bottom: 12px !important;
  }
}

/* Para asegurarnos que no se muestre el panel expandido sin clase en desktop */
@media screen and (min-width: 769px) {
  .panel-expandido {
    /* Mantiene tu estilo original, visible solo si se usa */
  }
}
