@import url('https://fonts.googleapis.com/css2?family=Share+Tech&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body {
    background-color: aliceblue;
    font-family: Arial, sans-serif;
}

.logo {
    height: 50px;
}

h1 {
    font-family: 'Share Tech', sans-serif;
    font-size: 28px;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.main-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.footer {
    background-color: black;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.redes {
    display: flex;
    gap: 20px;
}

.rs {
    height: 40px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 60px;
    height: auto;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.producto img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.precio {
    font-weight: bold;
    color: #0d6efd;
    font-size: 18px;
}

@media (max-width: 992px) {
  .main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer {
    padding: 20px;
  }
}

/* ===== Mejoras responsive + alineación imágenes + carrusel en marco ===== */
.main-grid {
    justify-items: center;
}

.texto {
    max-width: 560px;
}

.imagen img {
    max-width: 680px;
}

/* Marco para carrusel: altura consistente y recorte prolijo */
.carousel-frame,
.carousel-inner,
.carousel-item {
    border-radius: 12px;
}

.carousel-frame {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #00000010;
}

.carousel-item {
    height: 420px;
}

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

/* Productos: tarjetas parejas, imágenes alineadas */
.productos-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.producto.card {
    overflow: hidden;
    border-radius: 12px;
}

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

/* Bloque contacto home */
.contacto-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    text-align: center;
}

/* Navbar: animación underline + activo */
.navbar .nav-link {
    position: relative;
    transition: transform .2s ease, opacity .2s ease;
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #0d6efd;
    transition: width .25s ease;
    opacity: .95;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.is-active::after {
    width: 100%;
}

.navbar .nav-link.is-active {
    font-weight: 700;
}

/* Tablet */
@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .carousel-frame,
    .carousel-item {
        height: 320px;
    }

    .producto img {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-frame,
    .carousel-item {
        height: 240px;
    }

    .producto img {
        height: 240px;
    }
}


/* ===== Fix fondo blanco abajo (todas las páginas) ===== */
html, body {
    height: 100%;
}

.body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* Layout para evitar margen blanco cuando hay poco contenido */
main { flex: 1; }
.footer { margin-top: auto; }


/* Animación suave para que las cards se vean más modernas */
.card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

/* Pequeños detalles visuales para que el sitio se sienta más "real" */
.producto.card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.producto.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.footer-info {
    text-align: center;
    opacity: 0.9;
}

/* Mejor legibilidad del texto sobre imágenes del carrusel */
.carousel-caption {
    text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}
