/* ==========================================================================
   RESET + VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #c1121f;
  --primary-dark: #8f0e18;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: black;
  background-repeat: round;
  align-content: center;
}

/* ==========================================================================
   HEADER + NAVEGACIÓN
   ========================================================================== */
header {
  background: var(--dark);
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  background: var(--primary);
  color: white;
}

/* Menú hamburguesa para móvil */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y GRID
   ========================================================================== */
.quotes-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 2.2rem;
    max-width: 1050px;
    margin: 30px auto;
    padding: 0 15px;
}

/* ==========================================================================
   TARJETAS DE ENTREVISTAS (QUOTE-CARD)
   ========================================================================== */
.quote-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 1.8rem 2rem;
    position: relative;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.quote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15);
  border-color: #f59e0b;
}

/* Icono de comillas grande */
.quote-icon {
  font-size: 4rem;
  color: #f59e0b;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.2;
  font-family: Georgia, serif;
  z-index: 1;
}

/* Controles de tamaño (+ y -) */
.quote-card .size-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #334155;
}

.quote-card .size-btn {
  min-width: 50px;
  height: 40px;
  font-size: 1.9rem;
  font-weight: 900;
  background: #334155;
  color: #fbbf24;
  border: 2px solid #f59e0b66;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quote-card .size-btn:hover {
  background: #f59e0b;
  color: #1e293b;
  transform: translateY(-2px);
}

.quote-card .size-btn:active {
  transform: scale(0.95);
}

/* ====================== ESTADOS DE TAMAÑO ====================== */

/* VISTA PREVIA (estado inicial al cargar la página) */
.quote-card.preview {
  padding: 1.3rem 1.6rem;
  max-height: 280px;           /* Altura controlada para preview */
  overflow: hidden;
}

.quote-card.preview .quote-text,
.quote-card.preview .img-single,
.quote-card.preview .author-info p {
  display: none;
}

.quote-card.preview .quote-text:first-of-type {
  display: block;
  max-height: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ESTADO NORMAL */
.quote-card.normal {
  padding: 1.9rem 2.2rem;
  max-height: none;
  font-size: 1.12rem;
  line-height: 1.68;
}

/* ESTADO LARGE (expandido al máximo) */
.quote-card.large {
  padding: 2.5rem 2.8rem;
  max-height: none;
  font-size: 1.28rem;
  line-height: 1.75;
}

/* Texto de las citas (común) */
.quote-text {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: white;
  font-weight: 500;
  position: relative;
  z-index: 2;
  text-align: justify;
}

.quote-text strong {
  color: #fcd34d;
}

/* AUTOR - Sección con foto + texto */
.author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 25px 0;
}

.author-img {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 6px solid #f59e0b;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.author-info h4 {
  margin: 0 0 4px 0;
  color: #fcd34d;
  font-size: 1.65rem;
  line-height: 1.2;
}

.author-info p {
  margin: 0;
  color: white;
  font-size: 1.32rem;
  line-height: 1.3;
}

/* Imágenes dentro de las entrevistas */
.img-single {
  text-align: center;
  margin: 2.2rem 0 2.8rem;
  padding: 0 10px;
}

.img-single img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #444;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  display: block;
  margin: 0 auto 12px;
}

.img-single.last {
  margin-bottom: 1.5rem;
}

/* Títulos h5 (créditos) */
h5 {
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  color: white;
  margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 1.5rem;
    top: 1.8rem;
  }

  .quotes-grid {
    gap: 25px;
  }

  .quote-card {
    padding: 1.4rem 1.6rem;
  }

  .quote-card.preview {
    max-height: 240px;
  }

  .quote-card.large {
    font-size: 1.22rem;
  }
}

@media (max-width: 640px) {
  .img-single {
    margin: 1.8rem 0 2.2rem;
  }
  
  .img-single img {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
}

/* Ocultamos controles globales si los hubiera */
.size-controls {
  display: flex; /* Aseguramos que se vean los botones por tarjeta */
}