/**
 * WooCommerce Styles - Alineados con Landing Page
 * Professional design matching the main theme
 */

/* ===========================
   PRODUCT HERO SECTION
   =========================== */

.product-hero {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    padding: 80px 0 60px;
    color: var(--white, #ffffff);
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.product-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 18px;
}

.product-title {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-tagline {
    font-size: 1.3em;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 25px;
}

/* Product Taxonomy (Categories & Tags) */
.product-taxonomy {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-categories,
.product-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.taxonomy-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.taxonomy-link,
.tag-link {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.taxonomy-link:hover,
.tag-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.tag-link {
    background: rgba(255, 255, 255, 0.15);
}

.tag-link::before {
    content: '#';
    opacity: 0.7;
    margin-right: 2px;
}

.product-price-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.price-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-amount {
    font-size: 3em;
    font-weight: 900;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-amount .woocommerce-Price-amount {
    font-size: inherit;
}

.price-period {
    font-size: 0.4em;
    font-weight: 600;
    opacity: 0.8;
}

.product-features-quick {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.product-cta {
    margin-bottom: 30px;
}

/* Subscription CTA Buttons */
.subscription-cta-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.subscription-cta-wrapper form.cart {
    flex: 1;
    margin: 0;
}

.btn-subscribe-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #2271b1;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-subscribe-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-subscribe-primary .btn-icon {
    font-size: 1.5em;
}

.btn-subscribe-primary .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.btn-subscribe-primary .btn-text strong {
    font-size: 1em;
    line-height: 1;
}

.btn-subscribe-primary .btn-text small {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.8;
}

.btn-subscribe-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-subscribe-secondary .btn-icon {
    font-size: 1.3em;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    opacity: 0.95;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-trust {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    opacity: 0.9;
}

.trust-icon {
    font-size: 1.2em;
}

/* Product Hero Image */

.product-hero-image {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.product-placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.product-placeholder-image svg {
    width: 80%;
    height: 80%;
}

.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.highlight-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color, #2271b1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-number {
    display: block;
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1;
}

.highlight-text {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

/* ===========================
   PAYPAL BUTTON STYLING
   =========================== */

#wcpsp-paypal-button-container {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.wcpsp-subscription-details {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    box-shadow: none !important;
}

.wcpsp-subscription-details h3 {
    color: white !important;
    font-size: 1.3em !important;
    font-weight: 700;
    margin-bottom: 15px !important;
    text-transform: none;
    letter-spacing: normal;
}

.wcpsp-subscription-details ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wcpsp-subscription-details li {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    padding: 12px 18px !important;
    margin: 8px 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 1em;
}

/* ===========================
   PRODUCT DETAILS TABS
   =========================== */

.product-details-section {
    padding: 80px 0;
    background: var(--white, #ffffff);
}

.product-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    font-size: 1em;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: rgba(34, 113, 177, 0.05);
    color: var(--primary-color, #2271b1);
}

.tab-button.active {
    background: white;
    color: var(--primary-color, #2271b1);
    border-bottom-color: var(--primary-color, #2271b1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-inner {
    padding: 50px;
}

/* Features Grid */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    border-color: var(--primary-color, #2271b1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 113, 177, 0.1);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color, #2271b1);
    margin-bottom: 10px;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* How It Works Steps */

.how-it-works-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(34, 113, 177, 0.3);
}

.step-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color, #2271b1);
    margin-bottom: 10px;
}

.step-content p {
    color: #6c757d;
    line-height: 1.8;
}

/* FAQ Section */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color, #2271b1);
}

.faq-question {
    padding: 20px 25px;
    margin: 0;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark, #1a1a1a);
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-item.active .faq-question {
    background: var(--primary-color, #2271b1);
    color: white;
}

.faq-answer {
    display: none;
    padding: 25px;
    line-height: 1.8;
    color: #495057;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer ul {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin: 8px 0;
}

/* ===========================
   FINAL CTA SECTION
   =========================== */

.product-cta-final {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-final-content h2 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-final-content p {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 30px;
}

.btn-primary-large {
    display: inline-block;
    background: white;
    color: var(--primary-color, #2271b1);
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary-dark, #135e96);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 992px) {
    .product-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-title {
        font-size: 2.5em;
    }

    .price-amount {
        font-size: 2.5em;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 50%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 60px 0 40px;
    }

    .product-title {
        font-size: 2em;
    }

    .price-amount {
        font-size: 2em;
    }

    .tab-inner {
        padding: 30px 20px;
    }

    .product-trust {
        flex-direction: column;
        gap: 15px;
    }

    .step-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Taxonomy responsive */
    .product-taxonomy {
        gap: 10px;
    }

    .taxonomy-link,
    .tag-link {
        font-size: 0.85em;
        padding: 5px 12px;
    }

    .taxonomy-label {
        font-size: 1em;
    }

    /* CTA Buttons responsive */
    .subscription-cta-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .btn-subscribe-primary {
        font-size: 1em;
        padding: 18px 30px;
    }

    .btn-subscribe-secondary {
        font-size: 0.95em;
        padding: 15px 25px;
    }

    .cta-features {
        font-size: 0.9em;
    }

    .product-highlights {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   SHOP/ARCHIVE PAGES
   =========================== */

.woocommerce-page:not(.single-product) {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 60px 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color, #2271b1);
    margin: 20px;
    text-align: center;
}

.woocommerce ul.products li.product .price {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color, #2271b1);
    text-align: center;
    margin: 10px 20px;
}

.woocommerce ul.products li.product .button {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 113, 177, 0.4);
}

/* ===========================
   CART & CHECKOUT PAGES
   =========================== */

/* Remove problematic padding from cart and checkout pages */
.woocommerce-page:not(.single-product) {
    padding: 0 !important;
}

.woocommerce-cart .container,
.woocommerce-checkout .container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===========================
   MY ACCOUNT PAGE - SIMPLE
   =========================== */

/* Clean page */
.page-id-57 .site-main,
.page-id-57 article,
.page-id-57 .entry-content,
.myaccount-page {
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-57 .entry-header {
    display: none !important;
}

/* Wrapper */
.myaccount-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Simple Hero */
.myaccount-hero {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.myaccount-hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

.myaccount-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.myaccount-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

/* Hide complex elements */
.hero-background-pattern,
.hero-content-grid,
.hero-illustration,
.welcome-badge,
.hero-stats {
    display: none !important;
}

/* Container */
.myaccount-container,
.myaccount-wrapper .myaccount-container,
.container.myaccount-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .myaccount-container,
    .myaccount-wrapper .myaccount-container,
    .container.myaccount-container {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar */
.myaccount-sidebar,
aside.myaccount-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
}

.sidebar-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #1a1a1a;
}

.sidebar-icon {
    display: none;
}

nav.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

nav.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #f0f0f0;
}

nav.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

nav.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

nav.woocommerce-MyAccount-navigation a:hover {
    background: #f8f9fa;
    color: #2271b1;
}

nav.woocommerce-MyAccount-navigation li.is-active a {
    background: #2271b1;
    color: white;
}

.menu-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    font-size: 1.2em;
}

.menu-arrow {
    opacity: 0;
    transition: opacity 0.2s;
}

nav.woocommerce-MyAccount-navigation a:hover .menu-arrow,
nav.woocommerce-MyAccount-navigation li.is-active .menu-arrow {
    opacity: 1;
}

.quick-actions-card {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.quick-actions-card h4 {
    margin: 0 0 15px 0;
    font-size: 1em;
}

.quick-action-btn {
    display: block;
    padding: 10px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.quick-action-btn:last-child {
    margin-bottom: 0;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Content */
main.woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

.content-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    font-size: 0.9em;
    color: #666;
}

.breadcrumb-item.active {
    color: #2271b1;
    font-weight: 600;
}

.content-body {
    padding: 30px;
}

/* Forms */
.content-body input[type="text"],
.content-body input[type="email"],
.content-body input[type="password"],
.content-body textarea,
.content-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.content-body .button,
.content-body button[type="submit"] {
    background: #2271b1;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.content-body .button:hover,
.content-body button[type="submit"]:hover {
    background: #135e96;
}

/* Tables */
.content-body table {
    width: 100%;
    border-collapse: collapse;
}

.content-body table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.content-body table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 767px) {
    .myaccount-hero {
        padding: 30px 15px;
    }
    
    .myaccount-title {
        font-size: 1.5em;
    }
    
    .myaccount-container {
        padding: 20px 15px;
    }
    
    .content-body {
        padding: 20px 15px;
    }
}
