/* ============================================
   ESTILOS GENERALES - UTP RÍO BALLEZA
   ============================================ */

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================
   BARRA SUPERIOR
   ============================================ */
.top-bar {
  background-color: #145214;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 20px;
}

.top-bar span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.top-bar i {
  margin-right: 8px;
  font-size: 1rem;
}

/* ============================================
   ENCABEZADO PRINCIPAL
   ============================================ */
header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: relative;
  flex-wrap: wrap;
  border-bottom: 3px solid #2e7d32;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: translateX(5px);
}

.logo {
  height: 70px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b5e20;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.logo-container:hover .logo-text {
  color: #2e7d32;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.header-nav {
  display: flex;
  align-items: center;
}

/* Menú desktop */
nav.desktop-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav.desktop-menu a {
  text-decoration: none;
  color: #2e7d32;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}

/* Estilo especial para el enlace de página principal UTP */
nav.desktop-menu a.header-link {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav.desktop-menu a.header-link:hover {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(27, 94, 32, 0.3);
}

nav.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #2e7d32;
  transition: width 0.3s ease;
}

nav.desktop-menu a:not(.header-link):hover::after,
nav.desktop-menu a:not(.header-link):focus::after {
  width: 100%;
}

nav.desktop-menu a:hover {
  color: #1b5e20;
}

/* Menú móvil */
.mobile-menu-container {
  display: none;
  position: relative;
}

.mobile-menu-btn {
  background: #2e7d32;
  border: none;
  border-radius: 6px;
  font-size: 1.3rem;
  cursor: pointer;
  color: white;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
  background-color: #1b5e20;
  transform: scale(1.05);
}

nav.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

nav.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

nav.mobile-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.3s;
  border-bottom: 1px solid #f0f0f0;
}

nav.mobile-menu a:last-child {
  border-bottom: none;
}

nav.mobile-menu a:hover,
nav.mobile-menu a:focus {
  background-color: #f0f7f0;
  color: #2e7d32;
  padding-left: 25px;
}

/* ============================================
   CARRUSEL DE IMÁGENES
   ============================================ */
.carousel-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 0;
}

.carousel-container {
  position: relative;
  width: 70%;
  overflow: hidden;
  background-color: white;
  height: 0;
  padding-bottom: 39.375%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
}

.carousel-slide {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.carousel-slide img {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  object-fit: cover;
  background-color: #f8f8f8;
  backface-visibility: hidden;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(27, 94, 32, 0.85);
  color: white;
  padding: 15px 18px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.arrow:hover,
.arrow:focus {
  background-color: #1b5e20;
  transform: translateY(-50%) scale(1.15);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.dot {
  height: 14px;
  width: 14px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background-color: #2e7d32;
  transform: scale(1.3);
  border-color: white;
}

.dot:hover {
  background-color: #2e7d32;
  transform: scale(1.2);
}

/* ============================================
   OFERTA EDUCATIVA - TARJETAS CON LOGOTIPOS AUMENTADOS
   ============================================ */
.ofrecemos {
  padding: 60px 5%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.ofrecemos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50, #2e7d32);
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* TARJETAS DE CARRERAS - MISMO ANCHO Y ALTO */
.career-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: 500px;
  min-height: 460px;
  position: relative;
  border: 1px solid #e8f5e9;
  display: flex;
  flex-direction: column;
}

.career-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  padding: 25px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* LOGOTIPO DE LA CARRERA - TAMAÑO AUMENTADO */
.career-logo {
  width: 80px; /* Tamaño aumentado significativamente */
  height: 80px; /* Tamaño aumentado significativamente */
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 8px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.3;
}

.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* TEXTO DESCRIPTIVO DE LA CARRERA */
.card-description {
  margin-bottom: 25px;
  flex: 1;
  display: flex;
  align-items: center;
}

.card-description p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin: 0;
}

/* BOTONES DE ACCIÓN */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  flex-shrink: 0;
}

/* Botón para mapa curricular PDF - EN VERDE */
.pdf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.pdf-button:hover {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.4);
}

.pdf-button i {
  font-size: 1.2rem;
}

