/* RESET AND VARIABLES */
:root {
  /* Triadic color scheme */
  --primary-color: #3D5AFE;
  --secondary-color: #FE3D5A;
  --tertiary-color: #5AFE3D;
  
  /* Darker variations */
  --primary-dark: #2A3EB1;
  --secondary-dark: #B12A3E;
  --tertiary-dark: #3EB12A;
  
  /* Lighter variations */
  --primary-light: #7B90FF;
  --secondary-light: #FF7B90;
  --tertiary-light: #90FF7B;
  
  /* Neutral colors */
  --dark: #1E1E2F;
  --light: #F7F7FA;
  --gray: #AAAABC;
  --gray-light: #E6E6EF;
  --gray-dark: #4D4D66;
  
  /* Neomorphic shadows */
  --nm-shadow-light: 0.5rem 0.5rem 1rem rgba(210, 215, 249, 0.5), -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  --nm-shadow-dark: 0.5rem 0.5rem 1rem rgba(23, 25, 35, 0.5), -0.5rem -0.5rem 1rem rgba(38, 40, 55, 0.2);
  --nm-inset-light: inset 0.2rem 0.2rem 0.5rem rgba(210, 215, 249, 0.5), inset -0.2rem -0.2rem 0.5rem rgba(255, 255, 255, 0.8);
  --nm-inset-dark: inset 0.2rem 0.2rem 0.5rem rgba(23, 25, 35, 0.5), inset -0.2rem -0.2rem 0.5rem rgba(38, 40, 55, 0.2);
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Animation timing */
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.15s;
}

/* BASE STYLES */
html, body {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1.2rem;
}

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

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

a.read-more {
  display: inline-block;
  position: relative;
  color: var(--secondary-color);
  font-weight: 600;
  padding-bottom: 2px;
}

a.read-more:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width var(--transition-medium) ease;
}

a.read-more:hover:after {
  width: 100%;
}

.section {
  padding: 5rem 1.5rem;
}

.has-text-white {
  color: white !important;
}

.mb-5 {
  margin-bottom: 2.5rem !important;
}

.mb-6 {
  margin-bottom: 3rem !important;
}

/* NEOMORPHIC STYLES */
.card, .box {
  border-radius: 16px;
  background: var(--light);
  box-shadow: var(--nm-shadow-light);
  transition: all var(--transition-medium);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover, .box:hover {
  transform: translateY(-5px);
  box-shadow: 0.7rem 0.7rem 1.5rem rgba(210, 215, 249, 0.7), -0.7rem -0.7rem 1.5rem rgba(255, 255, 255, 1);
}

.card-image {
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
}

.navbar-item {
  color: var(--dark);
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-item:hover {
  color: var(--primary-color);
}

.navbar-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-medium) ease;
}

.navbar-item:hover::after {
  width: 100%;
}

.navbar-menu {
  margin-left: auto;
}

/* HERO SECTION */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(61, 90, 254, 0.5), rgba(254, 61, 90, 0.5));
  z-index: 1;
}

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

.hero-body .title,
.hero-body .subtitle,
.hero-body p {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-body .buttons {
  margin-top: 2rem;
}

/* BUTTONS */
.button {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-medium);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  transition: all var(--transition-medium);
  z-index: -1;
}

.button:hover::before {
  left: 100%;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: white;
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(61, 90, 254, 0.3);
}

.button.is-light {
  background-color: white;
  color: var(--primary-color);
}

.button.is-light:hover {
  background-color: var(--gray-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button.is-rounded {
  border-radius: 9999px;
}

.button.is-large {
  font-size: 1.25rem;
  height: 3.5rem;
}

/* SERVICES SECTION */
#servicios .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#servicios .card-image {
  flex: 0 0 auto;
}

#servicios .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#servicios .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* METHODOLOGY SECTION */
#metodologia .card {
  position: relative;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7f7fa, #e6e6ef);
  box-shadow: var(--nm-shadow-light);
  transition: all var(--transition-medium);
}

#metodologia .card:hover {
  transform: translateY(-5px);
}

#metodologia .media-left {
  margin-right: 1.5rem;
}

#metodologia .media-left img {
  border-radius: 50%;
  box-shadow: var(--nm-shadow-light);
}

#metodologia .title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* OUR PROCESS SECTION */
#proceso .timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

