/* ===== VARIABLES GLOBALES ===== */
:root {
  --primary: #0a1929;
  --accent: #ff6b35;
  --light: #f4f7fb;
  --dark: #1e2a3a;
  --text: #2d3e50;
  --text-light: #f0f4f8;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ===== RESET Y TIPOGRAFÍA ===== */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, #0b1c2f 0%, #1b3b5c 100%);
  margin: 0;
  min-height: 100vh;
}

.container {
  background: rgba(0, 0, 0, 1);
}

/* ===== TARJETA PRINCIPAL (CARD) ===== */
.card {
  position: relative;
  display: block;
  width: 100%;
  height: 550px;
  border-radius: 32px;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%);
  z-index: 2;
  transition: var(--transition);
}

.card:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 70%);
}

.texto-titulo {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  z-index: 3;
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  border-radius: 60px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
}

.card:hover .texto-titulo {
  transform: translateY(-8px);
  background: rgba(255, 107, 53, 0.8);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(255,107,53,0.3);
}

/* ===== TÍTULOS SECCIÓN (h1 con clase .titulos) ===== */
.titulos {
  position: relative;
  display: inline-block;
  color: white;
  background: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

/* ===== ENCABEZADOS ===== */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

h1 {
  font-size: 2.4rem;
  border-left: 8px solid var(--accent);
  padding-left: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--accent) 0%, transparent 80%);
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 0 50px 50px 0;
}

h3 {
  font-size: 1.6rem;
  color: var(--dark);
}

/* ===== TABLA DE COMENTARIOS (Bootstrap mejorado) ===== */
.table {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
  background: transparent;
}

.table thead th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
}

.table tbody tr {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.table tbody tr:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.table td {
  padding: 1rem;
  border: none;
  vertical-align: middle;
}

/* ===== VIDEOS Y EMBEDS ===== */
iframe {
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
  max-width: 100%;
}