/* Botón de contacto (opcional) */
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
}

.contact-button:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-3px);
}

/* ============================================
   SECCIÓN CONÓCENOS - FACEBOOK SIN BOTONES ADICIONALES
   ============================================ */
#conocenos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 5%;
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
  position: relative;
}

#conocenos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #81c784, #2e7d32);
}

.conocenos-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.conocenos-left {
  flex: 1;
  min-width: 300px;
}

.conocenos-right {
  flex: 1;
  min-width: 300px;
}

.conocenos-left h2 {
  color: #1b5e20;
  font-size: 2rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
  font-weight: 800;
}

.conocenos-left h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50);
  border-radius: 2px;
}

/* DISEÑO DE ACORDEONES */
.accordion-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0f2e0;
}

.accordion-item {
  border-bottom: 1px solid #e8f5e9;
  transition: all 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: white;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b5e20;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.accordion-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #4caf50;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.accordion-header:hover::before,
.accordion-header[aria-expanded="true"]::before {
  transform: scaleY(1);
}

.accordion-header:hover {
  background-color: #f8fdf8;
  padding-left: 35px;
}

.accordion-header[aria-expanded="true"] {
  background-color: #f0f9f0;
  color: #145214;
}

.accordion-icon {
  font-size: 1.1rem;
  color: #4caf50;
  transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: #2e7d32;
}

.accordion-content {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: #f8fdf8;
  border-left: 4px solid transparent;
}

.accordion-content.active {
  padding: 25px;
  max-height: 1000px;
  border-left-color: #4caf50;
}

.accordion-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2f4f22;
  margin-bottom: 15px;
}

.accordion-content p:last-child {
  margin-bottom: 0;
}

.accordion-content em {
  color: #2e7d32;
  font-weight: 600;
  font-style: normal;
  display: block;
  margin-bottom: 8px;
}

.final-text {
  display: block;
  text-align: right;
  font-style: italic;
  color: #666;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed #c8e6c9;
  font-size: 0.9rem;
}

/* SECCIÓN FACEBOOK - SIN BOTONES ADICIONALES */
.fb-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 25px;
  border: 1px solid #e0f2e0;
  height: fit-content;
  text-align: center;
}

.fb-section h2 {
  color: #1877f2;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fb-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #1877f2, #3b5998);
  border-radius: 2px;
}

.fb-section h2 i {
  color: #1877f2;
  font-size: 1.8rem;
}

.fb-iframe-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: white;
  border: 1px solid #e0e0e0;
}

.fb-section iframe {
  border: none;
  width: 100%;
  height: 400px;
}

/* ============================================
   GALERÍA
   ============================================ */
#instalaciones {
  padding: 60px 5%;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  text-align: center;
}

#instalaciones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50, #2e7d32);
}

.galeria-section {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.galeria-title {
  color: #1b5e20;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.galeria-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50);
  border-radius: 2px;
}

.galeria-container-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 25px;
}

.galeria-intro {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.6;
}

.main-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  padding: 15px 35px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
  margin-top: 15px;
}

.main-gallery-btn:hover {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(27, 94, 32, 0.4);
}

.main-gallery-btn i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.main-gallery-btn:hover i {
  transform: rotate(10deg);
}

/* ============================================
   MODAL DE GALERÍA
   ============================================ */
#modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 15px;
  animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 95%;
  max-height: 95%;
  overflow: auto;
  position: relative;
  width: 1300px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  border: 2px solid #2e7d32;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-25px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0f2e0;
}

.modal-title {
  color: #1b5e20;
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
}

