@font-face {
  font-family: 'DM Sans';
  src: url('DM_Sans/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: normal;
}

@font-face {
  font-family: 'DM Sans';
  src: url('DM_Sans/DMSans-Italic-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 1000;
  font-style: italic;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #4665d2;
  --dark-blue: #2d4cb8;
  --text-dark: #1a1a1a;
  --text-gray: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  background: #000000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #4665d2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.social-icon {
  color: var(--white);
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.nav-social {
  display: none;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1rem 0.5rem;
  margin-top: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* Transformar hamburguesa en X cuando el menú está activo */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  color: var(--white);
  padding: 0 20px 80px 20px;
  padding-top: 0;
  margin-top: 40px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("circulo-patron.svg");
  background-repeat: repeat;
  background-size: 200px;
  /* sit above the background image but below content */
  z-index: 2;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 120px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.hero-content {
  position: relative;
  /* ensure content sits above the photo and color overlay */
  z-index: 3;
  text-align: left;
  max-width: 800px;
  margin-left: 0;
}

/* Hero image carousel */
.hero-image-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-carousel-image.active {
  opacity: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--white);
  transition: all 1s ease-in-out;
  padding: 0.5rem 1rem;
  background: transparent;
  width: fit-content;
}

.hero-title.blue-text {
  background: var(--white);
  color: #4665d2;
}

.hero-title.blue-background {
  background: #4665d2;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  margin-left: 0.5rem;
}

.subtitle-line {
  background-color: #000000;
  padding: 0rem 0.4rem;
  display: inline-block;
  width: fit-content;
}

.cta-button {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
}

.hero .cta-button.blue-button {
  background: var(--white);
  color: #4665d2;
  border-color: #4665d2;
}

.cta-button:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-decorations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.decoration-item {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0.15;
}

.decoration-1 {
  top: 10%;
  left: 5%;
  background: url("estrella-item.svg") no-repeat center;
  background-size: contain;
}

.decoration-2 {
  bottom: 15%;
  right: 10%;
  background: url("rombos-item.svg") no-repeat center;
  background-size: contain;
}

.decoration-3 {
  top: 50%;
  right: 5%;
  background: url("arco-item.svg") no-repeat center;
  background-size: contain;
}

/* Video Section */
.video-section {

  padding: 60px 20px;
  padding-top: 0px;
  background: #000000;
  text-align: center;
}

.video-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.video-social-icon {
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-social-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 10px 40px rgba(87, 125, 255, 0.2);
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-container video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f5f5f5;
}

/* Diagonal Separator */
.diagonal-separator {
  position: relative;
  z-index: 10;
  margin-top: -100px;
  margin-bottom: -80px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.diagonal-separator .diagonal-image {
  width: 100%;
  height: auto;
  display: block;
  content: url('assets/diagonales-web.png');
}

/* En mobile, cambiar a la versión mobile */
@media (max-width: 968px) {
  .diagonal-separator {
    margin-top: -50px;
  }
  
  .diagonal-separator .diagonal-image {
    content: url('assets/diagonales-mobile.png');
  }
}

/* Lead Text Section */
.lead-section {
  padding: 50px 20px;
  padding-top: 120px;
  background: #000000;
}

.lead-text {
  font-size: 1.8rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--white);
  line-height: 1.5;
  font-weight: bold;
}

.separator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  margin: 1rem auto 2rem;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.separator img {
  opacity: 0.8;
}

.separator .separator-pattern {
  width: 400px;
  height: auto;
  object-fit: contain;
}

.separator .separator-star {
  width: 200px;
  height: auto;
  object-fit: contain;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
}

.video-placeholder {
  background: var(--text-dark);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.play-button:hover {
  transform: scale(1.1);
  background: var(--dark-blue);
}

/* Expectations Section */
.expectations {
  padding: 10px 20px;
  padding-bottom: 80px;
  background: #000000;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  font-weight: 800;
}

.expectations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

.expectation-card {
  text-align: left;
  padding: 2rem;
  background: #4665d2;
  border-radius: 12px;
  position: relative;
  width: 100%;
  max-width: 320px;
}

.expectation-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  color: #000000;
  display: block;
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
}

.expectation-card p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--white);
  margin-top: 4rem;
  font-weight: bold;
}

/* Principles Banner */
.principles-banner {
  position: relative;
  background: #4665d2;
  padding: 5rem 20px;
  margin: 0;
  overflow: hidden;
}

/* Add Palacio de La Moneda as background image for the principles banner
   and apply a color filter matching the header */
.principles-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/banner-principios.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.75) contrast(1.02) saturate(0.95);
  z-index: 0;
}

