/* Estilo general del cuerpo */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}

/* Header azul (parte superior donde esta el logo y redes */
header {
    background-color: #004aad;
    color: white;
    padding-bottom: 5px;
}

/* Parte superior del header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 10px;
}

/* Logo */
.logo-container img {
    width: 100px;
}

/* Redes sociales a la derecha */
.social-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-container p {
    margin: 0;
    margin-right: 10px;
    font-size: 14px;
    color: white;
    padding: 5px 15px; /* Añadir algo de espacio alrededor del texto */
    background-color: rgba(255, 255, 255, 0.2); /* Fondo suave similar al de los íconos */
    border-radius: 20px; /* Bordes redondeados para el texto */
    transition: all 0.3s ease; /* Transición suave */
}

/* Estilo cuando el usuario pasa el ratón */
.social-container p:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Fondo más claro al pasar el ratón */
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
}

/* Estilo de los iconos de redes sociales */
.social-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
    background-color: rgba(255, 255, 255, 0.2); /* Fondo suave detrás de los iconos */
    border-radius: 50%; /* Redondea los iconos */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transición suave */
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Fondo más claro al pasar el ratón */
    transform: scale(1.1); /* Aumenta el tamaño del ícono */
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* Menú de navegación dentro del header */
.main-nav {
    background-color: transparent;
    padding: 5px 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 15px;
    border: 2px solid transparent; /* Borde por defecto */
    border-radius: 5px; /* Bordes redondeados */
    transition: all 0.3s ease; /* Transición suave */
}

/* Estilo cuando el usuario pasa el ratón */
.main-nav ul li a:hover {
    background-color: #ff9216; /* Color de fondo cuando pasa el ratón */
    border-color: #fff; /* Color de borde cuando pasa el ratón */
    text-decoration: none; /* Quitar subrayado en hover */
}

/* Estilo activo (si es el enlace actual o seleccionado) */
.main-nav ul li a.active {
    background-color: #333; /* Fondo oscuro para resaltar */
    border-color: #fff; /* Borde blanco */
}


/* footer (sección de abajo */
.footer-content {
    background-color: #004aad;
    color: white;
}

.footer-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 20px;
    flex-wrap: wrap;
}

.contact-info,
.info-extra {
    flex: 1;
    min-width: 300px;
}

.contact-info h3,
.info-extra h3 {
    margin-bottom: 10px;
}

/*esta parte edita el tamaño de las imagenes por ende hace que quepan bien todas y se vean completo*/
/* Productos */
.productos {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 10%;
}