.modal-close {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.modal-close:hover {
  background: #d32f2f;
  transform: rotate(90deg) scale(1.1);
}

.modal-gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.modal-filter-btn {
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  color: #666;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-filter-btn:hover,
.modal-filter-btn.active {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.modal-category-title {
  color: #1b5e20;
  font-size: 1.6rem;
  margin: 25px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 700;
}

.modal-category-title i {
  color: #4caf50;
}

.modal-category-description {
  color: #666;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.galeria-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: start;
  padding: 15px 0;
}

.galeria-contenedor img {
  width: 100%;
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 2px solid white;
}

.galeria-contenedor img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border-color: #4caf50;
}

.no-images-message {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 30px;
  grid-column: 1 / -1;
  background: #f9f9f9;
  border-radius: 8px;
  border: 2px dashed #ddd;
}

/* ============================================
   MODAL DE IMAGEN AMPLIADA
   ============================================ */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3001;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.image-modal-close:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */
.contact-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e8 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #81c784, #2e7d32);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  background: white;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 1300px;
  margin: 0 auto;
  border: 1px solid #dcedc8;
  min-height: 450px;
}

.contact-map {
  flex: 3;
  min-width: 300px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-map-title {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-map-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.contact-map iframe {
  width: 100%;
  flex: 1;
  min-height: 350px;
  border: none;
  display: block;
}

.contact-info {
  flex: 2;
  min-width: 300px;
  padding: 40px 30px;
  background: linear-gradient(135deg, #f8fdf8 0%, #f1f8e9 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 800;
  color: #1b5e20;
  position: relative;
  padding-bottom: 15px;
  flex-shrink: 0;
}

.contact-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #2e7d32, #4caf50);
  border-radius: 2px;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.contact-item {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
  padding: 15px;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid #e8f5e9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-item:hover {
  transform: translateX(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #2e7d32;
}

.contact-icon {
  margin-right: 15px;
  color: #2e7d32;
  font-size: 1.4rem;
  min-width: 30px;
  text-align: center;
  padding-top: 3px;
}

.contact-link {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
}

.contact-link:hover {
  color: #2e7d32;
}

.contact-text {
  color: #333;
  font-weight: 600;
  flex: 1;
}

/* ============================================
   FOOTER - REDUCIDO SIGNIFICATIVAMENTE
   ============================================ */
footer {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  color: white;
  padding: 40px 20px 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #81c784, #c8e6c9, #81c784);
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: #c8e6c9;
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(200, 230, 201, 0.3);
  font-weight: 700;
}

.footer-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  opacity: 0.9;
  font-size: 1rem;
}

.footer-section a {
  color: #c8e6c9;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  padding: 6px 0;
  font-size: 1rem;
  position: relative;
  padding-left: 0;
}

.footer-section a::before {
  content: '›';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
  padding-left: 18px;
}

.footer-section a:hover::before {
  opacity: 1;
  left: 5px;
}

.footer-section i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom small {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   BOTÓN WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.whatsapp-float a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.whatsapp-float a:hover::before {
  left: 100%;
}

.whatsapp-float a:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
  padding-right: 30px;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.whatsapp-float span {
  display: none;
  animation: fadeIn 0.3s ease;
}

.whatsapp-float:hover span {
  display: inline;
}

/* ============================================
   BOTÓN "VOLVER ARRIBA"
   ============================================ */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
  transition: all 0.3s ease;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: linear-gradient(135deg, #1b5e20, #388e3c);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 35px rgba(27, 94, 32, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tabletas grandes */
@media (max-width: 1200px) {
  .carousel-container {
    width: 85%;
    padding-bottom: 47.8125%;
  }
  
  .cards-container {
    gap: 25px;
  }
  
  .career-card {
    max-width: 450px;
    min-height: 440px;
  }
  
  .conocenos-container {
    padding: 0 15px;
  }
  
  .galeria-contenedor {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .modal-content {
    width: 95%;
  }
  
  .footer-content {
    gap: 30px;
  }
}

/* Tabletas */
@media (max-width: 1024px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  nav.desktop-menu a {
    font-size: 0.95rem;
  }
  
  nav.desktop-menu a.header-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .conocenos-container {
    flex-direction: column;
  }
  
  .conocenos-left,
  .conocenos-right {
    width: 100%;
  }
  
  .fb-section iframe {
    height: 350px;
  }
  
  .galeria-contenedor {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .contact-map iframe {
    min-height: 300px;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  header {
    padding: 10px 15px;
  }
  
  .logo {
    height: 55px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  nav.desktop-menu {
    display: none;
  }
  
  .mobile-menu-container {
    display: block;
  }
  
  .carousel-container {
    width: 92%;
    padding-bottom: 51.75%;
  }
  
  .arrow {
    padding: 12px 15px;
    font-size: 1.1rem;
  }
  
  .left-arrow {
    left: 12px;
  }
  
  .right-arrow {
    right: 12px;
  }
  
  .dot {
    height: 12px;
    width: 12px;
  }
  
  .ofrecemos {
    padding: 50px 5%;
  }
  
  .career-card {
    max-width: 100%;
    min-height: 420px;
  }
  
  .card-header {
    padding: 20px 15px;
    min-height: 140px;
  }
  
  .career-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-description p {
    font-size: 0.95rem;
  }
  
  .pdf-button, .contact-button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  
  #conocenos {
    padding: 50px 5%;
  }
  
  .conocenos-left h2 {
    font-size: 1.8rem;
  }
  
  .accordion-header {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .accordion-content.active {
    padding: 20px;
  }
  
  .accordion-content p {
    font-size: 0.95rem;
  }
  
  .fb-section {
    padding: 20px;
  }
  
  .fb-section h2 {
    font-size: 1.6rem;
  }
  
  .fb-section iframe {
    height: 300px;
  }
  
  .galeria-title {
    font-size: 1.8rem;
  }
  
  .galeria-intro {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .main-gallery-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .modal-content {
    padding: 20px;
    width: 95%;
  }
  
  .modal-title {
    font-size: 1.6rem;
  }
  
  .modal-gallery-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-filter-btn {
    width: 90%;
    text-align: center;
  }
  
  .galeria-contenedor {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .galeria-contenedor img {
    height: 200px;
  }
  
  .contact-section {
    padding: 50px 15px;
  }
  
  .contact-info {
    padding: 25px 20px;
  }
  
  .contact-heading {
    font-size: 1.6rem;
  }
  
  .contact-item {
    padding: 12px;
    font-size: 1rem;
  }
  
  .contact-map iframe {
    min-height: 250px;
  }
  
  footer {
    padding: 30px 15px 15px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 25px;
  }
  
  .footer-section {
    min-width: 100%;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .whatsapp-float {
    bottom: 25px;
    right: 25px;
  }
  
  .whatsapp-float a {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .whatsapp-float img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
  
  #backToTop {
    bottom: 85px;
    right: 25px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .top-bar {
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .top-bar i {
    font-size: 0.85rem;
  }
  
  .logo {
    height: 45px;
  }
  
  .logo-text {
    font-size: 0.9rem;
  }
  
  .mobile-menu-btn {
    padding: 6px 10px;
    font-size: 1.1rem;
  }
  
  .carousel-container {
    width: 95%;
    padding-bottom: 53.4375%;
  }
  
  .arrow {
    padding: 10px 12px;
    font-size: 1rem;
  }
  
  .left-arrow {
    left: 8px;
  }
  
  .right-arrow {
    right: 8px;
  }
  
  .dots {
    bottom: 12px;
  }
  
  .dot {
    height: 10px;
    width: 10px;
  }
  
  .card-header {
    padding: 18px 12px;
    min-height: 130px;
  }
  
  .career-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 18px;
  }
  
  .card-description p {
    font-size: 0.9rem;
  }
  
  .accordion-header {
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  
  .accordion-content.active {
    padding: 18px;
  }
  
  .fb-section {
    padding: 18px;
  }
  
  .fb-section h2 {
    font-size: 1.4rem;
  }
  
  .fb-section iframe {
    height: 250px;
  }
  
  .galeria-title {
    font-size: 1.6rem;
  }
  
  .modal-content {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
  
  .galeria-contenedor img {
    height: 180px;
  }
  
  .contact-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .contact-map iframe {
    min-height: 200px;
  }
  
  footer {
    padding: 25px 10px 10px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .footer-section p,
  .footer-section a {
    font-size: 0.9rem;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .whatsapp-float img {
    width: 20px;
    height: 20px;
  }
  
  #backToTop {
    bottom: 75px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}