* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Hero Section */
.hero-section {
    padding: 80px 20px;
    background: #f5eee9;
}
.container-hero {
    max-width: 1200px;
    margin: 0 auto;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    max-width: 600px;
}
.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.2;
}
.highlight {
    color: #477067;
}
.hero-desc {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-primary {
    padding: 14px 28px;
    background: #477067;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    opacity: 0.85;
}
.btn-secondary {
    padding: 14px 28px;
    background: #fff;
    color: #477067;
    border: 2px solid #477067;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-secondary:hover {
    background: #f5f5f5;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(71, 112, 103, 0.15);
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #477067;
}
.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Search Preview (Hero Visual) */
.hero-visual {
    display: flex;
    justify-content: center;
}
.search-preview {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
}
.preview-header {
    background: linear-gradient(135deg, #477067, #1d3a43);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.preview-filters {
    padding: 16px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.preview-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.preview-field {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.field-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.field-value {
    font-size: 14px;
    font-weight: 600;
    color: #1d3a43;
}
.preview-results {
    padding: 12px 18px 18px;
}
.preview-result-row {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.preview-result-row:hover {
    border-color: #477067;
    box-shadow: 0 2px 8px rgba(71, 112, 103, 0.1);
}
.preview-result-row:last-child {
    margin-bottom: 0;
}
.preview-result-row.faded {
    opacity: 0.4;
}
.result-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}
.result-info {
    font-size: 12px;
    color: #6b7280;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #f9fafb;
}
.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.features-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.2;
}
.features-header p {
    font-size: 17px;
    color: #666;
    line-height: 1.5;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}
.feature-card:hover {
    border-color: #477067;
    box-shadow: 0 8px 24px rgba(71, 112, 103, 0.1);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #477067, #1d3a43);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Use Cases Section */
.usecases-section {
    padding: 80px 20px;
    background: #fff;
}
.usecases-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.usecases-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.2;
}
.usecases-header p {
    font-size: 17px;
    color: #666;
}
.usecases-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.usecase-category {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.2s ease;
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.category-header:hover {
    background: #f9fafb;
}
.category-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.category-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #477067, #1d3a43);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.category-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.accordion-chevron {
    color: #6b7280;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.usecase-category.active .accordion-chevron {
    transform: rotate(180deg);
}
.usecase-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}
.usecase-category.active .usecase-list {
    max-height: 600px;
    padding: 0 24px 20px 24px;
}
.usecase-item {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}
.usecase-item:last-child {
    margin-bottom: 0;
}
.usecase-item:hover {
    border-color: #477067;
    box-shadow: 0 4px 12px rgba(71, 112, 103, 0.08);
}
.usecase-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d3a43;
    margin-bottom: 6px;
}
.usecase-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Plans Section */
.plans-section {
    padding: 80px 20px;
    background: #fafafa;
}
.plans-header {
    text-align: center;
    margin-bottom: 48px;
}
.plans-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1d3a43;
    margin-bottom: 12px;
}
.plans-header p {
    font-size: 17px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}
.plan-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.plan-card.premium {
    border-color: #477067;
    box-shadow: 0 4px 20px rgba(71, 112, 103, 0.15);
}
.plan-card.premium:hover {
    box-shadow: 0 12px 32px rgba(71, 112, 103, 0.25);
}
.plan-card-header {
    padding: 32px 28px 24px;
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}
.plan-card.premium .plan-card-header {
    background: linear-gradient(135deg, rgba(71, 112, 103, 0.06) 0%, rgba(29, 58, 67, 0.04) 100%);
    border-bottom: 1px solid rgba(71, 112, 103, 0.15);
}
.plan-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.plan-badge.premium {
    background: #477067;
    color: #fff;
}
.plan-card-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d3a43;
    margin-bottom: 6px;
}
.plan-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}
.plan-card-body {
    padding: 28px;
    flex: 1;
}
.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}
.plan-features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}
.plan-features-list li.included svg {
    color: #477067;
}
.plan-features-list li.included.highlight {
    color: #1d3a43;
    font-weight: 500;
}
.plan-features-list li.included.highlight svg {
    color: #477067;
}
.plan-features-list li.limited {
    color: #92400e;
}
.plan-features-list li.limited svg {
    color: #d97706;
}
.plan-features-list li.not-included {
    color: #9ca3af;
    text-decoration: line-through;
}
.plan-features-list li.not-included svg {
    color: #d1d5db;
}
.plan-card-footer {
    padding: 20px 28px 28px;
    text-align: center;
}
.plan-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}
.plan-btn.standard {
    background: #fff;
    color: #477067;
    border: 2px solid #477067;
}
.plan-btn.standard:hover {
    background: #477067;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(71, 112, 103, 0.3);
}
.plan-btn.premium {
    background: #477067;
    color: #fff;
    box-shadow: 0 4px 14px rgba(71, 112, 103, 0.3);
}
.plan-btn.premium:hover {
    background: #1d3a43;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 112, 103, 0.5);
}
.plan-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 10px;
    margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 20px;
    background: #fff;
}
.how-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.how-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1d3a43;
    margin-bottom: 12px;
}
.how-header p {
    font-size: 17px;
    color: #6b7280;
}
.how-content {
    max-width: 900px;
    margin: 0 auto;
}
.how-item {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    align-items: flex-start;
}
.how-icon {
    background: linear-gradient(135deg, #477067, #1d3a43);
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(71, 112, 103, 0.2);
}
.how-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1d3a43;
    margin-bottom: 8px;
}
.how-text p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* API Section */
.api-section {
    padding: 80px 20px;
    background: #f5eee9;
}
.api-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.api-badge {
    display: inline-block;
    background: #eef7f3;
    color: #477067;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.api-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1d3a43;
    margin-bottom: 16px;
    line-height: 1.2;
}
.api-content .highlight {
    color: #477067;
}
.api-desc {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 28px;
}
.api-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.api-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #374151;
}
.api-feature-item svg {
    color: #477067;
    stroke: #477067;
    flex-shrink: 0;
}
.api-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.api-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.api-btn.primary {
    background: #477067;
    color: #fff;
}
.api-btn.primary:hover {
    background: #1d3a43;
}
.api-btn.secondary {
    background: transparent;
    color: #477067;
    border: 2px solid #e5e7eb;
}
.api-btn.secondary:hover {
    border-color: #477067;
}

