/* Importa la fuente desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');


/* ========= Reset y variables ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333;
  --bg-color: #f8f9fa;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Merriweather', 'Georgia', serif; /* elegante y muy legible */
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Para títulos y encabezados */
h1, h2, h3 {
  font-family: 'Lora', cursive; /* toque poético y manuscrito */
}

/* ========= Header y navegación ========= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--card-shadow);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

nav a:hover,
nav a[aria-current="true"] {
  background-color: var(--accent-color);
  color: white;
}

/* ========= Secciones principales ========= */
.section {
  min-height: 100vh;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

#about, #lastbook, #carrousel h2 {
  color: var(--primary-color);
}

/* ========= Carrusel ========= */
#carrousel {
  position: relative;
  padding: 4rem 2rem;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-item.prev {
  transform: translateX(-100%) scale(0.8);
  opacity: 0.3;
}

.carousel-item.next {
  transform: translateX(100%) scale(0.8);
  opacity: 0.3;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.carousel-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 16px;
  overflow: hidden;
}

.carousel-item a:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carousel-item.active a:hover {
  transform: scale(1.02);
}

/* ========= Flechas del carrusel ========= */
.carrousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--card-shadow);
}

.carrousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carrousel-arrow.left {
  left: 20px;
}

.carrousel-arrow.right {
  right: 20px;
}

.carrousel-arrow .icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* ========= Indicadores (dots) ========= */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent-color);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--accent-color);
}

/* ========= Libros individuales ========= */
.section-book {
  background: linear-gradient(135deg, #6a85b6 0%, #bac8e0 100%);
  color: white;
}

.book-cover {
  width: 300px;
  height: 400px;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.book-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
  margin-top: 1rem;
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

/* ========= Footer ========= */
footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem;
  text-align: center;
}

.author-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin: 1rem auto;
}
.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.book-cover-img {
  width: 300px;
  height: 400px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

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

footer a:hover {
  text-decoration: underline;
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  header {
    position: relative;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
  }

  nav ul {
    display: none;
  }

  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
  }

  nav ul.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--card-shadow);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }

  #about {
    padding: 1 rem 1rem 1rem;
  }
  
  .section {
    padding: 4rem 1rem 1rem;
  }
  
  .carousel {
    height: 400px;
    max-width: 90%;
  }
  
  .carrousel-arrow {
    width: 40px;
    height: 40px;
  }
  
  .carrousel-arrow.left {
    left: 10px;
  }
  
  .carrousel-arrow.right {
    right: 10px;
  }
  
  .book-cover {
    width: 250px;
    height: 350px;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ========= Social Links Modernos ========= */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Colores específicos para cada red social */
.social-links a[href*="twitter"],
.social-links a[href*="x.com"] {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.social-links a[href*="instagram"] {
  background: linear-gradient(135deg, #E4405F 0%, #F56040 50%, #FFDC80 100%);
  box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-links a[href*="facebook"] {
  background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-links a[href*="twitter"]:hover,
.social-links a[href*="x.com"]:hover {
  box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-links a[href*="instagram"]:hover {
  box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

.social-links a[href*="facebook"]:hover {
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* Animación de pulso sutil */
.social-links a {
  animation: social-pulse 3s ease-in-out infinite;
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.5s; }
.social-links a:nth-child(3) { animation-delay: 1s; }

@keyframes social-pulse {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  50% { 
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
  }
}

/* ========= Estilos para Blockquote/Poema ========= */
blockquote {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-left: 4px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  max-width: 600px;
  font-family: 'Helvetica', cursive;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 15px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 1;
}

blockquote::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 15px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 1;
}

blockquote p {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Efecto de entrada elegante para el blockquote */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

blockquote {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive para blockquote */
@media (max-width: 768px) {
  blockquote {
    padding: 2rem 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
  }
  
  blockquote::before,
  blockquote::after {
    font-size: 3rem;
  }
  
  blockquote::before {
    top: -5px;
    left: 10px;
  }
  
  blockquote::after {
    bottom: -20px;
    right: 10px;
  }
}

/* ========= Preferencias de movimiento ========= */
@media (prefers-reduced-motion: reduce) {
  .carousel-item,
  .carrousel-arrow,
  .dot,
  .btn,
  .social-links a,
  blockquote {
    transition: none;
    animation: none;
  }
  
  .social-links a::before {
    transition: none;
  }
}