
/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #0c184e;
    background-color: #f6fbf4;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: #558cb6;
}

a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
}

main {
    flex: 1;
}


/* === HEADER === */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, rgb(107, 160, 198), #021c43f0);
    padding: 10px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.5s;
    z-index: 1000;
}

.logo img {
    height: 60px;
}

header.transparent {
    background: rgba(0, 0, 0, 0.3);
}

.menu-toggle, .menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar, .menu-icon span {
    background-color: #ffffff;
    height: 4px;
    width: 30px;
    margin: 5px 0;
    transition: all 0.4s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: rgb(209, 208, 212);
    font-weight: bold;
    padding: 10px 25px;
    transition: background 0.3s, color 0.3s;
}

.nav-links li a:hover {
    background: #78bed3;
    color: rgb(34, 44, 52);
    border-radius: 5px;
}

.nav-links .dropdown {
    display: none;
    position: absolute;
    background: linear-gradient(180deg, #6898cb, #002f6c);
    top: 100%;
    left: 0;
    width: 180px;
    padding: 10px;
    list-style: none;
    border-radius: 5px;
}

.nav-links li:hover .dropdown {
    display: block;
}

.nav-links .dropdown li a {
    color: #fff;
    padding: 5px 10px;
    display: block;
    transition: background 0.3s;
}

.nav-links .dropdown li a:hover {
    background: #0056b3;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle, .menu-icon {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: linear-gradient(180deg, #6898cb, #002f6c);
        text-align: center;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links li a {
        color: #cec4c4;
        padding: 10px;
    }
}

/* === SLIDER === */
.slider {
    position: relative;
    width: 100%;
    height: 800px;
    max-height: 800px;
    overflow: hidden;
}
.slide {
    transition: opacity 0.8s ease-in-out, transform 0.6s ease;
  }

@media (max-width: 768px) {
    .slider {
        height: 300px;
    }
}

.slider-container {
    position: relative;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.slide-content {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 0px;
    text-align: left;
    color: white;
    max-width: 700px;
    width: calc(100% - 120px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    animation: fadeInUp 1s ease-out;
}

.slide-content h1 {
    font-size: 2.5rem;
    color: #78bed3;
    margin-bottom: 10px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    color: #f1f1f1;
}



/* Controles prev/next */
.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

#prev-slide {
    left: 10px;
}

#next-slide {
    right: 10px;
}

/* Puntos del slider */
.slider-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.slider-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    background-color: #007bff;
}

/* 🎥 Efecto de zoom solo para el slide activo */
.slide.active img {
    animation: kenburns-zoom 6s ease-in-out forwards;
}

@keyframes kenburns-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #eaf3ff, #f5faff);
    background-image: url('img/bg-tecnologia.svg'); /* opcional */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: #122D6C;
    animation: fadeInUp 1.2s ease-out;
  }
  
  .hero-logo {
    max-width: 180px;
    margin-bottom: 20px;
    animation: fadeIn 1.6s ease-out;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 30px;
  }
  
  .hero-cta {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .hero-cta:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
  }
  
  @keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

 /* === BIENVENIDOS SECTION === */
.welcome-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.welcome-container {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
    animation: fadeInUp 1s ease-out forwards;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
}

.company-logo-large {
    width: 80px;
    margin-bottom: 10px;
}

.welcome-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #122D6C;
}

.subtitle {
    font-size: 1.1rem;
    color: #5e6b88;
    margin-top: 10px;
}

.content-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.content-column {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    background: #f0f4ff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 72, 155, 0.05);
    transition: transform 0.3s ease;
}

.content-column:hover {
    transform: translateY(-5px);
}

.welcome-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}

.icon-accent {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 10px;
    display: block;
}


  /* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay {
    animation-delay: 0.4s;
}

  /* Responsive */
@media (max-width: 768px) {
    .content-row {
    flex-direction: column;
    }
}
  /* === PRODUCTOS (Unificada con Accesorios) === */
.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 50px 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px 0;
    width: 100%;
}

