/*
Theme Name: KanduPay
Theme URI: https://kandupay.mx
Author: KanduPay
Author URI: https://kandupay.mx
Description: Tema sencillo para KanduPay
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kandupay
*/

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-light: #E8D5FF;
    --purple-medium: #9B6ED6;
    --purple-dark: #6B46C1;
    --purple-gradient-start: #E8D5FF;
    --purple-gradient-end: #4C1D95;
    --text-dark: #1F2937;
    --text-white: #FFFFFF;
    --green-dark: #065F46;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: transparent;
    padding: 20px 0;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--text-white);
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--purple-medium);
}

.btn-demo {
    background-color: var(--purple-medium);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-demo:hover {
    background-color: var(--purple-dark);
    color: var(--text-white);
}

/* Hero Section */
.hero {
    background-image: url('img/kp_main_gradient_background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -100px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    padding: 150px 20px;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    gap: 40px;
    position: relative;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-hand {
    max-width: 700px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    z-index: 5;
    animation: floatAnimation 4s ease-in-out infinite;
}

.hero-text {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Sections */
.section {
    padding: 80px 0;
}

.wallet-section {
    background: transparent;
    margin-top: -200px;
    position: relative;
    z-index: 2;
    padding-top: 250px;
}

.loyalty-section {
    color: var(--text-white);
    padding: 0;
    margin: 0;
}

.loyalty-full-width {
    width: 100%;
    margin: 0;
    padding: 0;
}

.loyalty-full-width .image-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.loyalty-full-width .section-image {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.loyalty-section .section-text-image {
    filter: brightness(0) invert(1);
}

.benefits-section {
    background: var(--purple-light);
}

.final-section {
    background: var(--text-white);
}

.section-content {
    width: 100%;
}

.section-text-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 100%;
    object-fit: contain;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.split-content.reverse .text-content {
    order: 2;
}

.split-content.reverse .image-content {
    order: 1;
}

.text-content {
    display: flex;
    align-items: center;
}

.image-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image {
    max-width: 100%;
    height: auto;
    animation: floatAnimation 4s ease-in-out infinite;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.benefit-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.benefit-number {
    font-size: 120px;
    font-weight: 700;
    color: rgba(155, 110, 214, 0.2);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.benefit-image,
.benefit-text-image {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-white);
    padding: 60px 0 40px;
    border-top: 1px solid #E5E7EB;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-title {
    font-size: 14px;
    color: var(--text-dark);
    opacity: 0.7;
}

.contact-phone,
.contact-email {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 5px;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 40px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* Single Post Styles */
.site-main {
    padding-top: 80px; /* Adjust if header overlaps */
}

.post-hero {
    position: relative;
    padding: 60px 0;
    background-color: #f7f5ff;
    text-align: center;
    margin-bottom: 50px;
}

.post-hero.has-thumbnail {
    background-size: cover;
    background-position: center center;
    padding: 100px 0;
    color: var(--text-white);
}

.post-hero.has-thumbnail .container {
    position: relative;
    z-index: 2;
}

.post-hero .hero-overlay {
    display: none;
}

.post-hero.has-thumbnail .hero-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 20, 89, 0.6);
    z-index: 1;
}

.post-title {
    color: var(--text-white) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--purple-medium);
    font-weight: 500;
}

.post-hero.has-thumbnail .post-meta {
    color: var(--text-white);
    opacity: 0.9;
}

.post-content-area .entry-content img {
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        min-height: 100vh;
        justify-content: center;
    }

    .hero .container {
        padding: 120px 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-logo,
    .hero-hand,
    .hero-text {
        flex: none;
        max-width: 100%;
    }

    .wallet-section {
        margin-top: -150px;
        padding-top: 200px;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-content.reverse .text-content {
        order: 1;
    }

    .split-content.reverse .image-content {
        order: 2;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
    }

    .post-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-container {
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--text-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        border-radius: 0;
    }

    .nav.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav.active::before {
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #E5E7EB;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    .nav a:hover {
        padding-left: 10px;
    }

    .nav .btn-demo {
        background: var(--purple-medium);
        color: var(--text-white);
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        border-bottom: none;
        margin-top: 10px;
    }

    .nav .btn-demo:hover {
        background: var(--purple-dark);
        padding-left: 15px;
        color: var(--text-white);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: 100vh;
        justify-content: center;
    }

    .hero .container {
        padding: 100px 20px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-logo,
    .hero-hand,
    .hero-text {
        flex: none;
        max-width: 100%;
    }

    .wallet-section {
        margin-top: -100px;
        padding-top: 150px;
    }

    .section {
        padding: 60px 0;
    }

    .benefit-number {
        font-size: 80px;
        top: -30px;
    }

    .site-main {
        padding-top: 60px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 100vh;
        justify-content: center;
    }

    .hero .container {
        padding: 80px 15px;
    }

    .hero-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-logo,
    .hero-hand,
    .hero-text {
        flex: none;
        max-width: 100%;
    }

    .wallet-section {
        margin-top: -80px;
        padding-top: 120px;
    }

    .nav {
        gap: 10px;
    }

    .nav a {
        font-size: 12px;
    }

    .section {
        padding: 40px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Additional Utilities */
.text-content img,
.image-content img {
    width: 100%;
    object-fit: contain;
}

/* Smooth animations */
.section {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Animation */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}

.elementor.elementor-48 {
    margin-top: -100px;
}

@media (max-width: 768px) {
    .elementor.elementor-48 {
        margin-top: 0px !important;
    }
    header {
        top: 0px !important;
    }
}