/* API Code Block */
.api-code-block {
    background: #1d3a43;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(29, 58, 67, 0.2);
}
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.15);
}
.code-dots {
    display: flex;
    gap: 6px;
}
.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.code-dots span:first-child { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:last-child { background: #22c55e; }
.code-lang {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.code-body {
    padding: 24px 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
}
.code-line {
    color: #e2e8f0;
    white-space: nowrap;
}
.code-line.indent {
    padding-left: 24px;
}
.code-line.comment {
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}
.code-method {
    color: #22c55e;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.code-param {
    color: #f59e0b;
}
.code-key {
    color: #93c5fd;
}
.code-value {
    color: #a8d5ba;
}
.code-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #477067, #1d3a43);
}
.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-content .highlight {
    color: #a8d5ba;
}
.cta-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.cta-btn.primary {
    background: #fff;
    color: #477067;
    border: 2px solid #fff;
}
.cta-btn.primary:hover {
    background: transparent;
    color: #fff;
}
.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Data Sources Disclaimer */
.data-sources-section {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}
.data-sources-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.data-sources-notice svg {
    flex-shrink: 0;
    color: #9ca3af;
    stroke: #9ca3af;
}
.data-sources-notice p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}
.data-sources-notice a {
    color: #477067;
    text-decoration: none;
    font-weight: 500;
}
.data-sources-notice a:hover {
    text-decoration: underline;
}

/* SVG fill reset */
#wrapper svg *,
.feature-icon svg rect,
.feature-icon svg circle,
.feature-icon svg line,
.feature-icon svg path,
.category-icon svg rect,
.category-icon svg circle,
.category-icon svg line,
.category-icon svg path {
    fill: unset;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.video-modal.active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    z-index: 10001;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(71, 112, 103, 0.1);
}
.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #477067;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    font-weight: 300;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.modal-close:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: #1d3a43;
}
.modal-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Register Modal */
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}
.register-modal.active {
    display: flex;
}
.register-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    z-index: 10001;
    animation: modalSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin: auto;
}
.register-header {
    margin-bottom: 28px;
}
.register-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d3a43;
    margin: 0 0 6px 0;
}
.register-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}
.register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}
.form-group .required {
    color: #ef4444;
}
.form-group input {
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    background: #fff;
}
.form-group input:focus {
    border-color: #477067;
    box-shadow: 0 0 0 3px rgba(71, 112, 103, 0.1);
}
.form-group input::placeholder {
    color: #9ca3af;
}
.form-group input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}
.form-group input[readonly] {
    background-color: #e5e7eb;
    cursor: default;
}
.input-with-validation {
    display: flex;
    gap: 8px;
}
.input-with-validation input {
    flex: 1;
}
.validation-message {
    font-size: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
    line-height: 1.4;
}
.validation-message.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
}
.validation-message.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
}
.register-btn {
    margin-top: 8px;
    padding: 13px 24px;
    background: #477067;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.register-btn:hover:not(:disabled) {
    background: #3a5c54;
}
.register-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}
.register-btn svg {
    width: 18px;
    height: 18px;
}

/* CIF Validation */
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
#cifInput { transition: border-color 0.3s ease; }
#cifValidation {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    animation: slideDownCif 0.3s ease;
}
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.top-50 { top: 50%; }
.end-0 { right: 0; }
.translate-middle-y { transform: translateY(-50%); }
.me-3 { margin-right: 1rem; }
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -0.125em;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}
.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.15em;
}
.text-primary { color: #0d6efd; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* CIF Action Buttons */
.cif-buttons-container {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.btn-edit-cif,
.btn-save-cif {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.btn-edit-cif {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.btn-edit-cif:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.btn-save-cif {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.btn-save-cif:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-save-cif:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}
.btn-edit-cif svg,
.btn-save-cif svg {
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
@keyframes slideDownCif {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spinner-border {
    to { transform: rotate(360deg); }
}
@keyframes pulseCif {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
#cif-error-message {
    animation: slideDownCif 0.3s ease, pulseCif 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-stats {
        gap: 24px;
    }
    .stat-number {
        font-size: 24px;
    }
    .search-preview {
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .how-item {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }
    .how-icon {
        width: 56px;
        height: 56px;
    }
    .cta-content h2 {
        font-size: 28px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .plans-header h2 {
        font-size: 28px;
    }
    .plan-card-header h3 {
        font-size: 24px;
    }
    .api-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .api-content h2 {
        font-size: 28px;
    }
    .api-buttons {
        flex-direction: column;
    }
    .api-btn {
        justify-content: center;
    }
    .code-body {
        font-size: 11px;
        padding: 16px 14px;
        overflow-x: auto;
    }
    .modal-content {
        width: 95%;
    }
    .register-content {
        padding: 28px 20px;
    }
    .register-header h2 {
        font-size: 22px;
    }
    .preview-filter-row {
        grid-template-columns: 1fr;
    }
}

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