:root {
    --primary-blue: #0f172a;      /* Azul marino oscuro corporativo */
    --accent-blue: #2563eb;       /* Azul eléctrico para destacar */
    --accent-green: #10b981;      /* Verde profesional para acciones principales */
    --green-hover: #059669;       /* Verde oscuro para hover */
    --light-bg: #f8fafc;          /* Fondo suave */
    --gray-border: #cbd5e1;       /* Bordes definidos */
    --text-color: #334155;        /* Texto principal */
    --text-muted: #64748b;        /* Texto secundario */
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

body {
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-blue);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent-blue);
}

.btn-nav {
    background: var(--accent-blue);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-nav:hover {
    background: #1d4ed8;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border-bottom: 1px solid var(--gray-border);
}

.badge {
    background: #dbeafe;
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    background-color: var(--green-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #dbeafe;
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background-color: #bfdbfe;
}

.btn-outline {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Secciones */
.section {
    padding: 85px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Tarjetas */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--accent-blue);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Planes de Precios */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: #ffffff;
    padding: 45px 35px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.12);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-card h3 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 800;
}

.plan-card .subtitle-plan {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 30px;
}

.plan-card ul {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.plan-card li {
    padding: 12px 0;
    color: var(--text-color);
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-card li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 900;
    font-size: 1.1rem;
}

/* Formulario */
.form-container {
    max-width: 650px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -35px;
    margin-bottom: 35px;
    font-size: 1.05rem;
}

form {
    background: #fff;
    padding: 45px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.status-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid var(--gray-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: #fafafa;
}


/* ==========================================
   ESTILOS GENERALES Y RESET BASE
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   SECCIONES Y HERO
   ========================================== */
.section {
    padding: 60px 0;
}

.hero {
    text-align: center;
    padding: 80px 0 50px 0;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* ==========================================
   GRID DE PLANES (Precios)
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-card.featured {
    border-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
}

/* ==========================================
   FORMULARIO DE CONTACTO / DEMO
   ========================================== */
.form-container {
    max-width: 600px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botones genéricos */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================
   ADAPTABILIDAD MÓVIL (MEDIA QUERIES)
   ========================================== */
@media (max-width: 768px) {
    /* Ajustes generales de textos grandes en móviles */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .section {
        padding: 40px 0;
    }

    /* Reducir padding de formularios en pantallas muy estrechas */
    .form-container {
        padding: 20px 15px;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    /* Forzar que las tarjetas de precios se apilen de forma limpia */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}