/* Main Styles for Jorge Alejandro Website */

/* Utility Classes */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1E3A8A;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #1E3A8A, #7C3AED);
  border-radius: 3px;
}

/* Navigation */
.nav-link {
  font-weight: 500;
  color: #4B5563;
  transition: all 0.3s;
  position: relative;
  padding-bottom: 3px;
}

.nav-link:hover, .nav-link.active {
  color: #1E3A8A;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1E3A8A;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: #4B5563;
  border-bottom: 1px solid #E5E7EB;
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: #1E3A8A;
  background-color: #F3F4F6;
  padding-left: 0.5rem;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: #7C3AED;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 6px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  background-color: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(124, 58, 237, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Hero Section Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 1.5s ease-out forwards;
}

/* Social Cards */
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Form Styling */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4B5563;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  background-color: #F9FAFB;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Footer Social Links */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Vertical Photo Gallery */
.gallery-grid {
  margin-top: 2rem;
}

.vertical-photo-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.vertical-photo-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.vertical-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  transition: all 0.5s ease;
}

.vertical-photo-container:hover .vertical-photo {
  transform: scale(1.03);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

.vertical-photo-container:hover .photo-caption {
  opacity: 1;
}

/* Instagram Embed Styles */
.instagram-embed-container {
  margin-bottom: 2rem;
}

/* Instagram Feed Styles */
.instagram-feed-wrapper {
  width: 100%;
  position: relative;
  min-height: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.instagram-feed-container {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

.instagram-feed-iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Fallback Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  border-top-color: #7C3AED;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Profile Card Styles */
.instagram-profile-card {
  height: 100%;
  min-height: 400px;
  transition: all 0.3s ease;
}

.instagram-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
  }
}

/* Scroll Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effect Styles */
#parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

.parallax-img-container {
  height: 120%; /* Más altura para permitir el movimiento */
  transform: translateZ(0);
  will-change: transform;
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
