/* ================= PORTFOLIO.CSS — ESTILO GLOBAL ================= */

/* ===== IMPORT TIPOGRAFÍA MODERNA ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ===== RESET SUAVE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f4f4f4;
  color: #222;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.5;

  /* centrado general seguro */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

/* ===== CONTENEDOR CENTRAL ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* ===== TITULOS ===== */
h1 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.subtitle {
  color: #666;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  width: 100%;
}

/* ===== CARD ===== */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 26px 18px;
  text-decoration: none;
  color: #222;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* centrado interno */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #bdbdbd;
  box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

/* ===== LINEA DIVISORIA PRO ===== */
.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

/* ===== TITULO CARD ===== */
.card-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ===== DESCRIPCION ===== */
.card-desc {
  font-size: 0.92rem;
  color: #777;
  max-width: 260px;
}

/* ===== IMAGENES Y VIDEOS ===== */
.card img,
.card video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  margin-bottom: 14px;
  object-fit: cover;
}

/* ===== BOTON VOLVER ===== */
.back-btn {
  display: inline-block;
  margin: 18px 0 30px;
  padding: 10px 18px;
  background: #2f2f2f;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */
footer,
.site-footer {
  margin-top: 60px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

/* ===== RESPONSIVE FINO ===== */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  body {
    padding: 30px 16px;
  }
}
