/* Reset de enlaces */
a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Made', sans-serif;
}

body {
  background-color: #f5f5f5;
}

p {
  color: #686868;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 150px;
  padding: 30px;
  padding-bottom: 60px;
  background-image: url('/images/RECTANGULO\ DE\ ARRIBA-12.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  z-index: 10;
}

.logo {
  position: absolute; /* corregido */
  top: 0;
  left: 0;
  padding: 10px;
  z-index: 3;
}

.logo img {
  height: 125px;
  width: auto;
}

nav {
  position: absolute;
  top: 0;
  right: 20px;
  margin-top: 120px;
  z-index: 11;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #4CAF50;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0px 0px 10px 10px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

/* Botones de navegación */
.nav-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  margin-right: 15px;
  margin-top: 9px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
}

.rse-btn,
.rrhh-btn,
.login-btn {
  background-color: white;
  color: black;
}

.rse-btn p,
.rse-btn b,
.rrhh-btn p,
.rrhh-btn b,
.login-btn p,
.login-btn b {
  color: black;
}

.rse-btn:hover,
.rrhh-btn:hover,
.login-btn:hover {
  background-color: #4CAF50;
}

.rse-btn:hover p,
.rse-btn:hover b,
.rrhh-btn:hover p,
.rrhh-btn:hover b,
.login-btn:hover p,
.login-btn:hover b {
  color: white;
}

.nav-btn img {
  width: 20px;
  height: 20px;
}

/* Banner principal */
.main-banner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  overflow: hidden;
  margin-bottom: 50px;
}

.main-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido RSE */
.rse-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header RSE */
.rse-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 60px 40px;
  margin-bottom: 40px;
}

.rse-title-container {
  position: relative;
}

.rse-title {
  font-size: 48px;
  font-weight: 900;
  color: #4CAF50;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.rse-line {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #4CAF50 0%, #4CAF50 60%, transparent 100%);
  border-radius: 10px;
  position: relative;
}

.rse-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #4CAF50;
  border-radius: 50%;
}

.rse-description p {
  color: #686868;
  font-size: 16px;
  line-height: 1.8;
  text-align: right;
}

/* Sección de cita verde */
.rse-quote-section {
  background-color: #4CAF50;
  padding: 120px 60px;
  margin-left: -20px;
  margin-right: -20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.rse-quote-container {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding: 80px 200px;
}

.quote-left,
.quote-right {
  width: 180px;
  height: auto;
  opacity: 0.5;
  position: absolute;
}

.quote-left {
  top: 20px;
  left: 60px;
}

.quote-right {
  bottom: 20px;
  right: 60px;
}

.rse-quote {
  color: white;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Carrusel RSE */
.rse-carousel-section {
  padding: 40px 0 20px 0;
  margin-bottom: 0;
}

.rse-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

.rse-carousel {
  overflow: hidden;
  width: 100%;
}

.rse-carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.rse-slide {
  width: calc(33.333% - 20px);
  min-width: calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  flex-shrink: 0;
}

.rse-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Rotar imágenes CASA FOA (1) y (2) */
.rse-slide:nth-child(17) img,
.rse-slide:nth-child(18) img {
  transform: rotate(90deg);
  object-fit: cover;
}

.rse-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(76, 175, 80, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rse-carousel-btn:hover {
  background-color: #4CAF50;
  transform: translateY(-50%) scale(1.1);
}

.rse-prev {
  left: 10px;
}

.rse-next {
  right: 10px;
}

/* Sección de acciones */
.rse-actions {
  padding: 20px 40px 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.rse-actions-intro {
  color: #333;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 500;
}

.rse-actions-text {
  color: #686868;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.rse-actions-text strong {
  color: #333;
  font-weight: 700;
}

/* Footer */
footer {
  background: linear-gradient(to right, #333333, #4CAF50);
  color: #fff;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

footer .social-links img {
  height: 35px;
  width: 35px;
}

footer p {
  font-size: 12px;
  text-align: right;
  margin: 0;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .rse-header {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }

  .rse-title {
    font-size: 36px;
  }

  .rse-quote {
    font-size: 20px;
  }

  .rse-slide {
    min-width: calc(50% - 15px);
  }

  .rse-slide img {
    height: 300px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .nav-buttons {
    display: none;
  }

  .rse-title {
    font-size: 28px;
  }

  .rse-quote-section {
    padding: 40px 30px;
  }

  .quote-mark {
    font-size: 100px;
    left: -20px;
    top: -20px;
  }

  .rse-quote {
    font-size: 18px;
  }

  .rse-carousel-container {
    padding: 0 60px;
  }

  .rse-slide {
    min-width: 100%;
  }

  .rse-slide img {
    height: 250px;
  }

  .rse-actions {
    padding: 40px 20px;
  }
}

/* Scroll Reveal Effect */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Diferentes delays para efecto escalonado */
.scroll-reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.scroll-reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.scroll-reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.scroll-reveal:nth-child(4) {
  transition-delay: 0.4s;
}
