/* CSS Variables — sistema de color propio de la landing.
   NOTA: scoped a .landing-body para no afectar al header/footer globales. */
.landing-body {
    --primary: #FF6B6B;
    --primary-hover: #E55A5A;
    --secondary: #1A1A2E;
    --secondary-hover: #0F0F1D;
    --accent: #FFD93D;
    --bg-main: #F4F6F8;
    --bg-alt: #FFFFFF;
    --text-main: #2D3436;
    --text-sec: #636E72;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-pill: 8px;
    --transition: all 0.3s ease;
}

/* Base scopes */
.landing-body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.landing-body h1, .landing-body h2, .landing-body h3, .landing-body h4, .landing-body h5, .landing-body h6, .landing-body .logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.landing-body a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.landing-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.landing-body .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-body .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    display: inline-block;
}

.landing-body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.landing-body .btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.landing-body .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.landing-body .btn-cta {
    background-color: #FF6B6B;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.landing-body .btn-cta:hover {
    background-color: #E55A5A;
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.landing-body .btn-secondary {
    background-color: var(--white);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.landing-body .btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Animations */
.landing-body .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-body .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1. Header */
.landing-body .custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white); /* Solid by default to prevent overlap issues */
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Fix for WordPress Admin Bar */
.admin-bar .landing-body .custom-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .landing-body .custom-header {
        top: 46px;
    }
}

.landing-body .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.landing-body .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.landing-body .header-search {
    flex-grow: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.landing-body .header-search:focus-within {
    border-color: var(--primary);
}

.landing-body .header-search input {
    flex-grow: 1;
    border: none;
    padding: 12px 15px;
    font-size: 0.95rem;
    outline: none;
}

.landing-body .header-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.landing-body .header-search button:hover {
    background: var(--primary-hover);
}

.landing-body .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 0.95rem;
}

.landing-body .nav-links a {
    font-weight: 600;
    color: var(--text-sec);
}

.landing-body .nav-links a:hover {
    color: var(--primary);
}

.landing-body .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* 2. Massive Hero Section */
.landing-body .hero-massive {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 140px 20px 60px; /* Added padding to clear the solid header */
    margin-top: 0;
}

.landing-body .hero-massive::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.landing-body .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
}

.landing-body .hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}

.landing-body .hero-subtitle {
    font-size: 1.3rem;
    color: #F8F9FA;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-weight: 500;
}

.landing-body .hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.landing-body .hero-cta .btn {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.landing-body .social-proof-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--white);
    background: rgba(0,0,0,0.4);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.landing-body .stars {
    color: var(--accent);
}

/* 3. Cómo Funciona - Marketplace style trust signals */
.landing-body .how-it-works {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.landing-body .steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.landing-body .step-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 10px;
}

.landing-body .step-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #FFF0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.2);
}

.landing-body .step-text h3 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    color: var(--secondary);
}

.landing-body .step-text p {
    font-size: 0.95rem;
    color: var(--text-sec);
    margin: 0;
    line-height: 1.5;
}

/* 4. Marketplace Products */
.landing-body .marketplace {
    padding: 80px 0;
}

.landing-body .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.landing-body .filter-pill {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sec);
}

.landing-body .filter-pill:hover, .landing-body .filter-pill.active {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.landing-body .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.landing-body .product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.landing-body .product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.landing-body .product-image {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.landing-body .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.landing-body .product-card:hover .product-image img {
    transform: scale(1.05);
}

.landing-body .badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.landing-body .badge-status.new {
    background: #4CAF50;
}

.landing-body .product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.landing-body .product-title {
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: var(--secondary);
}

.landing-body .product-rating {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.landing-body .product-rating span {
    color: var(--text-sec);
    margin-left: 4px;
}

.landing-body .product-desc {
    color: var(--text-sec);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-body .product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-top: auto;
    margin-bottom: 16px;
}

.landing-body .product-card .btn {
    width: 100%;
    padding: 13px;
}

/* Botón "Personalizar Ahora" — contorno limpio + relleno circular en hover */
.landing-body .product-card .btn-secondary-outline {
    background: transparent;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    letter-spacing: .3px;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color .35s ease;
}

/* Círculo coral que se expande desde el centro hasta rellenar el botón */
.landing-body .product-card .btn-secondary-outline::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #FF6B6B;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width .45s ease, height .45s ease;
}

.landing-body .product-card .btn-secondary-outline:hover {
    color: #fff;
}

.landing-body .product-card .btn-secondary-outline:hover::before {
    width: 260%;
    height: 700%;
}

.landing-body .product-card .btn-secondary-outline:active {
    transform: scale(.97);
}

/* 5. Social Proof */
.landing-body .testimonials {
    padding: 80px 0;
    background-color: var(--secondary);
    color: var(--white);
}

.landing-body .testimonials .section-title {
    color: var(--white);
    border-bottom-color: var(--primary);
}

.landing-body .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.landing-body .testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.landing-body .testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.landing-body .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.landing-body .user-info h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--white);
}

.landing-body .user-info p {
    font-size: 0.85rem;
    color: #A0AEC0;
    margin: 0;
}

.landing-body .stars-rating {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1rem;
}

.landing-body .testimonial-text {
    font-size: 1rem;
    color: #E2E8F0;
    line-height: 1.6;
    font-style: italic;
}

/* 6. Garantías */
.landing-body .trust-badges {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.landing-body .badges-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.landing-body .badge-item {
    text-align: center;
    padding: 20px;
}

.landing-body .badge-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.landing-body .badge-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.landing-body .badge-item p {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin: 0;
}

/* 7. Footer */
.landing-body .custom-footer {
    background-color: #0F0F1D;
    color: #A0AEC0;
    padding: 80px 0 30px;
}

.landing-body .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.landing-body .footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.landing-body .footer-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.landing-body .social-icons {
    display: flex;
    gap: 12px;
}

.landing-body .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.landing-body .social-icons a:hover {
    background: var(--primary);
}

.landing-body .footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.landing-body .footer-links li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.landing-body .footer-links a:hover {
    color: var(--primary);
}

.landing-body .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.landing-body .payment-icons {
    font-size: 1.8rem;
    display: flex;
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .landing-body .hero-massive h1 { font-size: 3rem; }
    .landing-body .products-grid { grid-template-columns: repeat(3, 1fr); }
    .landing-body .header-search { display: none; }
}

@media (max-width: 768px) {
    .landing-body .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    .landing-body .nav-links.active { display: flex; }
    
    .landing-body .steps-container { grid-template-columns: 1fr; gap: 20px; }
    .landing-body .products-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-body .testimonials-grid { grid-template-columns: 1fr; }
    .landing-body .badges-container { grid-template-columns: repeat(2, 1fr); }
    .landing-body .footer-grid { grid-template-columns: 1fr; }
    
    .landing-body .hero-massive { padding: 120px 20px 60px; min-height: 60vh; }
    .landing-body .hero-massive h1 { font-size: 2.2rem; }
    .landing-body .hero-cta { flex-direction: column; }
    .landing-body .mobile-menu-btn { display: block; }
}

@media (max-width: 480px) {
    .landing-body .products-grid { grid-template-columns: 1fr; }
    .landing-body .badges-container { grid-template-columns: 1fr; }
    .landing-body .hero-massive h1 { font-size: 1.8rem; }
}
