.designs-section {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    background-color: #fdfdfd;
    color: #1a1a1a;
}

.designs-hero {
    text-align: center;
    margin-bottom: 60px;
}

.designs-hero h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    color: #333;
}

.designs-hero p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

/* Grid de diseños */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* cards más anchas */
    gap: 12px;
}

/* Card de diseño */
.design-card {
    max-height: 32vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* fuerza que botón quede abajo */
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius:10px;
}

.design-card img {
    width: auto;
    height: 400px;
    display: block;
    transition: transform 0.3s ease;
}

.design-card:hover{
   transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Overlay siempre visible */
.design-overlay.always-visible {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    color: #fff;
}

.design-overlay.always-visible h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Overlay extra (hover) */
.design-overlay.extra-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-card:hover .design-overlay.extra-text {
    opacity: 1;
}

.design-overlay.extra-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .designs-section {
       padding: 12px 12px;
    }

    .designs-hero h3 {
        font-size: 2rem;
    }

    .designs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
        grid-template-rows: repeat(2, auto);   /* 2 filas automáticas */
        gap: 20px;                             /* espacio entre cards */
    }
}

@media (max-width: 768px) {
   .designs-grid {
        grid-template-columns: 1fr;
    }
    .designs-section {
        padding: 12px 0px;
    }
}

@media (max-width: 480px) {
    .designs-hero h2 {
        font-size: 1.8rem;
    }

    .designs-hero p {
        font-size: 1rem;
    }
}
