/*
Theme Name: DALTO Marketing
Theme URI: https://dalto.es
Author: DALTO
Author URI: https://dalto.es
Description: Custom marketing theme for DALTO — plataforma SaaS de recopilación de documentos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dalto-marketing
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #1E1B4B;
    --accent: #8B5CF6;
    --gradient: linear-gradient(135deg, #8B5CF6, #EC4899);
    --bg: #FAFAF9;
    --white: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-btn: 25px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-cta {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: var(--white);
}

.btn-cta-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--accent);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-cta-outline:hover {
    background: var(--accent);
    color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: var(--bg);
    color: var(--accent);
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
}

.main-nav li:hover .sub-menu {
    display: block;
}

.main-nav .sub-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .login-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.header-actions .login-link:hover {
    color: var(--accent);
}

.header-actions .btn-cta {
    padding: 10px 24px;
    font-size: 14px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    color: var(--text);
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: var(--bg);
}

.mobile-menu .sub-menu {
    padding-left: 16px;
}

.mobile-menu .sub-menu a {
    font-size: 15px;
    color: var(--muted);
}

.mobile-menu-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-actions .btn-cta {
    text-align: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    background: var(--primary);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    color: var(--white);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-tags {
    margin-bottom: 32px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-tags span {
    color: var(--white);
    font-weight: 600;
}

.hero-tag-animated {
    display: inline-block;
    min-width: 220px;
    opacity: 1;
    transition: opacity 0.4s;
}

.hero-tag-animated.fade-out {
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.hero-cta .btn-cta {
    font-size: 18px;
    padding: 16px 36px;
}

.hero-subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-mockup {
    position: relative;
}

.hero-mockup-img {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-mockup-img svg {
    width: 100%;
    max-width: 420px;
    height: auto;
}

/* ==========================================================================
   Semi-circle Decorators
   ========================================================================== */

.section-arc {
    position: relative;
    overflow: hidden;
}

.section-arc::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: var(--bg);
    border-radius: 0 0 100px 100px;
    z-index: 1;
}

.section-arc-bottom::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: var(--bg);
    border-radius: 100px 100px 0 0;
    z-index: 1;
}

.section-arc-white::before {
    background: var(--white);
}

.section-arc-primary::before {
    background: var(--primary);
}

/* ==========================================================================
   Social Proof Section
   ========================================================================== */

