/* ==========================================================================
   Cotización.ai - Landing Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Mayor contraste */
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #059669;
    --secondary-dark: #047857;
    --accent: #ea580c;
    --accent-dark: #c2410c;

    /* Text - Más oscuros para mejor legibilidad */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-light: #6b7280;

    /* Background - Mayor diferencia entre secciones */
    --background: #ffffff;
    --background-alt: #f3f4f6;
    --background-dark: #111827;

    /* Border - Más visibles */
    --border: #d1d5db;
    --border-light: #e5e7eb;

    /* Status */
    --error: #dc2626;
    --success: #059669;

    /* Shadows - Más pronunciadas */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1200px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

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

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.text-accent {
    color: var(--primary);
}

.section-cta .text-accent,
.cta-section .text-accent {
    color: #fbbf24;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background-color: var(--background-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

.btn-link:hover {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--background);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

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

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform var(--transition);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    margin-top: 12px;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--background);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
}

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background var(--transition);
}

.nav-dropdown-item:hover {
    background: var(--background-alt);
    color: var(--primary);
}

.nav-dropdown-item-accent {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.nav-dropdown-item-accent:hover {
    background: rgba(79, 70, 229, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-img-footer {
    filter: brightness(0) invert(1);
    height: 32px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    padding-top: calc(64px + var(--section-padding));
    padding-bottom: var(--section-padding);
    background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-image {
    position: relative;
    margin-right: -300px;
    transform: scale(1.1);
    transform-origin: left center;
}

.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide:first-child {
    position: relative;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-slide.exit {
    opacity: 0;
    transform: translateX(-100px) scale(0.95);
}

/* --------------------------------------------------------------------------
   Problem / Solution
   -------------------------------------------------------------------------- */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.problem-card,
.solution-card {
    background-color: var(--background);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.25rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.card-header-problem .card-icon {
    background-color: #fee2e2;
    color: #b91c1c;
}

.card-header-solution .card-icon {
    background-color: #d1fae5;
    color: #047857;
}

.card-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.card-list li:last-child {
    border-bottom: none;
}

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

.feature-card-wrapper {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    height: 160px;
}

.feature-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
}

.feature-card-wrapper:hover .feature-card {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.feature-front,
.feature-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-front {
    background-color: var(--background);
    border: 2px solid var(--border);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    background-color: var(--background);
    border: 2px solid var(--primary);
}

.feature-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background-color: #eef2ff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.feature-title {
    margin-bottom: 4px;
    font-size: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   How It Works (Steps)
   -------------------------------------------------------------------------- */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 500;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.step-title {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.step-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #c7d2fe 100%);
    margin-top: 48px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Integrations
   -------------------------------------------------------------------------- */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background-color: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.integration-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.integration-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    opacity: 0.85;
    transition: all var(--transition);
}

.integration-card:hover .integration-icon {
    opacity: 1;
}

.integration-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(26%) sepia(95%) saturate(2525%) hue-rotate(235deg) brightness(89%) contrast(95%);
    opacity: 0.85;
    transition: all var(--transition);
}

.integration-card:hover .integration-logo-img {
    opacity: 1;
}

.integration-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.integrations-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--background);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    position: relative;
}

.testimonial-quote {
    font-size: 6rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.35;
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 40px;
}

.testimonial-text {
    font-size: 1.375rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 32px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.pricing-slider-container {
    margin-bottom: 40px;
}

.pricing-label {
    display: block;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.pricing-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #c7d2fe;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.pricing-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.pricing-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.pricing-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.pricing-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.pricing-tick {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
}

.pricing-tick.active {
    color: var(--primary);
    font-weight: 500;
}

.pricing-display {
    margin-bottom: 32px;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--secondary);
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    text-align: left;
}

.pricing-features-list li {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-cta {
    min-width: 200px;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section-cta {
    background-color: var(--primary);
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--background-dark);
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}


.footer-tagline {
    color: var(--text-light);
    margin-top: 12px;
    font-size: 0.9375rem;
}

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

.footer-heading {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--text-light);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: var(--text-light);
    transition: color var(--transition);
}

.social-link:hover {
    color: white;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--background);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-slow);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.modal-close:hover {
    background-color: var(--background-alt);
    color: var(--text-primary);
}

.modal-title {
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--text-primary);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-success,
.form-error {
    text-align: center;
    padding: 32px 0;
}

.success-icon,
.error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.success-icon {
    background-color: #ecfdf5;
    color: var(--success);
}

.error-icon {
    background-color: #fef2f2;
    color: var(--error);
}

.form-success h3,
.form-error h3 {
    margin-bottom: 8px;
}

.form-success p,
.form-error p {
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* --------------------------------------------------------------------------
   Page Header (Subpages)
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
}

.page-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.page-title span {
    color: rgba(255, 255, 255, 0.9);
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Content Sections (Nosotros)
   -------------------------------------------------------------------------- */
.content-section {
    max-width: 1000px;
    margin: 0 auto;
}

.content-header {
    text-align: center;
    margin-bottom: 48px;
}

.content-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.content-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

.content-title span {
    color: var(--primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.content-card {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

.content-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.content-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: #eef2ff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.content-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.content-card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Use Cases (Casos de Uso)
   -------------------------------------------------------------------------- */
.use-case-section {
    padding: 80px 0;
}

.use-case-content {
    max-width: 1000px;
    margin: 0 auto;
}

.use-case-icon {
    width: 72px;
    height: 72px;
    background: #eef2ff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.use-case-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.use-case-icon-accent {
    background: rgba(79, 70, 229, 0.15);
}

.use-case-header {
    margin-bottom: 40px;
}

.use-case-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.use-case-label-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.use-case-benefit {
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.use-case-benefit:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.use-case-benefit h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.use-case-benefit p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.use-case-cliente .use-case-benefit {
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.03);
}

.use-case-cliente .use-case-benefit:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.06);
}

/* --------------------------------------------------------------------------
   Legal Content (Privacidad, Términos)
   -------------------------------------------------------------------------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: #eef2ff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-method h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-method p,
.contact-method a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-method a:hover {
    color: var(--primary);
}

.contact-form-container {
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* --------------------------------------------------------------------------
   CTA Section (Subpages)
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 64px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 100%;
        margin: 0 auto;
        margin-right: 0;
        transform: none;
    }

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }

    .header-nav {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .problem-solution-grid {
        grid-template-columns: 1fr;
    }

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

    .page-header {
        padding: 100px 0 60px;
    }

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

    .contact-form-container {
        padding: 24px;
    }

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

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .use-case-section {
        padding: 60px 0;
    }

    .nav-dropdown {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 3px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--primary) 0%, #c7d2fe 100%);
    }

    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .modal {
        padding: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        gap: 16px;
    }

    .btn-lg {
        width: 100%;
    }

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

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-text {
        font-size: 1.125rem;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-number {
        font-size: 3rem;
    }
}
