:root {
    --bg-main: #f8fafc;
    --bg-alt: #ffffff;
    --bg-accent: #f1f5f9;
    --primary: #2563eb; /* Blue */
    --primary-light: #dbeafe;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #059669; /* Green */
    --secondary-light: #d1fae5;
    --secondary-glow: rgba(5, 150, 105, 0.15);
    --text-main: #1e293b;
    --text-dim: #64748b;
    --border: #e2e8f0;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
#hero {
    padding: calc(var(--nav-height) + 80px) 0 80px;
    background: radial-gradient(circle at 80% 20%, var(--primary-light), transparent 40%),
                radial-gradient(circle at 10% 80%, var(--secondary-light), transparent 30%);
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.badge.accent {
    background: var(--secondary-light);
    color: var(--secondary);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

h1 span {
    color: var(--primary);
}

#hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-accent);
}

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

.light-bg {
    background: var(--bg-alt);
}

.accent-bg {
    background: var(--bg-accent);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-header h2 span { color: var(--primary); }

.section-header p {
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
}

/* History Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}

.history-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.history-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-num {
    background: var(--primary-light);
    color: var(--primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
}

.history-item p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}

.highlight-box {
    background: var(--primary-light);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    border: 1px dashed var(--primary);
}

.highlight-box p {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Transformer Features */
.transformer-features {
    margin: 2rem 0;
}

.feature {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--secondary);
}

.feature h4 {
    margin-bottom: 0.3rem;
    color: var(--secondary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.visual-card {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.code-header {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.code-body code {
    display: block;
    font-size: 1.2rem;
    color: #38bdf8;
    margin-bottom: 1rem;
}

.caption { font-size: 0.85rem; color: #94a3b8; }

/* Grid 2 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Concepts Detailed Grid */
.concepts-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2.5rem;
}

.concept-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.concept-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.concept-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.concept-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.concept-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.concept-info .card-icon {
    margin-bottom: 1rem;
}

.concept-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.concept-info p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: modalIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dim);
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-body h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    color: var(--text-main);
}

/* Agentes Boxes */
.agent-box, .skill-box {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.box-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.check-list, .tool-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li, .tool-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }
.tool-list li::before { content: '•'; position: absolute; left: 0; color: var(--secondary); font-size: 1.5rem; line-height: 1; }

/* Tools Comparison */
.tools-comparison {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tool-detail {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.tool-logo {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.7rem;
}

.tool-logo.dark { background: #0f172a; color: white; }
.tool-logo.green { background: var(--secondary-light); color: var(--secondary); }
.tool-logo.border { border: 1px solid var(--border); background: transparent; color: var(--text-dim); }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.price-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
}

.price-card h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Tables */
.table-wrapper {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 30px 0;
}

.table-title {
    padding: 1rem 1.5rem;
    background: var(--bg-accent);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 1rem;
    background: #f8fafc;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Recommendation */
.recommendation {
    background: var(--bg-accent);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 3rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.rec-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-item {
    background: white;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Large Video Highlight */
.video-container-large {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
}

.video-container-large iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tool Detailed Page Styles */
.tool-section {
    padding: 4rem;
    background: white;
    border-radius: 30px;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.tool-section-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tool-logo.large {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border-radius: 16px;
}

.tool-section h3 {
    font-size: 2rem;
}

.tool-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-box {
    background: var(--bg-accent);
    padding: 2rem;
    border-radius: 20px;
}

.detail-box h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.decision-guide {
    margin-top: 5rem;
    text-align: center;
}

.decision-guide h3 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}
footer {
    padding: 60px 0 30px;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-info p { color: var(--text-dim); margin-top: 0.8rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 968px) {
    h1 { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    nav { display: none; }
}
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
}
