/* ===== COMUNIDADES DEL CANAL DEL DIQUE ===== */

/* Variables de color */
:root {
  --primary-color: #0F4C75;
  --secondary-color: #F8AF40;
  --accent-color: #7CB342;
  --dark-blue: #072A40;
  --light-bg: #F8F9FA;
  --main-font:  'Switzer','Montserrat', system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Lato', 'sans-serif';
  --base-size: 16px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
  padding: 0;
  margin-left: calc(-50vw + 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-areas:
    "img1 img2 img3"
    "title title img4"
    "img5 img6 img7";
  gap: 0;
  width: 100vw;
  height: 100vh;
}

.grid-image {
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

.grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img1 { grid-area: img1; }
.img2 { grid-area: img2; }
.img3 { grid-area: img3; }
.img4 { grid-area: img4; }
.img5 { grid-area: img5; }
.img6 { grid-area: img6; }
.img7 { grid-area: img7; }

.grid-title {
  grid-area: title;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ECF1F8 !important;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.grid-title h1 {
  display: inline-block;
  background: #F7AD3E !important;
  padding: 24px 98px;
  border: 4px solid #142139 !important;
  box-shadow: 8px 8px 0 #142139 !important;
  border-radius: 0 40px 0 40px !important;
  font-size: 80px !important;
  font-weight: 700 !important;
}

/* ===== COMUNIDADES SECTION ===== */
.communities-section {
  padding: 60px 338px;
  background: #f8f9fa;
}

.community-item {
  display: flex;
  align-items: center;
  margin-bottom: 96px;
  gap: 0px;
}

.community-image-card {
  flex: 0 0 488px;
  height: 368px;
  border-radius: 10px;
  overflow: visible;
  background: #092C44;
  border: 3px solid #092C44;
  box-shadow: 8px 8px 0 #092C44;
  transition: all 0.6s ease;
  position: relative;
}

.community-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.community-text {
  flex: 1;
  padding-left: 114px;
}

.community-title {
  font-family: 'Switzer', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #142139;
  margin: 0 0 40px 0;
}

.community-description {
  font-family: 'Switzer', sans-serif;
  font-size: 24px;
  color: #2D3139;
  line-height: 33.6px;
  margin: 0px;
  text-align: left;
  width: 634px;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #F7AD3E;
  color: #142139;
  padding: 8px 40px;
  border: 3px solid #092C44;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 28px;
  box-shadow: 8px 8px 0 #092C44;
  transition: all 0.6s ease;
  position: absolute;
  bottom: -16px;
  right: -32px;
  z-index: 10;
}

.community-btn:hover {
  background: #e69e36;
  color: #142139;
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #092C44;
  text-decoration: none;
}

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

.community-card {
  animation: fadeInUp 0.6s ease-out;
}

.community-card:nth-child(2) {
  animation-delay: 0.1s;
}

.community-card:nth-child(3) {
  animation-delay: 0.2s;
}

.community-card:nth-child(4) {
  animation-delay: 0.3s;
}

.community-card:nth-child(5) {
  animation-delay: 0.4s;
}

.community-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Footer */
.footer-section {
  background: #1F4C75;
  padding: 60px 0 30px 0;
  margin-top: 0;
}

.footer-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-title {
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}



.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s, opacity 0.3s;
}

.footer-logo-img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-icon {
  color: var(--secondary-color);
  font-size: 24px;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Media Queries / Responsive Design */
@media (max-width: 1200px) {
  .hero-section {
    height: 50vh;
  }
  
  .grid-title h1 {
    font-size: 80px;
  }
  
  .communities-section {
    padding: 60px 150px;
  }
}

@media (max-width: 768px) {
  .grid-title h1 {
    font-size: 5vw;
  }
  
  .communities-section {
    padding: 40px 50px;
  }
  
  .community-item {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .community-image-card {
    flex: none;
    width: 100%;
    max-width: 400px;
  }
  
  .community-text {
    padding-left: 0;
    padding-top: 20px;
  }
  
  .community-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .community-description {
    text-align: center;
    font-size: 1rem;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .grid-title h1 {
    font-size: 6vw;
  }
  
  .communities-section {
    padding: 30px 20px;
  }
  
  .community-title {
    font-size: 1.5rem;
  }
  
  .community-description {
    font-size: 0.9rem;
  }
  
  .community-image-card {
    height: 200px;
  }
}