/* ============================================
   ERP MiPyMes Landing Page - Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --primary-50: #EFF6FF;
    --secondary: #0F172A;
    --accent: #10B981;
    --accent-light: #ECFDF5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --purple: #7C3AED;
    --purple-light: #F5F3FF;
    --orange: #EA580C;
    --orange-light: #FFF7ED;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: all 0.3s ease;
    --navbar-height: 88px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
}

.nav-logo {
    min-width: 112px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.logo-img {
    height: 68px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 760px;
    padding: calc(var(--navbar-height) + 64px) 0 156px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #E0E7FF 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    min-width: 0;
    animation: fadeInLeft 0.8s ease both;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    animation: popIn 0.6s ease 0.1s both;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 20px;
    max-width: 12ch;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 620px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    animation: fadeInUp 0.65s ease both;
}

.hero-cta .btn:nth-child(1) {
    animation-delay: 0.28s;
}

.hero-cta .btn:nth-child(2) {
    animation-delay: 0.38s;
}

.hero-microcopy {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
    animation: fadeInUp 0.6s ease both;
}

.trust-item:nth-child(1) {
    animation-delay: 0.48s;
}

.trust-item:nth-child(2) {
    animation-delay: 0.58s;
}

.trust-item:nth-child(3) {
    animation-delay: 0.68s;
}

.hero-visual {
    position: relative;
    min-width: 0;
    animation: fadeInRight 0.85s ease 0.2s both;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform-origin: center;
    animation: floatSoft 6s ease-in-out 1.1s infinite;
}

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-xl);
}

.hero-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: var(--radius-xl);
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 108px;
    display: block;
}

/* ============================================
   Section Common
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-50);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   Problemas Section
   ============================================ */
.section-problemas {
    background: var(--white);
}

.problemas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problema-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.problema-card:hover {
    border-color: var(--danger);
    background: var(--danger-light);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.problema-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.problema-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
}

/* ============================================
   Solución Section
   ============================================ */
.section-solucion {
    background: var(--gray-50);
}

.solucion-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solucion-visual {
    position: relative;
}

.solucion-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.solucion-text p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 28px;
}

.solucion-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.solucion-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.solucion-list li svg {
    flex-shrink: 0;
}

/* ============================================
   Beneficios Section
   ============================================ */
.section-beneficios {
    background: var(--white);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.beneficio-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.beneficio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.beneficio-icon {
    margin-bottom: 20px;
}

.beneficio-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.beneficio-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   Funcionalidades Section
   ============================================ */
.section-funcionalidades {
    background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
}

.funcionalidades-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.funcionalidad-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.funcionalidad-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.funcionalidad-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.funcionalidad-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.funcionalidad-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ============================================
   Planes Section
   ============================================ */
.section-planes {
    background: var(--white);
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.plan-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
    transform: scale(1.03);
}

.plan-popular:hover {
    transform: scale(1.03) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.plan-target {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.plan-price {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-500);
}

.plan-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.plan-period {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li svg {
    flex-shrink: 0;
}

/* Add-ons */
.addons-section {
    text-align: center;
    margin-bottom: 48px;
}

.addons-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.addons-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.addon-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.addon-card:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-4px);
}

.addon-icon {
    font-size: 1.8rem;
}

.addon-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.addon-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.addon-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-500);
}

/* Plan a medida */
.plan-medida {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
}

.plan-medida-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.plan-medida-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Comparación Section
   ============================================ */
.section-comparacion {
    background: var(--gray-50);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.comparacion-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.9rem;
}

.comparacion-table thead {
    background: var(--gray-900);
    color: var(--white);
}

.comparacion-table th {
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.comparacion-table th small {
    display: block;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

.comparacion-table th:first-child {
    text-align: left;
}

.comparacion-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.comparacion-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--gray-800);
}

.comparacion-table .highlight-col {
    background: var(--primary-50);
    font-weight: 600;
}

.comparacion-table thead .highlight-col {
    background: var(--primary);
    color: var(--white);
}

.comparacion-table thead .highlight-col small {
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
}

.comparacion-table tbody tr:hover {
    background: var(--gray-50);
}

/* ============================================
   Pasos Section
   ============================================ */
.section-pasos {
    background: var(--white);
}

.pasos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.paso-card {
    text-align: center;
    padding: 32px 24px;
    flex: 1;
    max-width: 300px;
}

.paso-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.paso-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.paso-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.paso-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.paso-connector {
    flex-shrink: 0;
    padding: 0 8px;
}

/* ============================================
   FAQ Section
   ============================================ */
.section-faq {
    background: var(--gray-50);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-50);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    font-family: inherit;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    color: var(--gray-800);
    box-shadow: var(--shadow-xl);
}

.cta-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.cta-form .btn {
    margin-top: 8px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-600);
}

.cta-login {
    margin-top: 24px;
    text-align: center;
}

.cta-login p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-login a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.cta-login a:hover {
    color: var(--white);
    opacity: 0.9;
}

/* ============================================
   Frases Section
   ============================================ */
.section-frases {
    background: var(--white);
    padding: 48px 0;
}

.frases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.frase-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.frase-card:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    transform: translateY(-4px);
}

.frase-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    line-height: 1.5;
}

.frase-card:nth-child(5),
.frase-card:nth-child(6),
.frase-card:nth-child(7) {
    /* Last 3 cards in a row of 4 */
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer .logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.footer .logo-img {
    height: 52px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-400);
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-footer-text {
    margin-top: 16px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
    }

    .hero-title,
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero {
        min-height: auto;
        padding-bottom: 132px;
    }

    .planes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .funcionalidades-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .solucion-content {
        grid-template-columns: 1fr;
    }

    .solucion-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(var(--navbar-height) + 200px);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 0 24px 24px;
        gap: 12px;
    }

    .hero {
        padding: calc(var(--navbar-height) + 44px) 0 116px;
    }

    .hero-inner {
        text-align: left;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.55rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin-left: 0;
        margin-right: auto;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

    .hero-trust {
        justify-content: flex-start;
    }

    .logo-mark {
        width: 66px;
        height: 66px;
        border-radius: 16px;
    }

    .logo-img {
        height: 60px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .problemas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .funcionalidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planes-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .plan-popular {
        transform: none;
    }

    .plan-popular:hover {
        transform: translateY(-4px);
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .frases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pasos-grid {
        flex-direction: column;
    }

    .paso-connector {
        transform: rotate(90deg);
    }

    .cta-form .form-row {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-form-wrapper {
        padding: 24px;
    }

    .plan-medida {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .hero-content {
        width: 100%;
        max-width: 340px;
        margin-left: 0;
        margin-right: auto;
    }

    .hero-title {
        max-width: 10ch;
    }

    .hero-subtitle,
    .hero-microcopy {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --navbar-height: 80px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: calc(var(--navbar-height) + 34px);
        padding-bottom: 104px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .logo-mark {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }

    .logo-img {
        height: 54px;
    }

    .problemas-grid {
        grid-template-columns: 1fr;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .funcionalidades-grid {
        grid-template-columns: 1fr;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .frases-grid {
        grid-template-columns: 1fr;
    }

    .comparacion-table {
        font-size: 0.8rem;
    }

    .comparacion-table th,
    .comparacion-table td {
        padding: 10px 12px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    transition-delay: var(--animation-delay, 0ms);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
