@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary: #4066ad;
    --primary-dark: #2a3e67;
    --accent: #37bbed;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #aeaeae;
    --bg: #fff;
    --bg-alt: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Encode Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header-top {
    background: var(--primary);
    padding: 12px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-light {
    color: #e5e5e5;
}

.logo-accent {
    color: #adc6f8;
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

.header-nav a:hover {
    text-decoration: underline;
}

.header-bar {
    background: #414141;
    padding: 24px 48px;
}

.breadcrumb {
    color: #fff;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #3a6fb5 0%, #4a7fc5 100%);
    color: #fff;
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.hero-img {
    max-width: 400px;
}

.hero-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-control::placeholder {
    color: #999;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-accent {
    background: #2e9e40;
    color: #fff;
}

.btn-accent:hover {
    background: #248c35;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #2aa8d6;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.checkbox-group a {
    color: #fff;
}

/* Sections */
.section {
    padding: 60px 48px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Features */
.features-section {
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.feature-icon img {
    width: 100%;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Tramite Page */
.tramite-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.timeline {
    position: relative;
    padding-left: 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 32px;
    bottom: 32px;
    width: 8px;
    background: var(--accent);
    border-radius: 4px;
}

.timeline-step {
    position: relative;
    margin-bottom: 48px;
}

.timeline-number {
    position: absolute;
    left: -48px;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 2rem;
    font-weight: 700;
}

.timeline-edit {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.timeline-edit:hover {
    color: var(--text);
}

.timeline-content {
    margin-left: 0;
}

.timeline-subtitle {
    color: var(--text-light);
    margin-bottom: 16px;
}

/* Patente Display */
.patente-display {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 20px 40px;
    display: inline-block;
    text-align: center;
    border: 3px solid #37bbed;
    position: relative;
    margin: 16px 0;
}

.patente-header {
    background: linear-gradient(90deg, #75aadb 0%, #fff 50%, #75aadb 100%);
    color: #333;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 20px;
    border-radius: 2px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.patente-display .patente-number {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    font-family: 'Arial Black', sans-serif;
    line-height: 1.2;
}

/* Email Input */
.email-input {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Plan Cards */
.plan-cards {
    margin-top: 24px;
}

.plan-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 400px;
}

.plan-card:hover {
    border-color: var(--accent);
    background: #f8fdff;
}

.plan-card.selected {
    border-color: var(--accent);
    background: #e8f7fc;
}

.plan-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-card.selected .plan-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.plan-card.selected .plan-radio::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Total */
.total-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Pay Button */
.pay-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.mp-logo {
    height: 32px;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-title {
    color: #5f99b9;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-list {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9rem;
}

.footer-list li {
    margin-bottom: 6px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #3a5a87;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #aaa;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .header-top,
    .header-bar,
    .section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .timeline {
        padding-left: 60px;
    }

    .timeline-number {
        left: -28px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .timeline-title {
        font-size: 1.5rem;
    }
}