/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #151f27;
  color: #fff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

header {
  background: transparent;
  position: relative;
  z-index: 2;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0%;
}

.nav-links li a {
  font-size: 20px; /* Tamaño más grande */
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
  transform: scale(1.15); /* Efecto "zoom" */
  color: #00B2C9; /* blue */
}

.nav-toggle {
  display: none;
  background: none;
  color: white;
  font-size: 1.5rem;
  border: none;
}

/* Video Hero Section */
.video-hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

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

.video-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* dark overlay */
  z-index: 0;
}

.video-overlay {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  z-index: 2;
  padding: 0 1rem;
}

.hero-title {
  font-size: 8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #F6F8FA;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  white-space: nowrap;
}

/* Nombre completo */
.hero-title.first {
  animation: cycleName 6s ease-in-out infinite;
}

/* Solo apellido */
.hero-title.second {
  animation: cycleLastName 6s ease-in-out infinite;
}

/* Mercedes (ocupa más tiempo) */
@keyframes cycleName {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  65%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Custodio (solo un rato corto) */
@keyframes cycleLastName {
  0%   { opacity: 0; }
  60%  { opacity: 0; }
  65%  { opacity: 1; }
  80%  { opacity: 1; }
  85%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Scroll Indicator siempre visible */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  opacity: 1; /* siempre visible */
}

.scroll-indicator i {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.2rem;
  color: #00B2C9;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Sections */
.section {
  padding: 4rem 0.2rem;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 12px;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  background-color: #2e3a44;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background-color: #151f27;
  font-size: 0.9rem;
  color: #888;
}

footer .coffee-link {
  color: #ffdd00;
  font-weight: bold;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
  transition: color 0.3s ease;
}

footer .coffee-link:hover {
  color: #ffaa00;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    width: 100;
    position: relative;
  }

.nav-toggle {
    display: block;
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    margin: 0%;
    padding: 0%;
    align-self: flex-start;
    position: relative;
    left: 0%;
    transform: none !important;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #151f27;
    position: absolute;
    top: 60px;
    left: 20px;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .projects {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .podcast-section {
    padding: 2rem 1rem;
  }

  .podcast-title {
    font-size: 1rem;
  }

  .podcast-desc {
    font-size: 0.85rem;
  }

  .btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
  }

  .btn-icon i {
    font-size: 1rem;
  }

  .btn-icon:hover {
    opacity: 0.9;
  }

  .podcast-links {
    flex-wrap: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .podcast-meta {
    padding: 1rem;
  }
}



/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Books Section */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.book-card {
  background-color: #2e3a44;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.book-tag {
  font-size: 0.75rem;
  color: #ff4b2b;
  margin-top: 0.5rem;
  text-transform: uppercase;
  font-weight: bold;
}

.book-description {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0.5rem 0 1rem;
}

.book-button {
  display: inline-block;
  background: #ff4b2b;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.book-button:hover {
  background: #ff416c;
}

/* Footer Social Icons */
.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ff4b2b; /* highlight on hover */
}

.navbar .logo img {
  width: 80px;
  height: auto;
  display: block;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.media-card {
  background: #2e3a44;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.media-card:hover {
  transform: translateY(-5px);
}

.media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b252c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay oculto por defecto */
.media-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4 ease;
}

/* Botón dentro del overlay */
.overlay-btn {
  background: #00B2C9;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.overlay-btn:hover {
  background: #0090a5;
  transform: scale(1.05);
}

/* Mostrar overlay al hacer hover */
.media-thumb:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.media-thumb.text-only {
  background: #1b252c;
  color: #00B2C9;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem;
  justify-content: center;
  text-transform: uppercase;
}

.media-info {
  padding: 1rem 1.2rem;
}

.media-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}

.media-info p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  margin-top: 0.8rem;
  color: #ffdd00;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #ffaa00;
}

.podcast-section {
  padding: 4rem 1rem;
  max-width: 1000px;
  background-color: #111a21;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: rem;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.podcast-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.podcast-card {
  background: #1c262f;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.podcast-card:hover {
  transform: translateY(-5px);
}

.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.podcast-info {
  max-width: 600px;
}

.podcast-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.podcast-desc {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.podcast-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Estilo base del icono */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #222;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
  text-decoration: none;
}

/* Hover minimalista */
.icon-btn:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

/* Colores por marca (sutiles) */
.icon-btn.spotify {
  background-color: #1DB954;
}

.icon-btn.youtube {
  background-color: #FF0000;
}

.icon-btn.apple {
  background-color: #a6a6a6;
}

.youtube-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.spotify-embed,
.youtube-embed {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  border: none;
}

