/* --- Estilos para Plantilla Frisbee v4.0 - Rediseño basado en imagen --- */

:root {
    --ckfylt25-frisbee-primary: #6366f1; /* Indigo en lugar de verde */
    --ckfylt25-frisbee-primary-dark: #4f46e5;
    --ckfylt25-frisbee-secondary: #f59e0b; /* Amber en lugar de naranja */
    --ckfylt25-frisbee-secondary-dark: #d97706;
    --ckfylt25-frisbee-bg: #f8fafc;
    --ckfylt25-frisbee-card-bg: #ffffff;
    --ckfylt25-frisbee-border-color: #e2e8f0;
    --ckfylt25-frisbee-text-primary: #1e293b;
    --ckfylt25-frisbee-text-secondary: #64748b;
    --ckfylt25-frisbee-accent-blue: #3b82f6;
    --ckfylt25-frisbee-error-color: #ef4444;
}

/* Estilos para campos con error */
.input-text.error {
    border-color: var(--ckfylt25-frisbee-error-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

body.ckfylt25-template-frisbee {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--ckfylt25-frisbee-bg);
    color: var(--ckfylt25-frisbee-text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Wrapper principal */
.ckfylt25-frisbee-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.ckfylt25-frisbee-header {
    background-color: #1e293b;
    padding: 16px 0;
    border-bottom: 1px solid #334155;
    width: 100%;
}

.ckfylt25-frisbee-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ckfylt25-frisbee-logo .logo-text {
    color: var(--ckfylt25-frisbee-primary);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* Barra de Advertencia */
.ckfylt25-frisbee-alert-bar {
    background: linear-gradient(90deg, var(--ckfylt25-frisbee-primary) 0%, var(--ckfylt25-frisbee-primary-dark) 100%);
    padding: 12px 0;
    color: white;
    width: 100%;
}

.alert-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-arrow {
    font-size: 16px;
    font-weight: bold;
}

/* Contenedor Principal */
.ckfylt25-frisbee-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    flex: 1;
}

.ckfylt25-frisbee-container .checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .ckfylt25-frisbee-container .checkout {
        grid-template-columns: 1fr 400px;
    }
}

/* Secciones principales */
.ckfylt25-frisbee-section {
    background: var(--ckfylt25-frisbee-card-bg);
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ckfylt25-frisbee-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--ckfylt25-frisbee-text-primary);
}

/* Express Checkout */
.ckfylt25-frisbee-express-checkout h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.express-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.express-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 8px;
    background: var(--ckfylt25-frisbee-card-bg);
    color: var(--ckfylt25-frisbee-text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.express-btn:hover {
    border-color: var(--ckfylt25-frisbee-primary);
    background: #f8fafc;
}

.gpay-btn {
    background: #000;
    color: white;
    border-color: #000;
}

.gpay-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.paypal-btn {
    background: var(--ckfylt25-frisbee-secondary);
    color: white;
    border-color: var(--ckfylt25-frisbee-secondary);
}

.paypal-btn:hover {
    background: var(--ckfylt25-frisbee-secondary-dark);
    border-color: var(--ckfylt25-frisbee-secondary-dark);
}

.express-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.express-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ckfylt25-frisbee-border-color);
}

.express-divider span {
    background: var(--ckfylt25-frisbee-card-bg);
    padding: 0 16px;
    color: var(--ckfylt25-frisbee-text-secondary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Formularios */
.ckfylt25-template-frisbee .form-row {
    margin-bottom: 16px;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.ckfylt25-template-frisbee .form-row-first,
.ckfylt25-template-frisbee .form-row-last {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}

.ckfylt25-template-frisbee .form-row-last {
    float: right !important;
}

.ckfylt25-template-frisbee .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.ckfylt25-template-frisbee .input-text,
.ckfylt25-template-frisbee select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    background-color: #fff;
    transition: all 0.2s;
}

.ckfylt25-template-frisbee .input-text:focus,
.ckfylt25-template-frisbee select:focus {
    border-color: var(--ckfylt25-frisbee-accent-blue);
    box-shadow: 0 0 0 1px var(--ckfylt25-frisbee-accent-blue);
    outline: none;
}

/* Checkbox personalizado */
.checkbox-row {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ckfylt25-frisbee-text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--ckfylt25-frisbee-primary);
    border-color: var(--ckfylt25-frisbee-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Métodos de Envío */
.shipping-methods {
    margin-top: 16px;
}

.shipping-methods ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-methods li {
    border: 2px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.shipping-methods li:hover {
    border-color: var(--ckfylt25-frisbee-primary);
    background: #f8fafc;
}

.shipping-methods li:has(input:checked) {
    border-color: var(--ckfylt25-frisbee-primary);
    background: #f0f9ff;
}

.shipping-methods li label {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    font-weight: 500;
}

.shipping-methods li input[type="radio"] {
    display: none;
}

.shipping-methods li .amount {
    margin-left: auto;
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
}

/* Pago */
.payment-notice {
    color: var(--ckfylt25-frisbee-text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.privacy-notice {
    color: var(--ckfylt25-frisbee-text-secondary);
    font-size: 12px;
    margin: 24px 0;
    line-height: 1.5;
}

.guarantee-section {
    margin-top: 32px;
}

.guarantee-notice {
    text-align: center;
    font-size: 14px;
    color: var(--ckfylt25-frisbee-text-secondary);
    margin-bottom: 24px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-logos img {
    height: 24px;
    opacity: 0.7;
}

.guarantee-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .guarantee-badges {
        grid-template-columns: 1fr 1fr;
    }
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--ckfylt25-frisbee-border-color);
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: var(--ckfylt25-frisbee-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-content strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
    margin-bottom: 2px;
}

.badge-content span {
    font-size: 12px;
    color: var(--ckfylt25-frisbee-text-secondary);
}

/* Sidebar */
.ckfylt25-frisbee-sidebar {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.ckfylt25-frisbee-cart-summary {
    background: var(--ckfylt25-frisbee-card-bg);
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ckfylt25-frisbee-cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--ckfylt25-frisbee-text-primary);
}

/* Productos del carrito */
.ckfylt25-frisbee-product-list {
    margin-bottom: 24px;
}

.ckfylt25-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ckfylt25-frisbee-border-color);
}

.ckfylt25-cart-item:last-child {
    border-bottom: none;
}

.ckfylt25-cart-item__image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--ckfylt25-frisbee-border-color);
}

.ckfylt25-cart-item__details {
    flex-grow: 1;
}

.ckfylt25-cart-item__name {
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
    margin-bottom: 4px;
    display: block;
}

.ckfylt25-cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    background: var(--ckfylt25-frisbee-card-bg);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--ckfylt25-frisbee-primary);
    color: white;
    border-color: var(--ckfylt25-frisbee-primary);
}

