/* ==========================================================================
   CardNet.ec - Componentes UI de Taller Corporativo (components.css)
   ========================================================================== */

/* 1. Botones Sobrios y Rectangulares (Estilo Editorial Premium) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm); /* Bordes casi rectos, formales */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--dark);
    color: var(--light);
}

.btn-primary:hover {
    background-color: var(--dark-alt);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--surface-light);
    border-color: var(--dark);
}

.btn-accent {
    background-color: var(--primary);
    color: var(--light);
}

.btn-accent:hover {
    background-color: var(--primary-hover);
}

.btn-white {
    background-color: var(--light);
    color: var(--dark);
    border-color: var(--border);
}

.btn-white:hover {
    background-color: var(--surface-light);
    border-color: var(--dark);
}

/* 2. Barra de Garantías Corporativas */
.satisfaction-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    background-color: var(--light);
}

.satisfaction-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.satisfaction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-grow: 1;
    justify-content: center;
}

.satisfaction-item strong {
    color: var(--dark);
}

.satisfaction-icon {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* 3. Cuadrícula de Acabados (Con Foco en Grabado Láser) */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.brand-card {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-fast);
}

.brand-card:hover {
    border-color: var(--dark);
    background-color: var(--surface-light);
}

/* Destacado del Láser */
.brand-card.laser-focus {
    border-color: var(--dark);
    background-color: var(--surface-light);
    position: relative;
    overflow: hidden;
}

.brand-card.laser-focus::before {
    content: 'Principal';
    position: absolute;
    top: 4px;
    right: -24px;
    background-color: var(--primary);
    color: var(--light);
    font-size: 0.52rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1px 24px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.brand-card-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.brand-card-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 4. Tarjetas de Artículos Personalizables (Estilo Galería Editorial) */
.product-card {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.product-card-image-wrap {
    position: relative;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid var(--border);
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
}

.product-card-price {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.product-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-card-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    border-bottom: 1px solid transparent;
}

.product-card-link:hover {
    border-color: var(--dark);
}

.product-card-link::after {
    content: '→';
    transition: var(--transition-fast);
}

.product-card:hover .product-card-link::after {
    transform: translateX(3px);
}

/* 5. Formularios Corporativos */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--dark);
    background-color: var(--light);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 6. Acordeones Sobrios */
.faq-item {
    border-bottom: 1px solid var(--border);
    background-color: var(--light);
}

.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--dark);
}

.faq-icon {
    width: 10px;
    height: 10px;
    position: relative;
    color: var(--text-muted);
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: var(--transition-fast);
}

.faq-icon::before {
    top: 4px;
    left: 0;
    width: 10px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 4px;
    width: 2px;
    height: 10px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.faq-content p {
    padding: 0 0 1.25rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 7. Placeholders de Imagen / Renders Finitos */
.image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: var(--surface-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.image-placeholder-inner {
    position: absolute;
    inset: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    border: 1px solid var(--border);
}

.image-placeholder.theme-green .image-placeholder-inner {
    background-color: var(--surface-light);
}

.image-placeholder.theme-blue .image-placeholder-inner {
    background-color: var(--surface-light);
}

.image-placeholder.theme-gray .image-placeholder-inner {
    background-color: var(--surface-light);
}

.image-placeholder-icon {
    width: 32px;
    height: 32px;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    fill: none;
    margin-bottom: 0.5rem;
}

.image-placeholder-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    padding: 0 10px;
}

.image-placeholder-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 8. Botón de WhatsApp Flotante Redondeado */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}