#proceso .timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--gray-light);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

#proceso .timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
  margin-bottom: 3rem;
}

#proceso .timeline-item:nth-child(even) {
  left: 50%;
}

#proceso .timeline-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 15px;
  right: -20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--nm-shadow-light);
  transition: all var(--transition-medium);
}

#proceso .timeline-item:nth-child(even) .timeline-marker {
  left: -20px;
}

#proceso .timeline-content {
  padding: 20px;
  background: var(--light);
  position: relative;
  border-radius: 16px;
  box-shadow: var(--nm-shadow-light);
  transition: all var(--transition-medium);
}

#proceso .timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0.7rem 0.7rem 1.5rem rgba(210, 215, 249, 0.7), -0.7rem -0.7rem 1.5rem rgba(255, 255, 255, 1);
}

#proceso .timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* GALLERY SECTION */
#galeria .card {
  height: 100%;
  transition: all var(--transition-medium);
}

#galeria .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#galeria .card-image {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

#galeria .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: auto;
  object-fit: cover;
}

#galeria .card:hover .card-image img {
  transform: scale(1.1);
}

#galeria .card-content .title {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

/* PRICING SECTION */
#precios .card {
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: all var(--transition-medium);
}

#precios .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#precios .card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

#precios .card ul {
  margin-bottom: 2rem;
  text-align: left;
}

#precios .card ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

#precios .card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* CONTACT SECTION */
#contacto .card {
  height: 100%;
}

#contacto .field {
  margin-bottom: 1.5rem;
}

#contacto .label {
  font-weight: 600;
  color: var(--dark);
}

#contacto .input,
#contacto .textarea,
#contacto .select select {
  border-radius: 8px;
  background: var(--light);
  border: 2px solid var(--gray-light);
  box-shadow: var(--nm-inset-light);
  transition: all var(--transition-medium);
}

#contacto .input:focus,
#contacto .textarea:focus,
#contacto .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(61, 90, 254, 0.2);
}

#contacto .card-image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* FOOTER */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 5rem 1.5rem;
}

.footer h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--gray-light);
}

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

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--gray-light);
  transition: color var(--transition-medium);
}

.footer a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

.footer .social-links a {
  display: inline-block;
  margin-bottom: 0.75rem;
  transition: all var(--transition-medium);
  color: var(--gray-light);
  text-decoration: none;
  position: relative;
  padding-left: 1.5rem;
}

.footer .social-links a:before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
}

.footer .social-links a[href*="facebook"]:before {
  content: '\f39e';
  color: #1877f2;
}

.footer .social-links a[href*="twitter"]:before {
  content: '\f099';
  color: #1da1f2;
}

.footer .social-links a[href*="instagram"]:before {
  content: '\f16d';
  color: #e4405f;
}

.footer .social-links a[href*="linkedin"]:before {
  content: '\f0e1';
  color: #0077b5;
}

.footer .social-links a:hover {
  color: white;
  transform: translateX(5px);
}

/* AOS ANIMATIONS */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 600px;
  padding: 3rem;
  background: var(--light);
  border-radius: 16px;
  box-shadow: var(--nm-shadow-light);
}

.success-container h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.success-container p {
  margin-bottom: 2rem;
}

/* PRIVACY & TERMS PAGES */
.privacy-page, .terms-page {
  padding-top: 100px;
}

.privacy-content, .terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.privacy-content h1, .terms-content h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.privacy-content h2, .terms-content h2 {
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .navbar-menu {
    display: none;
  }
  
  .navbar-menu.is-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  #proceso .timeline::after {
    left: 31px;
  }
  
  #proceso .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  #proceso .timeline-item:nth-child(even) {
    left: 0;
  }
  
  #proceso .timeline-marker {
    left: 10px;
    margin-top: 10px;
  }
  
  #proceso .timeline-item:nth-child(even) .timeline-marker {
    left: 10px;
  }
}

@media (max-width: 767px) {
  .hero .title {
    font-size: 2rem !important;
  }
  
  .hero .subtitle {
    font-size: 1.5rem !important;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .card, .box {
    margin-bottom: 2rem;
  }
}

/* UTILITIES */
.has-text-centered {
  text-align: center !important;
}

.mt-5 {
  margin-top: 2.5rem !important;
}

.mt-6 {
  margin-top: 3rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}