/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background-color: #f4f6fb;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Top bar */
.top-bar {
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.8rem;
}

.top-bar-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.top-bar a {
    color: #bfdbfe;
}

/* Secciones */
.section-padding {
    padding: 5rem 0;
}

.section-light {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #020617;
}

.section-title p {
    max-width: 650px;
    margin: 0 auto;
    color: #475569;
}

/* Botones */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5f5;
}

.btn-secondary:hover {
    background-color: #eff6ff;
}

.btn-full {
    width: 100%;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0f172a;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: conic-gradient(from 210deg, #1d4ed8, #0f766e, #7c3aed, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
    font-size: 1rem;
    color: #020617;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.main-nav a:hover {
    color: #1d4ed8;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: #1d4ed8;
    color: #f9fafb !important;
    font-size: 0.85rem;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #020617;
    border-radius: 999px;
}

/* Hero */
.hero-section {
    padding: 5.5rem 0 4rem;
    background: radial-gradient(circle at top left, #dbeafe, #f4f6fb);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 2.7rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #020617;
    margin-bottom: 1rem;
}

.hero-text h1 span {
    color: #1d4ed8;
}

.hero-text p {
    color: #475569;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Hero card */
.hero-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 1.9rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
    border: 1px solid #e2e8f0;
}

.hero-card h2 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #020617;
}

.hero-card p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.25rem;
}

/* Formularios */
.hero-form .form-group,
.contact-form .form-group,
.iva-form .form-group {
    margin-bottom: 0.9rem;
}

.hero-form label,
.contact-form label,
.iva-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #334155;
}

.hero-form input,
.contact-form input,
.contact-form select,
.contact-form textarea,
.hero-form select,
.iva-form input,
.iva-form select,
.iva-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: #f8fafc;
}

.hero-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.hero-form select:focus,
.iva-form input:focus,
.iva-form select:focus,
.iva-form textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background-color: #ffffff;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #475569;
}

.form-note {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: #64748b;
}

.form-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid #e2e8f0;
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #020617;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.service-card li::before {
    content: "• ";
    margin-right: 0.1rem;
}

.service-blue li::before { color: #1d4ed8; }
.service-green li::before { color: #16a34a; }
.service-orange li::before { color: #ea580c; }
.service-purple li::before { color: #7c3aed; }
.service-teal li::before { color: #0f766e; }
.service-dark li::before { color: #111827; }

/* Planes */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.7rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.pricing-card.highlighted {
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.15);
}

.border-blue { border-top: 4px solid #1d4ed8; }
.border-green { border-top: 4px solid #16a34a; }
.border-purple { border-top: 4px solid #7c3aed; }
.border-teal { border-top: 4px solid #0f766e; }
.border-orange { border-top: 4px solid #ea580c; }

.pricing-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 500;
}

.pricing-card.highlighted .pricing-tag {
    background-color: #dcfce7;
    color: #15803d;
}

.pricing-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.pricing-price {
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.4rem;
}

.pricing-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.pricing-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.pricing-card li::before {
    content: "• ";
    color: #1d4ed8;
}

/* Sub-secciones de planes */
.pricing-subsection {
    margin-top: 2.5rem;
}

.pricing-subsection h3 {
    margin-bottom: 0.3rem;
    color: #020617;
}

.pricing-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.pricing-table th,
.pricing-table td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.pricing-table thead {
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: #f9fafb;
}

.pricing-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.pricing-table tbody tr:hover {
    background-color: #e0f2fe;
}

.pricing-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.6rem;
}

/* Proceso */
.gradient-section {
    background: radial-gradient(circle at top left, #e0f2fe, #ecfeff);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-item {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d4ed8, #0f766e);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Sobre mí */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}

.about-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.about-list li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.about-card {
    background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
    color: #f9fafb;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.5);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Clientes */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.client-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
    text-align: center;
}

.client-logo {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    margin: 0 auto 0.7rem;
    background: radial-gradient(circle at top left, #dbeafe, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-logo img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.client-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.client-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.clients-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* Contacto */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: flex-start;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.contact-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #1d4ed8;
}

.contact-highlight {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: #e0f2fe;
    font-size: 0.85rem;
}

/* Mensaje de gracias */
.gracias-mensaje {
    background-color: #ecfdf3;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #166534;
}

/* Calculadora de IVA */
.iva-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
}

.iva-card,
.iva-result-card {
    background-color: #ffffff;
    border-radius: 1.25rem;
    padding: 1.7rem 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.iva-card h3,
.iva-result-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #020617;
}

.iva-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.iva-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background-color: #f1f5f9;
    font-size: 0.85rem;
    cursor: pointer;
}

.iva-option input[type="radio"] {
    accent-color: #1d4ed8;
}

.iva-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.iva-result-row span {
    color: #64748b;
}

.iva-result-row strong {
    font-weight: 600;
}

.iva-total {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #cbd5e1;
}

/* Footer */
.main-footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: #e5e7eb;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px rgba(22, 163, 74, 0.6);
    z-index: 60;
}

.whatsapp-icon {
    font-size: 1.5rem;
    color: #ffffff;
}

/* Responsivo */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

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

    .about-grid,
    .contact-grid,
    .faq-grid,
    .iva-grid,
    .clients-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .header-content {
        height: 4rem;
    }

    .main-nav {
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1rem;
        gap: 0.75rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-section {
        padding-top: 4.5rem;
    }

    .services-grid,
    .pricing-grid,
    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}
