/*
Theme Name: Circular AI Landing
Theme URI: https://landing.dev.interwwweb.com
Author: OpenClaw
Author URI: https://github.com/circularmanager2026-tech
Description: Landing page theme para Circular AI - Chatbots Inteligentes. Diseño split hero con campos personalizables via ACF.
Version: 1.0.0
License: GPL v2
Text Domain: circular-ai
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: #fff;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f0f23;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #0f0f23;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.logo-icon::before {
    left: 5px;
}

.logo-icon::after {
    right: 5px;
    background: #fff;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #4a4a5a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #0f0f23;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.login-link {
    text-decoration: none;
    color: #4a4a5a;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0f0f23;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 15, 35, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    min-height: calc(100vh - 80px);
    position: relative;
}

.hero-left {
    flex: 1;
    background: #E8D5F7;
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 520px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f0f23;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #4a4a5a;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 420px;
}

.btn-hero {
    background: #0f0f23;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 6px 6px 0 #7B68EE;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-hero:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 #7B68EE;
}

.hero-right {
    flex: 1;
    background: #F5D76E;
    position: relative;
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

.illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 85%;
}

.illustration svg {
    width: 100%;
    height: 100%;
}

/* Floating Notifications */
.notification {
    position: absolute;
    background: #FFFEF0;
    border: 2px solid #0f0f23;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    font-size: 0.8rem;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.notification:nth-child(2) { animation-delay: 0.5s; }
.notification:nth-child(3) { animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.notification-dot {
    width: 6px;
    height: 6px;
    background: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.notification-title {
    font-weight: 600;
    color: #0f0f23;
    margin-bottom: 0.15rem;
}

.notification-count {
    font-size: 0.7rem;
    color: #888;
}

.notif-1 { top: 15%; left: 10%; width: 180px; }
.notif-2 { top: 25%; right: 8%; width: 160px; animation-delay: 0.7s; }
.notif-3 { top: 8%; right: 25%; width: 170px; animation-delay: 1.4s; }

/* Marquee */
.marquee {
    background: #fff;
    border-top: 2px solid #0f0f23;
    border-bottom: 2px solid #0f0f23;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-weight: 600;
    color: #0f0f23;
    font-size: 0.95rem;
}

.marquee-icon {
    width: 24px;
    height: 24px;
    background: #0f0f23;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
}

/* Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #0f0f23;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Section: Features */
.section-features {
    padding: 6rem 0;
    background: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: #0f0f23;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #4a4a5a;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #f8f8fc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 15, 35, 0.1);
}

.feature-icon-wrap {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f0f23;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #4a4a5a;
    line-height: 1.6;
}

/* Section: Pricing */
.section-pricing {
    padding: 6rem 0;
    background: #f0f0f5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 3px solid #7B68EE;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #7B68EE;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f0f23;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f0f23;
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f0f23;
}

.pricing-price .period {
    font-size: 1rem;
    color: #4a4a5a;
}

.pricing-price .custom {
    font-size: 1.25rem;
    font-weight: 600;
    color: #7B68EE;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: #4a4a5a;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7B68EE;
    font-weight: 700;
}

.btn-pricing {
    display: block;
    background: #0f0f23;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-pricing:hover {
    background: #7B68EE;
}

.pricing-card.featured .btn-pricing {
    background: #7B68EE;
}

.pricing-card.featured .btn-pricing:hover {
    background: #6a5acd;
}

/* Section: Contact */
.section-contact {
    padding: 6rem 0;
    background: #E8D5F7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a4a5a;
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-form-wrap {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #0f0f23;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7B68EE;
}

.btn-submit {
    width: 100%;
    background: #0f0f23;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #7B68EE;
}

/* Footer */
.site-footer {
    background: #0f0f23;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-left, .hero-right {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .site-header {
        padding: 1rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info .section-title,
    .contact-info .section-subtitle {
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
        display: flex;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav a {
        font-size: 1.5rem;
        font-weight: 600;
    }
    
    .header-actions {
        display: none;
    }
    
    .header-actions.mobile-visible {
        display: flex;
        position: fixed;
        bottom: 2rem;
        left: 0;
        right: 0;
        justify-content: center;
        z-index: 101;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .header-actions.mobile-visible.active {
        transform: translateX(0);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 3rem 1.5rem;
    }
    
    .section-features,
    .section-pricing,
    .section-contact {
        padding: 4rem 0;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-form-wrap {
        padding: 1.5rem;
    }
}

/* WordPress Alignment */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
