:root {
  --primary: #4CAF50; /* Verde vibrante */
  --secondary: #FF9800; /* Naranja casi amarillo llamativo */
  --background: #F5F5F5; /* Gris claro */
  --text: #333333; /* Negro suave */
  --white: #FFFFFF; /* Blanco puro */
  --accent: #FFD700; /* Dorado */
  --light-text: #ffffff; /* Texto claro para contraste */
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7); /* Transparencia al 70% */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(5px); /* Efecto de desenfoque opcional */
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  margin-left: 50px;
  width: 250px;
  height: auto;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--secondary); /* Naranja para el ícono de menú */
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  font-size: 18px;
  color: var(--secondary); /* Naranja para los enlaces de navegación */
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent); /* Dorado al hover */
  text-decoration: underline;
}

/* Hero (Banner) */
.hero {
  height: 100vh;
  background: url('assets/images/hero-bg.webp') no-repeat center/cover; /* Imagen de fondo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text); /* Texto claro para contraste */
  position: relative;
  overflow: hidden;
}

.hero-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra para mejorar legibilidad */
}

.cta {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent); /* Dorado */
  color: var(--white);
  font-size: 20px;
  border-radius: 5px;
  transition: transform 0.3s, background 0.3s;
}

.cta:hover {
  transform: scale(1.1);
  background: #FFC107; /* Dorado más claro al hover */
}

/* Sobre Nosotros */
.about {
  padding: 80px 0;
}

.about .intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
}

.about .values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.value-card {
  text-align: center;
  padding: 20px;
  background: var(--background);
  border-radius: 10px;
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.value-card h3 {
  color: var(--secondary); /* Naranja para títulos de valores */
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text);
}

.team {
  margin-top: 40px;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.team-member {
  display: flex;
  align-items: center;
  background: var(--background);
  border-radius: 10px;
  padding: 20px;
}

.team-member img {
  width: 300px;
  height: 400px;
  border-radius: 5%;
  margin-right: 20px;
}

.team-info {
  text-align: left;
}

.team-name {
  font-size: 24px;
  margin-bottom: 10px;
}

.team-title {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 10px;
  font-style: italic;
}

.team-description {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* Servicios */
.services {
  padding: 80px 0;
}

.services .container h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}

.service-card h3 {
  color: var(--secondary); /* Naranja para títulos de servicios */
  margin: 10px 0;
}

.service-card p {
  color: var(--text);
}

/* Red Empresarial */
.network {
  background: var(--secondary); /* Naranja para el fondo */
  color: var(--light-text);
  text-align: center;
  position: relative;
  padding: 80px 0;
}

.network h2 {
  color: var(--white); /* Asegura que el h2 sea blanco para visibilidad */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Añade sombra para legibilidad */
}

.network-description {
  font-size: 18px;
  margin: 20px 0;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
}

.network-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
}

.network form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  position: relative;
}

.network input, .network textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  color: var(--white); /* Color fijo para mejor visibilidad */
  background: rgba(0, 0, 0, 0.2); /* Fondo oscuro semitransparente */
}

.network input::placeholder, .network textarea::placeholder {
  color: var(--white); /* Blanco para placeholders */
  opacity: 0.7; /* Ajuste de opacidad para placeholders */
}

.network textarea {
  resize: vertical;
}

.network button {
  background: var(--accent);
  color: var(--white);
  padding: 10px;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.network button:hover {
  background: #FFC107;
}

/* Eventos */
.events {
  padding: 80px 0;
}

.events .container h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.events .event-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
}

.event-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--background);
}

.event-card h3 {
  color: var(--secondary); /* Naranja para títulos de eventos */
  margin: 10px 0;
}

.event-card p {
  color: var(--text);
}

/* Calendario */
.calendar {
  background: var(--white);
  padding: 80px 0;
}

.calendar .container h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

#calendar {
  max-width: 900px;
  margin: auto;
  font-family: 'Open Sans', sans-serif;
  background: var(--background);
  border-radius: 10px;
  padding: 20px;
  font-size: medium;
  display: block; /* Asegura que se muestre */
  height: 600px; /* Añadido altura mínima para asegurar visibilidad */
  position: relative;
  z-index: 2;
}

.fc-button {
  background: var(--accent);
  border: none;
  border-radius: 5px;
  color: var(--white);
  padding: 8px 12px;
  font-size: 14px;
  transition: background 0.3s;
}

