/*
  ========================================
  STYLE.CSS | Consultoría Nexus
  ========================================
*/

/* -------------------------------------- */
/* --- CSS Variables & Root Styles --- */
/* -------------------------------------- */
:root {
  /* Colors & Gradients */
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #00f2fe;
  --text-color-dark: #222222;
  --text-color-light: #ffffff;
  --text-color-muted: #adb5bd;

  /* Backgrounds */
  --bg-color-light: #f8f9fa;
  --bg-color-dark: #12121c;
  --body-bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --light-gradient: linear-gradient(to right, #e0eafc, #cfdef3);
  --dark-gradient: linear-gradient(135deg, #232526, #414345);
  --button-gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-darker: rgba(0, 0, 0, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-blur: 10px;

  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* Spacing & Sizing */
  --header-height: 80px;
  --border-radius-smooth: 15px;
  --border-radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(50, 50, 93, 0.1), 0 5px 8px rgba(0, 0, 0, 0.07);
}

/* -------------------------------------- */
/* --- Global & Base Styles --- */
/* -------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--body-bg-gradient);
  color: var(--text-color-dark);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--header-height); /* Offset for fixed header */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-color-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
}

section {
  padding: 60px 0;
  position: relative;
}

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

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------------------- */
/* --- Header / Navbar --- */
/* -------------------------------------- */
.navbar {
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: var(--glass-border);
  transition: background 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-color-dark) !important;
}

.navbar .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-color-dark) !important;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--button-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* -------------------------------------- */
/* --- Global UI Components --- */
/* -------------------------------------- */

/* Buttons */
.btn, button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  color: var(--text-color-light);
  background: var(--button-gradient);
  background-size: 200% 100%;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover, button:hover, input[type='submit']:hover {
  background-position: 100% 0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 20px rgba(50, 50, 93, 0.15), 0 8px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light);
}

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

.btn-outline-primary:hover {
    background: var(--button-gradient);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

/* Cards & Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--border-radius-smooth);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card {
  border: none;
  border-radius: var(--border-radius-smooth);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.card-content .card-title {
    margin-bottom: 1rem;
}


/* Biomorphic Shapes */
@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.biomorphic-shape, .biomorphic-shape-alt {
  padding: 1rem;
  background: var(--button-gradient);
  animation: morph 8s ease-in-out infinite;
  transition: all 0.5s ease-in-out;
}

.biomorphic-shape-alt {
    animation-direction: reverse;
}

.biomorphic-shape img, .biomorphic-shape-alt img {
    animation: morph 8s ease-in-out infinite;
}

/* -------------------------------------- */
/* --- Section-Specific Styles --- */
/* -------------------------------------- */

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-color-light);
  text-align: center;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--text-color-light);
}

.hero-section .lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 1.5rem auto;
  color: var(--text-color-light);
}

/* Statistics Section */
.stat-widget {
  text-align: center;
}

.stat-widget .stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--button-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-widget .stat-label {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* History (Timeline) Section */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--button-gradient);
  transform: translateX(-50%);
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12.5px;
  top: 25px;
  background-color: white;
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -12.5px;
}

.timeline-content {
  padding: 20px 30px;
  position: relative;
}

/* Team Section */
.team-card {
    text-align: center;
}
.team-card .card-image {
    width: 150px;
    height: 150px;
    border-radius: var(--border-radius-round);
    margin: 0 auto;
    margin-top: -50px;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}
.team-card .card-content {
    padding-top: 1.5rem;
}

/* Awards Section */
.award-item img.award-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* Portfolio Section */
/* Note: Slider functionality styles will depend on the JS library used.
   This is a basic placeholder. */
.portfolio-slider {
    /* Styles for slider container */
}

/* Press Section */
.press-quote {
    border-left: 5px solid;
    border-image-slice: 1;
    border-image-source: var(--button-gradient);
    font-style: italic;
}
.press-quote footer {
    font-style: normal;
    font-weight: 600;
    margin-top: 1rem;
    text-align: right;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--glass-bg-darker);
  backdrop-filter: blur(var(--glass-blur));
  padding: 2.5rem;
  border-radius: var(--border-radius-smooth);
}

.form-label {
    color: var(--text-color-dark);
    font-weight: 500;
}

.form-control {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: white;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(37, 117, 252, 0.25);
}

/* -------------------------------------- */
/* --- Footer --- */
/* -------------------------------------- */
.footer {
  background: var(--dark-gradient);
  color: var(--text-color-muted);
}

.footer .footer-title {
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.footer .footer-link {
  color: var(--text-color-muted);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer .footer-link:hover {
  color: var(--text-color-light);
  padding-left: 5px;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------- */
/* --- Other Pages --- */
/* -------------------------------------- */

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  background: var(--body-bg-gradient);
}
.success-page .glass-card {
  max-width: 600px;
}
.success-page .icon {
  font-size: 4rem;
  color: #28a745;
}

/* Privacy & Terms Pages */
.legal-page, .about-page, .contacts-page {
  padding-top: 60px;
  padding-bottom: 60px;
}
.legal-page h1, .about-page h1, .contacts-page h1 {
  margin-bottom: 2rem;
}
.legal-page h2, .about-page h2, .contacts-page h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}


/* -------------------------------------- */
/* --- Responsive Adjustments --- */
/* -------------------------------------- */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-smooth);
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 12.5px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-item.right {
    left: 0%;
  }

  .timeline-item::after {
    left: 0;
  }
}