.social-proof {
    background: var(--bg);
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.social-proof h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.logo-placeholder {
    width: 120px;
    height: 40px;
    background: var(--border);
    border-radius: 8px;
    opacity: 0.6;
}

.social-proof .rating {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.social-proof .stars {
    color: #F59E0B;
    font-size: 20px;
}

/* ==========================================================================
   Problem / Solution Section
   ========================================================================== */

.problem-solution {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.ps-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.ps-block:last-child {
    margin-bottom: 0;
}

.ps-block.reverse {
    flex-direction: row-reverse;
}

.ps-text {
    flex: 1;
}

.ps-text .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.ps-text h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.ps-text p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
}

.ps-illustration {
    flex: 1;
}

.ps-illustration .placeholder-img {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-illustration .placeholder-img svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.how-it-works {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.how-it-works > .container > h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 64px;
}

.step {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
}

.step-image {
    flex: 1;
}

.step-image .placeholder-img {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.step-image .placeholder-img svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* Semi-circle decorator between steps */
.step-divider {
    position: relative;
    height: 60px;
    margin-bottom: 80px;
}

.step-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 80px;
    background: var(--bg);
    border-radius: 0 0 80px 80px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
}

.features > .container > h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 16px;
}

.features > .container > p {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */

.testimonial {
    background: var(--primary);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 60px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.6;
}

.testimonial blockquote {
    font-size: 24px;
    color: var(--white);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.testimonial-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.testimonial-role {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Final CTA Section
   ========================================================================== */

.final-cta {
    padding: 100px 0;
    background: var(--white);
}

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

.final-cta-illustration {
    text-align: center;
}

.final-cta-illustration svg {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.final-cta-content h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.final-cta-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--primary);
    padding: 64px 0 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    font-size: 24px;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom span,
.footer-bottom a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Page & Single Templates
   ========================================================================== */

.page-content {
    padding: 80px 0;
}

.page-content h1 {
    font-size: 40px;
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 48px;
}

.page-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 36px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.8;
    font-size: 17px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: disc;
}

.page-content ol {
    list-style: decimal;
}

.page-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.page-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.page-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.page-content a {
    color: var(--accent);
}

.page-content a:hover {
    text-decoration: underline;
}

.single-meta {
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 14px;
}

/* ==========================================================================
   Feature Page Styles
   ========================================================================== */

.feature-hero .hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 500px;
}

.feature-blocks {
    padding: 100px 0;
    background: var(--white);
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================================================
   Responsive — Tablet (768-1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-grid {
        gap: 40px;
    }

    .ps-block {
        gap: 40px;
    }

    .step {
        gap: 40px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .final-cta-grid {
        gap: 40px;
    }
}

/* ==========================================================================
   Responsive — Mobile (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 60px 0 80px;
    }

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

    .hero h1 {
        font-size: 32px;
    }

    .hero-mockup {
        order: -1;
    }

    .ps-block,
    .ps-block.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .ps-text h2 {
        font-size: 28px;
    }

    .how-it-works > .container > h2 {
        font-size: 32px;
    }

    .step,
    .step:nth-child(even) {
        flex-direction: column;
        gap: 32px;
    }

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

    .features > .container > h2 {
        font-size: 32px;
    }

    .testimonial blockquote {
        font-size: 20px;
    }

    .final-cta-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .final-cta-content h2 {
        font-size: 32px;
    }

    .final-cta-content .btn-cta {
        display: inline-block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .page-content {
        padding: 48px 0;
    }

    .page-content h1 {
        font-size: 32px;
    }

    .logo-grid {
        gap: 24px;
    }

    .logo-placeholder {
        width: 100px;
        height: 34px;
    }

    .step-divider {
        height: 40px;
        margin-bottom: 40px;
    }

    .step {
        margin-bottom: 40px;
    }

    .feature-hero .hero-subtitle {
        font-size: 16px;
    }

    .feature-blocks {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Templates Page (Plantillas)
   ========================================================================== */

.templates-section {
    padding: 60px 0 100px;
    background: var(--bg);
}

.templates-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.templates-sidebar {
    position: sticky;
    top: 96px;
}

.templates-search {
    position: relative;
    margin-bottom: 24px;
}

.templates-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.templates-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.templates-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.templates-categories h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 16px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.category-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.category-checkbox .cat-count {
    color: var(--muted);
    font-size: 13px;
    margin-left: auto;
}

.templates-grid-wrapper {
    min-height: 400px;
}

.template-category-group {
    margin-bottom: 40px;
}

.template-category-group:last-child {
    margin-bottom: 0;
}

.category-heading {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.template-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.template-card-icon {
    margin-bottom: 16px;
}

.template-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.template-card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.template-card-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 0;
    transition: color 0.2s;
}

.template-card-btn:hover {
    color: #7C3AED;
    text-decoration: underline;
}

.template-card.hidden {
    display: none;
}

.template-category-group.hidden {
    display: none;
}

/* ==========================================================================
   Pricing Page (Precios)
   ========================================================================== */

.pricing-section {
    padding: 60px 0 80px;
    background: var(--bg);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-label--active {
    color: var(--text);
    font-weight: 600;
}

.toggle-badge {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: middle;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--border);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
    transform: scale(1.03);
    z-index: 1;
}

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

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 20px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-plan-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.price-custom {
    font-size: 32px;
}

.price-period {
    font-size: 16px;
    color: var(--muted);
}

.pricing-cta {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 28px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

.pricing-features li svg {
    flex-shrink: 0;
}

/* All Features */
.all-features {
    padding: 80px 0;
    background: var(--white);
}

.all-features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.all-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.all-feature-item {
    text-align: center;
    padding: 24px;
}

.all-feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.all-feature-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.all-feature-item p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* FAQ */
.pricing-faq {
    padding: 80px 0;
    background: var(--bg);
}

.pricing-faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

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

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* Pricing Final CTA */
.pricing-final-cta {
    padding: 80px 0;
    background: var(--primary);
}

.pricing-final-cta h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 16px;
}

.pricing-final-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

/* ==========================================================================
   Responsive — Templates & Pricing
   ========================================================================== */

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .templates-layout {
        grid-template-columns: 1fr;
    }

    .templates-sidebar {
        position: static;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card--featured {
        transform: none;
    }

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

    .all-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .pricing-final-cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .all-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-mission {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.about-mission h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-mission p {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-story {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.about-story h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-story p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-values {
    padding: 100px 0;
    background: var(--white);
}

.about-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-values__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-values__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-values__icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.about-values__card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.about-values__card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

.about-team {
    padding: 100px 0;
    background: var(--bg);
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 500px;
    margin: 0 auto;
}

.about-team__member {
    text-align: center;
}

.about-team__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.about-team__member h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.about-team__role {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.about-team__desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ==========================================================================
   Roadmap Page
   ========================================================================== */

.roadmap {
    padding: 80px 0 100px;
    background: var(--bg);
}

.roadmap__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--border);
}

.roadmap__item {
    position: relative;
    margin-bottom: 60px;
}

.roadmap__item:last-child {
    margin-bottom: 0;
}

.roadmap__item:nth-child(odd) {
    margin-right: 50%;
    padding-right: 40px;
}

.roadmap__item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
}

.roadmap__dot {
    position: absolute;
    top: 32px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 1;
}

.roadmap__item:nth-child(odd) .roadmap__dot {
    right: -8px;
}

.roadmap__item:nth-child(even) .roadmap__dot {
    left: -8px;
}

.roadmap__card {
    background: var(--gradient);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.roadmap__icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.roadmap__card h3 {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 8px;
}

.roadmap__card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ==========================================================================
   Security Page
   ========================================================================== */

.security-content .container {
    max-width: 800px;
}

/* ==========================================================================
   Responsive — About, Roadmap, Security
   ========================================================================== */

@media (max-width: 1024px) {
    .about-values__grid {
        gap: 24px;
    }

    .roadmap__timeline {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .about-mission {
        padding: 60px 0;
    }

    .about-mission h2,
    .about-story h2 {
        font-size: 28px;
    }

    .about-story {
        padding: 60px 0;
    }

    .about-values {
        padding: 60px 0;
    }

    .about-values__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-team {
        padding: 60px 0;
    }

    .about-team__grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    /* Roadmap mobile: line on left */
    .roadmap {
        padding: 60px 0 80px;
    }

    .roadmap__timeline::before {
        left: 20px;
        transform: none;
    }

    .roadmap__item:nth-child(odd),
    .roadmap__item:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
        padding-left: 52px;
        padding-right: 0;
    }

    .roadmap__item:nth-child(odd) .roadmap__dot,
    .roadmap__item:nth-child(even) .roadmap__dot {
        left: 12px;
        right: auto;
    }

    .security-content {
        padding: 48px 0;
    }
}

@media (max-width: 480px) {
    .about-values__card {
        padding: 24px;
    }

    .roadmap__card {
        padding: 24px;
    }
}
