* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #0f0f0f;
}

/* asegura que tu contenido quede encima */
body {
    position: relative;
    z-index: 1;
}

h1{
    text-shadow:
  -1px -1px 1px #aaa,
  0px 4px 1px rgba(233, 8, 8, 0.5),
  4px 4px 5px rgba(3, 26, 235, 0.7),
  0px 0px 7px rgba(9, 178, 245, 0.4);
}

body {
    padding: 20px;
    background: #ad74db;
 
}

.title {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: -20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

/* Detalle */
.product-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.product-detail img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    text-align: left;
}

.info {
    flex: 1;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: left;
}


.card img {
    width: 100%;
    height: 220px;              /* altura controlada */
    object-fit: contain;        /* NO recorta */
    background: #f2f2f2;        /* relleno elegante */
    border-radius: 10px;
}

/* Evita estiramiento en pantallas grandes */
.card {
   
    margin: 10px;
}


.grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-detail img {
    max-width: 420px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f5f5f5;
    text-align: left;
}

/* Mobile */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        text-align: center;
    }
}


/* HEADER */
header {
    width: 100%;
    background: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

header .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

header .logo h1 {
    color: #fff;
    font-size: 1.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

header nav ul li a:hover {
    color: #00f0ff;
}

/* BURGER MENU para mobile */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 0px;
        right: 0;
        background: rgba(0,0,0,0.9);
        width: 100%;
        height: calc(120vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        font-size: 20px;
    }

    nav ul.active {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    .linea{
        width: 100%;
        display: block;
        background-color: rgb(249, 252, 252);
        height: 3px;
    }
}



/* SECCIÓN NOSOTROS */
.about-section {
    max-width: 1200px;
    margin: 120px auto 50px; /* margen top deja espacio para header */
    padding: 20px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #f5f3f3;
    font-size: 1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
}


.container-boton{
    background-color: #2e6329;
    border: 1px solid #fff;
    position: fixed;
    z-index: 999;
    border-radius: 50%;
    bottom: 20px;
    right: 25px;
    padding: 25px;
    transition: ease 0.3s;
    animation: efecto 1.2s infinite;
}

.container-boton:hover{
    transform: scale(1.1);
    transition: 0.3s;
}

.boton{
    width: 25px;
    transition: ease 1s;
}

@keyframes efecto{
    0%{
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.85);
    }
    100%{
        box-shadow: 0 0 0 25px rgba(0, 0, 0, 0);
    }
}

/* ===== CARUSEL SOLO EN MÓVIL ===== */
/* ===== MOBILE: CARUSEL ===== */
@media (max-width: 600px) {
    .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 15px;
    }

    .grid::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 95%;
        scroll-snap-align: center;
        max-width: none;
    }
    
     h1{
        font-size: 25px;
    }
}



/* ===== TABLET: GRID NORMAL ===== */
@media (min-width: 531px) and (max-width: 1024px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .card {
        max-width: 100%;
        margin: 0;
    }
}
@media (min-width: 1024px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .card {
        max-width: 100%;
        margin: 0;
    }
}


/* ===== LAPTOP / DESKTOP ===== */
@media (min-width: 1025px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


