:root {
  --negro: #000000;
  --amarillo: #f3ce37;
  --blanco: #ffffff;
  --naranja: #f8b133;
  --gris: #ede6d9;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--blanco);
  background-color: var(--naranja);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: var(--amarillo);
}

ul {
  list-style: none;
}

/* Navbar */
.navbar {
  background-color: var(--negro);
  color: var(--blanco);
  padding: 15px 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo img {
  height: 35px;
  filter: brightness(1.2);
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar .nav-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar .nav-menu ul li a {
  color: var(--blanco);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
}

.navbar .nav-menu ul li a:hover {
  color: var(--amarillo);
}

/* Botón de escritorio (visible por defecto) */
.navbar .nav-menu .btn-nav {
  background-color: var(--naranja);
  color: var(--negro);
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Botón de móvil (oculto por defecto) */
.btn-nav-mobile {
  display: none;
}

/* Ícono de hamburguesa (oculto por defecto) */
.menu-toggle {
  display: none;
}

/* Hero Section */
.hero-section {
  background-image: url(../img/recursos/fondo-recursos.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--naranja);
  text-align: center;
  padding: 150px 20px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  left: -20vw;
  transform: skewX(-20deg);
}

.hero-section::after {
  right: -20vw;
  transform: skewX(20deg);
}

.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-section h1 {
  font-size: 3.8em;
  margin-bottom: 25px;
  color: var(--naranja);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(248, 177, 51, 0.2);
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 0;
  color: var(--blanco);
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================== */
/* Sección: Recursos */
/* ============================================== */
.recursos-section {
  background-image: url(../img/recursos/fondo-R2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.recursos-top-line,
.recursos-bottom-line {
  position: absolute;
  left: 0;
  margin-top: 40px;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
  z-index: 1;
}

.recursos-top-line {
  top: 0;
}

.recursos-bottom-line {
  bottom: 0;
}

.recursos-header {
  text-align: center;
  margin-bottom: 60px;
}

.recursos-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5em;
  font-weight: 800;
  color: var(--naranja);
  margin: 0;
}

.recursos-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.recurso-card-container {
  display: flex;
  background-color: transparent;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.recurso-card-container:hover {
  border: 2px solid var(--amarillo);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.recurso-images-column-combined {
  display: flex;
  padding: 20px;
  width: 300px;
  align-items: center;
  gap: 10px;
}

.recurso-main-image {
  width: 150px;
  height: 310px;
  overflow: hidden;
  border-radius: 8px;
}

.recurso-sub-images-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 130px;
  height: 310px;
}

.recurso-image-item {
  width: 130px;
  height: 310px;
  overflow: hidden;
  border-radius: 8px;
}

.recurso-image-item img,
.recurso-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recurso-content-column {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.recurso-content-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6em;
  font-weight: 700;
  color: var(--naranja);
  margin: 0 0 10px 0;
}

.recurso-content-column p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  color: var(--blanco);
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.ver-mas-btn {
  display: inline-block;
  color: var(--naranja);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ver-mas-btn:hover {
  color: var(--blanco);
}

/* ============================================== */
/* Sección: Podcast */
/* ============================================== */
.podcast-section {
  background-image: url(../img/recursos/fondo-R3.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.podcast-top-line,
.podcast-bottom-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--amarillo) 20%, var(--naranja) 80%, transparent);
  z-index: 1;
}

.podcast-top-line {
  top: 0;
}

.podcast-bottom-line {
  bottom: 0;
}

.podcast-header {
  text-align: center;
  margin-bottom: 60px;
}

.podcast-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5em;
  font-weight: 800;
  color: var(--negro);
  margin: 0;
}

.podcast-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  justify-content: center;
  align-items: center;
}

.podcast-card {
  cursor: pointer;
  background-color: var(--naranja);
  border-radius: 10px;
  width: 250px;
  height: 270px;
  overflow: hidden;
  transition: transform 0.3s ease;
  justify-self: center;
}

.podcast-card:hover {
  transform: scale(1.05);
}

.podcast-video-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.podcast-video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.podcast-video-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

.podcast-card:hover .podcast-video-wrapper::before {
  background-color: rgba(0, 0, 0, 0.2);
}

.play-button {
  position: absolute;
  z-index: 2;
}

.podcast-content {
  padding: 20px;
  text-align: center;
}

.podcast-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--negro);
  margin: 0;
}

/* --- Footer General --- */
.footer {
  width: 100%;
}

.footer-top {
  background-image: url(../img/nosotros/footer-n1.png);
  background-size: cover;
  background-position: initial;
  background-repeat: no-repeat;
  display: flex;
  justify-content: flex-start;
  padding: 60px 10%;
  color: var(--negro);
  position: relative;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  position: relative;
}

.footer-logo a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.footer-logo-image {
  position: static;
  left: auto;
  width: 150px;
  max-height: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.footer-logo-image:hover {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  gap: 100px;
  margin-left: 100px;
}

.link-column h4 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--negro);
}

.link-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-column li {
  margin-bottom: 8px;
}

.link-column li a {
  font-size: 0.95em;
  color: var(--negro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-column li a:hover {
  color: var(--amarillo);
  cursor: pointer;
}

.footer-social-media {
  background-image: url(../img/nosotros/footer-n2.png);
  background-size: cover;
  background-position: initial;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 20px 0;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--negro);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--naranja);
  font-size: 1.5em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  background-color: var(--blanco);
  color: var(--negro);
}

.footer-bottom {
  background-image: url(../img/nosotros/footer-n3.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 20px 5%;
  color: var(--negro);
  font-size: 0.9em;
}

/* ============================================== */
/* 2. MEDIA QUERIES (PARA TABLETS Y MÓVILES) */
/* ============================================== */

@media (max-width: 1024px) {
  /* Ajustes para pantallas más pequeñas (Laptops y Tablets) */
  .container {
    padding: 0 15px;
  }

  .navbar .logo {
    margin: 0;
  }

  .navbar .nav-menu {
    gap: 20px;
  }
  
  .navbar .nav-menu ul {
    gap: 20px;
  }

  .navbar .nav-menu ul li a {
    padding: 10px 0;
    font-size: 0.9em;
  }

  .hero-section {
    padding: 80px 10px;
    min-height: 40vh;
  }
  .hero-section h1 {
    font-size: 2em;
  }
  .hero-section p {
    font-size: 1em;
  }

  /* Sección de Recursos */
  .recursos-section {
    padding: 40px 0;
  }
  .recursos-header {
    margin-bottom: 20px;
  }
  .recursos-header h2 {
    font-size: 2em;
  }
  .recurso-card-container {
    flex-direction: column;
    align-items: center;
  }
  .recurso-images-column-combined {
    flex-direction: column;
    width: 100%;
    padding: 15px;
    height: auto;
  }
  .recurso-main-image {
    width: 100%;
    height: 250px;
  }
  .recurso-sub-images-column {
    flex-direction: row;
    width: 100%;
    height: auto;
    justify-content: center;
    margin-top: 10px;
    gap: 5px;
  }
  .recurso-image-item {
    width: 120px;
    height: 120px;
  }
  .recurso-content-column {
    padding: 15px 10px;
  }
  .recurso-content-column h3 {
    font-size: 1.2em;
  }
  .recurso-content-column p {
    font-size: 0.9em;
  }
  .ver-mas-btn {
    text-align: center;
  }

  /* Sección de Podcast */
  .podcast-section {
    padding: 40px 0;
  }
  .podcast-header {
    margin-bottom: 20px;
  }
  .podcast-header h2 {
    font-size: 2em;
  }
  .podcast-grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .podcast-card {
    width: 100%;
  }
  .podcast-video-wrapper {
    height: 200px;
  }
  .podcast-content {
    padding: 15px;
  }
  .podcast-content h3 {
    font-size: 1em;
  }
  
  /* Footer */
  .footer-top {
    padding: 30px 5%;
  }
  .footer-links {
    gap: 20px;
    margin-left: 50px;
  }
  .link-column h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }
  .link-column li a {
    font-size: 0.9em;
  }
  .footer-social-media {
    gap: 15px;
    padding: 10px 0;
  }
}

@media (max-width: 767px) {
  /* Estilos para móviles (teléfonos) */
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }
  
  .navbar .logo {
    /* El logo y el texto quedan a la izquierda */
    flex-grow: 1; /* Permite que ocupe el espacio flexible */
  }

  /* El menú de escritorio se oculta */
  .navbar .nav-menu {
    display: none;
    flex-direction: column; /* Lo prepara para la vista de menú desplegable */
    width: 100%;
    position: absolute;
    top: 65px; /* Ajusta esto según la altura de tu navbar */
    left: 0;
    background-color: var(--negro);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

  .navbar .nav-menu.active {
    display: flex;
  }

  .navbar .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .navbar .nav-menu ul li a {
    color: var(--blanco);
    padding: 10px 0;
  }

  /* El botón de registro de escritorio se oculta dentro del menú desplegable */
  .navbar .nav-menu .btn-nav {
    display: none;
  }

  /* El botón de móvil se muestra y se centra */
  .btn-nav-mobile {
    display: block;
    background-color: var(--naranja);
    color: var(--negro);
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
  }
  
  /* El ícono de hamburguesa se muestra */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.5em;
    cursor: pointer;
    margin-left: auto; /* Empuja el ícono a la derecha */
  }
}