/* reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Ajustes para HTML5 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------- */  
  
  .busqueda-nav button {
    padding: 8px 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .busqueda-nav button:hover {
    background-color: #0056b3;
  }
  

.elemento-nav{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 30px;
}

.elemento-nav a {
    text-decoration: none;        /* quita el subrayado por defecto */
    color: #007bff;               /* azul típico de enlace */
    transition: color 0.3s ease;  /* animación suave al pasar el mouse */
    font-family: 'Helvetica', sans-serif;
    font-size: 30px;   /* más grande */
    font-weight: 600;  /* un poco más grueso */
  }
  
.elemento-nav  a:hover {
    color: #0056b3;   /* tono más oscuro al pasar el mouse */
    text-decoration: underline;  /* opcional: subrayado solo en hover */
}
  
.elemento-nav  a:active {
    color: #003366;   /* color cuando haces clic */
}
  
.elemento-nav  a:visited {
    color: #6f42c1;   /* color para enlaces visitados */
}

.botones-nav button {
    padding: 10px 20px;                 /* tamaño mediano */
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: linear-gradient(45deg, #28a745, #81c784); /* gradiente verde */
    border: none;
    border-radius: 8px;                  /* esquinas redondeadas */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2); /* sombra ligera */
  }
  
  .botones-nav button:hover {
    background: linear-gradient(45deg, #218838, #66bb6a); /* gradiente más oscuro al hover */
    transform: translateY(-2px);        /* pequeño efecto de levantamiento */
  }
  
  .botones-nav button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
/*===================================== main =============================================*/
/* Hero */
.hero {
    position: relative;
    background: url('/images/moto.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* color base de fallback */
    margin-top: 150px;
}

.hero-text {
    position: relative;
    z-index: 2; /* aseguramos que el texto quede sobre la capa oscura */
}

.hero-text h1 {
    font-family: 'Arial', Helvetica, sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700; /* dorado, contrasta bien sobre fondos oscuros */
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7); /* sombra para mayor legibilidad */
}

.hero-text p {
    font-family: 'Arial', Helvetica, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff; /* blanco puro para buena lectura */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }
  
  .carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* aseguramos ancho completo */
  }
  
  .carousel-slide {
    min-width: 100%; /* cada slide ocupa todo el ancho */
    box-sizing: border-box;
  }
  
  .carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover; /* ajusta la imagen dentro */
  }
  
  /* Botones */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
  }
  
  .carousel-btn:hover {
    background: rgba(0,0,0,0.8);
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
  
  /* Dots */
  .carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    width: 100%;
  }
  
  .carousel-dots span {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .carousel-dots .active {
    background: #28a745; /* Verde MRC */
  }
  

/* Productos Destacados */
.productos-destacados {
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    text-align: center;
    cursor: pointer;
}
.productos-destacados h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}
.grid-productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.card-producto {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.card-producto img {
    width: 100%;
    border-radius: 8px;
}

/* Categorías */
.categorias {
    padding: 4rem 2rem;
    text-align: center;
}
.categorias h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
    padding: 1rem;
}

.categoria {
    background: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 200px;
}

.categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.categoria img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.categoria p {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #333;
}


/* Ofertas */
.ofertas {
    padding: 2rem;
    background: #fafafa;
    border-radius: 12px;
    margin-top: 2rem;
}

.ofertas h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* GRID */
.grid-ofertas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

/* TARJETA DE OFERTA */
.oferta {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 250px;
}

.oferta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* IMAGEN Y ETIQUETA */
.imagen-contenedor {
    position: relative;
}

