/*
Theme Name: Plantilla Agency
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A premium, minimalist agency theme with funnel structure.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plantilla-agency
*/

:root {
    /* DEFAULT: Dark Mode (Black & Gold) */
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --primary-color: #D4AF37;
    /* Metallic Gold */
    --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #AA8A2E 100%);
    --accent-color: #D4AF37;
    --card-bg: #111111;
    --card-border: #333333;
    --border-color: #222222;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1100px;
    --border-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Split Card Specifics */
    --split-card-left: #1a1a1a;
    --split-card-right: #000000;
}

/* Light Mode Overrides (White & Blue) */
body.light-mode {
    --bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #111111;
    --primary-color: #2563EB;
    /* Professional Blue */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --accent-color: #2563EB;
    --card-bg: #f9f9f9;
    --card-border: #e5e5e5;
    --border-color: #e5e5e5;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);

    --split-card-left: #ffffff;
    --split-card-right: #f0f9ff;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Header & Navigation */
.site-header {
    background: rgba(5, 5, 5, 0.9);
    /* Dark glass default */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    transition: background 0.3s ease;
}

body.light-mode .site-header {
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--heading-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-gradient);
    color: #fff;
    /* White text on buttons usually correct for Blue/Dark Gold */
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Specific fix for Gold: Black text on Gold usually looks better, but user said 'gold colours' */
/* body:not(.light-mode) .btn { color: #000; } */

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--heading-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Why Us / Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

/* Smoke Bubble Effect for Benefits/Services */
.benefit-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* The 'Smoke' Effect */
.benefit-card::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.benefit-card:hover::before {
    transform: scale(1.5);
    opacity: 0.25;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    display: flex;
    /* Align icon and text if needed */
    align-items: center;
    gap: 10px;
}

/* Bot Animation Section (Services) */
.bot-animation-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s forwards;
}

.chat-bubble.bot {
    background: #333;
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

body.light-mode .chat-bubble.bot {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble.user {
    background: var(--primary-color);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    animation-delay: 1.5s;
}

.chat-bubble.bot:nth-child(3) {
    animation-delay: 3s;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Service Layout */
.service-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.service-text {
    flex: 1;
    min-width: 300px;
}

.service-visual {
    flex: 1;
    min-width: 300px;
}

/* Testimonials */
.testimonials-section {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.testimonial-card {
    background: transparent;
    padding: 2rem;
    border-left: 2px solid var(--primary-color);
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

.client-name {
    display: block;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Split Pricing Layout */
.pricing-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.split-pricing-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: var(--split-card-left);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
}

.split-card-price {
    background: var(--split-card-right);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 1px solid var(--border-color);
}

.split-card-content {
    padding: 3rem;
    color: var(--text-color);
}

.split-card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.split-card-content p {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-list li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

.price-tag {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--heading-color);
    /* Matches theme heading color */
    line-height: 1;
    margin-bottom: 1rem;
}

.price-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* FAQ */
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    color: var(--heading-color);
    font-weight: 600;
}

.faq-answer {
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 10px;
}

/* CTA */
.cta-section {
    background: #000;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.cta-section h2 {
    color: #fff;
}

.cta-section p {
    color: #aaa;
    margin-bottom: 30px;
}

.cta-section .btn {
    background: var(--primary-gradient);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .split-pricing-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-list {
        grid-template-columns: 1fr;
        justify-items: center;
        /* Center items on mobile if text-align is center */
    }

    .split-card-price {
        padding: 2rem;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-soft);
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }
}

/* Blog Styles (Preserved) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

/* Adding smoke to blog cards too */
.blog-card::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    transition: all 0.5s ease;
}

.blog-card:hover::before {
    transform: scale(1.5);
    opacity: 0.25;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.entry-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--heading-color);
}

.entry-excerpt {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}
/* Graph Animation */
.animate-grow { animation: growBar 2s ease-out forwards; transform-origin: bottom; }
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
