/* ==========================================
   QS Consulting Group - Página en Construcción
   Paleta Corporativa ESENBLOOM
   ========================================== */

/* === Variables CSS === */
:root {
  /* Colores Corporativos */
  --primary-color: #004241;      /* Verde corporativo (Pantone 3308 C) */
  --secondary-color: #cc9f75;    /* Dorado/Beige claro (Pantone 728 C) */
  --tertiary-color: #ddd0bb;     /* Beige/Arena (Pantone 7527 C) */
  --text-color: #0c0d0d;         /* Negro (Pantone Black 6 C) */
  --bg-light: #ffffff;           /* Blanco (Pantone 663 C) */
  
  /* Tipografía */
  --title-font: "Gotham-Bold", "Gotham", Arial, sans-serif;
  --text-font: "Gotham-Book", "Gotham", Arial, sans-serif;
  --text-font2: "Gotham-Medium", "Gotham", Arial, sans-serif;
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Otros */
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 66, 65, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 66, 65, 0.15);
}

/* === Reset y Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* === Container === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* === Header === */
.header {
  background-color: var(--bg-light);
  padding: var(--spacing-md) 0;
  border-bottom: 2px solid var(--tertiary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 80px;
  height: 80px;
  transition: var(--transition);
}

.logo-icon:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--title-font);
  font-size: 1.5rem;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 66, 65, 0.02) 0%, rgba(221, 208, 187, 0.05) 100%);
}

/* === Elementos Gráficos Decorativos === */
.graphic-decoration {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  transition: opacity 0.3s ease;
}

.graphic-decoration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.graphic-top-right {
  top: 0;
  right: 0;
  width: min(600px, 40vw);
  height: auto;
  max-height: 80vh;
}

.graphic-bottom-left {
  bottom: 0;
  left: 0;
  width: min(400px, 35vw);
  height: auto;
  max-height: 60vh;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}


/* === Hero Content === */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--title-font);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  font-family: var(--text-font2);
  font-size: 1.25rem;
  color: var(--secondary-color);
}

.icon-check {
  flex-shrink: 0;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-description p {
  margin-bottom: var(--spacing-sm);
}

.hero-description strong {
  color: var(--primary-color);
  font-family: var(--text-font2);
}

.hero-tagline {
  font-family: var(--text-font2);
  color: var(--secondary-color);
  font-size: 1.25rem;
  margin-top: var(--spacing-md);
}

/* === Services Preview === */
.services-preview {
  background-color: rgba(221, 208, 187, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  border: 2px solid var(--tertiary-color);
}

.services-title {
  font-family: var(--title-font);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.services-list {
  list-style: none;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
  font-size: 1rem;
  color: var(--text-color);
}

.services-list .icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Contact Section === */
.contact-section {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  background-color: rgba(0, 66, 65, 0.03);
  border-radius: var(--border-radius);
}

.contact-intro {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.contact-text {
  font-family: var(--text-font2);
  font-size: 1.125rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--bg-light);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-family: var(--text-font2);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.contact-button-text-short {
  display: none;
}

.contact-button:hover {
  background-color: #00332f;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 66, 65, 0.2);
}

.contact-button:active {
  transform: translateY(0);
}

.icon-email {
  flex-shrink: 0;
}

/* === Values Section === */
.values-section {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

.values-title {
  font-family: var(--title-font);
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.value-item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  border: 2px solid var(--tertiary-color);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
  display: flex;
  justify-content: center;
}

.value-icon svg {
  width: 48px;
  height: 48px;
}

.value-item h4 {
  font-family: var(--text-font2);
  font-size: 1.125rem;
  color: var(--primary-color);
}

/* === Footer === */
.footer {
  background-color: var(--primary-color);
  color: var(--bg-light);
  padding: var(--spacing-md) 0;
  margin-top: var(--spacing-xl);
}

.footer-content {
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
}

.footer-tagline {
  font-family: var(--text-font2);
  font-size: 1rem;
  color: var(--secondary-color);
}

/* === Responsive === */
@media (max-width: 768px) {
  /* Elementos gráficos - reducir tamaño y opacidad */
  .graphic-top-right {
    width: min(400px, 45vw);
    opacity: 0.08;
  }
  
  .graphic-bottom-left {
    width: min(300px, 40vw);
    opacity: 0.08;
  }
  
  .logo-title {
    font-size: 1.125rem;
  }
  
  .logo-icon {
    width: 50px;
    height: 50px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .services-list li {
    font-size: 0.9rem;
  }
  
  .contact-button {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .value-item {
    padding: var(--spacing-sm);
  }
  
  .value-icon {
    font-size: 2rem;
  }
}

/* === Mobile (480px y menores) === */
@media (max-width: 480px) {
  /* Elementos gráficos - ocultar o reducir mucho en móvil */
  .graphic-top-right {
    width: min(250px, 50vw);
    opacity: 0.05;
  }
  
  .graphic-bottom-left {
    width: min(200px, 45vw);
    opacity: 0.05;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: var(--spacing-md) 0;
  }
  
  .contact-section {
    padding: var(--spacing-md);
  }
  
  .contact-button {
    width: 100%;
    font-size: 0.85rem;
    padding: 1rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    word-break: break-word;
  }
  
  /* Ocultar texto largo y mostrar versión corta en mobile */
  .contact-button-text-full {
    display: none;
  }
  
  .contact-button-text-short {
    display: inline;
    word-break: break-all;
  }
  
  .icon-email {
    margin-bottom: 0.25rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Animaciones === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease-out backwards;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-description {
  animation-delay: 0.3s;
}

.services-preview {
  animation-delay: 0.4s;
}

.contact-section {
  animation-delay: 0.5s;
}

.values-section {
  animation-delay: 0.6s;
}
