/* Variables de color */
:root {
  --color-orange: #ff7726; 
  --color-dark: #333;
  --color-light: #f9f9f9;
  --color-white: #ffffff;
  
  /* Tipografías definitivas */
  --font-heading: 'Cormorant Garamond', serif; 
  --font-body: 'Open Sans', sans-serif; 
  
  --header-height: 90px; 
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-dark);
  /* Fondo Blanco para toda la página */
  background-color: var(--color-white); 
  padding-top: var(--header-height); 
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
}

a {
  text-decoration: none;
  color: var(--color-orange);
}

/* --- Header y Navegación (Sticky) --- */
.main-header {
  background-color: var(--color-white);
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  z-index: 1000; 
  width: 100%;
  
  position: fixed; 
  top: 0;
  left: 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li a {
  padding: 10px 15px;
  color: var(--color-dark);
  font-weight: 600;
  transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--color-orange);
  border-bottom: 2px solid var(--color-orange);
}

.logo-nq-image {
  height: 40px; 
  width: auto;
  object-fit: contain;
}

.orange-q {
  color: var(--color-orange);
}

/* --- Secciones Generales --- */
.section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.title-divider {
  width: 100%;
  max-width: 800px;
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 auto 40px;
}

/* --- 1. Sección de INICIO (Hero) --- */
.hero-section {
  position: relative;
  height: calc(70vh - var(--header-height)); 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Fondo Hero Blanco */
  background-image: none;
  background-color: var(--color-white); 
  
  background-size: cover;
  background-position: center;
  filter: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-dark); 
  text-shadow: none; 
}

.main-logo-text {
  font-family: var(--font-heading); 
  font-size: 6em;
  font-weight: 700;
  line-height: 1;
}

.hero-content h2 {
  font-size: 1.5em;
  color: var(--color-dark); 
  letter-spacing: 5px;
  margin-bottom: 20px;
  font-family: var(--font-body); /* Usar Open Sans para el subtítulo */
}

.hero-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.btn-contact {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
  display: inline-block;
}

.btn-contact:hover {
  background-color: #e56d2b;
}

/* --- 2. Sección de NOSOTROS --- */
.nosotros-section h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
}

.nosotros-section p {
  max-width: 800px;
  margin: 0 auto 5px;
}

/* ESTILOS PARA LA NUEVA IMAGEN CENTRAL */
.imagen-central {
    max-width: 45%; 
    height: auto; 
    display: block; 
    margin: 10px auto 20px;
}
/* FIN ESTILOS IMAGEN CENTRAL */


/* --- 3. Sección de SERVICIOS --- */
.servicios-section {
  background-color: var(--color-white);
}

.category-title {
  font-size: 1.5em;
  color: var(--color-orange);
  margin: 30px 0 15px;
}

.service-category > p {
  margin-bottom: 40px;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Layout General para listas de Servicio */
.ecommerce-consulting {
  text-align: center;
}

.service-content-grid {
  display: block; 
  padding-top: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.service-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid #ccc;
  padding: 15px 20px;
  width: 100%;
  max-width: 700px;
}

.service-item:last-child {
  border-bottom: 1px solid #ccc;
}

.service-number {
  font-size: 2em;
  font-weight: 700;
  color: var(--color-orange);
  margin-right: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.service-item p {
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.objective-text {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin: 10px 0 0;
  text-align: center; 
}

.category-separator {
  border: none;
  border-top: 1px solid var(--color-orange);
  width: 50%;
  margin: 60px auto;
}

/* Quality Consulting Layout */
.quality-consulting {
  text-align: center;
}

.management-list .service-item:last-child {
  /* Quitamos el borde inferior para separarlo del objetivo */
  border-bottom: none; 
  padding-bottom: 5px;
}

.management-objective {
  text-align: center;
  font-size: 1.1em;
  font-weight: 600;
  /* Mayor separación superior para el objetivo de calidad */
  margin-top: 30px; 
}

/* --- 4. Sección de CONTACTO --- */
.contacto-section {
  padding-bottom: 100px;
}

.contact-info {
  max-width: 400px;
  margin: 50px auto 0;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.social-icon {
  width: 30px; 
  height: 30px;
  object-fit: contain;
  margin-right: 15px; 
}

.contact-item p {
  font-size: 1.1em;
  margin: 0;
  flex-grow: 1;
}

/* --- Footer --- */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

/* --- FORMULARIO CONTACTO NETLIFY --- */
.contact-form {
  max-width: 500px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  font-family: var(--font-body);
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #e56d2b;
}

/* Contacto sin íconos */
.contact-info {
  text-align: center;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

img[src*="Neqa-agencia-integral-calidad-gestion-ecommerce"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

section {
  scroll-margin-top: 100px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .main-header .container {
      flex-wrap: wrap;
      justify-content: center;
  }

  .main-nav {
      width: 100%;
      margin-top: 10px;
  }

  .main-nav ul {
      justify-content: space-around;
  }

  .hero-content {
      padding: 0 20px;
  }

  .main-logo-text {
      font-size: 4em;
  }

  .hero-content h2 {
      font-size: 1.2em;
      letter-spacing: 3px;
  }

  .imagen-central {
      max-width: 80%;
      margin: 15px auto 20px;
  }
  
  .service-item {
      max-width: 100%;
      padding: 15px 10px;
  }
}