﻿/* Estilos para la página de categoría de Pasamanos.
   Basado en categoriasvigas.css para consistencia.
*/

/* Reset básico y estilos generales del cuerpo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos para el Breadcrumb */
.breadcrumb-container {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    border-radius: 0 0 8px 8px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    font-size: 0.95em;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '\203A';
    margin: 0 8px;
    color: #999;
    font-weight: bold;
}

.breadcrumb li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.breadcrumb li a:hover {
    color: #e74c3c;
}

.breadcrumb li:last-child {
    color: #2c3e50;
    font-weight: 600;
}

/* Contenido Principal de la Categoría */
.category-main {
    padding: 40px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 50px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 40px 30px;
}

.category-title {
    font-size: 3.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.category-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: #e74c3c; /* Rojo vibrante */
    margin: 15px auto 0;
    border-radius: 2px;
}

.category-description {
    font-size: 1.15em;
    color: #555;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.8;
}

/* Sección de la cuadrícula de productos */
.product-grid-section {
    text-align: center;
    margin-bottom: 50px;
}

.product-grid-section h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    display: inline-block;
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 0 10px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 350px;
    margin: 0 auto;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin: 15px 10px 10px;
    flex-grow: 1;
}

.product-card p {
    font-size: 0.95em;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.6;
}

/* Botón dentro de la tarjeta */
.btn-product-card {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.2);
    margin-bottom: 15px;
    align-self: center;
    width: fit-content;
}

.btn-product-card:hover {
    background-color: #c0392b; /* Rojo más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.3);
}

/* Sección de Llamada a la Acción */
.content-block {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.content-block h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    display: inline-block;
}

.content-block p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: #27ae60;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    background-color: #229a56;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

.btn-secondary {
    background-color: #e74c3c;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-secondary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer .social-links a {
    color: #ffffff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #e74c3c;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .product-cards-container {
        /* 5 columnas en desktop, como en el original */
        grid-template-columns: repeat(5, 1fr); 
    }
}

@media (max-width: 767px) {
    .category-title {
        font-size: 2.5em;
    }
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .action-buttons .btn {
        width: 80%;
        margin: 0 auto;
    }
}