/* Importar Bootstrap desde CDN */
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");

/* Importar Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap");

/* Variables CSS */
:root {
  --primary-color: #517fa4;
  --secondary-color: #243949;
  --accent-color: #c02dc2;
  --text-color: #2c3e50;
  --light-bg: #d8e1ea;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

body.trama {
  background-image: linear-gradient(135deg, #f5f7fa 0%, #8cace1 100%);
}

/* Header y navegación */
.navbar {
  background: black;
  opacity: 0.9;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white) !important;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
  padding: 4rem 0;
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

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

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Oscurece (0.5 = 50% opacidad) */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  background: var(--white);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Botones */
.btn-primary {
  background-image: linear-gradient(
    to right,
    #517fa4 0%,
    #243949 51%,
    #517fa4 100%
  );
  border: none;
  border-radius: 15px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: 0.5s;
  background-size: 200% auto;
  display: block;
  color: white;
}

.btn-primary:hover {
  background-position: right center; /* change the direction of the change here */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  text-align: left;
  margin-top: 3rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* Responsive Design */

/* Mobile pequeño - 400px */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }
}

/* Tablet - 900px */
@media (max-width: 900px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .card-img-top {
    height: 180px;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Desktop grande - 1200px y más */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .card-img-top {
    height: 220px;
  }

  .container {
    max-width: 1140px;
  }
}

/* Estilos específicos para páginas individuales */
.profile-card {
  max-width: 800px;
  margin: 2rem auto;
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  background: var(--secondary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.favorites-section {
  margin-top: 2rem;
}

.favorites-list {
  list-style: none;
  padding: 0;
}

.favorites-list li {
  background: var(--white);
  margin: 0.5rem 0;
  padding: 0.8rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.favorites-list li:hover {
  transform: translateX(5px);
}

/* Bitácora styles */
.bitacora-section {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.bitacora-section h3 {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Estilos modernos para el menú desplegable */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 200px;
  animation: dropdownFadeIn 0.3s ease;
}

.dropdown-item {
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.dropdown-item:hover {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
  transform: translateX(5px);
}

.dropdown-item:focus {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--white);
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

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

.profile-card .card-body {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius);
}

#typing-title::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.text-primary {
  color: #243949 !important;
}

.text-center {
  text-align: left !important;
}

.parrafo-equipo {
  max-width: 750px;
}

.bg-primary {
  background-color: #517fa4 !important;
  opacity: 0.6;
}

/* Estilos bootstrap */

.rounded-circle {
  height: 66px;
  width: 66px;
  text-align: center;
}
