/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}
/* Estilos para el header */
.header-degradado {
    width: 100%;
    height: 3vh;
    background: linear-gradient(to right, 
        #dd391d 0%, 
        #ff752f 50%, 
        #dd391d 100%
    );
    background-size: 100% 5vh; 
    background-repeat: no-repeat;
    background-position: top;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.header {
  width: 90%;
  max-width: 1200px;
  height: 14vh;
  margin: auto;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #ff752f;
  padding: 1vh 2vw;
  box-shadow: 0 0.5vh 1.25vh rgba(0, 0, 0, 0.1);
}

/* Corrige el nombre de la clase */
.contenedor-nombre-logo {
  display: flex;
  align-items: center;
  gap: 0.1rem; /* Puedes aumentar si necesitas más espacio */
}

/* Logo */
.logo-img {
  width: 4.8rem;
  height: auto;
  border-radius: 4rem;
  object-fit: cover;
}

.nombre {
  font-size: 2.5rem;
  font-weight: bold;
  color: #dd391d;
}

/* Navegación */
.nav {
    display: flex;
    gap: 1.5vw; /* Espacio entre enlaces proporcional al ancho de la pantalla */
    flex-wrap: wrap; /* Permite que los enlaces se ajusten en pantallas pequeñas */
}

/* Estilo de los enlaces */
.nav-link {
    color: #dd391d;
    text-decoration: none;
    font-size: 1rem; /* Relativo al root (ok) */
    padding: 0.5em 1em; /* Espaciado proporcional al tamaño del texto */
    border-radius: 0.5em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background-color: #e9dcd5;
    color: #029386;
}
.btn-accion {
    text-decoration: none;
}
@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        align-items: flex-end;
    }

    .nav-link {
        margin-top: 2vh; 
    }
}

/* Contenedor principal  NUESTROS PRODUCTOS*/
.ventana {
    display: flex;
    align-items: center;              /* Centra verticalmente el contenido */
    justify-content: space-between;  /* Espacio entre imagen y texto */
    width: 90%;
    max-width: 1050px;
    margin: 50px auto 0 auto;         /* Centrado horizontal y separación arriba */
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor de la imagen */
.imagen {
    flex: 1;                          /* Toma la mitad del espacio */
    display: flex;                   /* Centrar imagen dentro del div */
    justify-content: center;
    align-items: center;
}

.imagen img {
    width: 90%;
    height: auto;                    /* Mantiene la proporción natural */
    object-fit: cover;
    border-radius: 10px;
}

/* Contenedor del texto */
.contenido {
    flex: 1;                          /* Toma la otra mitad */
    padding-left: 40px;              /* Espacio entre imagen y texto */
}

/* Subtítulo */
.subtitulo-1 {
    font-size: 2.3rem;
    margin-bottom: 2px;
    color: #ff752f;                  /* Color gris para diferenciar */
}

/* Título principal */
.titulo {
    font-size: 3rem;
    font-weight: bold;
    color: #dd391d;
    margin-top: 0;
}
.seccion-productos {
    text-align: center;
    margin: 50px auto;
    width: 85%;
}
 
/* Subtítulo  ECUENTRA TU SOLUCION */
.subtitulo {
    font-size: 1.2rem;
    color: #ff752f;
    margin-bottom: 20px;
}

/* Título principal  CALEFON */
.titulo-principal {
    text-align: left;
    font-size: 2.8rem;
    color: #dd391d;
    margin-bottom: 25px;
}
.tarjetas-con-borde .tarjeta-producto {
    border: 2px solid #ff752f;
    border-radius: 10px;
    padding: 10px;
}

/* Contenedor de tarjetas */
.contenedor-tarjetas {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}
/* Cada tarjeta de producto */
.tarjeta-producto {
    padding: 20px;
    width: 250px;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Efecto hover sobre tarjeta */
.tarjeta-producto:hover {
    background-color: rgba(255, 94, 0, 0.3); /* Fondo naranja suave al pasar el mouse */
}

/* Imagen del producto */
.tarjeta-producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 5px;
}
.producto-ajustado {
    object-fit: cover;
    object-position: left center;
}

/* Nombre del producto */
.nombre-producto {
    text-align: left;
    font-size: 1.3rem;
    margin: 10px 0 5px;
    color: #254369;
}

/* Descripción del producto */
.descripcion-producto {
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}
.precio-producto {
    text-align: left;
    font-size: 1.3rem;
    margin: 10px 0 5px;
    color: #dd391d;
}
/* Botón del precio */
.boton-precio {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 55px;
    background-color: #dd391d;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

/* Efecto al pasar el mouse */
.boton-precio:hover {
    background-color: #ff752f; /* Se aclara el botón */
}
/* CONTRATANOS  manos cerrando trato*/
.ventana-invertida {
    display: flex;
    align-items: center;
    gap: 70px;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 100%; /* Abarca todo el ancho */
    max-width: 100%;
    height: 200px;
    margin: 75px auto;
    background-color: #ffffff; /* Fondo blanco para el texto */
}

.imagen-izquierdo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.imagen-izquierdo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

    /* Difuminado hacia la derecha */
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
}

.contenido-derecho {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: #ffffff;
    padding-left: 20px;
}

.contenido-derecho h3 {
    font-size: 1.8rem;
    margin-bottom: 1px;
    color: #dd391d;
    margin: 8px 0;
    transition: transform 0.3s ease-in-out; 
}

.contenido-derecho h3:hover {
    transform: scale(1.1);
}

.contenido-derecho p {
    width: 90%;
    margin-top: 3px;
    font-size: 1.5rem;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #dd391d;
}

.btn-accion {
    padding: 5px 15px;
    background-color: #ff752f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-accion:hover {
    transform: scale(1.2);
    background-color: #029386;
}

/* FOOTER */
.footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    background: linear-gradient(to right, #dd391d 0%, #ff752f 50%, #dd391d 100%);
    color: white;
    padding: 3vh 4vw;
    margin: 0 auto;
    border-radius: 0;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    width: 26vw;
    max-width: 160px;
    height: auto;
    margin-bottom: 1vh;
    border-radius: 1rem;
}

.footer-separador {
    width: 0.3vw;
    background-color: white;
    height: 100%;
    margin: 0 1vw;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    text-align: left;
    width: 30%;
    min-width: 200px;
}

.footer-derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 30%;
    min-width: 200px;
}

