/* ===========================================================
   style.css  |  Impulsa – Formación & Consultoría de Negocios
   Minimalist Design System  •  “Volumetric UI” accents
   =========================================================== */

/* ---------- Root Tokens & Theme Variables ---------- */
:root {
  /* Primary & Accent */
  --clr-primary: #0066ff;
  --clr-primary-dark: #0044cc;
  --clr-accent: #ff6b00;
  --clr-accent-dark: #cc5500;

  /* Neutrals */
  --clr-bg: #f9fafc;
  --clr-surface: #ffffff;
  --clr-text: #333333;
  --clr-heading: #222222;

  /* UI */
  --radius: 0.75rem;
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Timing */
  --transition: all 0.3s ease;
}

/* ---------- Global Reset & Typography ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: var(--clr-heading);
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

/* ---------- Navigation ---------- */
.navbar {
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-link {
  font-weight: 600;
  color: var(--clr-text);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus,
.navbar .active {
  color: var(--clr-primary);
}

/* ---------- Utility Classes ---------- */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

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

.read-more {
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}
.read-more::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--clr-primary);
  left: 0;
  bottom: -3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.read-more:hover::after {
  transform: scaleX(1);
}

/* ---------- Buttons & Inputs ---------- */
.btn,
button,
input[type="submit"] {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.btn-primary {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline-primary {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
input,
textarea {
  border-radius: var(--radius);
}

/* ---------- Section: Hero ---------- */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
#hero h1 {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
#hero .btn {
  font-size: 1.125rem;
}

/* ---------- Cards & Image Containers ---------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-image,
.image-container {
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-image img,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}
.card-content {
  padding: 1.5rem;
}

/* ---------- Progress Bars ---------- */
.progress {
  background-color: #e5eaf1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.progress-bar {
  font-weight: 600;
}

/* ---------- Carousel ---------- */
.carousel-inner img {
  border-radius: var(--radius);
}

/* ---------- Behind the Scenes ---------- */
#bts {
  color: #fff;
}
#bts p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ---------- Contact Form ---------- */
#contacto form {
  border-radius: var(--radius);
}
#contacto .form-label {
  font-weight: 600;
}
#contacto .form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 0.25rem rgba(0,102,255,0.2);
}

/* ---------- Careers ---------- */
#carreras .card {
  border: 1px solid #e5eaf1;
}
#carreras .btn-outline-primary {
  width: 100%;
}

/* ---------- Footer ---------- */
footer {
  background: #111;
  color: #fff;
}
footer a {
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}
footer a:hover,
footer a:focus {
  color: var(--clr-accent);
}
.footer-social a {
  font-weight: 700;
  position: relative;
  padding-left: 1.4rem;
  display: inline-block;
}
.footer-social a::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--clr-accent);
}

/* ---------- Cookie Popup (already inline styles) ---------- */
#cookiePopup {
  animation: slideUp 0.6s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ---------- Success Page ---------- */
.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* ---------- Legal Pages (Privacy / Terms) ---------- */
.legal-page {
  padding-top: 100px;
}

/* ---------- Animations: “Hand-Drawn” Accents ---------- */
@keyframes doodle {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}
.doodle-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: doodle 3s ease forwards;
}

/* ---------- Parallax Helper ---------- */
[data-prompt],
.parallax {
  background-size: cover;
  background-repeat: no-repeat;
}

/* ---------- Media Queries ---------- */
@media (max-width: 991.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  .nav-link {
    padding: 0.5rem 1rem;
  }
  .card-image,
  .image-container {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .card-image,
  .image-container {
    height: 180px;
  }
  h1 {
    font-size: 2rem;
  }
  #hero .btn {
    font-size: 1rem;
  }
}
.navbar-toggler{
  display: none;
}