/* ===== COMUNIDADES ===== */

/* 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;
}
body {
  font-size: var(--base-size);
  color: #333;
  margin: 0;
  padding: 0;
  background-color: var(--light-bg);
}

body {
  background-color: #ECF1F8;
  margin: 0px !important;
  padding: 0 !important;
}
/* 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: #EBEBF0 !important;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.grid-title h1 {
  font-family: 'Switzer', sans-serif;
  font-size: 6vw;
  font-weight: 700;
  margin: 0;
  color: #142139;
  text-align: center;
  line-height: 1.1;
  text-shadow: none;
}

/* ===== COMUNIDADES SECTION ===== */
.communities-section {
  padding: 256px 0px 104px 0;
  background: #EBEBF0;
}

.community-card {
  display: flex;
  border-radius: 20px;
  overflow: visible;
  background: #092C44;
  border: 4px solid #092C44;
  box-shadow: 8px 8px 0 #092C44;
  width: 100%;
  max-width: 650px;
  min-height: 200px;
  margin: 0 auto 120px auto;
  cursor: pointer;
}

.community-card-image {
  flex: 0 0 50%;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

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

.community-card-content {
  flex: 1;
  width: 100%;
  max-width: 732px;
  min-height: 280px;
  background: #F7AD3E 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  position: relative;
  border-radius: 0px 16px 16px 0px;
}

.community-card-title {
  font-family: 'Switzer', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #142139;
  margin: 0px;
  text-align: left;
  line-height: 1.3;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: var(--secondary-color);
  color: var(--dark-blue);
  font-family: 'Switzer', Arial, sans-serif;
  font-size: 28px;
  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;
}

.community-btn:hover {
  background: #e69e36;
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 #092C44;
  color: var(--dark-blue);
  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;
}

/* Media Queries */
@media (max-width: 1200px) {
  .hero-grid {
    width: 95vw;
    height: 60vh;
    min-height: 500px;
    gap: 15px;
  }
  
  .grid-title h1 {
    font-size: 3rem;
  }
  
  .community-card {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 100px 10px 60px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 1fr);
    grid-template-areas:
      "img1"
      "img2"
      "img3"
      "title"
      "img4"
      "img5"
      "img6"
      "img7";
    width: 90vw;
    height: auto;
    min-height: 80vh;
    gap: 15px;
  }
  
  .grid-title {
    margin: 5px;
    padding: 20px;
  }
  
  .grid-title h1 {
    font-size: 2.5rem;
  }
  
  .grid-image {
    min-height: 180px;
  }
  
  .community-card {
    flex-direction: column;
    max-width: 95%;
  }
  
  .community-card-image {
    flex: none;
    min-width: 100%;
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 2px solid var(--accent-color);
  }
  
  .community-card-content {
    min-height: 150px;
    padding: 25px 30px;
  }
  
  .community-card-title {
    font-size: 1.6rem;
  }
  
  .community-btn {
    position: static;
    margin-top: 15px;
    align-self: flex-start;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-column {
    margin-right: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-logos {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    width: 95vw;
    gap: 10px;
  }
  
  .grid-title h1 {
    font-size: 2rem;
  }
  
  .grid-title {
    padding: 15px;
  }
  
  .grid-image {
    min-height: 150px;
  }
  
  .community-card-title {
    font-size: 1.4rem;
  }
  
  .community-card {
    margin: 0 auto 30px auto;
  }
  
  .communities-section {
    padding: 60px 0;
  }
}