.imagen-contenedor img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.etiqueta-descuento {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e63946;
    color: #fff;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* INFO */
.oferta .info {
    padding: 1rem;
    text-align: center;
}

.oferta .descripcion {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.precio {
    font-size: 1rem;
    color: #222;
}

.precio-anterior {
    text-decoration: line-through;
    color: #888;
    margin-right: 5px;
}

.precio-oferta {
    color: #27ae60;
    font-weight: bold;
}

/* Testimonios */
.testimonios {
    padding: 4rem 2rem;
    text-align: center;
}
.grid-testimonios {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.testimonio {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* CTA Final */
.cta-final {
    padding: 4rem 2rem;
    background-color: #333;
    color: white;
    text-align: center;
}
.cta-final h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-final p {
    margin-bottom: 2rem;
}

/* Botones verdes */
.btn-verde {
    padding: 10px 20px;
    font-size: 30px;
    font-weight: 500;
    color: white;
    background: linear-gradient(45deg, #28a745, #81c784);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.btn-verde:hover {
    background: linear-gradient(45deg, #218838, #66bb6a);
    transform: translateY(-2px);
}
.btn-verde:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/*================================ about ====================================================*/
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: 120px;
}

/* Texto de About */
.about-text {
    font-family:  Helvetica, sans-serif;
    flex: 1 1 400px;
    color: #222;
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-family:  Helvetica, sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-text .intro {
    font-family:  Helvetica, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-list {
    font-family:  Helvetica, sans-serif;
    list-style: disc inside;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.commitment {
    font-family:  Helvetica, sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.cta-about h3 {
    font-family:  Helvetica, sans-serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #28a745; /* verde MRC */
}

/* Contenedor de imágenes */
.about-images {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.about-images .img-box img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, filter 0.3s;
}

.about-images .img-box img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Animaciones al aparecer */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* JS para animación automática al cargar página */
@media (prefers-reduced-motion: no-preference) {
    .about-text, .img-box {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s forwards;
    }

    .about-text { animation-delay: 0.2s; }
    .b1 { animation-delay: 0.4s; }
    .b2 { animation-delay: 0.6s; }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about {
        flex-direction: column;
        align-items: center;
    }

    .about-text, .about-images {
        flex: 1 1 100%;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-text .intro {
        font-size: 1.3rem;
    }

    .about-list li {
        font-size: 1.1rem;
    }

    .commitment {
        font-size: 1.2rem;
    }

    .cta-about h3 {
        font-size: 1.3rem;
    }
}

/*================================ footer ==================================================*/
footer {
    background-color: rgb(230, 234, 242); /* fondo oscuro */
    color: black;
    padding: 3rem 2rem;
    font-family: 'Arial', sans-serif;
}

/* Links de contacto */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links div {
    flex: 1 1 200px; /* flexible y con mínimo de 200px */
}

.footer-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.footer-links a img {
    width: 24px;
    margin-right: 10px;
}

.footer-links a span {
    font-size: 14px;
}

.footer-links a:hover {
    color: #28a745; /* verde MRC al hover */
}

/* Redes sociales */
.footer-redes {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-redes a img {
    width: 36px;
    transition: transform 0.3s, filter 0.3s;
}

.footer-redes a:hover img {
    transform: scale(1.2);
    filter: brightness(1.2);
}

/* Copyright */
.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

/*===================================== login =======================================*/
/* Contenedor */
.login-container {
    max-width: 500px;
    margin: 5rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-top: 200px;
}

/* Título */
.login-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

/* Labels */
.login-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: left;
    color: #444;
}

/* Inputs */
.login-container input {
    width: 95%;
    padding: 0.8rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

.login-container input:focus {
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.4);
    outline: none;
}

/* Botón */
.login-container button {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #28a745, #218838);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.login-container button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .login-container h3 {
        font-size: 1.5rem;
    }
}
/*======================================== registro ============================================*/
/* ==== Registro ==== */
.registro-container {
    max-width: 90%;
    margin: 50px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 200px;
    display: flex;
    flex-direction: row; /* apila los divs */
    justify-content: center; /* centra verticalmente */
    align-items: center; /* centra horizontalmente */
    justify-content: center;/* centra vertical si quieres */
    gap: 2rem;              /* espacio entre bloques */
}

.registro-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #222;
}

#contenedor-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#datos1, #datos2 {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input, select, textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40,167,69,0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-container, .checkbox-container {
    font-size: 14px;
    color: #444;
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

button:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: scale(1.02);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 20px 0;
}

#registro-codigo {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

#registro-codigo label {
    font-size: 14px;
}

@media (max-width: 768px) {
    #contenedor-datos {
        flex-direction: column;
    }
}

/*=============================================== Productos ==================================================*/
/* Título */
.resultado-productos{
    margin-top: 200px;
}

.cantidad-resultados {
    margin-left: 20px;
    font-size: 1.8rem;
    color: #222;
    font-weight: 600;
}

/* Mensaje (sin resultados o cantidad) */
.descripcion-producto {
    margin-left: 20px;
    font-size: 1.1rem;
    color: #555;
}

.codigo-producto {
    margin-left: 20px;
    font-size: 1.1rem;
    color: #555;
}

/* Contenedor de productos */
#productos-busqueda {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

/* Caja de cada producto */
.caja-productos-mini {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caja-productos-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* Imagen */
.img-thumb {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

/* Texto */
.caja-productos-mini p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
    color: #333;
}

.caja-productos-mini p:first-of-type {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
}

.caja-productos-mini p:last-of-type {
    font-size: 0.85rem;
    color: #666;
}
/*================================================== contacto ============================================*/
/* Contenedor principal */
.contact_section {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    font-family: 'Roboto', Arial, sans-serif;
    color: #222;
    margin-top: 175px;
}

/* Título */
.contact_section .heading_container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #28a745; /* verde MRC */
}

/* Flex container */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Formulario */
.form-container {
    flex: 1 1 350px;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.form-container form div {
    margin-bottom: 1rem;
}

.form-container input,
.form-container .message-box {
    width: 90%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-container input:focus,
.form-container .message-box:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 5px rgba(40,167,69,0.4);
}

/* Botón */
.form-container button {
    background: linear-gradient(90deg, #28a745, #1e7e34);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-container button:hover {
    background: linear-gradient(90deg, #1e7e34, #28a745);
    transform: translateY(-2px);
}

/* Mapas */
.map-container {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-container h3 {
    margin-bottom: 1rem;
    color: #28a745;
}

.map-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-responsive {
    flex: 1 1 220px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.map-responsive p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Iframe */
.map-responsive iframe {
    width: 100%;
    height: 200px;
    border: 0;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        align-items: center;
    }

    .map-row {
        flex-direction: column;
    }

    .map-responsive iframe {
        height: 180px;
    }
}

/*================================================= producto ===================================================*/
#navegacion-producto{
    margin-top: 400px;
}

/* Contenedor principal */
#main-producto {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1100px;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: 200px;
}

/* Imagen */
#imagen {
    flex: 1 1 400px;
    max-width: 500px;
    position: relative;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

#imagen img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

#imagen:hover img {
    transform: scale(1.05);
}

/* Zoom lens */
.zoom-lens {
    display: none;
    position: absolute;
    border: 2px solid #28a745;
    opacity: 0.4;
    background: rgba(40, 167, 69, 0.2);
    cursor: crosshair;
}

/* Información */
#informacion {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

#informacion p {
    margin: 0;
    color: #333;
}

/* Títulos */
h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #28a745;
    text-align: center;
}

/* Botones */
button {
    background: linear-gradient(90deg, #28a745, #1e7e34);
    border: none;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

button:hover {
    background: linear-gradient(90deg, #1e7e34, #28a745);
    transform: translateY(-2px);
}

/* Input cantidad */
#cantidad {
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 1.1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 120px !important;
}

/* Botón atrás */
.btn-primary {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin: 1rem 0;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    #main-producto {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #informacion {
        align-items: center;
    }

    #cantidad {
        width: 80% !important;
    }
}

/*============================================== service ===============================================*/
/* Sección general */
.service_section {
    padding: 60px 20px;
    background: #f9f9f9;
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: 200px;
}

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

.heading_container h2 {
    font-size: 2.2rem;
    color: #28a745;
    font-weight: 700;
    margin: 0;
}

/* Contenedor de productos */
.service_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* Caja individual */
.box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Imagen */
.img-box {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.img-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.box:hover .img-box img {
    transform: scale(1.08);
}

/* Detalles */
.detail-box h5 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.detail-box p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Botón general (opcional) */
.btn-box {
    text-align: center;
    margin-top: 30px;
}

.btn-box a {
    background: linear-gradient(90deg, #28a745, #1e7e34);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-box a:hover {
    background: linear-gradient(90deg, #1e7e34, #28a745);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .heading_container h2 {
        font-size: 1.8rem;
    }

    .detail-box h5 {
        font-size: 1.1rem;
    }

    .detail-box p {
        font-size: 0.95rem;
    }
}

/* ======================== MEJORAS RESPONSIVE GLOBALES ======================== */

/* Corrige el pseudo-elemento de .hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* General */
body {
  overflow-x: hidden;
}

/* --- NAV --- */
@media (max-width: 1024px) {
  nav {
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 10px 20px;
  }

  .elemento-nav {
    gap: 15px;
  }

  .elemento-nav a {
    font-size: 20px;
  }
}

/* Menú móvil */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 15px;
  }

  .busqueda-nav {
    width: 100%;
    margin-top: 10px;
  }

  .elemento-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .elemento-nav a {
    font-size: 18px;
  }

  .botones-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}

/* --- HERO --- */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    margin-top: 150px;
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}

/* --- PRODUCTOS Y SECCIONES --- */
@media (max-width: 600px) {
  .grid-productos,
  .grid-ofertas,
  .grid-categorias,
  .grid-testimonios {
    display: grid;
    grid-template-columns: 1fr;
  }

  .productos-destacados h2,
  .ofertas h2,
  .categorias h2 {
    font-size: 1.6rem;
  }

  .card-producto,
  .oferta,
  .categoria {
    width: 90%;
    margin: 0 auto;
  }
}

/* --- FOOTER --- */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-redes {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-copyright {
    font-size: 12px;
  }
}

/* --- AJUSTES FINALES PARA MÓVILES PEQUEÑOS --- */
@media (max-width: 400px) {
  h1, h2, h3 {
    font-size: 1.3rem;
  }

  .btn-verde, .botones-nav button {
    font-size: 16px;
    padding: 8px 14px;
  }

  input, textarea, select {
    font-size: 14px;
  }

  .login-container, .registro-container {
    margin-top: 120px;
  }
}


/* ======================== NAV CON MENÚ HAMBURGUESA ======================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(230, 234, 242);
  padding: 15px 25px;
  z-index: 1000;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-nav img {
  height: 45px;
}

/* Contenedor del contenido principal */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 25px;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  width: 28px;
  height: 22px;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #28a745;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Estado animado */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* -------------------- VERSIÓN MÓVIL -------------------- */
@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    background: rgb(230, 234, 242);
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
    border-radius: 0 0 15px 15px;
  }

  .nav-content.active {
    height: 85vh;
    overflow-y: auto;
    padding: 15px;
  }

  .busqueda-nav {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .busqueda-nav label {
    font-size: 14px;
  }

  .busqueda-nav input {
    width: 100%;
  }

  .elemento-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .elemento-nav a {
    font-size: 18px;
    color: #28a745;
  }

  .botones-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .botones-nav button {
    width: 100%;
  }
}
/* =============== */
/* ================== TWEAKS ADICIONALES PARA MÓVIL ================== */
@media (max-width: 768px) {
    /* Ajuste general de títulos */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
  
    /* Secciones con mucho margen superior */
    .hero,
    .about,
    .login-container,
    .registro-container,
    .resultado-productos,
    #main-producto,
    .contact_section,
    .service_section {
      margin-top: 40px;
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    /* Tarjetas y grids más manejables */
    .card-producto,
    .oferta,
    .categoria,
    .testimonio,
    .caja-productos-mini {
      width: 100%;
      max-width: 350px;
    }
  
    #productos-busqueda {
      grid-template-columns: 1fr;
      padding: 1rem;
    }
  
    /* Formularios más cómodos */
    .login-container,
    .registro-container,
    .form-container {
      max-width: 100%;
      margin-left: 1rem;
      margin-right: 1rem;
    }
  }
  
  /* Móviles muy pequeños */
  @media (max-width: 400px) {
    .hero-text h1 {
      font-size: 1.6rem;
    }
  
    .hero-text p {
      font-size: 1rem;
    }
  
    .btn-verde,
    .botones-nav button {
      font-size: 14px;
      padding: 8px 10px;
    }
  }

  /* ========= */
  /* Ocultar contenido del menú en móvil */
@media (max-width: 900px) {
    #nav-content {
      display: none;
      flex-direction: column;
      width: 100%;
      background: rgb(230, 234, 242);
      padding: 10px 20px;
      border-radius: 0 0 20px 20px;
    }
  
    /* Cuando se abre */
    #nav-content.nav-open {
      display: flex;
    }
  
    /* Estilo del icono hamburguesa */
    .menu-toggle {
      display: flex;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }
  
    .menu-toggle span {
      width: 28px;
      height: 3px;
      background: #333;
      transition: 0.3s;
    }
  
    /* Animación a “X” */
    .menu-toggle.open span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }
  
    /* Alinear elementos dentro del menú */
    .busqueda-nav,
    .elemento-nav,
    .botones-nav {
      margin-bottom: 15px;
      text-align: left;
    }
  
    .elemento-nav a {
      display: block;
      margin: 6px 0;
      font-size: 1.1rem;
    }
  }

  @media (max-width: 768px) {

    .hero,
    .about,
    .login-container,
    .registro-container,
    .resultado-productos,
    #main-producto,
    .contact_section,
    .service_section {
        margin-top: 50px !important;
    }
  }
   
  /* --- Ajuste del hero en móvil: un poco más abajo del nav --- */
