/* -- FUENTES Y PALETA DE COLORES ACTUALIZADA -- */
:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --color-gris-oscuro: #4a4a4a;
  --color-fondo-claro: #f8f8f8;
  --color-acento-turquesa: #5fb6ac;
  --color-madera: #a98c6a;
  --color-blanco: #ffffff;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* -- ESTILOS GENERALES -- */
body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--color-fondo-claro);
  color: var(--color-gris-oscuro);
  line-height: 1.7;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.5em;
  font-weight: 600;
  margin: 10px 0 20px;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-acento-turquesa);
}

section {
  padding: 20px 20px 20px 20px;
  text-align: center;
}

/* -- HEADER Y NAVEGACIÓN -- */
header {
  background-color: var(--color-blanco);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav .logo {
  font-family: var(--font-heading);
  font-size: 1.6em;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-gris-oscuro);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--color-gris-oscuro);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1em;
}

nav a:hover {
  color: var(--color-acento-turquesa);
}


/* -- SECCIÓN HERO -- */
.hero {
  background: linear-gradient(rgba(40, 40, 40, 0.4), rgba(40, 40, 40, 0.4)),
    url('Imagenes/imagen_principal.jpg')
      no-repeat center center/cover;
  color: var(--color-blanco);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3.5em;
  font-weight: 700;
}

.hero p {
  font-size: 1.2em;
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background-color: var(--color-acento-turquesa);
  color: var(--color-blanco);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-family: var(--font-heading);
  transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
  background-color: #4a9d95;
  transform: translateY(-3px);
}

/* -- ESTILOS PARA EL CARRUSEL SWIPER -- */
.swiper {
  width: 80%;
  height: 400px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding-top: 20px; /* <-- AÑADE ESTA LÍNEA */
}

/* ESTILOS CLAVE: La imagen central es más grande y visible */
.swiper-slide:not(.swiper-slide-active) {
  opacity: 0.5;
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1.05);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.caption {
  margin-top: 10px;
  font-weight: bold;
}

/* -- SECCIÓN NOSOTROS -- */
#nosotros .intro-text {
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
}

.mision-vision-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: var(--color-blanco);
  padding: 35px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: left;
  border-top: 4px solid var(--color-acento-turquesa);
}


/* -- SECCIONES SECUNDARIAS -- */
#calidad,
#brandboard {
  background-color: var(--color-fondo-claro);
}

.features-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background-color: var(--color-blanco);
  padding: 25px;
  border-radius: 10px;
  flex: 1;
  min-width: 280px;

  max-width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* -- CONTACTO -- */
#contacto {
  background-color: var(--color-blanco);
}

.contact-info {
  margin: 30px 0;
  font-size: 1.1em;
}

.contact-info a {
  color: var(--color-acento-turquesa);
  text-decoration: none;
  font-weight: 500;
}

.contact-info strong {
  margin-right: 8px;
}

.social-media {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
}

.social-media a {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s;
}

.social-media a:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.social-media img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

/* -- FOOTER -- */
footer {
  background-color: var(--color-gris-oscuro);
  color: #ecf0f1;
  text-align: center;
  padding: 25px;
}

/* -- BOTÓN WHATSAPP -- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* -- SECCIÓN LOGO -- */
.brand-logo-container {
  width: clamp(200px, 22vw, 300px);
  height: auto;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: linear-gradient(#fff, #f6f8fb);
  margin: 40px auto 0 auto;
  background-image: url('Imagenes/explicacion_logo.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease-in-out;
}

.brand-logo-container:hover {
  background-image: url('Imagenes/logo-modulares-gm.jpg');
}

/* Por defecto se muestra la barra y se oculta el salto */
.separador {
  display: inline;
}
.solo-movil {
  display: none;
}


.hamburger {
  display: none;
}

/* -- AJUSTES DE DISEÑO ADICIONALES -- */

  
  /* Asegura que el encabezado no se pierda en la parte superior */
  header {
    background-color: var(--color-blanco);
    position: sticky;
    top: 0;
  }

  /* Ajusta el espaciado del logo y los enlaces */
  nav {
    padding: 10px 15px;
  }

/* Solución para que el header fijo no cubra los títulos */
section[id] {
  scroll-margin-top: 80px;
}

@media (max-width: 767px) {
  section {
    padding: 40px 10px;
  }

  .separador {
    display: none;
  }

  .solo-movil {
    display: inline;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-gris-oscuro);
    border-radius: 2px;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-blanco);
    box-shadow: var(--shadow);
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links li {
    text-align: center;
    padding: 15px 0;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }
      /* Nueva regla para la imagen principal en móviles */
 .hero {
        background: linear-gradient(rgba(40, 40, 40, 0.5), rgba(40, 40, 40, 0.5)), /* <-- CAMBIADO a 0.5 */
            url('Imagenes/imagen_principal_movil.jpg')
            no-repeat center center/cover;
        /* ... el resto de propiedades ... */
    }
}
