/*
  STYLE.CSS
  Theme: Psicología del Cliente de Taller: Cómo Construir Confianza
  Design System: Corporativo
  Trend: Bloque
  Color Scheme: Tetradic
  Animation: Micro-animations
*/

/* --------------------------------------------------
   1. CSS Variables & Global Styles
   -------------------------------------------------- */
:root {
  /* Tetradic Colors */
  --primary-color: #0D47A1; /* Deep Blue */
  --secondary-color: #2E7D32; /* Rich Green */
  --accent-color-1: #FF8F00; /* Amber Orange */
  --accent-color-2: #D81B60; /* Vibrant Pink/Magenta */
  
  /* Neutrals */
  --text-dark: #212529;
  --text-light: #FFFFFF;
  --text-muted: #adb5bd;
  --bg-light: #F8F9FA;
  --bg-dark: #222831;
  --border-color: #dee2e6;

  /* Typography */
  --font-header: 'Archivo Black', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* UI Elements */
  --header-height: 80px;
  --border-radius: 8px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
  --transition-speed: 0.3s;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--text-light);
  overflow-x: hidden;
}

/* --------------------------------------------------
   2. Typography & Utility Classes
   -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; }

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

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

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.section-block {
  padding: 5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.text-center { text-align: center; }
.text-light { color: var(--text-light) !important; }
.text-light h2, .text-light p, .text-light blockquote { color: var(--text-light); }


.content-column {
  max-width: 800px;
  margin: 0 auto;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* For ScrollReveal.js animations */
.reveal {
  visibility: hidden;
}

/* --------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed) ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-header);
  font-size: 1.6rem;
  color: var(--primary-color);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-links a {
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color-1);
  transition: width var(--transition-speed) ease;
}

.navbar-links a:hover::after, .navbar-links a.active::after {
  width: 100%;
}

.burger { display: none; }

/* --------------------------------------------------
   4. Global Components
   -------------------------------------------------- */
/* Buttons */
.btn, button[type="submit"] {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover, button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color-1);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: #e67e00; /* Darken accent color */
  color: var(--text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-tertiary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}
.btn-tertiary:hover {
    background-color: #1e6221; /* Darken green */
    color: var(--text-light);
}

/* Cards */
.card {
  background-color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

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

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

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

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

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  width: 100%;
}

.card-content h3 {
  color: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  text-align: left;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}

/* --------------------------------------------------
   5. Section Styles
   -------------------------------------------------- */
/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.hero-title {
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Services Section */
.progress-indicator {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  border: none;
  margin-top: 0.5rem;
  appearance: none;
}
.progress-indicator::-webkit-progress-bar {
  background-color: #e9ecef;
  border-radius: 6px;
}
.progress-indicator::-webkit-progress-value {
  background: linear-gradient(90deg, var(--secondary-color) 0%, #4caf50 100%);
  border-radius: 6px;
  transition: width 0.5s ease-in-out;
}
.progress-indicator::-moz-progress-bar {
  background: linear-gradient(90deg, var(--secondary-color) 0%, #4caf50 100%);
  border-radius: 6px;
}
#services label {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Awards & Carousel */
.carousel-container { position: relative; }
.content-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.content-carousel::-webkit-scrollbar { display: none; }
.carousel-item {
  flex: 0 0 90%;
  scroll-snap-align: center;
  padding: 0 0.5rem;
}
.carousel-nav {
  text-align: center;
  margin-top: 2rem;
}
.carousel-nav button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 0.5rem;
  transition: background-color var(--transition-speed) ease;
}
.carousel-nav button:hover {
  background-color: var(--accent-color-1);
}

/* Community Section */
#community .avatar {
  border-radius: 50%;
  border: 4px solid var(--accent-color-1);
  margin: 1.5rem auto;
  width: 100px;
  height: 100px;
}
#community blockquote {
  font-style: italic;
  font-size: 1.1rem;
  border-left: 4px solid var(--accent-color-1);
  padding-left: 1.5rem;
  margin: 0 auto;
  max-width: 600px;
}

/* External Resources */
.resource-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}
.resource-list li {
  background-color: #fff;
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.resource-list li:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow);
}
.resource-list a {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Careers Section */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto 0;
}
.job-opening {
  background: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.job-opening h4 {
  margin: 0;
  color: var(--primary-color);
}
.job-opening p {
  margin: 0;
  flex-grow: 1;
}

/* FAQ */
.faq-accordion details {
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  transition: box-shadow var(--transition-speed) ease;
}
.faq-accordion details[open] {
  box-shadow: var(--box-shadow);
}
.faq-accordion summary {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color var(--transition-speed) ease;
}
.faq-accordion summary:hover {
  background-color: var(--bg-light);
}
.faq-accordion summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: 400;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}
.faq-accordion details[open] summary::after {
  transform: rotate(45deg);
}
.faq-accordion details p {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0 0;
  padding-top: 1.5rem;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.contact-info li {
  margin-bottom: 1rem;
}

/* --------------------------------------------------
   6. Footer
   -------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer-col p { font-size: 0.9rem; }
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-col ul a:hover {
  color: var(--text-light);
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #495057;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   7. Standalone Page Styles
   -------------------------------------------------- */
.fullscreen-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--bg-light);
}
.success-card {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}
.content-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
}
.content-page .container h1 {
  margin-bottom: 2rem;
}

/* --------------------------------------------------
   8. Media Queries & Responsiveness
   -------------------------------------------------- */
@media (min-width: 769px) {
  .carousel-item { flex-basis: 50%; }
  .contact-wrapper {
    grid-template-columns: 1fr 1.5fr;
    padding: 3rem;
  }
}
@media (min-width: 1024px) {
  .carousel-item { flex-basis: 33.333%; padding: 0 1rem; }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
  }
  .navbar-menu.is-active {
    left: 0;
  }
  .navbar-links {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .navbar-links a {
    font-size: 1.5rem;
    color: var(--text-dark);
  }
  .burger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
    width: 30px;
    height: 22px;
    z-index: 1010;
  }
  .burger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
  }
  .burger span:nth-child(1) { top: 0px; }
  .burger span:nth-child(2) { top: 9px; }
  .burger span:nth-child(3) { top: 18px; }
  .burger.is-active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
  }
  .burger.is-active span:nth-child(2) {
    opacity: 0;
    left: -30px;
  }
  .burger.is-active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
  }
  .job-opening {
    flex-direction: column;
    align-items: flex-start;
  }
  .job-opening .btn {
    width: 100%;
  }
}