.product-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(188, 167, 167, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    height: 290px;
    padding: 10px;
    box-sizing: border-box;
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.label {
    margin-top: auto;
    background: linear-gradient(135deg, #5b97d2, #2c515d);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    border-radius: 0 0 6px 6px;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(24, 25, 26, 0.436);
    border: 2px solid #acaeb05e;
}

.product-item:hover .label {
    background: linear-gradient(90deg, white, #007bff, #021c43f0);
    letter-spacing: 1px;
}
/* === ANIMACIÓN PARA TÍTULO BIENVENIDA === */
.animate-title {
    animation: slideFadeIn 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideFadeIn {
    0% {
    opacity: 0;
    transform: translateY(40px);
    }
    100% {
    opacity: 1;
    transform: translateY(0);
    }
}


  /* === DISTRIBUIDORES === */
.proveedores {
    width: 100%;
    background-color: #f8f8f8;
    padding: 40px 0;
}

.proveedores-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.proveedores-title {
    background: linear-gradient(180deg, #eef0f2, #084da7e5);
    color: white;
    padding: 20px;
    width: 25%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proveedores-title h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #071f86;
}

.proveedores-logos {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
    padding: 20px;
}

.logo-item img {
    max-width: 120px;
    transition: transform 0.3s ease-in-out;
}

.logo-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .proveedores-container {
    flex-direction: column;
    text-align: center;
    }

    .proveedores-title {
    width: 100%;
    text-align: center;
    }

    .proveedores-logos {
    flex-wrap: wrap;
    gap: 15px;
    }
}

  /* === FOOTER === */
.footer-section {
    background: linear-gradient(90deg, rgb(107, 160, 198), #021c43f0);
    color: #e0e0e0;
    padding: 0;
    text-align: left;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px;
    margin: auto;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.footer-column h2 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b3b3b3;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-column ul li a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #b3b3b3;
}

.contact-info {
    display: inline-block;
    text-align: left;
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-info img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.footer-column:last-child {
    text-align: right;
}

.footer-column:last-child .contact-info {
    text-align: left;
}

.footer-bottom {
    margin-top: 30px;
    font-size: 0.9rem;
    color: #f5f5f5;
    padding: 15px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .footer {
    flex-direction: column;
    align-items: flex-start;
    }

    .footer-column {
    width: 100%;
    text-align: left;
    }

    .footer-column:last-child {
    text-align: left;
    }

    .contact-info {
    margin-top: 10px;
    }
}
/* === AJUSTES RESPONSIVOS PARA PANTALLAS PEQUEÑAS (MÓVILES) === */
@media (max-width: 480px) {
    /* Slide Content */
    .slide-content {
      padding: 15px 20px;
      width: calc(100% - 40px);
      background: rgba(0, 0, 0, 0.7); /* Mejor contraste */
      z-index: 1;
      position: relative;
    }
  
    .slide-content h1 {
      font-size: 1.4rem;
      line-height: 1.3;
    }
  
    .slide-content p {
      font-size: 1rem;
    }
  
    /* Agrega sombreado al fondo del slider */
    .slide::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
      z-index: 0;
    }
  
    /* Ocultar flechas de navegación del slider */
    .slider-controls button {
      display: none;
    }
  
    /* Hero Banner */
    .hero-banner {
      padding: 60px 20px;
    }
  
    .hero-banner h1 {
      font-size: 2rem;
    }
  
    .hero-subtitle {
      font-size: 1rem;
    }
  
    .hero-cta {
      padding: 10px 20px;
      font-size: 1rem;
    }
  
    /* Productos */
    .product-item {
      height: auto;
      max-width: 100%;
    }
  
    .product-item img {
      height: auto;
    }
  
    .label {
      font-size: 1rem;
    }
  
    /* Distribuidores */
    .proveedores-logos {
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }
  
    .logo-item img {
      max-width: 80px;
    }
  
    /* Footer Ajustado */
    .footer {
      padding: 20px;
    }
  
    .footer-column h2 {
      font-size: 1rem;
    }
  
    .footer-column ul li {
      font-size: 0.95rem;
    }
  
    .contact-info p {
      font-size: 0.95rem;
    }
  
    /* Logo y hamburguesa */
    header {
      padding: 10px 20px;
    }
  
    .logo img {
      height: 50px;
    }
  
    .menu-toggle {
      margin-left: auto;
    }
  }