@import url('../main.css');

/* ==== Sección de Torneos ===== */
.section-torneos {
    max-width: 1200px;
    margin: 5% auto;
    padding: 3rem 1rem;
    text-align: center;
}

.section-torneos h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--color-primary-deep);
}

.section-torneos p {
    font-size: 1rem;
    color: var(--color-stone);
    margin-bottom: 3rem;
}

/* ==== Grid de torneos ==== */
.torneos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* ==== Tarjetas de torneos ==== */
.torneo-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.torneo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.torneo-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.torneo-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--color-primary-deep);
}

.torneo-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==== Sección Información del Torneo ==== */
.product {
    padding: 8rem 1rem;
}

.product.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

/* ==== Imagen del producto ==== */
.product-media {
    max-width: 500px;
    margin: 0 auto;
}

.product-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* ==== Información del producto ==== */
.product-details__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars svg {
    width: 18px;
    height: 18px;
    fill: #facc15;
}

.rating-info,
.rating-link {
    font-size: 0.9rem;
    color: #555;
}

.rating-link {
    text-decoration: underline;
    color: #111;
}

/* ==== Botones ==== */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.product-actions a {
    background: linear-gradient(135deg, #6CA660, #4E8748);
    color: #fff;
    border: 1px solid #6CA660;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-actions a:hover {
    background: linear-gradient(135deg, #5a9452, #3f6f3a);
    color: var(--sand);
}

.btn--secondary {
    background: #fff;
    border: 1px solid #ddd;
    color: #111;
}

.btn--secondary:hover {
    background: #f3f3f3;
}

.btn--primary {
    background: #2563eb;
    color: #fff;
}

.btn--primary:hover {
    background: #1d4ed8;
}

/* ==== Divider ==== */
.divider {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

/* ==== Descripción ==== */
.product-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* ==== Responsividad ==== */

/* Pantallas grandes (mayor legibilidad) */
@media (min-width: 1201px) {
    .section-torneos h2 {
        font-size: 2.2rem;
    }

    .torneo-card img {
        height: 320px;
    }

    .banner {
        height: 80vh;
    }

    .banner-content h1 {
        font-size: 3.5rem;
    }

    .banner-content p {
        font-size: 1.3rem;
    }

    .banner-content a {
        font-size: 1rem;
    }
}

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .section-torneos {
        padding: 2.5rem 1rem;
    }

    .section-torneos h2 {
        font-size: 1.8rem;
    }

    .section-torneos p {
        font-size: 0.95rem;
    }

    .torneo-card img {
        height: 250px;
    }

    .banner {
        height: 65vh;
    }

    .banner-content h1 {
        font-size: 2.6rem;
    }

    .banner-content p {
        font-size: 1.1rem;
    }

    .product {
        padding: 6rem 1rem;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: justify;
    }

    .product-media {
        max-width: 450px;
    }

    .product-details__title {
        font-size: 1.4rem;
    }

    .product-price {
        font-size: 1.8rem;
    }
}

/* Móviles grandes (hasta 768px) */
@media (max-width: 768px) {
    .section-torneos {
        margin: 8% auto;
        padding: 2rem 1rem;
    }

    .section-torneos h2 {
        font-size: 1.6rem;
    }

    .section-torneos p {
        font-size: 0.9rem;
    }

    .torneo-card {
        padding: 0.9rem;
    }

    .torneo-card img {
        height: 220px;
    }

    .banner {
        height: 55vh;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .banner-content a {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }

    .product {
        padding: 4rem 1rem;
    }

    .product-layout {
        gap: 2rem;
    }

    .product-details__title {
        font-size: 1.3rem;
    }

    .product-price {
        font-size: 1.6rem;
    }

    .product-actions a {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    .section-torneos {
        padding: 2rem 0.5rem;
    }

    .section-torneos h2 {
        font-size: 1.4rem;
    }

    .section-torneos p {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .torneo-card img {
        height: 400px;
    }

    .torneo-card p {
        font-size: 0.85rem;
    }

    .banner {
        height: 50vh;
    }

    .banner-content {
        padding: 10px;
    }

    .banner-content h1 {
        font-size: 1.8rem;
    }

    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .banner-content a {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .product {
        padding: 3rem 0.5rem;
    }

    .product-details__title {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.4rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-actions a {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
    }
}