.qty-display {
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
    min-width: 20px;
    text-align: center;
}

.ckfylt25-cart-item__price {
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
    font-size: 16px;
}

/* Totales */
.cart-totals {
    border-top: 2px solid var(--ckfylt25-frisbee-border-color);
    padding-top: 20px;
    margin-bottom: 24px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ckfylt25-frisbee-text-secondary);
}

.total-row.total-final {
    font-size: 18px;
    font-weight: 700;
    color: var(--ckfylt25-frisbee-text-primary);
    border-top: 1px solid var(--ckfylt25-frisbee-border-color);
    padding-top: 12px;
    margin-top: 12px;
}

.total-row .amount {
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
}

/* Beneficios */
.benefits-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ckfylt25-frisbee-text-secondary);
    line-height: 1.5;
}

.benefit-icon {
    color: var(--ckfylt25-frisbee-primary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Métodos de Pago */
#payment ul.payment_methods {
    padding: 0;
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 8px;
    overflow: hidden;
}

#payment li.wc_payment_method {
    background: none;
    border-bottom: 1px solid var(--ckfylt25-frisbee-border-color);
    margin: 0;
    padding: 0;
}

#payment li.wc_payment_method:last-child {
    border-bottom: none;
}

#payment li.wc_payment_method > label {
    padding: 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    transition: background-color 0.2s ease;
}

#payment li.wc_payment_method > label:hover {
    background: #f8fafc;
}

#payment .payment_box {
    background-color: #f8fafc;
    padding: 24px;
    margin: 0;
    border-top: 1px solid var(--ckfylt25-frisbee-border-color);
    display: none;
}

#payment .wc_payment_method > input:checked ~ .payment_box {
    display: block;
}

/* Botón de Pagar */
#payment .place-order {
    margin-top: 24px;
    padding: 0;
}

#payment #place_order.button {
    width: 100%;
    height: 56px;
    background: linear-gradient(90deg, var(--ckfylt25-frisbee-secondary) 0%, var(--ckfylt25-frisbee-secondary-dark) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

#payment #place_order.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Testimonios */
.ckfylt25-frisbee-testimonials {
    background: var(--ckfylt25-frisbee-card-bg);
    padding: 80px 24px;
    margin-top: 80px;
    width: 100%;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ckfylt25-frisbee-testimonials h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.ckfylt25-frisbee-testimonials .highlight {
    color: var(--ckfylt25-frisbee-primary);
}

.testimonials-subtitle {
    font-size: 18px;
    color: var(--ckfylt25-frisbee-text-secondary);
    margin-bottom: 48px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}

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

.testimonial-card {
    background: var(--ckfylt25-frisbee-card-bg);
    border: 1px solid var(--ckfylt25-frisbee-border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.testimonial-image {
    margin-bottom: 20px;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.stars {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 14px;
    color: var(--ckfylt25-frisbee-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--ckfylt25-frisbee-text-primary);
}

/* Sección de Producto */
.ckfylt25-frisbee-product-section {
    background: var(--ckfylt25-frisbee-bg);
    padding: 80px 24px;
    width: 100%;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
    }
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--ckfylt25-frisbee-text-primary);
}

.product-benefits {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
}

.product-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--ckfylt25-frisbee-text-secondary);
    line-height: 1.6;
}

.product-benefits .benefit-icon {
    color: var(--ckfylt25-frisbee-primary);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(90deg, var(--ckfylt25-frisbee-secondary) 0%, var(--ckfylt25-frisbee-secondary-dark) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .ckfylt25-frisbee-container {
        padding: 20px 16px;
    }
    
    .ckfylt25-frisbee-section {
        padding: 24px;
    }
    
    .express-buttons {
        grid-template-columns: 1fr;
    }
    
    .guarantee-badges {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .product-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Ocultar elementos duplicados */
.ckfylt25-frisbee-sidebar .woocommerce-checkout-review-order .place-order,
.ckfylt25-frisbee-sidebar .woocommerce-checkout-review-order #payment,
.woocommerce-NoticeGroup-checkout {
    display: none !important;
}
