/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

.portfolio-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.portfolio-header h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 10px;
}

.portfolio-header p {
    color: #666;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Grid 3x3 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta individual */
.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Imagen base */
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Overlay oscuro (oculto por defecto) */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 30, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Efectos Hover */
.card:hover .card-img {
    transform: scale(1.1);
}

.card:hover .card-overlay {
    opacity: 1;
}

/* Tipografía del overlay */
.card-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-price {
    color: #00d2ff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Contenedor del botón de PayPal */
.paypal-button-container {
    width: 100%;
    max-width: 200px;
    /* Evita que el botón de PayPal se active si no está visible */
    pointer-events: auto; 
}