/* Funciones Web Specific Styles */


/* Image Gallery Section */
.image-gallery {
  background: var(--light-gray);
  padding: 6rem 0;
}

.gallery-carousel {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  background: var(--white);
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.gallery-img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--white);
  border-radius: 0;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  font-weight: 600;
  font-size: 1.125rem;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 102, 204, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Hero Section for Functions */
.hero-funciones {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
  overflow: hidden;
}

/* Funciones Section */
.funciones {
  background: var(--white);
  padding: 6rem 0;
}

.funciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.funcion-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 102, 204, 0.1);
  position: relative;
  overflow: hidden;
}

.funcion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.funcion-card:hover::before {
  transform: scaleX(1);
}

.funcion-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.funcion-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.funcion-card:hover .funcion-icon {
  transform: scale(1.1);
}

.funcion-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.funcion-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.funcion-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.funcion-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.funcion-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Ventajas Section */
.ventajas {
  background: var(--light-gray);
  padding: 6rem 0;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.ventaja-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.ventaja-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.ventaja-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.ventaja-card:hover .ventaja-icon {
  transform: scale(1.1);
}

.ventaja-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.ventaja-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Enhanced Contact Section */
.contact {
  background: var(--white);
  padding: 6rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-content:has(.contact-info:only-child) {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.contact-info {
  max-width: none;
}

.contact-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.contact-method:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Form Enhancements */
.form {
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0, 102, 204, 0.1);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Animations */
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .funciones-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ventajas-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .funcion-card,
  .ventaja-card {
    padding: 2rem;
  }


  .gallery-img {
    height: 300px;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 480px) {
  .funciones,
  .ventajas,
  .contact {
    padding: 4rem 0;
  }

  .funcion-card,
  .ventaja-card {
    padding: 1.5rem;
  }

  .funcion-icon,
  .ventaja-icon {
    width: 60px;
    height: 60px;
  }

  .funcion-title {
    font-size: 1.25rem;
  }

  .ventaja-card h3 {
    font-size: 1.1rem;
  }


  .gallery-img {
    height: 250px;
    object-fit: contain;
    object-position: center;
  }

  .gallery-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* Special Effects */
.funcion-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.funcion-card:nth-child(even) {
  animation-delay: 0.2s;
}

.ventaja-card:nth-child(odd) {
  animation-delay: 0.1s;
}

.ventaja-card:nth-child(even) {
  animation-delay: 0.2s;
}

/* Hover Effects for Function Cards */
.funcion-card:hover .funcion-title {
  color: var(--primary-color);
}

.funcion-card:hover .funcion-description {
  color: var(--text-dark);
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::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.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Loading Animation for Cards */
.funcion-card,
.ventaja-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.funcion-card.animate-in,
.ventaja-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}