@media (max-width: 768px) {

    /* Reduce el padding del body en móvil */
    body {
      padding-top: 75px;       /* antes 90px */
    }
  
    /* Ajusta el margin-top del hero solo en móvil */
    .hero {
      margin-top: 25px !important;   /* espacio justo debajo del nav */
    }
  }

  /* ================== AJUSTES REGISTRO PARA MÓVIL ================== */
@media (max-width: 768px) {

    /* Contenedor principal del registro */
    .registro-container {
        max-width: 100%;
        margin: 100px auto 40px;   /* baja un poco desde el nav, pero sin 200px */
        padding: 20px 15px;
        flex-direction: column;    /* TODO en columna en vez de fila */
        align-items: stretch;      /* que ocupe todo el ancho */
        gap: 1.5rem;
    }
  
    .registro-container h2 {
        font-size: 22px;
        margin-bottom: 15px;
        text-align: center;
    }
  
    /* Contenedor de los dos bloques de datos */
    #contenedor-datos {
        flex-direction: column;
        gap: 16px;
    }
  
    /* Cada bloque de datos ocupa todo el ancho */
    #datos1,
    #datos2 {
        flex: 1 1 100%;
    }
  
    /* Inputs, selects y textarea a ancho completo dentro del registro */
    .registro-container input,
    .registro-container select,
    .registro-container textarea {
        width: 100%;
        box-sizing: border-box;
    }
  
    /* Radio y checkbox más cómodos */
    .radio-container,
    .checkbox-container {
        font-size: 13px;
        line-height: 1.4;
    }
  
    .checkbox-container label {
        align-items: flex-start;
    }
  
    /* Bloque de registro por código más separado visualmente */
    #registro-codigo {
        margin-top: 15px;
        padding: 15px;
    }
  
    /* Botones grandes y a todo el ancho en móvil */
    .registro-container button {
        width: 100%;
        margin-top: 10px;
    }
  }
  
  /* Móviles muy pequeños */
  @media (max-width: 400px) {
    .registro-container {
        margin-top: 90px;   /* en lugar de los 120/200 que tenías */
        padding: 15px 10px;
    }
  
    .registro-container h2 {
        font-size: 20px;
    }
  }
  
  .link-usuario {
    margin-right: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.link-usuario:hover {
    color: #2563eb;
}

/* Estado sin sesión */
.no-login {
  text-align: center;
}

.no-login h2 {
  margin: 0 0 0.4rem;
  color: #111827;
  font-size: 1.3rem;
}

.no-login p {
  margin: 0 0 0.9rem;
  color: #6b7280;
}

.chat-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366; /* tipo WhatsApp; cámbialo si quieres */
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

.chat-float img {
  max-width: 60%;
  max-height: 60%;
}

.chat-float:hover {
  transform: scale(1.05);
  transition: transform 0.15s ease-in-out;
}
