*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body{
  height: 100%;
  overscroll-behavior: none;
  overflow-y: auto; /* ✅ permite scroll vertical */
}

body{
  background-image: url(img/ejpt.png);
  overflow-x: hidden;
}

/* ===== VIDEO FONDO ===== */
.caja-video{
  position: fixed;
  inset: 0;
  z-index: -1;
}

.caja-video video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SECCIÓN ===== */
section{
  margin: 0;
  padding: 0;
  /* ✅ agregamos padding-top si hay nav fijo */
  padding-top: 80px;
}

/* ===== TITULO ===== */
.section h1{
  margin: 0 0 0.5em 0;
  width: 100%;
  text-align: center;
  font-size: 3.5em;
  color: #ffffff;
}

/* ===== CONTENEDOR TARJETAS ===== */
.row{
  display: flex;
  flex-wrap: wrap;
  padding: 0 1em 1em;
  text-align: center;
  gap: 1em;
  /* ✅ quitar transform */
}

/* ===== COLUMNAS ===== */
.column{
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.5em;
}

/* ===== TARJETAS ===== */
.card{
  margin-block: 4px;
  padding: 2em 1em;
  box-shadow: 0 0 2em rgba(36, 5, 77, 0.15);
  border-radius: 0.9em;
  cursor: pointer;
  transition: 1s;
  opacity: 0.6;
}

.card .img-container{
  width: 6em;
  height: 6em;
  background-color: #beb3b3;
  padding: 0.4em;
  border-radius: 50%;
  margin: 0 auto 1.5em auto;
}

.card img{
  width: 100%;
  border-radius: 50%;
}

.card h3{
  font-size: 150%;
  font-weight: 510;
}

.card p{
  font-size: 130%;
  font-weight: 500;
  margin: 0.5em 0 2em;
  letter-spacing: 2px;
}

.icons{
  width: 50%;
  min-width: 180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
}

.card a{
  text-decoration: none;
  color: inherit;
  font-size: 1.4em;
}

.card:hover{
  background: hsla(0, 95%, 45%, 0.06);
  color: #ffffff;
}

.card:hover .img-container{
  transform: scale(1.15);
}

/* ===== DESKTOP ===== */
@media (min-width: 768px){
  .card{
    padding: 2.5em 1em;
  }

  .column{
    flex: 0 0 24%;
    max-width: 25%;
  }
}

/* ===== MÓVIL ===== */
@media (max-width: 767px){
  .row{
    padding-bottom: 70px; /* espacio para nav móvil */
        transform: translateY(-9em); /* sube las tarjetas hacia el borde */

  }
}


/* ===== NAV PC ===== */
.desktop-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  top: 0;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 20px;
}

.desktop-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.desktop-nav .logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform 0.3s;
}

.desktop-nav .logo:hover {
  transform: scale(1.05);
}

.nav-anim {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0.8rem;
  text-decoration: none;
  color: #111;
  transition: color 0.3s;
}

.nav-anim::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff9800;
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

.nav-anim:hover::after,
.nav-anim.active::after {
  width: 100%;
}

.nav-btn {
  background: linear-gradient(135deg,#ff9800,#ff5722);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
}

/* ===== NAV MÓVIL ===== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #111;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 6px;
  z-index: 1000;
  padding-left: 0;
  padding-right: 20px; /* solo margen derecho si quieres */
}

.mobile-nav a {
  color: #aaa;
  text-align: center;
  font-size: 0.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s;
  position: relative;
  padding: 0;
}

.mobile-nav i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
  color: #ff9800;
}

.mobile-nav a:active {
  transform: scale(0.9);
}

.mobile-nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #ff9800;
  border-radius: 10px;
}

/* Logo dentro del menú móvil */
.mobile-nav .logo-link {
  grid-column: 1 / 2; /* Mantiene el logo al inicio */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}

.mobile-nav .logo-link .logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}

