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

/* Main content */
.main-content {
  background-color: white;
  min-height: 60vh;
  padding: 40px 0;
}

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

.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-header h2 {
  color: #333;
  font-size: 36px;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* PRESIDENTE */
.president-highlight {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: center;
}

.president-photo {
  width: 200px;
  height: 250px;
  border-radius: 12px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(151, 115, 44, 1);
  overflow: hidden;
}

.president-info h3 {
  color: rgba(151, 115, 44, 1);
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 700;
}

.president-position {
  color: #b8860b;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.president-message {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid rgba(151, 115, 44, 1);
}

.president-message p {
  color: #555;
  font-size: 15px;
  line-height: 1.8;
  text-align: justify;
  font-style: italic;
}

.president-contact {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid rgba(151, 115, 44, 1);
}

.contact-item-president {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  background: rgba(151, 115, 44, 1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* TITULO DE SECCIONES */
.section-title {
  font-size: 28px;
  color: rgba(151, 115, 44, 1);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

/* ----- CARRUSELES ----- */
.carousel-section {
  margin-bottom: 60px;
}

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

.carousel {
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

/* TARJETAS DEL CARRUSEL */
.official-card-carousel {
  /* min-width removed - handled by JS */
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e9ecef;
  transition: transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.official-card-carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.official-photo-carousel {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e9ecef;
  border: 3px solid rgba(151, 115, 44, 1);
  margin: 0 auto 20px;
  overflow: hidden;
}

.official-card-carousel h3 {
  color: rgba(151, 115, 44, 1);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.official-position-carousel {
  color: #b8860b;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.official-email {
  color: #666;
  font-size: 13px;
  margin-bottom: 15px;
}

/* Botón teléfono */
.phone-btn {
  width: 45px;
  height: 45px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  font-size: 20px;
  transition: all 0.3s;
}

.phone-btn:hover {
  background: #c0392b;
  transform: scale(1.1);
}

.phone-btn:active {
  transform: scale(0.95);
}

/* BOTONES DEL CARRUSEL */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(151, 115, 44, 1);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
}

.carousel-btn:hover {
  background: rgba(131, 95, 34, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

/* -------------------------------
   RESPONSIVE DESIGN
--------------------------------*/

/* TABLET */
@media (max-width: 768px) {
  .page-header h2 {
    font-size: 28px;
  }

  .president-highlight {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }

  .president-photo {
    margin: 0 auto;
  }

  .president-message p {
    text-align: left;
  }

  .carousel-container {
    padding: 0 40px;
  }

  .official-card-carousel {
    min-width: calc(50% - 10px);
  }
}

/* MOVIL */
@media (max-width: 480px) {

  /* Tarjeta ocupa TODO el ancho */
  /* Tarjeta ocupa TODO el ancho - handled by JS now */
  .official-card-carousel {
    /* min-width: 100% !important; */
    /* max-width: 100% !important; */
    /* flex-shrink: 0 !important; */
    /* margin: 0 !important; */
  }

  /* Track centrado y sin gaps */
  .carousel-track {
    /* justify-content: center !important; */
    gap: 0 !important;
  }

  .carousel-container {
    padding: 0 40px !important;
  }

  .carousel-btn {
    width: 35px !important;
    height: 35px !important;
  }
}