/* Nosotros Page Styles */

/* Page Transition */
body {
  animation: fadeInPage 0.8s ease-out;
}

@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero Section */
.nosotros-hero {
  min-height: auto;
  padding: 10rem 2rem 6rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.nosotros-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(83, 152, 218, 0.05), rgba(107, 183, 58, 0.05));
  border-bottom-left-radius: 100px;
  z-index: 0;
}

@keyframes heroImageFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nosotros-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.nosotros-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--gray);
  max-width: 90%;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 10px rgba(255,255,255,0.5);
  transition: all 0.4s ease;
  max-width: 350px;
  margin: 0 auto;
  border: 4px solid white;
  animation: heroImageFloat 6s ease-in-out infinite;
}

.hero-img-wrapper:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 0 10px rgba(255,255,255,0.8);
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.hero-img-wrapper:hover img {
  transform: scale(1.05);
}

/* About Section */
.about-section {
  padding: 6rem 2rem;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-image img {
  width: 100%;
  max-width: 400px; /* Limit size */
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Purpose Section */
.purpose-section {
  padding: 6rem 2rem;
  background: var(--light-gray);
  text-align: center;
}

.purpose-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 3rem;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.purpose-item h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-bottom: 1rem;
  font-weight: 700;
}

.purpose-item p {
  color: var(--secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* CTA Band */
.cta-band {
  background: var(--white);
  padding: 5rem 2rem 10rem;
  position: relative;
  overflow: hidden;
}

.cta-band-content {
  background: linear-gradient(135deg, var(--accent) 0%, #5cb82f 100%);
  border-radius: 20px;
  padding: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: 0 25px 0px #3a7a21, 0 40px 40px rgba(0,0,0,0.15); /* 3D Effect */
  overflow: visible;
  color: white;
  transform: translateY(0);
}

.cta-band-content:hover {
  /* Removed hover effect */
}

.cta-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.cta-image-col {
  flex: 1;
  max-width: 400px;
}

.cta-image-col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.cta-band-text h2 {
  font-size: 2rem;
  color: white;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.cta-band-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.cta-band-btn {
  background: white;
  color: var(--accent);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: pulse-cta 2s infinite;
}

.cta-band-btn:hover {
  transform: scale(1.5); /* 50% scale increase */
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
  background: var(--secondary);
  color: white;
}

@keyframes pulse-cta {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); } /* Increased scale intensity */
  100% { transform: scale(1); }
}

.cta-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid, .about-grid, .purpose-grid, .cta-band-content {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }
  
  .nosotros-hero {
    padding-top: 8rem;
  }

  .cta-text-group {
    align-items: center;
  }
  
  .cta-band-content {
    padding: 2rem;
  }
  
  .nosotros-hero h1 {
    font-size: 2.5rem;
  }
}