.fc-button:hover {
  background: #FFC107;
}

.fc-button:focus {
  outline: none;
  box-shadow: 0 0 5px var(--accent);
}

/* Testimonios */
.testimonials {
  background: var(--white);
  padding: 80px 0;
}

.testimonials .container h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.swiper-container {
  width: 100%;
  padding: 20px 0;
}

.testimonial-card {
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-card img {
  width: 200px;
  height: 200px;
  margin-bottom: 10px;
}

.testimonial-card p {
  color: var(--text);
  margin-bottom: 10px;
}

.testimonial-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.testimonial-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--white);
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.testimonial-link:hover {
  background: #FFC107;
}

.swiper-pagination {
  margin-top: 20px;
}

.swiper-button-prev, .swiper-button-next {
  display: none; /* Flechas eliminadas */
}

/* Certifications */
.certifications {
  background: var(--background);
  padding: 80px 0;
}

.certifications .container h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.certification-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-items: center;
}

.certification-logos img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Contacto */
.contact {
  background: var(--secondary); /* Naranja para el fondo de contacto */
  color: var(--light-text);
  text-align: center;
  position: relative;
  padding: 80px 0;
}

.contact h2 {
  color: var(--white); /* Asegura que el h2 sea blanco para visibilidad */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Añade sombra para legibilidad */
}

.contact-description {
  font-size: 18px;
  margin: 20px 0;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 2;
  position: relative;
}

.contact-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  z-index: 1;
}

.contact form {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  z-index: 2;
  position: relative;
}

.contact input, .contact textarea {
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  color: var(--white); /* Color fijo para mejor visibilidad */
  background: rgba(0, 0, 0, 0.2); /* Fondo oscuro semitransparente */
}

.contact input::placeholder, .contact textarea::placeholder {
  color: var(--white); /* Blanco para placeholders */
  opacity: 0.7; /* Ajuste de opacidad para placeholders */
}

.contact textarea {
  resize: vertical;
}

.contact button {
  background: var(--accent);
  color: var(--white);
  padding: 10px;
  border: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.contact button:hover {
  background: #FFC107;
}

/* Footer */
footer {
  background: var(--secondary); /* Naranja para el fondo del footer */
  color: var(--light-text);
  padding: 20px 0;
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info, .working-hours, .legal-info {
  flex: 1;
  min-width: 200px;
}

.contact-info h4, .working-hours h4, .legal-info h4 {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-info p, .working-hours p, .legal-info p {
  margin: 5px 0;
}

.contact-info i {
  margin-right: 10px;
}

.legal-info a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-info a:hover {
  color: #FFC107;
}

.map {
  margin: 20px 0;
}

.map iframe {
  border-radius: 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px;
}

.social-icons svg {
  width: 30px;
  height: 30px;
  fill: var(--light-text);
  transition: transform 0.3s;
}

.social-icons svg:hover {
  transform: scale(1.2);
}

/* Responsividad */
@media (max-width: 1023px) {
  .container {
    padding: 0 15px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 16px;
  }
  .about .values, .services .cards, .events .event-list, .team-members {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-member {
    flex-direction: column;
    text-align: center;
  }
  .team-member img {
    margin-right: 0;
    margin-bottom: 20px;
  }
  .testimonial-card img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    padding: 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
  .about .values, .services .cards, .events .event-list, .team-members {
    grid-template-columns: 1fr;
  }
  .team-member img {
    width: 250px;
    height: 333px;
  }
  .testimonial-card img {
    width: 150px;
    height: 150px;
  }
  .swiper-container {
    padding: 10px 0;
  }
}
/* Botón flotante de WhatsApp mejorado */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background-color: #25D366; /* Verde WhatsApp */
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: pulse 2s infinite;
  transition: transform 0.3s;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1); /* Asegura que el icono sea blanco */
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.logo-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px auto;
}


/* === CORRECCIONES INCLUIDAS === */

/* Swiper Fix */
.swiper-container {
  overflow: hidden; /* Previene desbordamiento horizontal */
}
.swiper-slide {
  box-sizing: border-box;
  padding: 10px;
}

/* WhatsApp Float Button Fix */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #25D366;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
.whatsapp-float img {
  width: 35px;
  height: 35px;
  filter: brightness(0) invert(1);
}

/* Logo Convocatorias Fix */
.logo-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  margin: 0 auto 15px auto;
  display: block;
}