.producto {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.producto:hover {
    transform: translateY(-10px);
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.producto h3 {
    font-size: 1.2em;
    color: #333;
    margin: 10px 0;
}

.precio {
    font-size: 1.3em;
    color: #27ae60;
    font-weight: bold;
}


/* seccion de sobre nosotros */
.sobre-nosotros-layout {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

/* Parte de arriba en dos columnas */
.sobre-nosotros-arriba {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.columna-izquierda {
  flex: 1 1 48%;
}

.columna-derecha {
  flex: 1 1 48%;
}

.columna-izquierda h1, 
.columna-derecha h1 {
  color: #005eb8;
  margin-bottom: 20px;
}

.columna-izquierda p, 
.columna-derecha p, 
.columna-derecha li {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.columna-derecha ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Misión, Visión, Valores en fila */
.mvv-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.mvv-item {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icono-img {
  width: 60px;
  margin-bottom: 12px;
}

.mvv-item h3 {
  color: #333;
  margin-bottom: 12px;
}

.mvv-item p, 
.mvv-item ul {
  text-align: left;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.mvv-item ul {
  padding-left: 20px;
  list-style-type: disc;
}

/* Responsive */
@media (max-width: 768px) {
  .sobre-nosotros-arriba {
    flex-direction: column;
  }

  .columna-izquierda, 
  .columna-derecha {
    flex: 1 1 100%;
  }

  .mvv-item {
    flex: 1 1 100%;
  }
}


/* Estilos para el carrusel de imágenes */

/* Carrusel (imagenes que van pasando del index) */
.carousel {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.carousel-inner {
    display: flex;
    width: 100%;
}

.carousel-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: none; /* solo visible el que esté activo */
}

/* Botones de navegación */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/*imagen de bancard del footer*/
.bancard-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    padding-top: 20px;
}

.bancard-logo img {
    max-width: 500px;
    height: auto;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bancard-logo {
        margin-top: 20px;
    }
}


/* SECCIÓN PRINCIPAL */

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.product-bg {
    background-color: #fff;
    padding: 30px 20px 50px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Título principal productos */
.productos-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #222;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor productos flexbox */
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

/* Producto individual */
.producto {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 15px 20px 30px 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/*boton de comprar*/
button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.producto:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Categoría sobre la imagen */
.categoria {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Imagen producto */
.producto img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    height: 200px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.producto:hover img {
    border-color: #007bff;
}

/* Título producto */
.producto h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
    font-weight: 700;
}


/* Descripción */
.producto p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

/* Bordes por categoría */
.borde-refrigeracion {
    border: 3px solid #0088cc; /* azul */
}

.borde-climatizacion {
    border: 3px solid #ff6600; /* naranja */
}

.borde-tecnologia {
    border: 3px solid #33cc33; /* verde */
}

.borde-audiovisual {
    border: 3px solid #9933ff; /* morado */
}

.borde-hogar {
    border: 3px solid #cc3333; /* rojo */
}

.borde-cuidadopersonal {
    border: 3px solid #ff3399; /* rosa */
}

/* Responsive */

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .producto img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .productos-title {
        font-size: 2rem;
    }

    .producto img {
        height: 160px;
    }
}

.precio-cuotas {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: italic;
}

#cuotas-select {
  padding: 6px 10px;
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}



/*sobre nosotros iconos mision, vision, etc*/
.mvv-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.mvv-item {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mvv-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.mvv-item h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333333;
}

.mvv-item p,
.mvv-item ul {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

.mvv-item ul {
  list-style-type: disc;
  padding-left: 20px;
}

.icono-img {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
}


.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    background-color: #fff;
    max-width: 1200px;
    margin: auto;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.contact-form button {
    padding: 14px;
    border: none;
    background-color: #0070f3;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #0058c8;
}

.contact-info-box {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info-box h2 {
    margin-bottom: 20px;
    color: #333;
}

.contact-info-box p {
    margin: 10px 0;
    color: #444;
}

footer {
    background-color: #111;
    color: #ccc;
    padding: 30px 20px;
    text-align: center;
}


/*ofertas*/
/* precios antes y ahora de las ofertas */
.precio-anterior {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
}

.precio {
    color: #ff6600 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    animation: resaltarPrecio 1s ease-in-out;
}


/*banner de ofertas en movimiento*/
.oferta-banner {
    background-color: orange;
    color: white;
    font-weight: bold;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    height: 40px;
    margin: 20px auto;
    border-radius: 5px;
}

.oferta-banner p {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 40px;
    text-align: center;
    white-space: nowrap;
    transform: translateX(100%);
    animation: moverTexto 10s linear infinite;
}

@keyframes moverTexto {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}



/*seccion de faq (preguntas frecuentes)*/
.faq-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #1f78d1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.3s; }
.faq-item:nth-child(3) { animation-delay: 0.5s; }
.faq-item:nth-child(4) { animation-delay: 0.7s; }
.faq-item:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.faq-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f78d1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px 0;
}

.faq-item h3 i {
    color: #1f78d1;
    font-size: 1.4rem;
    min-width: 28px;
    text-align: center;
}

.faq-item p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
    margin: 0;
}

.faq-contact {
    margin-top: 40px;
    padding: 20px;
    background-color: #e3f0fd;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    color: #1f78d1;
    box-shadow: 0 2px 8px rgba(31, 120, 209, 0.1);
}

.faq-contact a {
    color: #1f78d1;
    font-weight: 700;
    text-decoration: underline;
}

.faq-contact a:hover {
    color: #155a9c;
}

 /* Responsive */
@media (max-width: 600px) {
.faq-section {
    padding: 20px 25px;
    margin: 20px 15px;
}

.faq-title {
    font-size: 1.8rem;
}

.faq-item h3 {
    font-size: 1.1rem;
}

.faq-item p {
    font-size: 1rem;
}
}


/*seccion de reseñas*/
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

h2 {
    text-align: center;
    color: #1f78d1;
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(31, 120, 209, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(31, 120, 209, 0.3);
}

.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #1f78d1;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1f78d1;
    margin-bottom: 8px;
}

.rating {
    color: #f1c40f;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-text {
    font-size: 1rem;
    color: #444;
    text-align: center;
    line-height: 1.5;
}



