@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;600;700&display=swap');

:root { 
  --primary-color: #1D4E89;
  --accent-color: #4DAFFF;
  --light-bg: #A3C4E0;
  --font-main: 'Work Sans', sans-serif;
  --border-radius-btn: 10px;
  --border-radius-card: 12px;
  --text-color: #1D4E89;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background: linear-gradient(180deg, var(--light-bg) 0%, #D7E6F5 100%);
  margin: 0;
  padding: 0;
}

/* ====== NAVBAR ====== */
.navbar {
  background-color: var(--primary-color);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
}

.navbar a {
  color: white;
  font-weight: 600;
}

.navbar a:hover {
  color: var(--accent-color);
}

.logo-img {
  height: 45px;
  width: auto;
}

/* ====== CONTENIDO ====== */
.project-detail {
  max-width: 1000px;
  margin: 60px auto;
  background: white;
  border-radius: var(--border-radius-card);
  box-shadow: 0 10px 30px rgba(13, 40, 80, 0.1);
  padding: 2rem;
}

.project-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: left;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-meta {
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-meta p {
  margin: 0.3rem 0;
}

.project-description {
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #0e2f56;
}

/* ====== Herramientas y Tec ====== */
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.project-tools span {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: #555;
}


/* ====== CARRUSEL ====== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-card);
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  display: none;
  border-radius: var(--border-radius-card);
}

.carousel-images img.active {
  display: block;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background-color: rgba(29, 78, 137, 0.6);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.carousel-controls button:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--primary-color);
  color: white;
}

footer i:hover {
  color: var(--accent-color);
  transition: color 0.3s;
}


/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .project-detail {
    margin: 30px 1rem;
    padding: 1.5rem;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-description {
    font-size: 1rem;
  }
}

/* ====== Banner ====== */
/* ---------------- HERO / BANNER ---------------- */

.project-hero {
  width: 100%;
  height: 35vh;          /* antes seguramente era muy alto */
  max-height: 420px;     /* evita que se dispare en pantallas grandes */
  overflow: hidden;
  margin-bottom: 3rem;  /* aire con el contenido */
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Mobile */
@media (max-width: 768px) {
  .project-hero {
    height: 32vh;
    margin-bottom: 2rem;
  }
}


/* ---------------- CONTENIDO ---------------- */

.project-content {
  padding-top: 0rem;
  padding-bottom: 4rem;
}

.project-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}


.project-date {
  font-weight: 600;
}

.project-type {
  font-weight: 400;
}

.project-description {
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/*add*/

.project-description {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.75rem; /* separación sutil entre párrafos */
  color: #2b2b2b;
}


.project-description:last-child {
  margin-bottom: 0;
}


.project-text {
  margin-bottom: 1.5rem;
}

.project-tools-section {
  margin-top: 1.5rem;
  margin-bottom: 1.0rem;
}

.project-cta {
  margin-bottom: 3rem;
}

