
/* =======================
   GLOBAL VARIABLES
   ======================= */
:root {
  --primary-red: #ff3300;
  --red-hover: #e62e00;
  --light-gray: #f5f5f5;
  --dark-text: #111111;
  --white: #ffffff;
}

/* =======================
   RESET & BASE
   ======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arimo', sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-text);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* =======================
   HEADER & NAVBAR
   ======================= */
header {
  background-color: var(--white);
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* <-- esto es clave */
}

.logo-box img {
  height: 50px;
}
nav {
  display: flex;
  gap: 1.5rem;
}
nav a {
  font-weight: 600;
  color: var(--primary-red);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-red);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

/* =======================
   PROJECT LIST
   ======================= */
.project-category {
  padding: 4rem 2rem;
  background-color: var(--white);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.project-category h2 {
  font-size: 2rem;
  color: var(--dark-text);
  margin-bottom: 2rem;
  position: relative;
}

.project-category h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-red);
  margin: 0.5rem auto;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* === Tarjetas estilo HOME === */
.project-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  cursor: pointer;
}

.project-card:hover {
  background-color: #fff5f2;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Contenido interno */
.project-card-content {
  padding: 1rem;
}

.project-card-content h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.project-card-content p {
  font-size: 0.95rem;
  color: #333;
}

/* =======================
   MODAL
   ======================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  background-color: white;
  margin: auto;
  padding: 1rem;
  border-radius: 10px;
  max-width: 900px;
  text-align: center;
}
.modal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.modal-images img {
  width: 260px;
  border-radius: 6px;
  object-fit: cover;
}
.close-btn {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* =======================
   FOOTER
   ======================= */
footer {
  background-color: var(--primary-red);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* =======================
   RESPONSIVE
   ======================= */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}
.menu-toggle i {
  color: var(--primary-red);
}


@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--primary-red);
    z-index: 200;
  }

  nav {
    position: absolute;
    top: 60px; /* justo debajo del header */
    right: 0;
    width: 200px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 150;
  }

  nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav a {
    color: var(--primary-red);
    font-size: 1rem;
    font-weight: 600;
  }

  .menu-toggle .close-icon {
    display: none;
  }

  .menu-toggle.active .open-icon {
    display: none;
  }

  .menu-toggle.active .close-icon {
    display: inline;
  }
}





@media (max-width: 480px) {
  .project-card {
    width: 100%;
    max-width: 90%;
  }

  .project-card img {
    height: 150px;
  }
}

