/*--------------------------------------------------------------
# style.css
# Theme: Consultoría
# Design System: Brutalism with Volumetric UI elements
# Color Scheme: Bright
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. CSS Variables
--------------------------------------------------------------*/
:root {
  /* Bright Color Palette */
  --primary-color: #4f46e5;      /* Vibrant Indigo */
  --primary-darker: #4338ca;    /* Darker Indigo for hover */
  --secondary-color: #ec4899;    /* Electric Pink */
  --accent-color: #f59e0b;       /* Bright Amber */
  --background-light: #f8fafc;   /* Almost White */
  --background-dark: #111827;    /* Very Dark Gray */
  --text-dark: #1f2937;          /* Dark Gray for text on light bg */
  --text-light: #f9fafb;         /* Off-white for text on dark bg */
  --border-color: #374151;       /* Gray for borders */

  /* Typography */
  --font-primary: 'DM Sans', sans-serif;
  --font-secondary: 'Space Grotesk', monospace;

  /* UI Elements */
  --border-radius-sharp: 0px;
  --brutalist-shadow: 5px 5px 0px var(--text-dark);
  --brutalist-shadow-light: 5px 5px 0px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# 2. Global Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.7;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

a:hover {
  color: var(--primary-darker);
  text-decoration: underline;
}

/*--------------------------------------------------------------
# 3. Buttons (Global Style)
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-secondary);
  font-weight: 500;
  padding: 12px 30px;
  border-radius: var(--border-radius-sharp);
  border: 2px solid var(--text-dark);
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

/* Volumetric / 3D Button Style */
.btn-3d {
  box-shadow: 4px 4px 0px var(--text-dark);
}

.btn-3d:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--text-dark);
}

.btn-3d:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

/*--------------------------------------------------------------
# 4. Header & Navigation
--------------------------------------------------------------*/
.header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--text-dark);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark) !important;
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 10px;
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.navbar-toggler {
    border: 2px solid var(--text-dark);
    border-radius: var(--border-radius-sharp);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 41, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# 5. Hero Section & Particles
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  overflow: hidden;
}

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

.hero-section p {
    color: var(--text-light); /* Enforced white text */
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.2rem;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# 6. General Section Styling
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

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

/*--------------------------------------------------------------
# 7. Component Styles
--------------------------------------------------------------*/

/* --- Cards --- */
.card {
  border: 2px solid var(--text-dark);
  border-radius: var(--border-radius-sharp);
  box-shadow: var(--brutalist-shadow-light);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center; /* Center content */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px var(--text-dark);
}

.card .card-image {
  padding: 1rem;
  display: flex; /* Center image */
  justify-content: center;
  align-items: center;
}
.card .card-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto; /* Center image */
}

.card-content {
    padding: 1.5rem;
}

/* --- Pricing Cards --- */
.pricing-card {
    background: #fff;
    border: 2px solid var(--border-color);
}
.pricing-card .card-header {
    background: var(--background-light);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem;
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin: 0;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}
.pricing-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.pricing-card.featured-plan {
    border: 2px solid var(--primary-color);
    box-shadow: 8px 8px 0px var(--primary-color);
    transform: scale(1.05);
}

/* --- Innovation Cards --- */
.innovation-card .card-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* --- Accordion --- */
.accordion-item {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sharp) !important;
  margin-bottom: 1rem;
}
.accordion-button {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  background-color: #fff;
  color: var(--text-dark);
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--text-light);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--primary-color);
}
.accordion-body {
    background-color: var(--background-light);
}


/* --- Forms --- */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sharp);
    padding: 12px 15px;
    box-shadow: none;
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.brutalist-form-card {
    box-shadow: var(--brutalist-shadow);
}
.form-label {
    font-family: var(--font-secondary);
    font-weight: 600;
}

/*--------------------------------------------------------------
# 8. Section-Specific Styles
--------------------------------------------------------------*/
/* --- Mission Section --- */
.image-container.brutalist-shadow {
    position: relative;
}
.image-container.brutalist-shadow::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: all 0.3s ease;
}
.image-container.brutalist-shadow:hover::after {
    top: 10px;
    left: 10px;
}

/* --- Media/Press Section --- */
.press-logo {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

#media .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}
#media .play-button-overlay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
}


/* --- Resources Section --- */
.list-group-item {
    border: 2px solid #ddd;
    border-radius: var(--border-radius-sharp);
    margin-bottom: 1rem;
}

.list-group-item-action:hover, .list-group-item-action:focus {
    z-index: 1;
    color: var(--text-dark);
    text-decoration: none;
    background-color: var(--background-light);
    border-color: var(--primary-color);
}

/*--------------------------------------------------------------
# 9. Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer h5 {
  font-family: var(--font-secondary);
  color: var(--text-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer .footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.footer .footer-link:hover {
  color: #fff;
  text-decoration: none;
  transform: translateX(5px);
}

/*--------------------------------------------------------------
# 10. Specific Page Styles
--------------------------------------------------------------*/
/* --- Success Page --- */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--background-light);
}

.success-container {
  max-width: 600px;
  padding: 40px;
  background: #fff;
  border: 2px solid var(--text-dark);
  box-shadow: var(--brutalist-shadow);
}

.success-container h1 {
  color: var(--primary-color);
}

/* --- Privacy & Terms Pages --- */
.legal-page-content {
    padding-top: 120px; /* Offset for fixed header */
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.legal-page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/*--------------------------------------------------------------
# 11. Media Queries
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-collapse {
    border-top: 2px solid var(--text-dark);
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2rem;
  }
  section {
    padding: 60px 0;
  }
}