.principles-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--primary-blue);
  opacity: 0.65;
  mix-blend-mode: multiply;
  z-index: 1;
}

.principles-banner .container {
  position: relative;
  z-index: 2;
}

.banner-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--white);
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Principles Section */
.principles {
  padding: 80px 20px;
  background: #000000;
}

.principles .container {
  max-width: 1400px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.principle-card {
  background: #577dff;
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(87, 125, 255, 0.3);
  text-align: center;
  cursor: pointer;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 125, 255, 0.5);
}

.principle-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.5rem;
}

.principle-icon img {
  max-width: 60px;
  max-height: auto;
  object-fit: contain;
}

.principle-card h3 {
  font-size: 1.3rem;
  color: #000000;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

.principle-summary {
  font-weight: normal;
  margin-bottom: 0;
  text-align: center;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

/* Team Section */
.team {
  padding: 80px 20px;
  background: #000000;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.team-member {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-blue);
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--primary-blue);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  display: none;
}

.team-member p {
  display: none;
}

.cta-section {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.cta-section .cta-button {
  padding: 1.2rem 4rem;
  font-size: 1.4rem;
}

/* Timeline Section */
.timeline {
  padding: 80px 20px;
  padding-top: 20px;
  background: #000000;
}

.timeline-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 24px;
  background: #4665d2;
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: transparent;
  font-size: 1.2rem;
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 2rem;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(87, 125, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-content::before {
  content: attr(data-date);
  font-weight: bold;
  color: #000000;
  font-size: 1.2rem;
}

.timeline-content h3 {
  font-size: 1.8rem;
  color: #4665d2;
  margin: 0;
}

/* Program Section */
.program {
  padding: 120px 20px;
  background: #000000;
  overflow: hidden;
}

.program-carousel-wrapper {
  padding: 40px 0;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 350px;
  overflow: hidden;
}

.program-carousel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: transform 0.5s ease;
  padding: 0 20px;
}

.program-slide {
  background: #4665d2;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  width: 100%;
  min-height: 280px;
  box-shadow: 0 15px 50px rgba(87, 125, 255, 0.5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.program-slide:hover {
  box-shadow: 0 25px 80px rgba(87, 125, 255, 0.8);
  transform: scale(1.02);
}

.slide-number {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.program-slide h3 {
  font-size: 1.3rem;
  color: #000000;
  margin-bottom: 1rem;
  font-weight: bold;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.program-slide p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--white);
  position: relative;
  z-index: 2;
}

/* Botones de navegación */
.carousel-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
  padding: 0;
}

.carousel-nav svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.carousel-nav:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%) scale(1.05);
}

.carousel-nav:hover svg {
  transform: scale(1.1);
}

.carousel-nav.prev {
  top: -80px;
}

.carousel-nav.next {
  bottom: -80px;
}

.program-carousel-wrapper {
  position: relative;
}

/* Controles móviles ocultos por defecto */
.carousel-controls-mobile {
  display: none;
}

.carousel-nav-mobile {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-nav-mobile:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.carousel-nav-mobile svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

/* Responsive - Program Section */
@media (max-width: 968px) {
  .program {
    padding: 80px 20px;
  }

  .program-carousel-wrapper {
    padding: 40px 0;
    height: 320px;
  }

  .program-carousel {
    gap: 1.5rem;
  }

  .program-slide {
    min-height: 250px;
    padding: 1.5rem 1.25rem;
  }

  .slide-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1rem;
  }

  .program-slide h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .program-slide p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .carousel-nav {
    width: 50px;
    height: 50px;
  }

  .carousel-nav svg {
    width: 24px;
    height: 24px;
  }

  .carousel-nav.prev {
    top: -70px;
  }

  .carousel-nav.next {
    bottom: -70px;
  }
}

@media (max-width: 480px) {
  .program {
    padding: 80px 20px;
  }

  .program-carousel-wrapper {
    padding: 40px 0;
    height: 280px;
  }

  .program-carousel {
    gap: 1rem;
    padding: 0 10px;
  }

  .program-slide {
    min-height: 230px;
    padding: 1.5rem 1.25rem;
  }

  .slide-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1rem;
    opacity: 0.15;
  }

  .program-slide h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  .program-slide p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Ocultar flechas laterales en móvil */
  .carousel-nav {
    display: none;
  }

  /* Mostrar controles móviles debajo */
  .carousel-controls-mobile {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
  }
}

