/* ==========================================================================
1. VARIABLES DE MARCA Y REGLAS BASE (PALETA: FRESH CHIC ULTRA SUAVE)
========================================================================== */
:root {
 --primary: #5c1424; /* Granate Profundo */
 --primary-hover: #420d19; /* Granate Oscuro */ 
 --dark: #16243d; /* Azul Marino */
 --bg-light: #ffffff; /* Blanco Puro Absoluto */
 --bg-offwhite: #fcfcfd; /* Blanco Alabastro (Sutil textura visual) */
 --bg-gray: #f8fafc; /* Gris Lino Ultra Suave (Para romper la monotonía) */
 --text-muted: #4a5568; /* Gris Pizarra */
 --border-color: #e2e8f0; /* Gris Bordes Suave */
 --accent-green: #5c1424; /* Granate Uniforme */
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-light);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
/* ==========================================================================
2. HEADER Y NAVEGACIÓN
========================================================================== */
header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark); /* Azul Marino */
  letter-spacing: -0.5px;
  text-decoration: none;
}

.logo span {
  color: var(--primary); /* Toque llamativo Granate Profundo */
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark); /* Enlaces en Azul Marino para máximo contraste */
  font-weight: 600;
  font-size: 15px;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary); 
}

.nav-links a svg {
  display: none;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--primary); /* Botón móvil en Granate Profundo */
  stroke-width: 2;
}

.menu-toggle .icon-close {
  display: none;
}
/* ==========================================================================
3. SECCIÓN HERO
========================================================================== */
.hero {
  padding: 120px 0 90px 0;
  background-color: var(--bg-light); /* Fondo Blanco Puro */
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1.1;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--dark); 
  margin-bottom: 24px;
}

.hero-text strong {
  color: var(--primary); 
  font-weight: 800;
}

.hero-text p {
  font-size: 19px;
  color: var(--text-muted); 
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary) !important; 
  color: #ffffff !important; 
  border: none;
  box-shadow: 0 4px 14px rgba(92, 20, 36, 0.2); 
}

.btn-primary:hover {
  background-color: var(--primary-hover) !important; 
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent !important;
  color: var(--primary) !important; 
  border: 2px solid var(--primary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-gray); 
  color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.hero-image {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.floating-img {
  max-width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  animation: floatAnimation 6s ease-in-out infinite;
}
/* ==========================================================================
4. SECCIÓN SERVICIOS
========================================================================== */
.services-section {
 padding: 100px 0;
 background-color: var(--bg-gray); /* Fondo Gris Lino Ultra Suave */
 border-top: 1px solid var(--border-color);
}

.service-card {
 background-color: var(--bg-light); /* Tarjeta en Blanco Puro Absoluto */
 border: 1px solid var(--border-color);
 border-radius: 12px;
 padding: 40px;
 transition: all 0.3s ease;
}


.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark); 
  margin-bottom: 16px;
}

.services-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

a.service-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

a.service-card-link * {
  text-decoration: none !important;
  color: inherit !important;
}

.service-card:hover {
  border-color: var(--primary); 
  box-shadow: 0 12px 30px rgba(92, 20, 36, 0.08); 
  transform: translateY(-2px);
}

.card-icon {
  width: 180px;
  height: 75px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.card-icon img.icon-png {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary); 
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
/* ==========================================================================
5. SECCIÓN DE PRODUCTOS
========================================================================== */
.products-section {
 padding: 100px 0;
 background-color: var(--bg-light); /* Fondo Blanco Puro Absoluto */
 border-top: 1px solid var(--border-color);
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark); 
  margin-bottom: 16px;
}

.products-header p {
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
 background: var(--bg-offwhite); /* Tarjeta en Blanco Alabastro */
 border: 1px solid var(--border-color);
 border-radius: 12px;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 transition: all 0.3s ease;
 position: relative;
}

