/* Trepex Modern Styles - Simplified Version */

/* Root Variables */
:root {
  --primary-color: #049c44;
  --trepex-green: #049c44;
  --trepex-green-light: #05b04f;
  --trepex-green-dark: #037a35;
}

/* General Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  padding-top: 76px;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--trepex-green) !important;
}

/* Trepex Button Styles */
.btn-trepex {
  background: linear-gradient(135deg, var(--trepex-green) 0%, var(--trepex-green-dark) 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-trepex:hover {
  background: linear-gradient(135deg, var(--trepex-green-dark) 0%, var(--trepex-green) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(4, 156, 68, 0.4);
  color: white;
}

/* WhatsApp Button */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075e54 100%);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  text-decoration: none;
}

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

.btn-whatsapp i {
  animation: pulse 2s infinite;
}

/* WhatsApp Button Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .btn-whatsapp.position-fixed, .btn-whatsapp {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .btn-whatsapp.position-fixed, .btn-whatsapp {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero-section {
  margin-top: -76px;
  padding-top: 76px;
}

.hero-slide {
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-slide {
    height: 60vh;
    min-height: 400px;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Cards */
.card {
  border-radius: 15px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(4, 156, 68, 0.15);
}

/* Feature Cards */
.feature-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(4, 156, 68, 0.15);
}

/* Modern Card */
.modern-card {
  border-radius: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.modern-card .card-header {
  border-radius: 20px 20px 0 0;
  border: none;
}

/* Forms */
.form-control, .form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #049c44;
  box-shadow: 0 0 0 0.2rem rgba(4, 156, 68, 0.15);
}

.form-control-lg {
  border: 2px solid #e1e5e9;
  border-radius: 15px;
  padding: 16px 20px;
  font-size: 18px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.form-control-lg:focus {
  border-color: #049c44;
  box-shadow: 0 0 0 0.2rem rgba(4, 156, 68, 0.25);
  background-color: white;
  transform: translateY(-2px);
}

/* Enhanced Form Labels */
.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label i {
  color: #049c44;
}

/* Buttons */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.875rem 2rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button Styles */
.btn-trepex {
  background: linear-gradient(135deg, #049c44, #037a35);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(4, 156, 68, 0.3);
}

.btn-trepex:hover {
  background: linear-gradient(135deg, #037a35, #025d2a);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(4, 156, 68, 0.4);
  color: white;
}

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

/* Footer */
.footer-link {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.footer-link:hover {
  color: #049c44;
  text-decoration: none;
}

.social-link {
  color: #adb5bd;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  line-height: 40px;
  text-align: center;
}

.social-link:hover {
  color: #fff;
  background-color: #049c44;
  transform: translateY(-2px);
}

/* Social Media Links in Hero Section */
.social-hero {
  width: 50px !important;
  height: 50px !important;
  line-height: 50px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white !important;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-hero:hover {
  background: var(--trepex-green) !important;
  border-color: var(--trepex-green);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(4, 156, 68, 0.4);
  color: white !important;
}

/* Animation for social links */
@keyframes socialFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.social-links .d-flex .social-hero:nth-child(1) {
  animation: socialFloat 3s ease-in-out infinite;
  animation-delay: 0s;
}

.social-links .d-flex .social-hero:nth-child(2) {
  animation: socialFloat 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.social-links .d-flex .social-hero:nth-child(3) {
  animation: socialFloat 3s ease-in-out infinite;
  animation-delay: 1s;
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
  .social-links {
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .social-hero {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    font-size: 16px;
  }
}

/* Enhanced Validation Styles */
.is-valid {
  border-color: #28a745 !important;
  background-color: #f8fff9;
}

.is-invalid {
  border-color: #dc3545 !important;
  background-color: #fff8f8;
}

.invalid-feedback {
  font-size: 14px;
  margin-top: 5px;
  color: #dc3545;
}

.valid-feedback {
  font-size: 14px;
  margin-top: 5px;
  color: #28a745;
}

/* Checkbox Styles */
.form-check-input:checked {
  background-color: #049c44;
  border-color: #049c44;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(4, 156, 68, 0.25);
}

.form-check-label {
  font-size: 14px;
  color: #495057;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  h1, .display-4 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .modern-card {
    border-radius: 15px;
    margin: 10px;
  }
  
  .modern-card .card-header {
    padding: 20px;
    text-align: center;
  }
  
  .modern-card .card-header h3 {
    font-size: 1.5rem;
  }
  
  .modern-card .card-body {
    padding: 20px;
  }
  
  .form-control-lg {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .btn-trepex {
    padding: 15px 20px;
    font-size: 16px;
  }
  
  .form-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .modern-card .card-header .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .modern-card .card-header .rounded-circle {
    margin: 0 auto 15px;
  }
  
  .form-label {
    font-size: 12px;
  }
  
  .form-control, .form-select {
    font-size: 14px;
  }
  
  .form-control-lg {
    font-size: 14px;
    padding: 12px 14px;
  }
  
  .btn-trepex {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* Ensure all elements are clickable */
a, button, .btn, .footer-link, .social-link {
  cursor: pointer;
  pointer-events: auto;
}

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
}
