/***********************
  BASE ROOT STYLES
************************/

:root {
  /* Core Font Families */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  /* Color Scheme - Split Complementary */
  --color-primary: #1e1e1e;
  --color-accent: #ffd500;
  --color-accent-dark: #cca800;
  --color-complement: #00a6a6;
  --color-base-light: #f9f9f9;
  --color-base-dark: #111111;
  --color-muted: #888888;

  --text-light: #ffffff;
  --text-dark: #222222;

  --bg-gradient-dark: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65));

  /* Border Radius */
  --radius-md: 6px;
  --radius-lg: 12px;

  /* General Transition */
  --transition: all 0.3s ease;
}

/***********************
  GLOBAL RESETS
************************/

body {
  margin: 0;
  font-family: var(--font-secondary);
  background-color: var(--color-base-light);
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

p {
  margin-bottom: var(--space-sm);
}

/***********************
  TYPOGRAPHY UTILS
************************/

.text-white {
  color: var(--text-light) !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-muted) !important;
}

/***********************
  LAYOUT
************************/

section {
  padding: var(--space-lg) var(--space-md);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

/***********************
  HEADER / NAVIGATION
************************/

header {
  background-color: var(--color-base-light);
  border-bottom: 2px solid var(--color-base-dark);
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

#mobileMenu a {
  font-weight: 500;
  border-bottom: 1px solid var(--color-muted);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

/***********************
  HERO SECTION
************************/

#hero {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--text-light);
}

#hero h1, #hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

#hero .btn {
  background-color: var(--color-accent);
  color: var(--color-base-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

#hero .btn:hover {
  background-color: var(--color-accent-dark);
  color: #000;
}

/***********************
  BUTTONS (GLOBAL)
************************/

.btn,
button,
input[type='submit'] {
  font-family: var(--font-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-dark {
  border: 2px solid var(--color-base-dark);
  color: var(--color-base-dark);
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: var(--color-base-dark);
  color: var(--text-light);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-base-dark);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
}

/***********************
  CARD COMMON STYLES
************************/

.card, .item, .testimonial, .team-member, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--color-base-light);
  border: 2px solid var(--color-complement);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

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

.card-image, .image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.card-content {
  padding: var(--space-md);
}

/***********************
  LINKS & "Leer más"
************************/

a {
  transition: var(--transition);
  text-decoration: none;
  color: var(--color-primary);
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

a.btn-sm {
  font-size: 0.875rem;
}

a.read-more {
  display: inline-block;
  color: var(--color-complement);
  font-weight: 600;
  position: relative;
}

a.read-more:hover::after {
  content: ' →';
}

/***********************
  SECTION BACKGROUNDS
************************/

.bg-light {
  background-color: var(--color-base-light) !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-dark-gradient {
  background: var(--bg-gradient-dark);
}

.bg-glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/***********************
  PARALLAX & ANIMATION
************************/

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

[data-sr] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/***********************
  FOOTER
************************/

footer {
  background-color: var(--color-base-dark);
  color: var(--text-light);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

footer a {
  color: var(--color-accent);
  text-decoration: none;
  margin: 0 var(--space-xs);
}

footer a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

.footer-sns span {
  margin: 0 var(--space-xs);
  font-weight: 600;
}

/***********************
  CONTACT SECTION
************************/

#contact form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  padding: var(--space-md);
}

#contact input, #contact textarea {
  font-family: var(--font-secondary);
  border: 1px solid #ccc;
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  width: 100%;
  border-radius: var(--radius-md);
}

#contact input:focus, #contact textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,213,0,0.25);
}

/***********************
  SUCCESS PAGE
************************/

body.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-base-light);
  text-align: center;
}

/***********************
  TERMS & PRIVACY
************************/

body.terms-page,
body.privacy-page {
  padding-top: 100px;
  background-color: #fff;
}

/***********************
  RESPONSIVENESS
************************/

@media (max-width: 768px) {
  .btn {
    width: 100%;
    display: block;
  }

  .card-image {
    height: 200px;
  }
}

/***********************
  UTILITIES
************************/

.is-two-thirds {
  width: 66.666%;
}

.is-1-1 {
  width: 100%;
}

.centered {
  text-align: center;
}

/* Social Text Links */
.social-links span {
  display: inline-block;
  margin: 0 var(--space-xs);
  font-weight: bold;
  color: var(--text-light);
  transition: var(--transition);
}

.social-links span:hover {
  color: var(--color-accent);
}

/***********************
  CUSTOM COMPONENTS
************************/

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Utility Animation Class (for ScrollReveal fallback) */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menuToggle{
  max-width: 4rem;
}


#pricing {
  position: relative;
}

.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-base-dark);
  padding: 8px 24px;
  border-radius: 0 0 12px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 213, 0, 0.3);
}

.pricing-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-right: 4px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.plan-subtitle {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.pricing-body {
  padding: 2rem 1.5rem;
  flex-grow: 1;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f4;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.features-list li:last-child {
  border-bottom: none;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-complement);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
}

.pricing-footer {
  padding: 1.5rem;
  margin-top: auto;
}

.pricing-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.basic-btn {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  border: none;
}

.basic-btn:hover {
  background: linear-gradient(135deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.intermediate-btn {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-base-dark);
  border: none;
}

.intermediate-btn:hover {
  background: linear-gradient(135deg, var(--color-accent-dark), #b8941a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 213, 0, 0.4);
}

.professional-btn {
  background: linear-gradient(135deg, var(--color-complement), #008080);
  color: white;
  border: none;
}

.professional-btn:hover {
  background: linear-gradient(135deg, #008080, #006666);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 166, 0.3);
}

/* Plan-specific header styles */
.basic-plan .pricing-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.intermediate-plan .pricing-header {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
}

.professional-plan .pricing-header {
  background: linear-gradient(135deg, #e6f7f7 0%, #ccf2f2 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pricing-card.featured {
    transform: none;
    margin-top: 2rem;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
  
  .price {
    font-size: 2.5rem;
  }
  
  .pricing-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .pricing-body {
    padding: 1.5rem 1rem;
  }
}