.footer h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1vh;
}

.footer p {
    font-size: 1rem;
    margin: 0.3vh 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-derecha:hover {
    transform: scale(1.2);
    color: #1a3d6d;
    cursor: pointer;
}

.linea-final {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 0;
}

.sello-disenadora {
    height: 8vh;
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    font-size: 1rem;
    color: #666;
    background-color: #f9f9f9;
}


.whatsapp-float {
    position: fixed;
    bottom: 3vh;
    right: 3vw;
    z-index: 999;
    width: 7vh;
    height: 7vh;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float img {
    width: 3.5vh;
    height: 3.5vh;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/*Responsive*/
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 1vh 2vw;
    align-items: flex-start;
    gap: 0.3rem;
  }

  @media (max-width: 768px) {
    .logo-img {
      width: 3.5rem; 
    }
  }
  
  .nav {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between;
    width: 100%;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.3em 0.5em;
  }
}
/*IMG + TITULO PRINCIPAL*/
@media (max-width: 768px) {
    .ventana {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }

    .imagen {
        width: 100%;
        justify-content: center;
    }

    .imagen img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .contenido {
        padding-left: 0;
        padding-top: 10px;
    }

    .subtitulo-1 {
        font-size: 1.7rem;
    }

    .titulo {
        font-size: 2.2rem;
    }
}
/*BUSCA POR CATEGORIA*/
@media (max-width: 768px) {
    .contenedor-tarjetas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tarjeta-producto {
        width: 70%;
        max-width: 330px;
        padding: 10px;
    }

    .tarjeta-producto img {
        height: 150px;
    }

    .nombre-producto {
        font-size: 1.2rem;
        text-align: center;
    }

    .descripcion-producto {
        font-size: 0.9rem;
        text-align: center;
    }

    .boton-precio {
        padding: 8px 40px;
        font-size: 1rem;
    }

    .subtitulo {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}
/*si no encuentras..escribenos!*/
@media (max-width: 768px) {
    .ventana-invertida {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
        height: auto;
        margin: 40px auto;
    }

    .imagen-izquierdo {
        width: 100%;
    }

    .imagen-izquierdo img {
        height: 180px;
        border-radius: 10px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .contenido-derecho {
        width: 100%;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .contenido-derecho h3 {
        font-size: 1.5rem;
    }

    .contenido-derecho p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .btn-accion {
        font-size: 1.1rem;
        padding: 6px 20px;
    }
}
/* FOOTER en pantallas pequeñas */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5vh 4vw;
  }

  .footer-logo {
    margin-bottom: 3vh;
  }

  .footer-separador {
    display: none; /* Ocultamos la línea vertical en pantallas pequeñas */
  }

  .footer-info, .footer-derecha {
    width: 100%;
    margin-bottom: 2vh;
  }

  .footer-info h3, .footer-derecha h3 {
    font-size: 1.4rem;
  }

  .footer p {
    font-size: 1rem;
  }

  .footer-derecha p {
    margin-bottom: 1vh;
  }
}

