/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --primary-blue: #205398;
    --secondary-blue: #1b4885;
    --light-gray: #f1f1f1;
    --white: #ffffff;
    
    /* Tipografía */
    --font-main: 'Roboto', sans-serif;
    
    /* Espaciados */
    --container-padding: 15px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

/* HEADER/NAVBAR OPTIMIZADO */

/* Logo grande por defecto, reducción con .navbar-shrink */
.navbar-polynac .navbar-brand img {
  height: 64px;
  max-height: 64px;
  transition: height 0.3s cubic-bezier(.4,0,.2,1), max-height 0.3s cubic-bezier(.4,0,.2,1), filter 0.3s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.navbar-polynac.navbar-shrink .navbar-brand img {
  height: 40px;
  max-height: 40px;
  filter: none;
}

/* Navbar height transition */
.navbar-polynac {
  min-height: 90px;
  height: 90px;
  transition: min-height 0.3s cubic-bezier(.4,0,.2,1), height 0.3s cubic-bezier(.4,0,.2,1), background 0.3s;
  background: var(--primary-blue) !important;
}

.navbar-polynac.navbar-shrink {
  min-height: 64px;
  height: 64px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
}

/* Nav items: color, contraste y activo */
.navbar-polynac .nav-link {
  color: #fff !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.92;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
}

.navbar-polynac .nav-link.active,
.navbar-polynac .nav-link:focus,
.navbar-polynac .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.10);
  opacity: 1;
  text-shadow: 0 1px 6px rgba(32,83,152,0.10);
}

/* Mejor indicador de página activa */
.navbar-polynac .nav-link.active::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 6px auto 0 auto;
  opacity: 0.7;
}

/* Botón especial */
.navbar-polynac .btn-trabaja {
  background: linear-gradient(90deg, #205398 60%, #1b4885 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(32,83,152,0.08);
  letter-spacing: 0.01em;
}

.navbar-polynac .btn-trabaja:hover {
  background: #1b4885;
  color: #fff;
}

/* Fondo sólido y altura menú móvil */
@media (max-width: 991.98px) {
  .navbar-polynac {
    background: var(--primary-blue) !important;
    min-height: 64px;
    height: 64px;
  }
  .navbar-polynac .navbar-collapse {
    background: var(--primary-blue) !important;
    box-shadow: 0 8px 24px rgba(32,83,152,0.10);
    border-radius: 0 0 18px 18px;
    padding-bottom: 1.5rem;
  }
  .navbar-polynac .nav-link {
    font-size: 1.1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
  }
  .navbar-polynac .btn-trabaja {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    font-size: 1.1rem;
  }
}

/* Accesibilidad: mejor foco */
.navbar-polynac .nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Espaciador para sticky header */
body {
  padding-top: 90px !important;
}
@media (max-width: 991.98px) {
  body {
    padding-top: 64px !important;
  }
}

/* Hero Banner - Versión básica funcional */
.hero-banner {
    height: 100vh;
    min-height: 600px;
    background-color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-top: 70px; /* Para compensar el header fijo */
    padding: 2rem;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Product Lines - Versión funcional */
.product-lines {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    font-size: 2rem;
}

.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.line-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.line-card:hover {
    transform: translateY(-5px);
}

/* Footer - Versión básica */
.main-footer {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Responsive - Menú hamburguesa */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
    }
    
    .nav-list.active {
        right: 0;
    }
}
/* Loader (pantalla de carga) */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    border: 5px solid #e9ecef;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.brands-carousel-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.brand-logo {
    padding: 10px;
    text-align: center;
}

.brand-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-logo img:hover {
    filter: none;
}

.glide__arrow {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body {
    padding-top: 0 !important;
}