/* Hero Image Section */
.hero-image-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #4665d2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.02) saturate(0.95);
  z-index: 1;
}

.hero-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-blue);
  opacity: 0.7;
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-image-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-image-logo {
  margin-bottom: 1rem;
}

.hero-image-logo img {
  width: 550px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-image-logo svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-image-title {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.1;
  text-transform: lowercase;
  margin: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  margin-top: 1rem;
}

@media (max-width: 968px) {
  .hero-image-section {
    height: 500px;
  }

  .hero-image-title {
    font-size: 3rem;
  }

  .hero-image-logo img {
    width: 250px;
  }

  .hero-image-logo svg {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .hero-image-section {
    height: 450px;
  }

  .hero-image-title {
    font-size: 2.5rem;
  }

  .hero-image-logo img {
    width: 200px;
  }

  .hero-image-logo svg {
    width: 50px;
    height: 50px;
  }
}

/* Footer Diagonal Separator */
.footer-diagonal-separator {
  position: relative;
  z-index: 10;
  margin-top: -80px;
  margin-bottom: -80px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.footer-diagonal-separator .diagonal-image {
  width: 100%;
  height: auto;
  display: block;
  content: url('assets/diagonales-web.png');
}

/* En mobile, cambiar a la versión mobile */
@media (max-width: 968px) {
  .footer-diagonal-separator .diagonal-image {
    content: url('assets/diagonales-mobile.png');
    margin-top: 10px;
  }
}

/* Footer */
.footer {
  background: #4665d2;
  color: var(--white);
  padding: 6.5rem 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left {
  flex: 0 0 auto;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  line-height: 1.2;
  text-transform: lowercase;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  justify-content: center;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  flex: 0 0 auto;
}

.footer-social-icon {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.footer-social-icon:hover {
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-contact a:hover {
  opacity: 0.7;
}

@media (max-width: 968px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

.footer p {
  margin: 0.5rem 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

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

.modal-content {
  background: #4665d2;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.modal.active .modal-content {
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
  z-index: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.7);
}

.modal-body {
  padding: 3rem 2rem 2rem;
}

.modal-body h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.modal-body h3 {
  color: var(--white);
  font-weight: normal;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.modal-body p {
  color: var(--white);
  line-height: 1.5;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
    order: 3;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .header-left {
    flex: 1;
  }

  .header-right {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4665d2;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    order: 4;
    width: 100%;
    gap: 0;
  }

  .nav a {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav.active {
    max-height: 500px;
  }

  .nav.active .nav-social {
    display: flex;
  }

  .logo {
    font-size: 1.2rem;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }

  .header-right {
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    color: var(--white);
    padding: 0.5rem 0.5rem;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .subtitle-line {
    width: auto;
    display: inline-block;
    width: fit-content;
  }

  .hero::before {
    background-position: 75% center;
  }

  .section-title {
    font-size: 2rem;
  }

  .expectations .section-title {
    font-size: 1.6rem;
  }

  .lead-section {
    padding-top: 180px;
  }

  .lead-text {
    font-size: 1.1rem;
  }

  .separator .separator-pattern {
    width: 300px;
  }

  .expectations-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .team {
    padding: 80px 10px;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }

  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-wrapper::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -15px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #4665d2;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-date {
    position: absolute;
    left: 0;
    width: 40px;
    text-align: center;
    font-size: 0.9rem;
  }

  .timeline-content {
    flex: 1;
  }

  .decoration-item {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

  .header-right {
    gap: 0.8rem;
  }

  .header-content {
    padding: 0.8rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    color: var(--white);
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .subtitle-line {
    width: auto;
    display: inline-block;
    width: fit-content;
  }

  .hero::before {
    background-position: 80% center;
  }

  .separator .separator-pattern {
    width: 200px;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .expectation-number {
    font-size: 2.5rem;
  }
}
