/* Hero Section */
.proyectos-hero {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  margin-top: 0;
  padding-left: 5%;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/Imagenes de alta resolucion/proyectos-portada.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: #f8af40;
  color: var(--dark-blue);
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  padding: 0px 32px;
  border: 2px solid #092C44;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 8px 8px 0 #092C44;
  position: absolute;
  bottom: -16px;
  right: -24px;
  transition: all 0.6s;
  z-index: 20;
}

.btn:hover {
  background: #e69e36;
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #092C44;
  color: var(--dark-blue);
  text-decoration: none;
  border: 2px solid #092C44;
}

.proyectos-page-title {
  font-family: 'Switzer', sans-serif !important;
  font-size: 96px !important;
  font-weight: 400 !important;
  color: #000000 !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.1 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* Sección de contenido */
.proyectos-content {
  background: #F5F5F5;
  padding: 100px 0;
}

.proyecto-card {
  padding: 36px 48px;
  border-radius: 40px;
  margin-bottom: 60px;
  border: 4px solid #142139;
  box-shadow: 8px 8px 0 #142139;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  position: relative; /* allow transforms without layout surprises */
  box-sizing: border-box !important;
  text-decoration: none !important;
}

/* Make the top-left corner square (not rounded) for 1st and 3rd cards */
.proyectos-content .proyecto-card:nth-of-type(1),
.proyectos-content .proyecto-card:nth-of-type(3) {
  border-top-left-radius: 0;
}

/* Make the top-right corner square for the 2nd card and nudge positions */
.proyectos-content .proyecto-card:nth-of-type(2) {
  border-top-right-radius: 0;
  transform: translateX(8%);
}

.proyectos-content .proyecto-card:nth-of-type(4) {
  border-top-right-radius: 0;
  transform: translateX(8%);
}

/* Nudge 1st and 3rd cards slightly to the left to create opposing layout */
.proyectos-content .proyecto-card:nth-of-type(1),
.proyectos-content .proyecto-card:nth-of-type(3) {
  transform: translateX(-8%);
}

.proyecto-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 20px 20px 0 #092C44 !important;
}

.proyecto-card:active {
  transform: translateY(4px) !important;
  box-shadow: 10px 10px 0 #092C44 !important;
}

.proyecto-card:last-child {
  margin-bottom: 0;
}

/* Colores alternados para las tarjetas */
.verde-card {
  background: #84BC44;
  box-shadow: 8px 8px 0 #142139;
}

.naranja-card {
  background: #F7AD3E;
  box-shadow: -8px 8px 0 #142139;
  font-family: 'Switzer', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #142139;
  line-height: 44px;
  text-align: right;
  margin: 0;
  text-decoration: none !important;
  margin-bottom: 60px;
}

.proyecto-text {
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #142139;
  line-height: 44px;
  text-align: right;
  margin: 0;
  text-decoration: none !important;
}