.product-card:hover {
  border-color: var(--primary); 
  box-shadow: 0 12px 30px rgba(92, 20, 36, 0.08);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.product-badge.discount {
  background-color: var(--dark); 
}

.product-image {
 width: 100%;
 height: 230px;
 background-color: var(--bg-light); /* Contenedor de foto en Blanco Puro para limpieza total */
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 24px;
 box-sizing: border-box;
 border-bottom: 1px solid var(--border-color);
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: translateY(-4px);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 18px;
  color: var(--dark); 
  margin-bottom: 10px;
  font-weight: 700;
}

.product-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.btn-product {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-product:hover {
  background-color: var(--primary); /* Relleno en Granate Profundo */
  color: #ffffff;
}
/* ==========================================================================
6. ANIMACIONES Y FOOTER
========================================================================== */
@keyframes floatAnimation {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

footer {
  background: #16243d; /* Fondo Azul Marino Profundo fijo */
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; /* Letras Blancas que saltan a la vista */
  letter-spacing: 0.5px;
  margin-top: auto;
  border-top: 3px solid #5c1424; /* Línea divisoria superior en Granate Profundo */
}

/* ==========================================================================
7. RESPONSIVE DESIGN (MEDIA QUERIES - MENÚ HAMBURGUESA REPARADO)
========================================================================== */
@media (max-width: 968px) {
 .hero-flex {
   flex-direction: column-reverse;
   text-align: center;
   gap: 40px;
 }
 .hero-text h1 { font-size: 38px; }
 .hero-btns { justify-content: center; }
 .floating-img { max-height: 260px; }
}

@media (max-width: 768px) {
 /* FUERZA A MOSTRAR EL BOTÓN HAMBURGUESA EN CELULARES */
 .menu-toggle {
   display: block !important;
   background: none;
   border: none;
   cursor: pointer;
   padding: 6px;
   z-index: 1001;
 }

 .menu-toggle svg {
   width: 28px;
   height: 28px;
   fill: none;
   stroke: var(--primary); /* Asegura el color Granate Profundo */
   stroke-width: 2.5;
   display: block;
 }

 /* CONFIGURACIÓN DE LA LISTA DESPLEGABLE */
 .nav-links {
   display: none; /* Se mantiene oculto hasta que se pulse el botón */
   position: absolute;
   top: 100%;
   right: 24px;
   width: 240px;
   background-color: var(--bg-light); /* Blanco Puro Absoluto */
   border: 1px solid var(--border-color);
   border-radius: 12px;
   box-shadow: 0 10px 25px rgba(22, 36, 61, 0.1); /* Sombra suavizada */
   flex-direction: column;
   gap: 0;
   padding: 8px 0;
   z-index: 9999;
 }

 /* CLASE QUE ACTIVA JAVASCRIPT AL HACER CLIC */
 .nav-links.active {
   display: flex !important;
 }

 .nav-links li {
   width: 100%;
 }

 .nav-links a {
   color: var(--dark) !important; /* Texto en Azul Marino para contraste */
   font-size: 15px;
   font-weight: 600;
   padding: 14px 20px;
   display: flex;
   align-items: center;
   gap: 12px;
   text-decoration: none;
   transition: background 0.2s ease;
 }

 .nav-links a svg {
   display: inline-block !important; /* Muestra los iconos en móvil */
   width: 20px;
   height: 20px;
   fill: none;
   stroke: var(--primary); /* Iconos en Granate Profundo */
   stroke-width: 2;
 }

 .nav-links a:hover {
   background-color: var(--bg-gray); /* Destaca en Gris Lino al pasar el cursor */
 }

 .nav-links li:not(:last-child) a {
   border-bottom: 1px solid var(--border-color);
 }
}

@media (max-width: 640px) {
 .hero-btns {
   flex-direction: column;
   width: 100%;
 }
 .hero-btns a {
   text-align: center;
   width: 100%;
 }
 .services-grid, .products-grid {
   grid-template-columns: 1fr;
 }
}


/* ==========================================================================
   BLOQUE 2: MAQUETACIÓN CSS PREMIUM PARA EL CARRUSEL
   ========================================================================== */

.testimonial-section {
  padding: 100px 0;
  background-color: var(--bg-light, #ffffff);
  overflow: hidden;
}

.testimonial-container {
  position: relative;
}

.testimonial-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonial-badge {
  font-weight: 800;
  font-size: 0.75rem;
  color: #ffffff;
  background: var(--primary, #bc475c);
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 2px;
  display: inline-block;
}

.testimonial-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-hover, #1e354a);
  margin-top: 15px;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Carrusel con Soporte Táctil Nativo */
.slider-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 5px;
  width: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Oculta barra en Firefox */
}

/* Oculta barra en Chrome, Safari y Edge */
.slider-track::-webkit-scrollbar {
  display: none;
}

/* Tarjeta individual del Testimonio */
.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background-color: var(--bg-gray, #f5efe6);
  padding: 40px 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0,0,0,0.02);
  border: 1px solid var(--border-color, #dfd7cb);
}

.stars {
  color: var(--primary, #bc475c);
  font-size: 22px;
  margin-bottom: 15px;
}

.testimonial-card p {
  font-size: 14px;
  color: var(--text-muted, #536371);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 25px;
  text-align: justify;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 15px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-letters {
  width: 40px;
  height: 40px;
  background: var(--primary-hover, #1e354a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.profile-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-hover, #1e354a);
  margin: 0;
}

.profile-info p {
  font-size: 12px;
  color: var(--text-muted, #536371);
  margin: 0;
  font-style: normal;
  text-align: left;
}

/* Caja contenedora del logotipo de empresa */
.client-logo-box {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color, #dfd7cb);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.client-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Flechas de Navegación Lateral */
.slider-arrow {
  position: absolute;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color, #dfd7cb);
  color: var(--primary-hover, #1e354a);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--bg-gray, #f5efe6);
}

.arrow-left {
  left: -20px;
}

.arrow-right {
  right: -20px;
}

/* Ajustes Responsive para Pantallas Pequeñas */
@media (max-width: 768px) {
  .slider-arrow {
    display: none; /* Se desplaza de forma infinita con el dedo en móviles */
  }
  .testimonial-card {
    flex: 0 0 85vw; /* Las tarjetas se adaptan al ancho del móvil */
  }
}


